/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

@import url(_base.css);
@import url(_custom.css);
@import url(_helpers.css);
@import url(_mqs.css);
@import url(_print.css);


/*
 * Fonts
 */

/* Outfit regular */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Outfit medium */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/outfit-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Outfit semi-bold */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/outfit-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/*
 * Custom Styles
 */

* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font: normal 400 24px/1.5 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #2D8684;
  background-color: #FFF;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Layout für sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Text Styles */
h1 {
  font: normal 500 64px/1.2 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 50px 0 20px;
}

h2 {
  font: normal 500 48px/1.2 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 8px 0 40px;
}

h3 {
  font: normal 600 24px/1.2 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0 0 26px;
}

.cta-text {
  font: normal 400 36px/1.5 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.small {
  font: normal 400 18px/1.5 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

strong {
  font-weight: 600;
}

p {
  margin: 0 0 44px;
}

ul {
  list-style: none;
}

a {
  color: #2D8684;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

main p a:hover {
  color: #206e6c;
  text-decoration-color: #206e6c;
}

.checklist ul li {
  display: flex;
  align-items: center;
  min-height: 50px;
  background: url('../img/check.svg') no-repeat left center;
  background-position: left 8px;
  padding-left: 50px;
  margin-bottom: 20px;
}

img {
  max-width: 100%;
}

img.full-bleed {
  max-width: none;
  width: calc(100% + 100px);
  position: relative;
}

.left img.full-bleed {
  left: -82px;
}

.right img.full-bleed {
  right: -106px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  background-color: #6750A4;
  color: #ffffff;
  padding: 12px 25px;
  margin: 6px 0;
  border: 0;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: #523d8a !important;
  color: #fff !important;
}

.btn.link {
  padding: 12px 22px 12px 58px;
  background: #6750A4 url("../img/arrow_forward.svg") no-repeat left 16px center;
}

.btn.download {
  padding: 12px 22px 12px 58px;
  background: #6750A4 url("../img/download.svg") no-repeat left 16px center;
}

/* kleienre Buttons */
.btn.toggle-btn,
.accordion .btn {
  padding: 10px 18px;
  font-size: 18px;
  border: 0;
  background-color: #6750A4;
}

.accordion .btn.download {
  padding: 12px 22px 12px 52px;
  background: #6750A4 url("../img/download.svg") no-repeat left 16px center;
  background-size: 30px auto;
}

.btn.toggle-btn {
  padding: 10px 22px 10px 48px;
  background: #6750A4 url("../img/chevron_circle_down.svg") no-repeat left 16px center;
}

.toggle-btn.active {
  background: #2D8684 url("../img/chevron_circle_up.svg") no-repeat left 16px center;
}

.btn.toggle-btn.active:hover {
  background-color: #206e6c !important;
}

.btn-icon {
  width: 24px;
  height: auto;
  margin-right: 5px;
}


/* Header styles */

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  color: #fff;
  z-index: 1000;
}

.header-inner {
  background: #A0CDCC;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  font: normal 500 24px/1.2 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-menu-area {
  display: flex;
  align-items: center;
  gap: 24px; /* Abstand zwischen Burger und Nav */
}

nav ul.main-menu {
  display: flex;
  list-style: none;
  gap: 48px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 13px;
}

.burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Main Styles */

main {
  flex: 1;
  padding: 80px 0 0; /* Abstand zu fixed header */
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  background: #FFF;

}

/* Basis: alle Module */
.module {
  padding: 40px 82px;
  scroll-margin-top: 80px;
}

.section-grid {
  display: flex;
  gap: 1rem;
  margin: 0;
}

.green {
  background-color: #E1EFEE;
}

.white {
  background-color: #FFF;
}

.gradient {
  background: linear-gradient(to bottom, #E1EFEE, #FFF);
}

.split-color {
  background: linear-gradient(to bottom, #FFF 300px, #E1EFEE 100px 100%);
}

/* Standard-Inhalt */
.right {
  padding-left: 1rem;
}

.left {
  padding-right: 1rem;
}

img {
  width: 100%;
}

/* Modul 1-spaltig */
.modul--1col {
  flex-direction: column; /* stapelt Inhalt */
}

/* Modul 2-spaltig, 1/2 + 1/2 */
.modul--2col-1-1 > * {
  flex: 1 1 50%;
}

/* Modul 2-spaltig, 1/3 + 2/3 */
.modul--2col-1-2 > :first-child {
  flex: 1 1 33%;
}
.modul--2col-1-2 > :last-child {
  flex: 2 1 67%;
}

/* Modul 2-spaltig, 2/3 + 1/3 */
.modul--2col-2-1 > :first-child {
  flex: 2 1 67%;
}
.modul--2col-2-1 > :last-child {
  flex: 1 1 33%;
}

/* Modul 3: 3-spaltig */
.modul--3col-1-1-1 > * {
  flex: 1 1 33%;
}

/* Footer Styles */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: auto;
  font-size: 16px;
}

.footer-inner {
  background: #E1EFEE;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 45px 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px; /* Optional, sorgt für Abstand zwischen Spalten */
}

/* Linke Spalte (z. B. Logo oder Adresse) */
.footer-left {
  flex: 1 1 200px;
}

/* Rechte Seite mit 3 Spalten */
.footer-right {
  display: flex;
  flex: 1 1 auto;
  gap: 20px;
  margin-left: auto;
  max-width: 600px;
}

/* Jede Nav-Spalte */
.footer-right .nav-column {
  display: flex;
  flex: 1 1 auto; /* passt sich an, kann auch größer sein */
  flex-direction: column;
  gap: 5px;
}

.footer-right .nav-column a {
  text-decoration: none;
}


.footertext a {
  text-decoration: none;
}

.footertext a:hover {
  color: #206e6c;
}

footer p {
  margin-bottom: 14px;
}

footer li {
  margin-bottom: 10px;
}

/* ****************
 * Akkordeon
 * *************** */
.accordion {
  margin: 10px auto;
}

.accordion-item {
  background-color: #E1EFEE;
  border-radius: 12px;
  margin-bottom: 3px;
  overflow: hidden;
  font-size: 18px;
  scroll-margin-top: 80px;
}

.accordion-item p {
  margin-bottom: 22px;
}

.accordion-item input {
  display: none;
}

.accordion-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 70px 20px 30px;
  cursor: pointer;
  background: url("../img/chevron_down.svg") no-repeat right 30px center;
}

.accordion-item h3 {
  margin: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item input:checked ~ .accordion-content {
  max-height: 90000px;
  padding: 0 30px 15px;
}


.accordion-content {
  height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: height 0.3s ease, padding 0.3s ease;
}

.accordion-item input:checked ~ .accordion-content {
  height: auto; /* oder eine feste Höhe, die du für den ausgeklappten Zustand festlegst */
  padding: 0 30px 15px;
}
.accordion-item input:checked + label {
  background-image: url("../img/chevron_up.svg");
}

.accordion {
  display: none;
}

.accordion.active {
  display: block;
}

.tab-button {
  padding: 10px 0 10px 30px;
  cursor: pointer;
  border: none;
  margin-right: 5px;
  font: normal 500 24px/1.5 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #2D8684;
  background-color: transparent;
  scroll-margin-top: 80px;
}

.tab-button:hover,
.tab-button.active {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 13px;
  color: #206e6c;
}

/* ************
 * Teaser
 * ********** */

 .teaser {
  margin-top: 40px;
 }

 .teaser > div {
  padding: 0 18px;
 }

 .teaser h3 {
  margin: 30px 0 26px;
 }

.image-circle {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  text-align: center; /* für horizontale Zentrierung */
}

.image-circle img {
  height: auto;
  position: relative;
}

.teaser-img-1 {
  width: 135%;

}

.teaser-img-2 {
  width: 135%;
}

.teaser-img-3 {
  width: 105%;
}

/* ************
 * Checkliste
 * ********** */

.checklist {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 40px;
}

/* ************
 * Slider
 * ********** */

.splide__slide > div {
  margin-bottom: 3px;
}

.card-carousel .splide__arrows {
  display: flex;
  justify-content: flex-end;
  margin: -72px 0 10px;
}

.card-carousel .splide__arrow {
  position: relative;
  top: 0;
  opacity: 1;
  display: block;
  width: 60px !important;
  height: 60px !important;
}

.card-carousel .splide__arrow > svg {
  display: none;
}

.card-carousel .splide__arrow--prev {
  left: 0;
}

.card-carousel .splide__arrow:disabled {
  opacity: 0.8;
  cursor: default;
}

.splide__arrow:hover:not(:disabled) {
  opacity: 1;
}

.card-carousel .splide__arrow--next {
  background: url("../img/slider-arrow-next.svg") no-repeat right 10px center;
  right: 0;
}

.card-carousel .splide__arrow--prev {
  background: url("../img/slider-arrow-prev.svg") no-repeat right 10px center;
}

.card-carousel .card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.card-carousel .top-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.card-carousel .card .left,
.card-carousel .card .right {
  flex: 1;
  padding: 0;
}

.card-carousel .card .right {
margin-left: auto;
  margin-right: auto;
}

.card .btn.toggle-btn {
  margin-top: 1rem;
}

/* Bottom Section Animation */
.bottom-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0;
  font-size: 0;      /* Text unsichtbar */
  line-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.bottom-section.active {
  max-height: 5000px;
  opacity: 1;
  margin-top: 1.5rem;
  font-size: 18px;   /* zurücksetzen auf normalen Wert */
  line-height: 1.5;
}

.bottom-section.active p:last-child {
  margin-bottom: 0;
}


/* ************
 * Video
 * ********** */

.video h2 {
  margin-bottom: 0;
}

.video h2 + p {
  margin: -9px 0 10px;
}

.video .plyr + p {
  margin-top: 40px;
}

/* ************
 * Download
 * ********** */
.cta-buttons {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cta-buttons .img-btn {
  display: block;        /* <a> wie ein Block für object-fit */
  max-height: 84px;          /* maximale Höhe der Buttons */
  height: 5.5vw;
  flex: 0 0 auto;        /* Container schrumpft nicht unkontrolliert */
}

.cta-buttons .img-btn img {
  width: 100%;
  height: 100%;          /* Bild passt sich Container-Höhe an */
  object-fit: contain;    /* kein Verzerren, proportional bleiben */
  display: block;
}

 /* ************
 * Mediaqueries
 * ********** */

 /* Change to Burger-Menu at smaller Screens */
 @media (max-width: 1199px) {
   nav ul.main-menu {
    display: flex;
    flex-direction: column;
    background: #A0CDCC;
    position: absolute;
    top: 68px;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0 35px 0;
    box-sizing: border-box;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  nav ul.main-menu.open {
    max-height: 1500px;
  }

  nav li:first-child {
    padding-top: 35px;
  }

  nav li {
    margin-bottom: 10px;
  }

  .burger {
    display: block;
  }

  .burger-icon {
  display: none; /* Beide Icons sind zunächst unsichtbar */
  }

  .burger-visible {
    display: block; /* Das Icon, das sichtbar sein soll */
  }

  .burger-hidden {
    display: none; /* Das andere Icon bleibt unsichtbar */
  }

  .header-inner {
    box-sizing: content-box;
    padding: 0 35px;
    width: calc(100% - 70px);
    margin: 0;
  }

  .main-menu-area {
    display: block;
  }

  .module {
    padding: 40px 35px;
    scroll-margin-top: 80px;
  }

  header {
    height: 68px;
  }

  main {
    padding-top: 68px;
  }

  .module {
    padding: 26px 35px;
    scroll-margin-top: 68px;
    overflow: hidden;
  }

  .left, .right {
    padding: 0;
  }

  /* Text Styles Mobile */
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 36px;
    margin: 0 0 20px;
  }

  h2 {
    font-size: 32px;
    margin: 26px 0 20px;
  }

  h3 {
    font-size: 20px;
    margin: 0 0 26px;
  }

  .cta-text {
    font-size: 18px;
  }

  .small, footer {
    font-size: 16px;
  }

  .accordion {
    margin: 28px auto 18px;
  }

  .accordion-item {
    font-size: 16px;
  }

  .accordion-item label {
    padding: 14px 70px 16px 30px;
  }

  .accordion-item p {
    margin-bottom: 14px;
  }

  .accordion .btn.download {
  padding: 12px 18px 12px 32px;
  background: #6750A4 url("../img/download.svg") no-repeat left 8px center;
    background-size: auto;
  background-size: 22px auto;
}

  p {
    margin: 0 0 14px;
  }

  nav ul {
    top: 68px;
    height: calc(100vh - 68px);
    padding: 35px;
  }

  /* --- Mobile Buttons --- */
  .btn {
    margin: 3px 0;
  }

  .btn.link {
    padding: 9px 20px 9px 46px;
    background: #6750A4 url("../img/arrow_forward.svg") no-repeat left 16px center;
    background-size: 22px auto;
  }

  .hero-module .right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-module .right .btn {
    display: inline-block;
    margin-bottom: 10px;
  }

  .hero-module .right .btn:first-of-type {
    margin-top: 18px;
  }

  .btn.download {
    padding: 9px 20px 9px 46px;
    background: #6750A4 url("../img/download.svg") no-repeat left 16px center;
    background-size: 24px auto;
  }

  .tab-button {
    padding: 1px 20px 9px 0;
    margin-right: 30px;
    font: normal 500 20px/1.5 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  }

  .btn.toggle-btn, .accordion .btn {
    font-size: 16px;
    padding: 9px 20px 9px 44px;
  }

  .tab-button:last-child {
    padding-right: 0;
  }

  img.full-bleed {
    width: calc(100% + 70px);
  }

  .left img.full-bleed {
    left: -35px;
  }

  .footer-right {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-right .address {
    grid-column: span 2;
    margin-top: 10px;
  }

  /* Switch column layout to vertical stacking */
  .section-grid {
    gap: 0;
  }

  .modul--2col-1-1,
  .modul--2col-1-2,
  .modul--2col-2-1,
  .modul--3col-1-1-1,
  .text-img-module .modul--2col-2-1 {
    flex-direction: column;
  }

  /* Reorder columns */
  .hero-module .modul--2col-1-1 .right,
  .teacher-parent-module .modul--2col-1-2 .left {
    order: 1;
    padding-bottom: 20px;
  }

  .hero-module .modul--2col-1-1 .left,
  .teacher-parent-module .modul--2col-1-2 .right {
    order: 2;
  }

  /* Hide the image inside info section */
  .teacher-parent-module .modul--2col-1-2 .left img {
    display: none;
  }

  /* ---- Card-module mobile ---- */
  .modul--3col-1-1-1 > * {
    margin-bottom: 20px;
  }

  .modul--3col-1-1-1 > :last-child {
    margin-bottom: 0;
  }

  /* ---- Teaser-module mobile ---- */
  .teaser {
    margin-top: 23px;
  }

  .teaser > div {
    padding: 0;
  }

  .teaser h3 {
    margin: 20px 0 16px;
  }

  .image-circle {
    width: 125px;
    height: 125px;
  }

  /* --- img-list-module mobile --- */
  .img-list-module .modul--2col-2-1 .left {
    margin: 15px 0 28px;
  }

  .checklist {
    margin-bottom: 0px;
  }

  .checklist ul {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .checklist ul li:last-child {
    margin-bottom: 0;
  }

  .split-color {
    background: linear-gradient(to bottom, #FFF 200px, #E1EFEE 100px 100%);
  }

  .img-list-module .modul--2col-2-1 .left {
    margin-bottom: 40px;
  }

  /* ---- text-img-module mobile ---- */
  .text-img-module {
    background: linear-gradient(to bottom, #E1EFEE, #FFF);
  }

  /* Show image first */
   .text-img-module .modul--2col-2-1 .left {
    order: 2;
    margin-bottom: 24px; /* Abstand zum Text */
  }

   .text-img-module .modul--2col-2-1 .right {
    order: 1;
    margin-bottom: 40px;
  }

  .text-img-module .modul--2col-2-1 .right img,
  .img-list-module .modul--2col-2-1 .left img {
    max-width: 600px;
  }

  /* center images */
  .hero-module .modul--2col-1-1 .left,
  .text-img-module .modul--2col-2-1 .right,
  .img-list-module .modul--2col-2-1 .left {
    display: flex;
    justify-content: center;
  }

  /* ---- Video-Module mobile ---- */
  .video-module {
    padding: 26px 0;
  }

  .video-module h2 {
    margin-left: 28px;
    margin-right: 28px;
  }
  /* ---- Slider-Module mobile ---- */
  .card {
    border-radius: 12px;
    padding: 28px;
  }

  .card .top-section {
    flex-direction: column;       /* Spalten untereinander */
    align-items: center;          /* optional: mittig ausrichten */
    gap: 26px;
    align-items: flex-start;
  }

  .card .right {
    order: -1; /* Bild nach oben */
  }

  .card img {
    max-width: 200px;
    /* width: 65%; */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .card  h3 {
    margin-bottom: 3px;
  }

  .card .bottom-section.active {
    margin-top: 24px;
    font-size: 16px;
  }

  .card .bottom-section.active p:last-child {
    margin-bottom: 0;
  }

  .card-carousel .splide__arrows {
    margin: -40px 28px 10px 0;
    gap: 6px;
  }

  .card-carousel .splide__arrow {
    background-size: 32px;
    width: 32px !important;
    height: 32px !important;
  }

  .card-carousel .splide__arrow--next,
  .card-carousel .splide__arrow--prev  {
    background-size: 32px;
    background-position: center;
  }

  /* --- Video-Module mobile --- */
  .video h2 {
    margin: 26px 0 20px;
  }

  .video h2 + p {
    margin: 0 0 13px;
  }

  .video .plyr + p {
    margin-top: 20px;
  }

  /* --- Download-Module mobile --- */
  #download h2 {
    width: 100%;
  }

  .download .section-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .download .right .cta-text {
    order: 1;
  }

  .cta-buttons .img-btn {
    max-height: 60px;
    height: auto;
    flex: 0 0 auto;
  }

  .download .left {
    order: 2;
    width: 80%;
  }

  .download .right .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    position: absolute;
    margin-top: 10vw;
    right: 35px;
    width: 40%;
  }

 .download .left img.full-bleed {
    width: 100%;
    height: auto;
  }

  /* Footer mobile */
  .footer-inner {
    padding: 54px 35px;
    gap: 20px;
    flex-direction: column;
  }

  .footer-left {
    flex: 1;
  }

  .footer-right {
    flex-direction: column;
    margin-left: 0;
  }

@media (max-width: 768px) {

  .checklist ul {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .download .left {
    order: 2;
    width: 70%;
  }

 .left img.full-bleed {
    left: -55px;
  }
}