/* =========================================
   CSS Reset & Base
   ========================================= */
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,
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;
  background: transparent;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #f6f6f2;
  color: #27311d;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #24427b;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #e19117;
  outline: none;
}
ul, ol {
  margin: 0 0 20px 24px;
  padding: 0;
}
b, strong {
  font-weight: 600;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Verdana, Arial, sans-serif;
  font-weight: 700;
  color: #24427b;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 2rem;   line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 12px; }
h4 { font-size: 1.25rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p {
  margin-bottom: 16px;
}
small {
  font-size: 0.88em;
}
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}

/* =========================================
   Utility & Section Spacing
   ========================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container,
.service-list,
.service-grid,
.course-grid,
.workshop-list,
.participant-quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(36,66,48,0.07);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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,
.testimonial-snippet {
  background: #f8f5ef;
  border: 2px solid #dde5d9;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(69,84,41,0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  color: #27311d;
  /* High contrast */
}
.testimonial-snippet {
  padding: 12px 18px;
  border-left: 5px solid #82a66b;
  font-style: italic;
  background: #f1f4ee;
  border-radius: 12px;
  color: #24427b;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #727764;
  margin-left: auto;
  letter-spacing: 0.02em;
  display: flex;
  gap: 15px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================================
   NAVIGATION & HEADER
   ========================================= */
header {
  background: #e1e7e1;
  box-shadow: 0 2px 10px rgba(36,66,48,0.07);
  padding: 0;
  border-bottom-left-radius: 40px 20px;
  border-bottom-right-radius: 40px 20px;
}
.flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 8px 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-weight: 600;
  color: #24427b;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #9bcf97;
  color: #183516;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #24427b;
  margin-left: 10px;
  cursor: pointer;
  z-index: 120;
}
.btn-primary {
  background: #82a66b;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 18px 42px 24px 16px/40px 16px 24px 22px;
  padding: 14px 32px;
  margin-left: 24px;
  box-shadow: 0 4px 22px rgba(36,66,48,0.09);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.15s, transform 0.15s;
  outline: none;
}
.btn-primary:focus,
.btn-primary:hover {
  background: #e19117;
  color: #fff;
  box-shadow: 0 8px 22px rgba(225,145,23,0.10);
  transform: translateY(-2px) scale(1.04);
}

/* =========================================
   MOBILE MENU
   ========================================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(238,243,235,0.96);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.5,1,.89,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 36px;
  overflow-y: auto;
  /* Hidden by default */
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 10px 18px 24px 0;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #183516;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #e19117;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 36px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #24427b;
  padding: 14px 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #9bcf97;
  color: #183516;
}
/* Show/hide nav depending on screen */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================================
   HERO & ORGANIC SECTIONS
   ========================================= */
.hero {
  background: #deeadd;
  border-bottom-left-radius: 90px 32px;
  border-bottom-right-radius: 90px 32px;
  position: relative;
  margin-bottom: 56px;
  padding: 56px 0 40px 0;
  box-shadow: 0 12px 32px rgba(166,199,144,0.09);
  overflow: hidden;
}
.hero h1 {
  color: #24427b;
  font-size: 2.7rem;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero p {
  color: #455429;
  font-size: 1.25rem;
  margin-bottom: 26px;
}
.hero .btn-primary {
  margin-left: 0;
}

/* =========================================
   CARD-LISTS, Grids, and Services
   ========================================= */
.service-list, .service-grid, .course-grid, .workshop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 28px 0;
}
.service-list > div,
.service-grid > div,
.course-grid > div,
.workshop-list > div {
  background: #fff;
  border-radius: 19px 38px 19px 28px/32px 30px 20px 48px;
  box-shadow: 0 2px 12px rgba(69,84,41,0.05);
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 340px;
  padding: 24px 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  border: 1.5px solid #ebefd9;
  transition: box-shadow 0.16s, transform 0.17s;
}
.service-list > div:hover,
.service-grid > div:hover,
.course-grid > div:hover,
.workshop-list > div:hover {
  box-shadow: 0 10px 28px rgba(158,171,107,0.12);
  border-color: #cce2a3;
  transform: translateY(-3px) scale(1.014);
}
.service-list span, .service-grid span, .workshop-list span {
  font-family: 'Montserrat', sans-serif;
  color: #e19117;
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 10px;
}

/* =========================================
   ICONS & FEATURE LISTS
   ========================================= */
ul li, .feature-item li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.06rem;
}
ul li img, .feature-item img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* =========================================
   TESTIMONIALS, CARDS, AND SNIPPETS
   ========================================= */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  flex: 1 1 270px;
  max-width: 350px;
  min-width: 240px;
  padding: 24px 24px 18px 22px;
  font-size: 1.18rem;
  font-style: italic;
  background: #f8f5ef;
  border: 2px solid #dde5d9;
  border-radius: 18px 32px 18px 13px/22px 28px 18px 24px;
  box-shadow: 0 2px 12px rgba(69,84,41,.07);
  color: #24427b;
  margin-bottom: 20px;
}
.testimonial-card .testimonial-meta {
  margin-top: 16px;
  color: #727764;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: .04em;
}

/* Distinctive participant quotes (workshops.html) */
.participant-quotes {
  gap: 24px;
  flex-wrap: wrap;
}
.participant-quotes .testimonial-card {
  background: #e7f7e8;
  color: #24427b;
  border-color: #95c17e;
}

/* =========================================
   OTHER COMMONS & ORGANIC STYLING
   ========================================= */
.contact-details,
.map-location,
.reassurance-icons {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details img, .map-location img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 9px;
}
.reassurance-icons {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #224425;
  color: #f4ffee;
  padding: 38px 0 20px 0;
  border-top-left-radius: 60px 24px;
  border-top-right-radius: 60px 24px;
  box-shadow: 0 -3px 24px rgba(36,66,48,0.07);
  margin-top: 60px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: #f8edda;
  font-family: 'Montserrat', sans-serif;
  padding: 2px 0;
  font-size: 1em;
  transition: color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #e19117;
}
.contact-short {
  font-size: 1em;
  max-width: 250px;
  color: #e3f5de;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.social-links a img {
  display: block;
  width: 28px;
  height: 28px;
  transition: filter 0.18s;
  border-radius: 7px;
}
.social-links a:hover img, .social-links a:focus img {
  filter: brightness(1.25) saturate(1.3);
  background: #e1911788;
}
.footer-note {
  margin-top: 20px;
  text-align: left;
  color: #b2d4b0;
  font-size: 0.99em;
  letter-spacing: 0.03em;
}

/* =========================================
   COOKIE CONSENT BANNER
   ========================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #224425;
  color: #f6f6f2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 30px 16px 30px;
  box-shadow: 0 -4px 16px rgba(36,66,48,0.16);
  font-size: 1rem;
  border-top-left-radius: 28px 10px;
  border-top-right-radius: 33px 8px;
  animation: cookie-slide-in .5s cubic-bezier(.45,1,.48,.95);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  padding: 9px 18px;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  border-radius: 12px 24px 9px 15px/22px 8px 17px 15px;
  border: none;
  background: #e19117;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  min-width: 120px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: #24427b;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #6ca873;
}
.cookie-banner .cookie-settings-btn:focus, .cookie-banner .cookie-settings-btn:hover {
  background: #82a66b;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  z-index: 4100;
  background: #deeadd;
  color: #24427b;
  min-width: 320px;
  max-width: calc(98vw - 32px);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(42,60,28,.13);
  padding: 32px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in .4s cubic-bezier(.51,1,.51,.98);
}
@keyframes cookie-modal-in {
  0% { transform: translate(-50%,-47%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 10px;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0 18px 0;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.09em;
  background: #f6f6f2;
  border-radius: 12px;
  padding: 12px 16px;
}
.cookie-modal .category label {
  flex: 1 1 auto;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 22px; top: 19px;
  background: none;
  color: #24427b;
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus {
  color: #e19117;
}
/* Backdrop for cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  left:0;right:0;top:0;bottom:0;
  z-index: 4050;
  background: rgba(36,66,48,0.44);
  animation: fade-in .35s ease;
}
@keyframes fade-in {
  0% { opacity:0; }
  100%{ opacity:1; }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 991px) {
  .footer-flex {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    margin: 13px 0;
  }
}
@media (max-width: 870px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.67rem; }
}
@media (max-width: 768px) {
  .flex-header {
    flex-direction: row;
    gap: 8px;
    min-height: 64px;
    padding: 4px 0;
  }
  .btn-primary {
    padding: 11px 22px;
    font-size: 1rem;
    margin-left: 10px;
    border-radius: 16px 26px 14px 10px/18px 10px 14px 13px;
  }
  .hero {
    padding: 36px 0 28px 0;
  }
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .section {
    padding: 32px 8px;
  }
  .service-list, .service-grid, .course-grid, .workshop-list, .testimonial-slider, .card-container, .participant-quotes {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card,.testimonial-snippet {
    padding: 14px 13px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    gap: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 18px 13px 11px 13px;
  }
}
@media (max-width: 480px) {
  .section {
    margin-bottom: 36px;
    padding: 22px 2px;
  }
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .footer-flex {
    gap: 10px;
  }
}

/* ====================
   ANIMATIONS & MICROINTERACTIONS
   ==================== */
.btn-primary, .cookie-banner button {
  transition: background 0.19s, color 0.19s, box-shadow 0.14s, transform 0.12s;
}
.service-list > div, .service-grid > div, .workshop-list > div, .card {
  transition: box-shadow 0.18s, border-color .18s, transform 0.17s;
}
.testimonial-card, .testimonial-snippet {
  transition: box-shadow 0.12s, background 0.20s;
}
.card:hover, .testimonial-card:hover, .service-list > div:hover, .service-grid > div:hover, .workshop-list > div:hover {
  box-shadow: 0 6px 24px rgba(40,90,36,.13);
  background: #f0f7ee;
  cursor: pointer;
}

/* ====================
   FORM FIELDS (if any)
   ==================== */
input[type="text"], input[type="email"], textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background: #f6f6f2;
  border: 1.5px solid #c5d6bf;
  border-radius: 10px 24px 12px 16px/18px 11px 13px 7px;
  padding: 10px 16px;
  width: 100%;
  margin-bottom: 14px;
  color: #274d36;
  box-shadow: 0 2px 8px rgba(166,199,144,0.03);
  outline: none;
  transition: border .18s, box-shadow .18s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #82a66b;
  box-shadow: 0 0 0 1.5px #e19117;
}

/* ===============================
   HIDE/SHOW LOGIC (JS HOOKS)
   =============================== */
.mobile-menu:not(.open) {
  display: flex;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}

.cookie-modal {
  display: none;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-backdrop {
  display: none;
}
.cookie-modal-backdrop.open {
  display: block;
}

/* ===============================
   COLOR SCHEME FOR NATURE_ORGANIC
   =============================== */
:root {
  --primary: #24427b;
  --accent: #e19117;
  --green: #82a66b;
  --green-dark: #224425;
  --background: #f6f6f2;
  --background-light: #deeadd;
  --section-bg: #e1e7e1;
  --organic-white: #f8f5ef;
}

/* Override accent color for all checkboxes, sliders, and custom introduces */
input[type="checkbox"]:checked + label::before, .cookie-modal input[type="checkbox"]:checked + label::before {
  border-color: #e19117;
  background: #e19117;
}

/* Accessibility: Focus ring for tabbable elements */
:focus-visible {
  outline: 2.5px solid #e19117 !important;
  outline-offset: 2px;
}

/* ===============================
   END CSS for Legendärer Lernpfad
   =============================== */
