/* --- CSS RESET & NORMALIZE --- */
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #fff;
  color: #174263;
  min-height: 100vh;
  line-height: 1.7;
}

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700|Open+Sans:400,600,700&display=swap');

:root {
  --primary: #174263;
  --secondary: #FFCD38;
  --accent: #E3E7EB;
  --text: #174263;
  --text-light: #3D5771;
  --white: #fff;
  --border-radius: 12px;
  --shadow: 0 2px 12px rgba(20,40,80,0.07), 0 1.5px 8px rgba(23,66,99,0.03);
}

::-webkit-input-placeholder { color: var(--text-light); opacity:0.8; }
::-moz-placeholder { color: var(--text-light); opacity:0.8; }
:-ms-input-placeholder { color: var(--text-light); opacity:0.8; }
::placeholder { color: var(--text-light); opacity:0.8; }

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--primary);
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--primary);
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

p, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-light);
}

b, strong {
  font-weight: 700;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #174263cc;
  text-decoration: underline;
}
.secondary-cta-link a {
  font-size: 1rem;
  color: var(--primary);
  text-decoration: underline;
  margin-top: 12px;
}

blockquote {
  border-left: 3px solid var(--accent);
  margin: 18px 0 18px 0;
  padding: 10px 20px;
  background: #f8fafc;
  font-style: italic;
  color: var(--text-light);
  border-radius: var(--border-radius);
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.center {
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}
.flex-align {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--white);
  box-shadow: 0 1px 0 #f4f7fa;
  padding: 0;
  position: relative;
  z-index: 15;
}
header .container.flex-align {
  min-height: 80px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color .2s, background .2s;
  padding: 9px 0;
  border-radius: var(--border-radius);
  position: relative;
}
.main-nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  padding: 10px 22px;
  border-radius: var(--border-radius);
  box-shadow: 0 1.5px 10px rgba(255, 205, 56, 0.09);
  margin-left: 18px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #ffd700;
  color: var(--primary);
  box-shadow: 0 3px 18px rgba(255, 205, 56, .13);
}
.main-nav a:hover, .main-nav a:focus:not(.cta) {
  color: var(--secondary);
  background: rgba(23,66,99,0.03);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 34;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .14s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent);
}

/* --- MOBILE NAV MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,66,99,0.97);
  color: var(--white);
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(0.77,0,0.18,1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  appearance: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  align-self: flex-end;
  margin: 22px 24px 12px 0;
  cursor: pointer;
  z-index: 100;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 24px 0 0 32px;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  padding: 2px 0;
  transition: color .19s, background .19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(255,205,56,0.07);
  padding-left: 10px;
}

/* --- HERO/SECTION SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:nth-child(even) {
  background: #fcfcfd;
}

.content-wrapper,
.text-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.content-wrapper > * {
  flex: 1 1 230px;
  min-width: 230px;
}
.text-section {
  flex-direction: column;
  max-width: 800px;
  gap: 16px;
}
ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 16px;
}
.milestones {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.milestones li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* --- FEATURE/TEAM GRID (cards) --- */
.feature-grid, .team-grid, .card-container, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 32px;
}
.feature-grid > div, .team-bio, .teacher-profile {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .21s;
  border: 1.5px solid #f2f4f7;
}
.feature-grid > div:hover, .team-bio:hover, .teacher-profile:hover {
  box-shadow: 0 4px 24px rgba(23,66,99,0.10);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

.card-container {
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  min-width: 240px;
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(23,66,99,0.14);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  color: var(--text);
  border: 1.5px solid #e5e8ea;
  transition: box-shadow .17s;
}
.testimonial-card p {
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.testimonial-card b {
  color: var(--primary);
}
.testimonial-card img[alt="Bewertung"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(23,66,99,.15);
}

/* --- ADDRESS, CONTACT & FOOTER --- */
address, .contact-info, .contact-details {
  font-style: normal;
  margin-top: 8px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-light);
}
address img, .contact-info img, .contact-details img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
  opacity: 0.88;
}
address a, .contact-info a, .contact-details a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}
.business-hours, .business-hours p {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 12px!important;
}

footer {
  background: #f9fafb;
  border-top: 1.5px solid #e4e9ee;
  padding: 40px 0 30px 0;
  font-size: 15px;
  color: var(--text-light);
  margin-top: 36px;
}
footer img {
  height: 44px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--text-light);
  font-size: 1rem;
  text-decoration: underline;
  transition: color .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}

/* --- BUTTONS & CTA --- */
.cta, .cta:visited {
  background: var(--secondary);
  color: var(--primary) !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 13px 28px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: 0 3px 20px rgba(255,205,56,0.06);
  margin-top: 18px;
  margin-bottom: 6px;
  transition: background .18s, color .18s, box-shadow .20s;
  display: inline-block;
  outline: none;
}
.cta:hover,
.cta:focus {
  background: #ffd101;
  color: var(--primary);
  box-shadow: 0 7px 25px rgba(255,205,56,0.14);
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* Cookie Banner Buttons */
.cookie-btn,
.cookie-btn:visited {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 7px;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 11px 22px;
  margin-right: 10px;
  margin-top: 14px;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 1px 7px rgba(23,66,99,0.055);
  transition: background .19s, color .19s;
}
.cookie-btn.reject {
  background: #e3e7eb;
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffd600;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d5dae0;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #dbe0e7;
}

/* --- MODAL, COOKIE CONSENT --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 101;
  background: var(--white);
  box-shadow: 0 -1px 12px rgba(23,66,99,0.13);
  padding: 25px 12px 17px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 30px;
  transition: transform .29s cubic-bezier(.88,0,.13,1);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner p {
  flex: 1 1 220px;
  color: var(--primary);
  font-size: 1.02rem;
  padding: 0;
  margin: 0;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed; top: 0; left:0; right:0; bottom:0;
  background: rgba(23,66,99,0.45);
  z-index: 140;
}
.cookie-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 9px 44px rgba(23,66,99,0.15);
  max-width: 95vw;
  min-width: 310px;
  width: 400px;
  padding: 33px 30px 19px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: fadeInUp .37s;
}
@keyframes fadeInUp {
  from { transform: translateY(50px); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-modal .category label {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-left: 0;
}
.cookie-modal .toggle {
  width: 38px; height: 22px;
  background: var(--accent);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background .18s;
  flex-shrink: 0;
}
.cookie-modal .toggle input:checked + .slider {
  background: var(--secondary);
}
.cookie-modal .toggle input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  border-radius: 30px;
  transition: background .18s;
}
.cookie-modal .slider:before {
  position: absolute; content: "";
  height: 16px; width: 16px; left: 3px; bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1.5px 5px rgba(23,66,99,0.07);
  transition: transform .18s;
}
.cookie-modal .toggle input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .toggle input:disabled + .slider {
  background: #e0e0e0;
}
.cookie-modal .toggle input:disabled + .slider:before {
  background: #f6f6f6;
}
.cookie-modal .cookie-btn {
  margin-top: 20px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 17px;
  right: 22px;
  background: none;
  border: none;
  color: #bccada;
  font-size: 1.44rem;
  cursor: pointer;
}
/* --- Responsive FLEX PATTERNS --- */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 13px;
    padding-right: 13px;
  }
  .footer-flex {
    gap: 18px;
    flex-wrap: wrap;
  }
  .feature-grid, .team-grid, .card-container, .testimonial-slider {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.34rem;
  }
  h3 {
    font-size: 1.13rem;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container.flex-align {
    flex-direction: row;
    justify-content: space-between;
  }
  .content-wrapper, .feature-grid, .card-container, .team-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  section {
    padding: 33px 4vw;
    margin-bottom: 40px;
  }

  .mobile-nav a {
    font-size: 1.14rem;
  }
}

/* --- SPECIAL CLASSES / LAYOUTS --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
/* Ensuring no overlap, minimum margins */
.card, .team-bio, .teacher-profile, .testimonial-card {
  margin-bottom: 20px;
}
section > .container > *:not(:last-child) {
  margin-bottom: 20px;
}

/* --- MICRO-INTERACTIONS / TRANSITIONS --- */
*, *::before, *::after {
  transition: background .17s, box-shadow .17s, color .17s, border .15s;
}
section, .feature-grid > div, .card, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow .19s, background .22s, transform .18s;
}

/* --- LEGAL/INFO STYLES --- */
.text-section.legal {
  background: #fcfcfd;
  border-radius: 9px;
  border: 1px solid #ecf1f6;
  padding: 32px 18px;
  color: var(--text-light);
  margin-top: 12px;
  margin-bottom: 6px;
}
.text-section.legal h2,
.text-section.legal h3 {
  margin-bottom: 10px;
  color: var(--primary);
}
.text-section.legal ul {
  list-style: disc;
}

/* --- UTILITY CLASSES --- */
.mb-2 { margin-bottom: 16px !important; }
.mt-2 { margin-top: 16px !important; }
.no-select { user-select: none; }

/* --- Hide out-of-main nav for accessibility when menu open --- */
body.menu-active .main-nav,
body.menu-active main,
body.menu-active footer {
  filter: blur(2px);
  pointer-events: none;
}

/* --- END STYLE.CSS --- */