/* --- CSS RESET & NORMALIZE --- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #F4F6FA;
  color: #1D4262;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  background: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- CUSTOM FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(120deg,#f4f6fa 0%,#e2ebf9 100%);
  font-size: 16px;
  color: #1D4262;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1D4262;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 6px; font-weight: 500; }
p, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #1d4262;
}
.subheadline {
  font-size: 1.3rem;
  color: #2E9349;
  margin-bottom: 28px;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- NAVIGATION ---*/
header {
  background: #fff; 
  box-shadow: 0 2px 12px rgba(29,66,98,0.08);
  z-index: 100;
  position: sticky;
  top: 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}
.logo-link img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1D4262;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #2E9349;
}
.btn-primary {
  background: linear-gradient(92deg, #2E9349, #1D4262 80%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 32px;
  box-shadow: 0 3px 16px rgba(46,147,73, 0.09);
  transition: background 0.28s, transform 0.18s, box-shadow 0.22s;
  letter-spacing: 0.01em;
  border: none;
  display: inline-block;
  margin-left: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(92deg, #1D4262, #2E9349 80%);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 7px 24px rgba(29,66,98, 0.10);
}
.btn-secondary {
  background: #fff;
  color: #2E9349;
  border: 2px solid #2E9349;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 32px;
  transition: background .22s, color .22s, box-shadow 0.22s;
  margin: 16px 0 0 0;
  box-shadow: 0px 2px 10px rgba(46,147,73,0.05);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #2E9349;
  color: #fff;
  box-shadow: 0 5px 20px rgba(46,147,73,0.11);
}


/* --- HERO SECTION ---*/
main > section:first-child {
  background: linear-gradient(100deg,#2E9349 0%,#1D4262 100%);
  color: #fff;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 10px 36px rgba(29,66,98,0.08);
}
main > section:first-child h1,
main > section:first-child .subheadline,
main > section:first-child p,
main > section:first-child .btn-primary {
  color: #fff;
}

/* --- FEATURE GRID (Unsere Vorteile) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 20px 0 0 0;
}
.feature-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(46,147,73,0.09);
  padding: 28px 18px 24px 18px;
  max-width: 265px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.feature-item img {
  height: 42px;
  width: auto;
}
.feature-item h3 { margin-bottom: 4px; color: #2E9349; }
.feature-item:hover, .feature-item:focus-within {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 12px 32px rgba(46,147,73,0.14);
}

/* --- SERVICE/COURSE LISTS --- */
.service-list, .course-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 12px 0;
}
.service-list li, .course-listings li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(29,66,98,0.07);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 310px;
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.17s, box-shadow 0.22s;
}
.service-list li:hover, .course-listings li:hover {
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 8px 24px rgba(29,66,98,0.13);
}

.course-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 16px 0;
}
.course-categories span {
  background: #e2ebf9;
  color: #2E9349;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 0.96rem;
  margin-bottom: 4px;
}
.short-cta {
  margin: 24px 0 0 0;
}

/* --- ACCORDION FAQ --- */
.accordion-list, .accordion-short {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.accordion-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(29,66,98,0.06);
  padding: 20px 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.18s;
}
.accordion-item:hover {
  box-shadow: 0 6px 22px rgba(46,147,73,0.10);
}
.accordion-item h2, .accordion-item h3 {
  font-size: 1.13rem;
  color: #2E9349;
  margin-bottom: 7px;
}

/* --- CTA LINKS AND QUICK-LINKS --- */
.link-to-full-faq, .quick-links, .contact-cta {
  margin: 22px 0 0 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.link-to-full-faq a, .quick-links a {
  color: #1D4262;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.12s;
  position: relative;
}
.link-to-full-faq a:hover, .quick-links a:hover {
  color: #2E9349;
}


/* --- TESTIMONIALS --- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(29,66,98,0.11), 0 0.5px 2px rgba(46,147,73,0.08);
  padding: 20px;
  flex: 1 1 250px;
  min-width: 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.testimonial-card .star-rating {
  color: #FFD600;
  font-size: 1.17rem;
  letter-spacing: 3px;
}
.testimonial-card p {
  color: #1D4262;
  font-size: 1.05rem;
  line-height: 1.65;
}
.testimonial-card .testimonial-meta {
  color: #2E9349;
  font-size: 0.93rem;
  font-weight: 600;
  margin-top: 5px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 13px 38px rgba(46,147,73,0.12);
  transform: scale(1.025);
}


/* --- FORMS AND INFO BLOCKS --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 12px 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1D4262;
  font-size: 1rem;
}
.contact-info img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.address-block, .public-transport-info, .parking-info {
  background: #fff;
  border-radius: 13px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(46,147,73,0.06);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

/* --- CARD CONTAINER PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(29,66,98,0.09);
  background: #fff;
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 180px;
  transition: box-shadow 0.19s, transform .13s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px rgba(29,66,98,0.17);
  transform: scale(1.02);
}

.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;
}

.instructor-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
.instructor-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(46,147,73,0.09);
  padding: 20px 14px;
  flex: 1 1 245px;
  min-width: 180px;
  margin-bottom: 20px;
}
.credentials-list ul {
  margin-top: 10px;
  padding-left: 20px;
}

.history-timeline ul {
  margin: 10px 0;
  padding-left: 25px;
  font-size: 1rem;
}

/* --- FOOTER --- */
footer {
  margin-top: 60px;
  background: linear-gradient(100deg, #1D4262, #2E9349 100%);
  color: #fff;
}
.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
  padding: 40px 20px 24px 20px;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 50px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  transition: color 0.16s;
  font-size: 1rem;
  margin-bottom: 4px;
}
.footer-nav a:hover { color: #FFD600; }
.footer-contact p {
  color: #fff;
  margin-bottom: 7px;
  font-size: 1rem;
}

/* --- MOBILE NAVIGATION MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #1D4262;
  color: #fff;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 1.7rem;
  z-index: 105;
  margin-right: 16px;
  transition: background .15s, color .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #2E9349;
  color: #FFD600;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 90vw;
  max-width: 340px;
  background: #fff;
  transform: translateX(-105%);
  z-index: 2000;
  box-shadow: 10px 0 54px rgba(29,66,98,0.20);
  transition: transform 0.33s cubic-bezier(.55,.12,.43,1.25);
  padding: 34px 26px 24px 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #1D4262;
  font-size: 2.02rem;
  border: none;
  margin-bottom: 14px;
  padding: 2px 8px;
  transition: color 0.14s, background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { color: #2E9349; background: #f7fdec; border-radius: 8px; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-bottom: 30px;
}
.mobile-nav a {
  font-size: 1.07rem;
  padding: 12px 0;
  border-radius: 7px;
  color: #1D4262;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .18s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #2E9349;
  background: #e2ebf9;
}
header .main-nav, header .btn-primary {
  transition: none;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 15px;
  }
  .nav-container {
    flex-wrap: wrap;
    gap: 0;
  }
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-list, .card-container, .service-list, .course-listings, .instructor-profiles {
    gap: 16px;
  }
  .feature-item, .testimonial-card, .card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 9px;
  }
  .nav-container {
    flex-direction: row;
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 8px 16px 8px;
  }
  .feature-grid, .testimonial-list, .card-container, .service-list, .course-listings, .instructor-profiles {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card, .feature-item, .card {
    min-width: 0;
    width: 100%;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .section {
    padding: 32px 5px;
    margin-bottom: 43px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1.02rem; }
  .footer-logo img { height: 38px; }
  .testimonial-card, .feature-item, .card, .service-list li, .course-listings li {
    padding: 16px 8px;
  }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fff;
  color: #1D4262;
  box-shadow: 0 -4px 28px rgba(29,66,98,0.13);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  padding: 24px 34px 24px 20px;
  border-radius: 18px 18px 0px 0px;
  max-width: 690px;
  margin: 0 auto;
  animation: cookiefadein 0.7s cubic-bezier(.65,.09,.52,1.47);
}
@keyframes cookiefadein {
  0% { transform: translateY(90px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-msg {
  flex: 1;
  font-size: 1rem;
  color: #1D4262;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-left: 16px;
}
.cookie-btn {
  background: #2E9349;
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 9px 16px;
  border-radius: 22px;
  margin-right: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: background 0.17s, color 0.12s;
}
.cookie-btn.reject {
  background: #e2ebf9;
  color: #1D4262;
  border: 1.5px solid #1D4262;
}
.cookie-btn.settings {
  background: #FFD600;
  color: #1D4262;
  border: 1.5px solid #FFD600;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1D4262;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f2f5fc;
  color: #2E9349;
  border-color: #2E9349;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff2c5;
  color: #2E9349;
  border-color: #2E9349;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    max-width: 98vw;
    padding: 19px 7px 17px 8px;
    gap: 12px;
  }
  .cookie-banner-actions {
    margin-left: 0;
  }
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(29,66,98,0.37);
  z-index: 3100;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn .34s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #1D4262;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(29,66,98,0.14);
  width: 97vw;
  max-width: 410px;
  padding: 34px 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalSlideIn 0.44s cubic-bezier(.65,.09,.52,1.47);
}
@keyframes modalSlideIn {
  0%   { transform: translateY(70px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.34rem;
  margin-bottom: 5px;
  color: #1D4262;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
}
.cookie-category label {
  font-weight: 500;
  margin-left: 7px;
}
.cookie-toggle {
  accent-color: #2E9349;
  margin-left: 7px;
}
.cookie-category.essential label {
  color: #2E9349;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
  justify-content: flex-end;
}

/* --- Animations & Subtle Effects --- */
a, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: color .18s, background .18s, border .15s, box-shadow .18s, transform .13s;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
  background: #e2ebf9;
}
::-webkit-scrollbar-thumb {
  background: #1D4262;
  border-radius: 7px;
}

/* --- MISC --- */
hr {
  border: 0;
  border-top: 1.5px solid #e2ebf9;
  margin: 24px 0;
}
::-moz-selection {
  color: #fff;
  background: #1D4262;
}
::selection {
  color: #fff;
  background: #1D4262;
}

/* --- CLASSIC CSS FALLBACKS FOR CUSTOM PROPERTIES --- */
:root {
  --primary: #1D4262;
  --secondary: #2E9349;
  --accent: #F4F6FA;
}


/* --- UTILITY CLASSES --- */
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* --- ENSURE ALL ELEMENTS SPACE CORRECTLY (20px min between cards) --- */
.main-nav > a, .feature-grid > .feature-item, .testimonial-list > .testimonial-card, 
.card-container > .card, .service-list > li, .course-listings > li, .instructor-profiles > .instructor-card {
  margin-bottom: 20px;
  margin-right: 0;
}

/* --- Other layout-related patterns for provided classes --- */
.history-timeline ul, .credentials-list ul {
  gap: 6px;
}

/* --- Hide visually but keep for accessibility --- */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
