/* --- CSS RESET & BASE TYPOGRAPHY --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #15526A;
  background: #F1F9F8;
  min-height: 100vh;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
button, .cta, a.button {
  cursor: pointer;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #15526A;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
.subtitle {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #319EB8;
  font-weight: 500;
  margin-bottom: 30px;
  margin-top: -12px;
}
p, ul, ol, blockquote, li {
  font-size: 1.0625rem;
}
a {
  color: #A2C731;
  text-decoration: none;
  transition: color 0.20s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #319EB8;
}

/* --- LAYOUT: FLEXBOX & SPACING PATTERNS --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(21,82,106,0.05);
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid, .methoden-grid, .kompetenzen-grid, .altersgruppen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  margin-top: 8px;
}
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.standorte {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 20px;
}
.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.footer-contact {
  margin-top: 18px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: #15526A;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 4px;
}

/* ——— FLEX CONTENT UTILS ——— */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(21,82,106,0.13);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px 24px 24px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(162,199,49,0.18);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F1F9F8;
  border-radius: 16px;
  margin-bottom: 20px;
  min-width: 0;
  box-shadow: 0 2px 12px rgba(21,82,106,0.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ——— NAVIGATION ——— */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 24px rgba(21,82,106,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
header img {
  height: 48px;
  margin-right: 24px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  color: #15526A;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.20s cubic-bezier(.4,0,.2,1);
  padding: 8px 2px;
}
nav a.cta.primary {
  background: #A2C731;
  color: #fff;
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 1.115rem;
  margin-left: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(162,199,49,0.15);
  transition: background 0.22s, color 0.18s;
}
nav a.cta.primary:hover,
nav a.cta.primary:focus {
  background: #15526A;
  color: #A2C731;
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #A2C731;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1800;
  box-shadow: 0 4px 16px rgba(162,199,49,0.17);
  transition: background 0.18s;
}
.mobile-menu-toggle:active,.mobile-menu-toggle:focus {
  background: #319EB8;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 32px rgba(162,199,49,0.11);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.9,.1,.3,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 16px 6px 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: #A2C731;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #15526A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0 0 30px;
}
.mobile-nav a {
  color: #15526A;
  font-weight: bold;
  font-size: 1.18rem;
  padding: 10px 0;
  transition: color 0.17s;
  text-decoration: none;
}
.mobile-nav a:hover {
  color: #A2C731;
}

/* Hide nav, show burger for mobile */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- BUTTON & CTA STYLES --- */
.cta, .cta.primary, .button {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: #A2C731;
  color: #fff;
  padding: 13px 28px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 10px rgba(162,199,49,0.13);
  margin: 10px 0 0 0;
  letter-spacing: 0.04em;
  transition: background 0.17s, color 0.17s, transform 0.15s;
  text-align: center;
  display: inline-block;
}
.cta.primary:hover,.cta.primary:focus,.cta:hover,.button:hover {
  background: #15526A;
  color: #A2C731;
  transform: translateY(-2px) scale(1.03);
}

/* --- CARD & BLOCKQUOTE STYLES --- */
blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1.20rem;
  color: #319EB8;
  background: #fff;
  border-left: 5px solid #A2C731;
  border-radius: 12px;
  padding: 22px 22px 8px 18px;
  margin-bottom: 5px;
  margin-top: 8px;
  box-shadow: 0 1px 8px rgba(162,199,49,0.10);
}

/* --- LISTS / ICON ROWS --- */
ul, ol {
  margin-left: 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
li {
  line-height: 1.6;
}

.team-bios > div, .features > div, .features-grid > div, .methoden-grid > span, .kompetenzen-grid > span, .altersgruppen-grid > span {
  background: #F1F9F8;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(21,82,106,0.08);
  padding: 16px 14px;
  min-width: 170px;
  flex: 1 1 180px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  color: #15526A;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  transition: box-shadow 0.17s;
}
.features-grid > div:hover, .team-bios > div:hover {
  box-shadow: 0 8px 32px rgba(49,158,184,0.14);
  background: #eafeab;
}
.features-grid img, .features img, .team-bios img, .features > div img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #fff;
  color: #15526A;
  border-left: 6px solid #319EB8;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(21,82,106,0.07);
  padding: 20px 28px;
  font-size: 1.07rem;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 24px rgba(49,158,184,0.11);
}
.testimonial-card blockquote {
  font-size: 1.17rem;
  color: #15526A;
  background: none;
  border: none;
  padding: 0 0 0 0;
  margin-bottom: 6px;
  box-shadow: none;
}
.testimonial-card p {
  font-weight: 400;
  color: #319EB8;
  font-size: 1rem;
}

/* --- FOOTER --- */
footer {
  background: #15526A;
  color: #fff;
  width: 100%;
  padding: 40px 0 20px 0;
  margin-top: 64px;
}
footer .container {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
footer a {
  color: #A2C731;
  font-weight: bold;
  transition: color 0.15s;
}
footer a:hover {
  color: #F1F9F8;
}
footer nav {
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer .cta.primary {
  background: #A2C731;
  color: #15526A;
  min-width: 110px;
  text-align: center;
}
footer img {
  height: 44px;
  margin-bottom: 12px;
}
footer .footer-contact {
  margin-top: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1rem;
}

/* --- MOTIVATION SLIDER --- */
.motivation-slider {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  width: 100%;
  margin-bottom: 12px;
}
.motivation-slider blockquote {
  flex: none;
  min-width: 220px;
  background: #F1F9F8;
  color: #15526A;
  border-left: 4px solid #319EB8;
  margin-bottom: 0;
  font-size: 1.08rem;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 5px solid #A2C731;
  box-shadow: 0 -4px 24px rgba(21,82,106,0.10);
  padding: 22px 28px 24px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  z-index: 3333;
  animation: cookie-slide-in 0.66s cubic-bezier(.74,.01,.22,1.1);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-banner p {
  color: #15526A;
  font-size: 1rem;
  max-width: 540px;
}
.cookie-banner button {
  background: #A2C731;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.16s;
  box-shadow: 0 2px 6px rgba(162,199,49,0.13);
}
.cookie-banner button:hover,.cookie-banner button:focus {
  background: #15526A;
  color: #A2C731;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #15526A;
  border: 2px solid #A2C731;
}
.cookie-banner button.cookie-settings:hover {
  background: #A2C731;
  color: #fff;
}

@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* — Cookie Preferences Modal — */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,82,106,0.42);
  z-index: 4300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .4s cubic-bezier(.6,.02,.1,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 8px 32px rgba(49,158,184,0.16);
  max-width: 94vw;
  width: 410px;
  padding: 36px 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: scaleModal .5s cubic-bezier(.75,.11,.14,1.1);
}
@keyframes scaleModal {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.40rem;
  color: #15526A;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.cookie-modal label {
  font-weight: 600;
  color: #15526A;
  margin-left: 5px;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #A2C731;
  transition: .3s;
  border-radius: 24px;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}
.cookie-modal .switch input:checked + .slider {
  background-color: #15526A;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 17px;
  top: 11px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #A2C731;
  cursor: pointer;
}
.cookie-modal .close-cookie-modal:hover {
  color: #15526A;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1120px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 900px) {
  .team-bios, .features, .features-grid, .methoden-grid, .kompetenzen-grid, .altersgruppen-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 22px 6px;
  }
  .content-wrapper {
    gap: 14px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.27rem; }
  .subtitle { font-size: 1rem; }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .features, .features-grid, .team-bios, .methoden-grid, .kompetenzen-grid, .altersgruppen-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .card {
    padding: 18px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    padding: 12px 8px;
  }
  footer .container {
    padding: 0 8px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 22px 10px;
  }
  .cookie-modal {
    width: 94vw;
    padding: 28px 7px 30px 12px;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.12rem; }
  nav a, .mobile-nav a {
    font-size: 1.04rem;
  }
  .motivation-slider blockquote {
    min-width: 170px;
    font-size: 1rem;
  }
  .footer-contact, .footer .container, .cookie-banner p {
    font-size: 0.98rem;
  }
}

/* ---------------------- MICRO-INTERACTIONS & EFFECTS --------------------- */
.card, .feature-item, .testimonial-card, .cta.primary, .cookie-banner button, .cookie-modal {
  transition: box-shadow 0.18s, transform 0.16s, background 0.15s, color 0.15s;
}
.card:active, .feature-item:active, .testimonial-card:active {
  transform: scale(0.98);
}
.cta.primary:active, .cookie-banner button:active {
  transform: scale(0.97);
}

.motivation-slider::-webkit-scrollbar {
  height: 4px;
  background: #E6F2F2;
}
.motivation-slider::-webkit-scrollbar-thumb {
  background: #A2C731;
  border-radius: 6px;
}

::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #A2C731;
  border-radius: 7px;
}
::-webkit-scrollbar-track {
  background: #E6F2F2;
}

/* ——— MISCELLANEOUS ——— */
.values {
  font-size: 1.05rem;
  color: #319EB8;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Make sure all interactive elements are easy to tap or click */
button, .cta, .mobile-menu-toggle, .mobile-menu-close {
  touch-action: manipulation;
  outline: none;
}
button:focus, .cta:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  box-shadow: 0 0 0 2px #319EB8;
}

/* --- A11Y: Focus visible for keyboard users --- */
:focus-visible {
  outline: 2px solid #A2C731;
  outline-offset: 1px;
}

/* --- Hide scroll on mobile menu open for backdrop experience --- */
body.mobile-menu-open, html.mobile-menu-open {
  overflow: hidden;
}

/* Prevent content overlap / stacking bugs */
.header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: auto; }

