/* =============================
   CSS RESET & NORMALIZATION
   ============================= */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; background: #F7F7FB; }
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F7F7FB;
  color: #19325A;
  font-size: 1rem;
  line-height: 1.6;
}
img,svg { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button,input,textarea,select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}
ul,ol { list-style-position: inside; }

/* =============================
   FONT IMPORTS (fallbacks)
   ============================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: #19325A;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.13;
  margin-bottom: 24px;
  text-transform: none;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

p,li,address {
  font-size: 1rem;
  color: #27426F;
  margin-bottom: 16px;
}
strong {
  font-weight: 900;
  color: #19325A;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}


/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 3px solid #FFD966;
  box-shadow: 0 2px 10px rgba(25,50,90,0.04);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 16px;
}
header img {
  height: 36px;
  margin-right: 20px;
}
/* Main nav desktop */
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #19325A;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.06em;
}
.main-nav a:not(.cta-primary):hover,
.main-nav a:not(.cta-primary):focus { color: #FFD966; }
.main-nav a.cta-primary {
  background: #FFD966;
  color: #19325A !important;
  border-radius: 32px;
  padding: 10px 32px;
  font-weight: 900;
  box-shadow: 0 4px 20px 0 rgba(25,50,90,0.10);
  border: 2px solid #FFD966;
  margin-left: 12px;
  transition: box-shadow 0.18s, background 0.18s;
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: #19325A;
  color: #FFD966 !important;
  border: 2px solid #19325A;
  box-shadow: 0 4px 20px 0 rgba(25,50,90,0.20);
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: #FFD966;
  color: #19325A;
  font-size: 2rem;
  border-radius: 6px;
  padding: 4px 16px;
  cursor: pointer;
  border: 2px solid #FFD966;
  margin-left: 16px;
  transition: background 0.2s, color 0.2s;
  z-index: 1002;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #19325A;
  color: #FFD966;
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #19325A;
  color: #FFD966;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.83,0,.17,1);
  padding: 24px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 0 24px 18px 0;
  background: none;
  color: #FFD966;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFD966;
  color: #19325A; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  padding: 0 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFD966;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #19325A;
  background: #FFD966;
  border-radius: 6px;
  padding-left: 8px;
  border-bottom: 2px solid #FFD966;
}

/* Hide Desktop Nav on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Prevent Menu Overlap */
@media (max-width: 768px) {
  header .container {
    gap: 12px;
    padding: 14px 10px;
  }
  header img {
    height: 28px;
  }
}

/* =============================
   HERO SECTIONS
   ============================= */
.hero {
  background: #19325A url('../assets/bg-hero.svg') no-repeat center top;
  background-size: cover;
  color: #FFD966;
  padding: 70px 0 60px;
  min-height: 300px;
  display: flex;
}
.hero .container { align-items: center; }
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
  color: #FFD966;
  padding: 0;
}
.hero h1, .hero h2, .hero p { color: #FFD966; }
.hero a.cta-primary {
  margin-top: 20px;
  box-shadow: 0 4px 22px 0 rgba(255,217,102,0.3);
}


/* =============================
   SECTIONS & LAYOUT UTILS
   ============================= */
.features, .about, .cta, .thankyou, .legal, .curriculum-overview, .faq-section, .contact-details, .testimonials, .testimonials-slider {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 24px 0 rgba(25,50,90,0.06);
  margin-bottom: 40px;
  padding: 40px 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Card Container Patterns - Mandated */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: 18px; box-shadow: 0 2px 16px 0 rgba(25,50,90,.08); padding: 32px; min-width: 240px; flex: 1; }
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F7F7FB;
  border-left: 8px solid #FFD966;
  border-radius: 16px;
  padding: 20px 32px 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px 0 rgba(25,50,90,0.09);
  min-width: 260px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature Grid (Homepage) */
.feature-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.feature-grid > div {
  background: #19325A;
  color: #FFD966;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(25,50,90,0.11);
  padding: 32px 26px;
  flex: 1 1 244px;
  max-width: 335px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.16s;
  cursor: pointer;
}
.feature-grid > div:hover, .feature-grid > div:focus {
  box-shadow: 0 8px 30px 0 rgba(25,50,90,0.16);
  transform: translateY(-6px) scale(1.03);
}
.feature-grid img {
  width: 44px; height: 44px; background: #FFD966; border-radius: 12px;
  padding: 7px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  color: #FFD966;
  margin-bottom: 6px;
}
.feature-grid p {
  color: #fff;
  opacity: 0.95;
}

/* Experts grid */
.experts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.expert-profile {
  background: #A6BBC8;
  color: #19325A;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(25,50,90,0.07);
  padding: 28px 22px;
  flex: 1 1 240px;
  min-width: 240px;
}
.expert-profile h3 { color: #19325A; margin-bottom: 7px; font-size: 1.23rem; }
.expert-profile ul li { margin-bottom: 6px; }


/* Testimonial Cards & Sliders */
.testimonials, .testimonials-slider {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 24px 0 rgba(25,50,90,0.04);
  padding: 44px 0 20px 0;
}
.testimonial-card {
  color: #19325A;
  background: #FAFAFD;
  border-radius: 18px;
  border-left: 8px solid #FFD966;
  padding: 18px 26px 18px 20px;
  margin-bottom: 22px;
}
.testimonial-meta {
  margin-top: -12px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #A6BBC8;
  font-size: 1rem;
}
.stars {
  font-size: 1.5rem;
  color: #FFD966;
  font-weight: bold;
  letter-spacing: 2px;
}
.testimonial-summary, .testimonial-highlights {
  color: #27426F;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-top: 18px;
}
.testimonial-highlights ul { display: flex; flex-direction: column; gap: 4px; }



/* =============================
   BUTTONS & LINKS
   ============================= */
.cta-primary {
  background: #FFD966;
  color: #19325A !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.13rem;
  border: 2px solid #FFD966;
  border-radius: 30px;
  padding: 14px 42px;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(255,217,102,0.13);
  transition: box-shadow 0.17s, background 0.15s, color 0.16s, border 0.12s;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #19325A;
  color: #FFD966 !important;
  border: 2px solid #19325A;
  box-shadow: 0 7px 22px 0 rgba(255,217,102,0.29);
  outline: 0;
}

.button, .btn {
  border-radius: 24px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: #A6BBC8;
  color: #19325A;
  border: 2px solid #A6BBC8;
  transition: background 0.2s, color 0.15s, border 0.14s, box-shadow 0.15s;
}
.button:hover, .btn:hover, .button:focus, .btn:focus {
  background: #19325A;
  color: #FFD966;
  border: 2px solid #FFD966;
  box-shadow: 0 5px 22px 0 rgba(25,50,90,0.2);
}

/* === Links === */
a:hover, a:focus {
  color: #FFD966;
  transition: color 0.13s;
  outline: none;
}


/* =============================
   FOOTER
   ============================= */
footer {
  background: #19325A;
  color: #FFD966;
  border-top: 3px solid #FFD966;
  padding: 38px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer a {
  color: #FFD966;
  font-weight: 800;
  transition: color 0.16s;
}
footer a:hover, footer a:focus {
  color: #A6BBC8;
  text-decoration: underline;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  margin: 8px 0;
}
.footer-contact {
  min-width: 244px;
  margin-top: 0;
  font-size: 1rem;
}
.footer-contact address {
  color: #FFD966;
  font-style: normal;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.8;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
  margin-right: 6px;
}
footer img {
  height: 34px;
  margin-bottom: 12px;
  margin-right: 12px;
}

/* =============================
   LEGAL/CURRICULUM/FAQ STYLES
   ============================= */
.legal, .curriculum-overview, .faq-section, .contact-details, .thankyou {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 24px 0 rgba(25,50,90,0.04);
  padding: 40px 0 40px 0;
  margin-bottom: 44px;
}
.legal h1, .curriculum-overview h1, .faq-section h1, .contact-details h1, .thankyou h1 {
  font-size: 2rem;
}
.legal ul, .curriculum-overview ul, .faq-section ul, .contact-details ul { margin-bottom: 12px; }
.legal ul li, .curriculum-overview ul li, .faq-section ul li { margin-bottom: 8px; padding-left: 0; }

.curriculum-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 16px;
}
.modul-descriptions { margin-top: 22px; }

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-accordion > div {
  background: #FAFAFD;
  border-radius: 12px;
  border-left: 6px solid #FFD966;
  box-shadow: 0 1px 6px 0 rgba(25,50,90,0.05);
  padding: 20px 16px;
  transition: box-shadow 0.15s;
}
.faq-accordion > div:hover {
  box-shadow: 0 6px 20px 0 rgba(25,50,90,0.08);
}
.contact-hint {
  margin-top: 12px;
  font-size: 1rem;
  color: #19325A;
}
.contact-hint a {
  text-decoration: underline;
  font-weight: bold;
  color: #A6BBC8;
}
.contact-note { margin-top: 14px; font-size: 1rem; color: #A6BBC8; }

address img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: text-bottom;
}

/*******************************
   COOKIE CONSENT BANNER & MODAL
*******************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #19325A;
  color: #FFD966;
  box-shadow: 0 -2px 12px 0 rgba(25,50,90,0.08);
  z-index: 1100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 24px 24px;
  animation: slideUpBanner 0.6s cubic-bezier(0.7,0,0.3,1);
  font-size: 0.97rem;
  gap: 24px;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  padding: 10px 26px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: 2px solid #FFD966;
  background: #FFD966;
  color: #19325A;
  cursor: pointer;
  transition: background 0.19s, color 0.15s, box-shadow 0.15s;
  margin-left: 0;
  box-shadow: 0 2px 12px rgba(25,50,90,0.08);
  outline: none;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  color: #19325A;
  border: 2px solid #FFD966;
}
.cookie-banner button.cookie-settings {
  background: #19325A;
  color: #FFD966;
  border: 2px solid #FFD966;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #19325A;
  color: #FFD966;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #FFD966; color: #19325A; }

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(25,50,90,0.50);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBack 0.3s ease;
}
@keyframes fadeInBack {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #19325A;
  max-width: 420px;
  width: 96vw;
  border-radius: 16px;
  padding: 32px 26px;
  z-index: 1202;
  box-shadow: 0 8px 40px 0 rgba(25,50,90,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalInPop 0.4s cubic-bezier(0.6,0,0.4,1);
}
@keyframes modalInPop {
  from { transform: scale(0.85) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-modal__close {
  background: #FFD966;
  color: #19325A;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 36px; height: 36px;
  border: 2px solid #FFD966;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus { background: #19325A; color: #FFD966; }
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 16px 0;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__category label {
  font-size: 1rem;
  font-weight: 600;
  color: #19325A;
}
.cookie-modal__category input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: #FFD966;
  margin-left: 12px;
}
.cookie-modal__category.is-essential input[type=checkbox] {
  accent-color: #A6BBC8;
  pointer-events: none;
}
.cookie-modal__category.is-essential label::after {
  content: '(immer aktiv)';
  font-size: 0.95em;
  font-style: italic;
  color: #A6BBC8;
  margin-left: 6px;
}
.cookie-modal__footer {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal button {
  margin-left: 0;
}
@media (max-width:600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 10px; }
  .cookie-banner__buttons { flex-direction: column; width: 100%; gap: 8px; }
  .cookie-modal {
    padding: 20px 8vw;
    max-width: 97vw;
  }
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 1160px) {
  .container { max-width: 96vw; }
  .feature-grid > div { max-width: 100%; }
}
@media (max-width: 900px) {
  .feature-grid { flex-direction: column; gap: 26px; }
  .experts-grid { flex-direction: column; gap: 18px; }
  .footer-nav { flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
  
  .container { padding: 0 6px; }
  .section,
  .features, .about, .cta, .thankyou, .legal, .curriculum-overview, .faq-section, .contact-details, .testimonials, .testimonials-slider {
    padding: 24px 0;
    border-radius: 12px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.13rem; }
  .feature-grid, .experts-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper { gap: 14px; }
  .card { padding: 18px; min-width: unset; }
  .testimonials, .testimonials-slider, .about, .cta, .thankyou, .legal, .curriculum-overview, .faq-section, .contact-details {
    box-shadow: 0 1.5px 14px 0 rgba(25,50,90,0.07);
    margin-bottom: 28px;
  }
  .hero {
    padding: 38px 0 24px 0;
    background-size: cover;
    min-height: 170px;
  }
  .hero .content-wrapper { align-items: flex-start; }
  .testimonial-card { padding: 14px 12px 14px 12px; margin-bottom: 16px; }
  .footer-contact { font-size: 0.93rem; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 520px) {
  body { font-size: 0.96rem; }
  .footer-contact { font-size: 0.88rem; }
  .feature-grid > div, .expert-profile { padding: 14px 10px; }
  .hero { padding: 26px 0 10px 0; }
}

/* Adaptive directions for text-image-section and flex layouts */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* =============================
   COLORS & FIXED SPACING
   ============================= */

.bg-primary { background: #19325A !important; color: #FFD966 !important; }
.bg-accent { background: #FFD966 !important; color: #19325A !important; }
.bg-secondary { background: #A6BBC8 !important; color: #19325A !important; }
.text-primary { color: #19325A !important; }
.text-accent { color: #FFD966 !important; }
.text-secondary { color: #A6BBC8 !important; }

/*******************************
   ANIMATIONS/MICRO-INTERACTIONS
*******************************/
.cta-primary, .button, .btn, .feature-grid > div, .card, .faq-accordion > div, .testimonial-card {
  transition: box-shadow 0.18s, background 0.14s, color 0.12s, transform 0.18s;
}
.cta-primary:active,
.button:active,
.btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px 0 rgba(25,50,90,0.05);
}

/******************************
   UTILS & GEOMETRIC SHAPES
******************************/
.section-accent {
  background: #FFD966;
  border-radius: 24px;
  color: #19325A;
  padding: 28px 16px;
  margin-bottom: 40px;
}
.rounded-12 { border-radius: 12px !important; }
.rounded-18 { border-radius: 18px !important; }
.shadow-1 {
  box-shadow: 0 1.5px 10px 0 rgba(25,50,90,0.09);
}
.shadow-2 {
  box-shadow: 0 4px 16px 0 rgba(25,50,90,0.13);
}
.mt-16 { margin-top: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.pt-12 { padding-top: 12px !important; }
.pb-12 { padding-bottom: 12px !important; }
.gap-20 { gap: 20px !important; }
.gap-32 { gap: 32px !important; }

/******************************
   PRINT STYLES
******************************/
@media print {
  header, footer, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  section, main { box-shadow: none !important; }
}
