/* 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, 
main, 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 { box-sizing: border-box; }
*, *:before, *:after {box-sizing: inherit;}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #234037;
  background-color: #F6F8FA;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* BRAND COLORS */
:root {
  --primary: #23437E;
  --primary-dark: #18305a;
  --secondary: #F6F8FA;
  --accent: #F2B134;
  --green: #348467;
  --earth: #B8A47A;
  --brown: #83552A;
  --clay: #D5B596;
  --neutral: #e6ebe6;
  --border: #dedfdc;
  --text: #234037;
  --white: #fff;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--earth);
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  color: var(--primary);
}
a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: var(--accent);
  outline: none;
}

/* CONTAINERs & Section Layouts */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 26px;
  box-shadow: 0 6px 24px 0 rgba(52, 132, 103, 0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HEADER NAVIGATION */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(34,67,62,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
}
header img {
  height: 48px;
  width: auto;
}
nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 4px;
  border-radius: 3px;
  transition: background 0.2s, color 0.25s;
  position: relative;
}
nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width .25s;
  position: absolute;
  left: 0;
  bottom: 0;
}
nav a:hover:after, nav a:focus:after {width: 100%;}
nav a:hover, nav a:focus { color: var(--accent); background: var(--neutral); }
.button-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--green);
  color: var(--white) !important;
  border: none;
  border-radius: 48px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 2px 12px 0 rgba(52, 132, 103, 0.15);
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s, transform 0.18s;
  outline: none;
  display: inline-block;
  letter-spacing: 0.04em;
}
.button-primary:hover, .button-primary:focus {
  background: var(--accent);
  color: var(--primary) !important;
  box-shadow: 0 4px 18px rgba(187, 193, 128, 0.18);
  transform: translateY(-1px) scale(1.03);
}
.button-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 44px;
  padding: 12px 28px;
  font-size: 1.03rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}

/* BURGER & MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 200;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--green);
  color: var(--white);
  outline: none;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary);
  z-index: 9999;
  transform: translateX(100vw);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: -8px 0 30px rgba(34,67,62,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 28px 28px 28px;
  gap: 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  display: flex;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 99999;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--green);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 14px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color 0.22s, background 0.15s;
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: var(--neutral);
  border-radius: 6px;
}

/* HERO SECTION & ORGANIC SHAPES */
.hero {
  background: var(--earth);
  position: relative;
  border-radius: 0 0 64px 64px/40px 40px 40px 40px;
  box-shadow: 0 6px 24px -8px rgba(52,132,103,0.07);
  margin-bottom: 60px;
}
.hero .container {
  padding-top: 46px;
  padding-bottom: 42px;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 22px;
  color: var(--text);
}

/* FEATURE GRID & FLEX ALLIGNMENT */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 20px;
}
.feature-grid > div {
  background: var(--clay);
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(183, 190, 124, 0.07);
  padding: 28px 16px 22px 16px;
  min-width: 210px;
  flex: 1 1 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature-grid > div img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature-grid > div h3 {
  color: var(--primary);
  margin-bottom: 5px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 40px rgba(52, 132, 103, 0.13);
  transform: translateY(-5px) scale(1.03);
}

/* FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(52, 132, 103,0.05);
  transition: box-shadow .19s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(52,132,103,.11);
}
.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: var(--neutral);
  border-radius: 20px;
  box-shadow: 0 1px 10px rgba(52,132,103,0.09);
  margin-bottom: 20px;
  color: var(--text);
  border-left: 5px solid var(--green);
  position: relative;
}
.testimonial-card strong {
  color: var(--green);
  margin-left: 24px;
  font-size: 1.04rem;
}
.testimonial-card p {
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Testimonial List for Erfahrungsberichte etc */
.testimonial-list, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 5px;
}
.testimonial-slider {
  overflow-x: auto;
  padding-bottom: 10px;
}
.rating-overview {
  margin-top: 12px;
  font-size: 1.14rem;
  color: var(--green);
  font-weight: 600;
}

/* BLOG & CONTENT CARDS */
.blog-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 18px;
}
.blog-overview article {
  background: var(--neutral);
  border-radius: 15px;
  box-shadow: 0 1px 4px rgba(52,132,103,0.07);
  padding: 16px 18px;
  flex: 1 1 260px;
  min-width: 210px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.blog-overview article:hover {
  box-shadow: 0 8px 24px rgba(52,132,103,0.13);
  transform: translateY(-4px);
}
.featured-posts {
  background: var(--green);
  color: var(--white);
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}
.category-list ul, .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.tag-cloud span {
  background: var(--earth);
  color: var(--primary);
  border-radius: 16px;
  padding: 6px 18px;
  font-size: 0.96rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.category-list ul li {
  background: var(--neutral);
  padding: 8px 16px;
  border-radius: 10px;
}

/* UL, OL, LI */
ul, ol {
  padding-left: 28px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text);
}
ul li img {
  vertical-align: middle;
  margin-right: 6px;
  height: 22px;
}

/* COURSE & TRAINER PROFILES */
.course-list, .trainer-profiles, .qualifications-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 26px;
}
.course-list h2, .trainer-profiles h2 {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 6px;
}

/* PARTICIPANT STORIES */
.participant-stories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 10px;
  background: var(--clay);
  padding: 22px 20px;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(52,132,103, 0.06);
}
.participant-stories ul {
  margin-bottom: 4px;
  padding-left: 17px;
}
.participant-stories h3, .participant-stories h4 {
  margin-bottom: 8px;
}

/* FOOTER */
footer {
  background: var(--earth);
  color: var(--primary);
  border-radius: 52px 52px 0 0 / 32px 32px 0 0;
  padding-top: 38px;
  padding-bottom: 28px;
  box-shadow: 0 -2px 16px rgba(52,132,103, 0.04);
  margin-top: 70px;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--green);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--primary-dark);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.footer-brand img {
  height: 32px;
  margin-bottom: 4px;
}
.footer-brand span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary-dark);
  letter-spacing: 0.01em;
}

/* COOKIE BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--white);
  border-top: 3px solid var(--green);
  box-shadow: 0 -3px 20px rgba(52, 132, 103, 0.07);
  padding: 18px 32px 18px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 25000;
  gap: 16px;
  transition: transform 0.36s cubic-bezier(.68,.21,.21,1), opacity 0.25s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: var(--primary);
  font-size: 0.98rem;
  margin: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner .cookie-actions button {
  border-radius: 24px;
  border: none;
  padding: 10px 18px;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--green);
  color: var(--white);
}
.cookie-banner .reject {
  background: var(--earth);
  color: var(--primary-dark);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--green);
  color: var(--white);
}
.cookie-banner .settings {
  background: var(--neutral);
  color: var(--primary);
  border: 1px solid var(--green);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--green);
  color: var(--white);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(52,67,62,0.30);
  z-index: 25100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--white);
  border-radius: 18px;
  padding: 34px 26px 28px 26px;
  max-width: 420px;
  min-width: 260px;
  box-shadow: 0 9px 36px rgba(52, 132, 103, 0.14);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 20px;
  width: 38px;
  height: 38px;
  font-size: 1.55rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: flex;
  transition: background 0.14s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--green);
  color: var(--white);
}
.cookie-modal h2 {
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--neutral);
  border-radius: 8px;
  padding: 10px 18px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--primary);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--green);
  width: 20px;
  height: 20px;
}
.cookie-category input[disabled] {
  opacity: 0.5;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .cookie-actions button {
  border-radius: 18px;
  border: none;
  padding: 10px 18px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal .accept:hover, .cookie-modal .accept:focus {
  background: var(--green);
  color: var(--white);
}
.cookie-modal .reject {
  background: var(--earth);
  color: var(--primary-dark);
}
.cookie-modal .reject:hover, .cookie-modal .reject:focus {
  background: var(--green);
  color: var(--white);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1060px) {
  .container { max-width: 100%; }
  .feature-grid, .blog-overview, .content-grid, .participant-stories {
    flex-direction: column;
    gap: 20px !important;
  }
}

@media (max-width: 900px) {
  header .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav { gap: 18px; }
}
@media (max-width: 820px) {
  .container {padding-left: 8px;padding-right: 8px;}
}

@media (max-width: 768px) {
  h1 {font-size: 2.1rem;}
  h2 {font-size: 1.3rem;}
  .section {padding: 34px 8px; margin-bottom: 36px;}
  .feature-grid > div, .blog-overview article, .participant-stories {
    min-width: 0!important; width: 100%!important; max-width: 100%!important;
  }
  .hero .container {
    padding-top: 24px; padding-bottom: 22px;
  }
  .feature-grid {gap: 17px;}
  .testimonial-list, .testimonial-slider { gap: 10px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .participant-stories {gap:14px;}
}

@media (max-width: 678px) {
  nav {
    display: none!important; /* hide desktop nav for mobile burger */
  }
  .mobile-menu-toggle { display: flex !important; }
  header .container {flex-direction: row; align-items: center; gap: 12px;}
  .button-primary {margin-left: 0;}
  .footer-brand img {height: 30px;}
}
@media (max-width: 567px) {
  .container {padding-left: 2px; padding-right: 2px;}
  .hero {border-radius:0 0 32px 32px/15px 15px 15px 15px;}
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-left: 4px; padding-right: 4px;
  }
  .cookie-modal {
    max-width: 97vw;
    min-width: 0; padding:16px 8px 10px 10px;
  }
}

/* ORGANIC/NATURE MICRO-STYLE EFFECTS */
/* Subtle organic edge for cards using border-radius and box-shadows */
.card, .feature-grid > div, .blog-overview article, .testimonial-card, .participant-stories {
  border-radius: 22px 36px 24px 18px / 18px 34px 20px 28px;
}
/* Subtle motion effect on cards */
.card:hover, .feature-grid > div:hover, .blog-overview article:hover {
  transform:scale(1.025) translateY(-2px);
  box-shadow: 0 8px 42px rgba(52,132,103,0.11);
}

/* MISC UTILS */
.hide { display: none!important; }
.show { display: block!important; }

/* Focus visible accessibility enhancement */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Animate cookie banner, modal (for JS toggling classes) */
.cookie-banner, .cookie-modal-overlay {
  will-change: transform, opacity;
}

/* Decorative only: prevent content overlap */
.card, .feature-grid > div, .blog-overview article, .testimonial-card, .participant-stories {
  margin-bottom: 20px;
}
/* Remove bottom margin for last elements */
.card-container > *:last-child, .section > *:last-child, .feature-grid > div:last-child,
.blog-overview article:last-child, .testimonial-card:last-child, .participant-stories:last-child {
  margin-bottom: 0;
}
