/* =======================================================
   CSS RESET & NORMALIZE (mobile-first)
======================================================= */
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: border-box; }
body {
  min-height: 100vh;
  line-height: 1.4;
  background: #FAFBF8;
  font-family: 'Roboto', Arial, sans-serif;
  color: #273c32;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border-radius: 0;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }

:root {
  /* Earth/Nature inspired palette */
  --pm-primary: #1A2D3A;
  --pm-secondary: #16C784;
  --pm-accent: #F5F7FA;
  --pm-brown: #AAA173;
  --pm-leaf: #70a886;
  --pm-oak: #594b30;
  --pm-moss: #4F6B57;
  --pm-card: #f9f7f3;
  --pm-sand: #e6e3da;
  --pm-bg: #FAFBF8;
  --pm-text: #273C32;
  --pm-muted: #8f978B;
  --pm-error: #B0413E;
  --pm-border: #DDE2DA;
  /* Brand Typography */
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #23432B;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 { font-size: 2rem; font-weight: 700; margin-bottom: 18px; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 1.17rem; font-weight: 500; margin-bottom: 12px; }
h4 { font-size: 1rem; font-weight: 500; }
p, li, address { font-size: 1rem; color: var(--pm-text); line-height: 1.6; }
p { margin-bottom: 18px; }
blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--pm-moss);
  quotes: "\201C" "\201D";
  background: var(--pm-sand);
  border-left: 4px solid var(--pm-secondary);
  padding: 18px 32px 18px 22px;
  margin: 0 0 16px 0;
  border-radius: 12px 32px 16px 8px;
}
input[type="text"], input, textarea {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--pm-border);
  background: var(--pm-accent);
  margin-bottom: 16px;
}
input[type="text"]:focus, textarea:focus {
  border-color: var(--pm-leaf);
}

/* =========================
   CONTAINER & LAYOUT
========================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

section {
  background: none;
  border-radius: 20px;
  box-shadow: 0px 2px 16px 0 rgba(30,43,38,0.06);
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (min-width: 820px) {
  section {
    padding: 60px 0 60px 0;
    margin-bottom: 80px;
  }
  .content-wrapper {
    gap: 28px;
  }
}

/* =========================
   HEADER & NAVIGATION
========================= */
header {
  width: 100%;
  background-color: var(--pm-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  border-bottom: 1px solid var(--pm-border);
  padding: 0 0;
  z-index: 21;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
}
.main-nav {
  display: none;
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
  }
  .main-nav a {
    font-size: 1rem;
    font-family: var(--font-display);
    color: var(--pm-moss);
    padding: 6px 8px;
    border-radius: 8px;
    transition: background .2s, color .2s;
  }
  .main-nav a:hover, .main-nav a:focus {
    background: var(--pm-secondary);
    color: #fff;
  }
}

.cta-btn {
  font-family: var(--font-display);
  padding: 10px 28px;
  min-width: 130px;
  background: var(--pm-secondary);
  color: #fff;
  font-size: 1rem;
  border-radius: 25px 12px 28px 14px;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(76, 168, 66, 0.09);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.19s;
  margin-right: 0;
  margin-bottom: 0;
  display: inline-block;
  letter-spacing: 0.01em;
}
.cta-btn.primary {
  background: var(--pm-secondary);
  color: #fff;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #119967;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(22,199,132,.22);
  transform: translateY(-2px) scale(1.03);
}
.cta-btn.secondary {
  background: var(--pm-leaf);
  color: #fff;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #3b8563;
  color: #fff;
}
.cta-btn.tertiary {
  background: var(--pm-brown);
  color: #fff;
}
.cta-btn.tertiary:hover, .cta-btn.tertiary:focus {
  background: #7b714d;
  color: #fff;
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--pm-secondary);
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  z-index: 202;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pm-moss);
  color: #fff;
}
@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,247,243,0.97);
  box-shadow: -2px 0 22px 0 rgba(34,56,34,.08);
  z-index: 251;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 16px 0;
  font-size: 2.2rem;
  background: none;
  color: var(--pm-moss);
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pm-leaf);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  margin-left: 28px;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: var(--pm-moss);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 12px 0 12px 8px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pm-secondary);
  color: #fff;
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* =============================
   FLEX UTILITY CLASSES
============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(110,130,100,0.13), 0 1.5px 4px 0 rgba(120,120,90,0.03);
  background: var(--pm-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s, transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px 0 rgba(76,140,99,0.12);
  transform: translateY(-2px) scale(1.015);
}
.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: #fff;
  border-radius: 24px 40px 30px 12px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px 0 rgba(80,120,65,0.08), 0 1px 2px 0 rgba(40,50,33,0.05);
  flex-direction: column;
  max-width: 800px;
  border: 1.5px solid var(--pm-sand);
}
.testimonial-card blockquote {
  color: var(--pm-moss); background: none; border-left-color: var(--pm-secondary);
}
.testimonial-card p strong {
  color: var(--pm-moss);
  font-weight: 600;
  font-family: var(--font-display);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid, .course-grid, .case-study {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .course-grid > div, .story-card {
  background: var(--pm-card);
  border-radius: 20px 40px 18px 14px;
  box-shadow: 0 2px 12px 0 rgba(95,130,99,0.08);
  padding: 28px 20px 22px 32px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid var(--pm-sand);
  transition: box-shadow 0.23s, transform 0.17s;
}
.feature-grid > div:hover, .course-grid > div:hover, .story-card:hover {
  box-shadow: 0 8px 24px 0 rgba(112,161,134,0.14);
  transform: translateY(-2px) scale(1.015);
}
.course-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--pm-card);
  border-radius: 20px 44px 16px 20px;
  box-shadow: 0 2.5px 9px 0 rgba(50,90,60,0.08);
  border: 1.5px solid var(--pm-sand);
  margin-bottom: 20px;
  padding: 24px 18px 22px 30px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.course-tile:hover {
  box-shadow: 0 8px 22px 0 rgba(81,139,100,0.13);
  transform: translateY(-2px) scale(1.013);
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px 0 18px 0;
}
.course-list li {
  background: var(--pm-card);
  border-radius: 16px 28px 12px 26px;
  box-shadow: 0 1.5px 7px 0 rgba(50,110,80,0.06);
  padding: 18px 20px;
  color: var(--pm-moss);
  margin-bottom: 12px;
}

.directions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

/* FAQ & Accordion / Input style */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.accordion-item {
  background: var(--pm-card);
  border-radius: 18px 22px 10px 26px;
  padding: 20px 22px;
  box-shadow: 0 1px 6px 0 rgba(87,120,80,0.08);
  margin-bottom: 8px;
}
.accordion-item h3 { color: var(--pm-moss); font-size: 1.09rem; margin-bottom: 10px; }
.accordion-item p {
  color: var(--pm-text);
  margin-bottom: 0;
}

/* =============================
   FOOTER
============================= */
footer {
  background: var(--pm-bg);
  border-top: 1px solid var(--pm-border);
  padding: 32px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--pm-moss);
  border-radius: 8px;
  padding: 6px 8px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--pm-secondary);
  color: #fff;
}
footer address {
  font-size: 0.97rem;
  color: var(--pm-muted);
  font-style: normal;
  margin-top: 12px;
}
footer address a {
  color: var(--pm-leaf);
  text-decoration: underline;
}
footer address a:hover {
  color: var(--pm-moss);
}

/* =============================
   COOKIE BANNER & MODAL
============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1.5px solid var(--pm-leaf);
  box-shadow: 0 -2px 14px 0 rgba(24,48,38,0.10);
  z-index: 9999;
  padding: 22px 14px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.42s cubic-bezier(0.2,0.8,0.39,0.96), opacity 0.2s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  color: var(--pm-moss);
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button, .cookie-banner .cookie-btns .cta-btn {
  background: var(--pm-secondary);
  color: #fff;
  border: none;
  border-radius: 16px 32px 16px 12px;
  padding: 8px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner .cookie-btns button:hover, .cookie-banner .cookie-btns .cta-btn:hover {
  background: #119967;
}
.cookie-banner .btn-settings {
  background: var(--pm-oak);
  color: #fff;
}
.cookie-banner .btn-settings:hover {
  background: #473f29;
}
.cookie-banner .btn-reject {
  background: #B0413E;
  color: #fff;
}
.cookie-banner .btn-reject:hover {
  background: #8a282a;
}

.cookie-modal-backdrop {
  position: fixed;
  top: 0; left:0; right:0; bottom:0;
  background: rgba(34, 56, 50, 0.35);
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.23s;
}
.cookie-modal-backdrop.hide {
  opacity: 0; pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px 32px 22px 16px;
  box-shadow: 0 8px 44px 0 rgba(40,88,50,0.16);
  padding: 34px 22px 28px 28px;
  min-width: 320px; max-width: 95vw;
  display: flex; flex-direction: column; gap: 22px;
  z-index: 10050;
  align-items: flex-start;
  position: relative;
  animation: modalSlideIn 0.4s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(50px) scale(0.93); opacity:0; }
  to   { transform: none; opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: var(--pm-moss);
  margin-bottom: 14px;
}
.cookie-modal .cookie-categories {
  display: flex; flex-direction: column; gap: 18px; width: 100%;
}
.cookie-cat {
  padding: 13px 0 13px 0;
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--pm-border);
}
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat .label { flex: 1 1 0; color: var(--pm-text); font-weight: 500; }
.cookie-cat input[type="checkbox"] {
  width: 26px; height: 26px;
  accent-color: var(--pm-secondary);
  margin-right: 0; margin-left: 0;
}
.cookie-cat input[disabled] { opacity: 0.6; cursor: not-allowed; }
.cookie-modal .cookie-actions {
  display: flex; flex-direction: row; gap: 18px; margin-top: 15px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 17px; right: 17px;
  background: none;
  border: none;
  font-size: 2.0rem;
  color: var(--pm-oak);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus { background: var(--pm-sand); }

/* =============================
   ORGANIC SHAPES / TEXTURES
============================= */
section, .card, .feature-grid > div, .course-tile, .testimonial-card, .accordion-item, .story-card {
  border-radius: 24px 56px 18px 32px;
}

section {
  background: var(--pm-bg);
  /* Subtle organic shadow */
  box-shadow: 0 3px 24px 0 rgba(57,90,80,0.055);
}


/* =============================
   IMAGES & ICONS
============================= */
.feature-grid img,
.course-grid img,
section img,
.directions img {
  width: 42px;
  min-width: 38px;
  max-width: 56px;
  height: auto;
  margin-bottom: 9px;
  aspect-ratio: 1/1;
  border-radius: 26px 22px 12px 22px;
  background: var(--pm-accent);
  padding: 5px;
  box-shadow: 0 1.5px 8px 0 rgba(30,80,30,0.08);
  object-fit: contain;
}

/* =============================
   SPACING BETWEEN ELEMENTS
============================= */
section + section {
  margin-top: 0;
  margin-bottom: 60px;
}
.card + .card { margin-left: 20px; }

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 1020px) {
  .container { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 900px) {
  .container { padding-left: 3vw; padding-right: 3vw; }
  .feature-grid, .course-grid, .case-study {
    gap: 18px;
  }
  .feature-grid > div, .course-grid > div, .story-card {
    min-width: 180px;
    padding: 18px 8px 14px 15px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row; gap: 14px; padding: 11px 7px 8px 8px;
  }
  section {
    padding: 28px 8px;
    margin-bottom: 42px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .feature-grid, .course-grid, .case-study {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div, .course-grid > div, .story-card {
    min-width: unset; width: 100%;
    padding: 15px 7px 12px 11px;
  }
  .testimonial-card {
    padding: 16px 12px;
    font-size: 1rem;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .directions {
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav { gap: 14px; }
}

@media (max-width: 520px) {
  section {
    padding: 16px 1vw;
    margin-bottom: 28px;
  }
  .testimonial-card, .card, .feature-grid > div, .course-tile {
    font-size: 0.97rem;
    padding: 9px 4px 10px 7px;
  }
}

/* =============================
   MICRO-INTERACTIONS
============================= */
a, .cta-btn, button, .feature-grid > div, .course-tile, .testimonial-card,
.story-card, .accordion-item {
  transition: background 0.17s, color 0.17s, box-shadow 0.2s, transform 0.17s;
}
a:active, .cta-btn:active, button:active {
  transform: scale(0.97);
}

/* ============================
   VISUAL HIERARCHY / EFFECTS
============================ */
h1, h2, h3 {
  margin-top: 6px;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(107,145,107,0.07);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
@media (min-width: 900px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
}
h4, h5, h6 { font-size: 1rem; }

/* ============================
   ORGANIC/SHAPE CLIPPING (accents)
============================ */
section:before,
.card:before, .testimonial-card:before, .feature-grid > div:before,
.course-tile:before, .story-card:before {
  content: '';
  position: absolute;
  left: -43px;
  top: -37px;
  width: 82px; height: 82px;
  background: var(--pm-leaf);
  opacity: 0.08;
  border-radius: 42% 58% 35% 65%/60% 48% 52% 40%;
  pointer-events: none;
  z-index: 0;
  filter: blur(1.8px);
  mix-blend-mode: multiply;
}

/* ============================
   UTILITIES
============================ */
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-2 { gap: 12px; }
.gap-4 { gap: 32px; }
.align-center { align-items: center; }

/* ==========================
   CUSTOM CLASSES FROM HTML
========================== */
.course-list li h3 { color: var(--pm-moss); font-size: 1.1rem; margin-bottom: 7px; }

/* ==========================
   BUTTONS (additional)
========================== */
button, .btn, .cta-btn {
  outline: none;
}
button:focus, .cta-btn:focus { box-shadow: 0 0 0 3px var(--pm-secondary, #16C784); }

/* ==========================
   MISC
========================== */
::-webkit-input-placeholder { color: #B6BCC6; }
::-moz-placeholder { color: #B6BCC6; }
:-ms-input-placeholder { color: #B6BCC6; }
::placeholder { color: #B6BCC6; }
input[aria-label="FAQ Suche"] {
  margin-bottom: 24px;
  min-width: 220px;
}
input[aria-label="FAQ Suche"]:focus {
  outline: 2px solid var(--pm-secondary);
}

/* ==========================
   SCROLLBAR
========================== */
::-webkit-scrollbar { width: 8px; background: var(--pm-bg); }
::-webkit-scrollbar-thumb { background: var(--pm-leaf); border-radius: 4px; }

/* ==========================
   PRINT / NO JS
========================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section { background: none !important; box-shadow: none !important; }
}
