/* CSS RESET & NORMALIZATION */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  line-height: 1.5;
  background: #F4F4F9;
  color: #2D4A68;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
main {
  flex: 1 0 auto;
  padding-bottom: 60px;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #2D4A68;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #BFE13A;
  outline: none;
}

/* Utility */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
}
h1 {
  font-size: 2.2rem;
  color: #2D4A68;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  color: #BFE13A;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  color: #2D4A68;
  margin-bottom: 12px;
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

/* --- SECTIONS LAYOUT --- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}
.text-section {
  max-width: 700px;
  margin: 0 auto 24px auto;
  text-align: left;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.card-container, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 0 0;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px 0 rgba(45,74,104,0.10);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 260px;
  transition: transform 0.20s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1.5deg);
  box-shadow: 0 8px 30px 0 rgba(191,225,58,0.18);
}

/* --- FEATURES --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 2px 10px 0 rgba(45,74,104,0.08);
  margin-bottom: 20px;
  min-width: 210px;
  flex: 1 1 220px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.15s;
}
.feature-item img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #BFE13A;
  padding: 7px;
}
.feature-item:hover {
  box-shadow: 0 8px 28px 0 rgba(191,225,58,0.12);
  transform: translateY(-6px) rotate(2deg);
  z-index: 2;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  background: #fff;
  color: #2D4A68;
  border-radius: 18px;
  box-shadow: 0 6px 24px 0 rgba(45,74,104,0.10);
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
  min-width: 230px;
  max-width: 760px;
  font-size: 1rem;
  transition: box-shadow 0.18s;
}
.testimonial-card > p {
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2D4A68;
  margin: 0 0 0 0;
  flex: 1 2 220px;
}
.testimonial-card img {
  width: 20px;
  height: 20px;
  margin-left:2px;
  background:transparent;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #BFE13A;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px 0 rgba(191,225,58,0.18);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(97deg, #BFE13A 30%, #2D4A68 100%);
  color: #fff;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 6px 30px 0 rgba(45,74,104,0.13);
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 48px 0 36px 0;
  position: relative;
  animation: heroFadeIn 1s cubic-bezier(0.7,0,0.45,1);
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  text-shadow: 1px 3px 16px rgba(45,74,104,0.13),0 2px 2px #2D4A68;
  margin-bottom: 18px;
}
.hero .cta-button {
  background: #fff;
  color: #2D4A68;
  border-radius: 100px;
  margin-top: 16px;
  font-size: 1.15rem;
  font-weight: 800;
}
.hero .content-wrapper {
  gap: 14px;
  align-items: flex-start;
  max-width: 540px;
}

/* --- CTA BUTTONS --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: #BFE13A;
  color: #2D4A68;
  border-radius: 100px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.07rem;
  letter-spacing: 0.02em;
  border: none;
  margin-top: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px 0 rgba(191,225,58,0.12);
  transition: background 0.20s, box-shadow 0.22s, color 0.17s, transform 0.14s;
  outline: none;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: #2D4A68;
  color: #BFE13A;
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 8px 24px 0 rgba(191,225,58,0.16);
}

/* --- TABLES --- */
.class-schedule {
  width: 100%;
  margin: 24px 0 36px 0;
  border-collapse: separate;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 28px 0 rgba(45,74,104,0.10);
}
.class-schedule th, .class-schedule td {
  padding: 16px 12px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid #BFE13A22;
  color: #2D4A68;
  font-family: 'Open Sans', Arial, sans-serif;
}
.class-schedule th {
  background: #BFE13A;
  color: #2D4A68;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
}
.class-schedule tr:last-child td {
  border-bottom: none;
}

/* --- FOOTER --- */
footer {
  background: #2D4A68;
  color: #BFE13A;
  padding: 36px 0 0 0;
  border-radius: 34px 34px 0 0;
  margin-top: 64px;
  box-shadow: 0 -4px 24px 0 rgba(45,74,104,0.09);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: #BFE13A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 12px;
  transition: background 0.16s, color 0.14s;
  text-decoration: none;
}
footer nav a:hover, footer nav a:focus {
  background: #BFE13A;
  color: #2D4A68;
}
footer p {
  font-size: 0.95rem;
  opacity: 0.94;
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 0;
}

/* --- HEADER/NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(45,74,104,0.06);
  padding: 20px 0 8px 0;
  border-radius: 0 0 36px 36px;
  z-index: 90;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: #2D4A68;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 16px;
  border-radius: 10px;
  transition: background 0.18s, color 0.16s, transform 0.13s;
}
header nav a:hover, header nav a:focus {
  background: #BFE13A;
  color: #2D4A68;
  transform: translateY(-2px) scale(1.06);
}
header img {
  height: 50px;
  width: auto;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 300;
  background: #BFE13A;
  color: #2D4A68;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  font-size: 2.3rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px 0 rgba(45,74,104,0.13);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  outline: none;
  line-height: 1;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #2D4A68;
  color: #BFE13A;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: #F4F4F9;
  z-index: 400;
  transform: translateX(110vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  padding-top: 48px;
  box-shadow: 0 4px 56px 0 rgba(45,74,104,0.22);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: #2D4A68;
  color: #BFE13A;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  z-index: 405;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(45,74,104,0.16);
  transition: background 0.22s, color 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #BFE13A;
  color: #2D4A68;
}
.mobile-nav {
  margin: 70px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  font-size: 1.2rem;
  padding: 9px 0 9px 0;
  color: #2D4A68;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 9px;
  transition: background 0.17s, color 0.13s, transform 0.14s;
  width: 220px;
  text-align: left;
  display: block;
  background: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #BFE13A;
  color: #2D4A68;
  transform: translateX(5px) scale(1.03);
}
@media (max-width: 1080px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 900px) {
  header nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #2D4A68;
  color: #fff;
  box-shadow: 0 -3px 24px 0 rgba(45,74,104,0.13);
  padding: 22px 7vw 22px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  animation: cookieSlideIn 0.74s cubic-bezier(.64,.03,.38,.99);
}
@keyframes cookieSlideIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #fff;
  margin: 0;
  flex: 2 1 40vw;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #BFE13A;
  color: #2D4A68;
  border: none;
  border-radius: 100px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 9px 23px;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, transform 0.13s;
  box-shadow: 0 2px 10px 0 rgba(191,225,58,0.10);
}
.cookie-btn:active, .cookie-btn:focus, .cookie-btn:hover {
  background: #fff;
  color: #BFE13A;
  transform: scale(1.05);
}
.cookie-btn.settings {
  background: #fff;
  color: #2D4A68;
  border: 2px solid #BFE13A;
}
.cookie-btn.settings:hover {
  background: #BFE13A;
  color: #2D4A68;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,74,104,0.37);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  width: 98vw;
  max-width: 410px;
  border-radius: 17px 17px 0 0;
  padding: 30px 26px 26px 26px;
  box-shadow: 0 -3px 40px 0 rgba(45,74,104,0.17);
  position: relative;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #2D4A68;
  animation: modalUp 0.34s cubic-bezier(.6,-0.28,.36,1.30);
}
@keyframes modalUp {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: #2D4A68;
  font-size: 1.13rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.cookie-category input[type=checkbox] {
  accent-color: #BFE13A;
  width: 22px;
  height: 22px;
}
.cookie-category .label {
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2D4A68;
}
.cookie-modal .cookie-btn {
  margin-top: 18px;
  width: 100%;
}
.cookie-modal .close-btn {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  color: #2D4A68;
  border: none;
  font-size: 1.64rem;
  cursor: pointer;
}
.cookie-modal .close-btn:hover {
  color: #BFE13A;
}

/* FLEX PATTERNS */
.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* SECTION SPACING */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* LISTS */
ul, ol {
  margin-bottom: 22px;
  padding-left: 24px;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 9px;
  font-size: 1rem;
}

/* INPUTS (Cookie Modal) */
input[type=checkbox] {
  accent-color: #BFE13A;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .container {max-width: 970px;}
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .card {
    min-width: 90%;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 14px;
    padding: 22px 14px;
    min-width: 0;
  }
  .hero {
    border-radius: 0 0 26px 26px;
    min-height: 180px;
    padding: 24px 0 14px 0;
  }
}
@media (max-width: 600px) {
  html {font-size:15px;}
  .container {
    padding: 0 7px;
  }
  section, .section {
    padding: 24px 4px;
    margin-bottom: 34px;
  }
  .feature-item, .card {
    padding: 18px 9px 16px 9px;
    border-radius: 13px;
  }
  .testimonial-card {
    border-radius: 9px;
    padding: 16px 7px;
    font-size: 0.99rem;
  }
  .hero {
    min-height: 110px;
    padding: 16px 0 10px 0;
    border-radius: 0 0 16px 16px;
  }
  h1 {font-size:1.42rem;}
  h2 {font-size:1.08rem;}
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Animations & micro-interactions */
.cta-button:active {
  transform: scale(0.97);
}
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:active, .feature-item:active, .testimonial-card:active {
  transform: scale(0.97);
}

/* Visual playful details */
h2::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  border-radius: 50%;
  background: #BFE13A;
  opacity: 0.68;
  animation: bounceDot 1.6s infinite alternate cubic-bezier(.61,0,.40,1.04);
}
@keyframes bounceDot {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(-2px); }
  55%  { transform: translateY(-8px); }
  100% { transform: translateY(-4px); }
}

/* Miscellaneous */
::-webkit-scrollbar-track {background: #F4F4F9;}
::-webkit-scrollbar-thumb {background: #BFE13A;border-radius:10px;}
::-webkit-scrollbar {width:7px;background: #F4F4F9;border-radius:10px;}

/* Remove blue outline on buttons/links but keep accessibility */
button:focus, .cta-button:focus-visible, a:focus-visible {
  outline: 2px solid #BFE13A;
  outline-offset: 2px;
}

/* Hide non-relevant scrollbars */
.mobile-menu::-webkit-scrollbar {
  display: none;
}
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* GDPR/Datenschutz text-section refinement */
.text-section h3 {
  margin-top: 18px;
  color: #2D4A68;
  font-size: 1.09rem;
}
/* FAQ-Link styling */
.text-section a {
  text-decoration: underline dotted #BFE13A 1.5px;
  font-weight: 600;
  transition: color 0.18s, text-decoration-color 0.14s;
}
.text-section a:hover {
  color: #BFE13A;
  text-decoration: underline solid #BFE13A 2.5px;
}

/* Playful font alternation for section headings */
section h2, .section h2, .cta-section h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.2;
  color: #BFE13A;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
@media(max-width:600px) {
  section h2, .section h2, .cta-section h2 {font-size: 1.18rem;}
}

/* Accent icons in contact info */
.text-section img[alt*="Icon"], .text-section img[alt*="icon"] {
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  width: 22px;
  height: 22px;
  background: #BFE13A;
  border-radius: 7px;
  padding: 2px;
  margin-top: -4px;
}

/* Remove extra spacing on last element */
.text-section > *:last-child,
.content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* Z-index layering for menus and modals */
header {z-index: 90;}
.mobile-menu {z-index: 400;}
.mobile-menu-close {z-index:405;}
.cookie-consent-banner {z-index:9999;}
.cookie-modal-overlay {z-index:10000;}

/* Accessibility: Large touch targets for menu & buttons */
button, .cta-button, .cookie-btn {
  min-height: 44px;
  min-width: 44px;
}
.mobile-nav a {min-height: 48px;}

/* Hide outline unless keyboard */
button, .cta-button, a {outline:none;}
button:focus-visible, .cta-button:focus-visible, a:focus-visible {
  outline: 2px solid #BFE13A;
}
