/* Wald-X – gemeinsame Basis + Startseite (mobile first) */

:root {
  --color-bg: #f2efe9;
  --color-bg-soft: #faf8f4;
  --color-surface: #fffdf9;
  --color-text: #3a4a3c;
  --color-text-muted: #6b7a6d;
  --color-primary: #3d5244;
  --color-primary-deep: #2f4035;
  --color-wheel: #ebe7df;
  --color-wheel-line: rgba(61, 82, 68, 0.1);
  --color-hero-tint: rgba(255, 253, 249, 0.78);
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --content-max-width: 800px;
  --radius-lg: 1rem;
  --radius-full: 999px;
  --shadow-soft: 0 8px 28px rgba(47, 64, 53, 0.07);
  --shadow-text: 0 1px 18px rgba(242, 239, 233, 0.95);
  --hero-logo-color: #f2efe9;
  --hero-logo-glow: #261d0e;
  --hero-logo-glow-radius: 9px;
  --hero-logo-glow-intensity: 0.5;
  --hero-logo-glow-opacity: 0.88;
  --color-frame-outer: #1e3028;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --app-height: 100dvh;
  --leaf-trigger-size: 3.65rem;
  --leaf-trigger-inset: 1.35rem;
  /* Quadratisches Viertelring-Panel, bündig in der unteren linken Bildschirmecke */
  --ring-nav-size: min(116vw, 32rem);
  /* X-Scheibe sitzt im viewBox bei cy=460 (Eck-Zentrum 0/520) → 60 Einheiten über dem Rand.
     Maßstab = ring-nav-size / 520 (Höhe ist die begrenzende viewBox-Dimension). */
  --ring-trigger-y: calc(var(--ring-nav-size) * 60 / 520 - var(--section-scroll-size) / 2);
  /* Inhaltsreserve unten: Scheiben-Oberkante (~116 Einheiten) + etwas Luft */
  --leaf-nav-reserve: calc(var(--ring-nav-size) * 116 / 520 + 0.7rem + var(--safe-bottom));
  --section-scroll-size: 2.35rem;
  --color-nav-circle-bg: #e6d9c4;
  --color-fingerprint-bg: var(--color-nav-circle-bg);
  --ring-1: #eadfcd;
  --ring-2: #e2d6c4;
  --ring-3: #dacdb9;
  --ring-4: #d2c3ae;
  --ring-5: #cabaa2;
  --ring-line: rgba(255, 250, 242, 0.25);
  --ring-line-soft: rgba(130, 104, 65, 0.08);
  --ring-label: rgba(47, 64, 53, 0.96);
  --ring-bark: #17110d;
  --ring-bark-accent: rgba(52, 39, 30, 0.72);
  --ring-wood-face: #f1e2c8;
  --ring-wood-ring: rgba(124, 96, 61, 0.34);
  --ring-logo: #1a2e22;
  /* Ring → Seiten-HG: Rington als Mittelpunkt, helle Abstufungen für Vollfläche */
  --theme-ring-mix-bg: 50%;
  --theme-ring-mix-soft: 35%;
  --theme-ring-mix-surface: 18%;
}

/* Themenseiten – HG aus Ring-Nav-Farben (Index/Rechtliches = :root) */
body.page-theme-warum {
  --theme-ring: var(--ring-1);
  --color-bg: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-bg), white);
  --color-bg-soft: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-soft), white);
  --color-surface: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-surface), white);
}

body.page-theme-coaching {
  --theme-ring: var(--ring-2);
  --color-bg: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-bg), white);
  --color-bg-soft: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-soft), white);
  --color-surface: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-surface), white);
}

body.page-theme-betriebe {
  --theme-ring: var(--ring-3);
  --color-bg: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-bg), white);
  --color-bg-soft: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-soft), white);
  --color-surface: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-surface), white);
}

body.page-theme-schule {
  --theme-ring: var(--ring-4);
  --color-bg: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-bg), white);
  --color-bg-soft: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-soft), white);
  --color-surface: color-mix(in srgb, var(--theme-ring) var(--theme-ring-mix-surface), white);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html.snap-enabled {
    scroll-snap-type: y mandatory;
  }

  /* Unterseiten: weicheres Snap – leichter aus Sektion 2 in freien Scroll */
  html.snap-enabled.snap-proximity {
    scroll-snap-type: y proximity;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.55;
}

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

a {
  color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.65rem + var(--safe-top)) 1.25rem 0.65rem;
  max-width: var(--content-max-width);
  margin-inline: auto;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.45rem;
  border-radius: 0.65rem;
  background: var(--color-hero-tint);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  box-shadow: 0 1px 10px rgba(47, 64, 53, 0.06);
}

.site-header__logo-img {
  width: auto;
  height: 1.95rem;
  opacity: 0.96;
}

.page-at-start .site-header {
  justify-content: flex-end;
}

.page-at-start .site-header__logo {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-hero-tint);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(47, 64, 53, 0.06);
}

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: rgba(242, 239, 233, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-nav[hidden] {
  display: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.site-nav__list a {
  display: block;
  padding: 0.65rem 0;
  font-size: 1.15rem;
  text-decoration: none;
  font-weight: 500;
}

.site-nav__close {
  margin: 2rem auto 0;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  cursor: pointer;
}

/* ========== Index main ========== */
.index-main {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
}

.index-main > section {
  position: relative;
}

.snap-section {
  min-height: 100dvh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Index: Snap-Höhe (--app-height per JS); Reserve nur in Sektions-Inhalten */
body.page-index .snap-section {
  height: var(--app-height, 100dvh);
  min-height: var(--app-height, 100dvh);
  max-height: var(--app-height, 100dvh);
  box-sizing: border-box;
  overflow: hidden;
}

body.page-index.has-leaf-nav .snap-section,
body.page-index.has-leaf-nav .index-main {
  padding-bottom: 0;
}

/* Sektion 1 – Hero: Waldbild + Logo, Creme-Band */
.index-start {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg);
}

.index-start__visual {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  background: var(--color-primary-deep);
  overflow: hidden;
}

.index-start__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.index-start__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 18, 0.14) 0%,
    rgba(15, 26, 18, 0.02) 42%,
    rgba(15, 26, 18, 0.22) 100%
  );
}

.index-start__logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: min(88vw, 22rem);
  aspect-ratio: 368 / 317;
}

.index-start__logo-glow {
  position: absolute;
  inset: 0;
  background-color: var(--hero-logo-glow);
  -webkit-mask: url("images/logo-neu-wald-x.svg") center / contain no-repeat;
  mask: url("images/logo-neu-wald-x.svg") center / contain no-repeat;
  filter: blur(var(--hero-logo-glow-radius));
  opacity: var(--hero-logo-glow-intensity);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.index-start__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--hero-logo-color);
  background-color: var(--hero-logo-color);
  -webkit-mask: url("images/logo-neu-wald-x.svg") center / contain no-repeat;
  mask: url("images/logo-neu-wald-x.svg") center / contain no-repeat;
  opacity: var(--hero-logo-glow-opacity);
}

@keyframes index-start-scroll-hint {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(0.3rem);
    opacity: 0.92;
  }
}

.index-start__copy {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding: 1.15rem 1.85rem var(--leaf-nav-reserve);
  background: var(--color-bg);
}

/* Creme-Welle — siehe KOMPONENTEN.md „Creme-Welle“ */
.index-start__wave,
.page-hero__wave,
.warum-wald__wave,
.kollegium__wave,
.focus-block__wave {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 3.5rem;
  max-width: none;
  transform: translateY(-100%);
  pointer-events: none;
}

.index-start__intro {
  margin: 0 auto;
  max-width: 26rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.68;
  text-align: justify;
  hyphens: auto;
  color: var(--color-text);
}

body.has-leaf-nav .snap-section,
body.has-leaf-nav .site-footer,
body.has-leaf-nav .page-main {
  padding-bottom: var(--leaf-nav-reserve);
}

/* === Viertelring-Navigation (mobil) – siehe NAVIGATION.md === */
.ring-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.ring-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(242, 239, 233, 0.12);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

body.is-leaf-nav-open .ring-nav__overlay {
  opacity: 1;
  pointer-events: auto;
}

body.is-leaf-nav-open .site-header__menu {
  visibility: hidden;
  pointer-events: none;
}

.ring-nav__panel {
  position: fixed;
  z-index: 4;
  left: 0;
  bottom: 0;
  width: var(--ring-nav-size);
  height: var(--ring-nav-size);
  pointer-events: none;
  overflow: visible;
}

.ring-nav.is-open .ring-nav__panel {
  pointer-events: auto;
}

/* Geöffnete Navi: Touch-Gesten gehören der Navigation (kein Hintergrund-Scroll) */
.ring-nav.is-open .ring-nav__svg {
  touch-action: none;
}

.ring-nav__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}

/* Kein blaues Tap-Overlay / kein Text-Callout auf Mobilgeräten */
.ring-nav__svg,
.ring-nav__link,
.ring-nav__center {
  -webkit-tap-highlight-color: transparent;
}

.ring-nav__link,
.ring-nav__center {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.ring-nav:not(.is-open) .ring-nav__link {
  pointer-events: none;
}

.ring-nav.is-open .ring-nav__link {
  pointer-events: auto;
}

.ring-nav__segment {
  stroke: rgba(255, 251, 244, 0.3);
  stroke-width: 1.05;
  transition: filter 0.14s ease;
}

/* Innereck-Füllung: schließt die Lücke zwischen Scheibe und Start-Ring (Splintholz-Kern) */
.ring-nav__corner-fill {
  fill: var(--ring-5);
  stroke: none;
  pointer-events: none;
}

.ring-nav__piece--warum .ring-nav__segment { fill: var(--ring-1); }
.ring-nav__piece--coaching .ring-nav__segment { fill: var(--ring-2); }
.ring-nav__piece--betriebe .ring-nav__segment { fill: var(--ring-3); }
.ring-nav__piece--schulen .ring-nav__segment { fill: var(--ring-4); }
.ring-nav__piece--start .ring-nav__segment { fill: var(--ring-5); }

/* Touch-Highlight (mobil, .is-touch-active per JS) + Hover (Desktop) – dezente, edle Abdunklung */
.ring-nav__link.is-touch-active .ring-nav__segment {
  filter: brightness(0.84) saturate(1.08);
}

.ring-nav__link.is-touch-active .ring-nav__label {
  fill: rgba(54, 41, 26, 0.98);
}

@media (hover: hover) and (pointer: fine) {
  .ring-nav__link:hover .ring-nav__segment,
  .ring-nav__link:focus-visible .ring-nav__segment {
    filter: brightness(0.84) saturate(1.08);
  }
  .ring-nav__link:hover .ring-nav__label,
  .ring-nav__link:focus-visible .ring-nav__label {
    fill: rgba(54, 41, 26, 0.98);
  }
}

.ring-nav__label {
  fill: var(--ring-label);
  pointer-events: none;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.25s ease 0.2s, fill 0.14s ease;
}

.ring-nav.is-open .ring-nav__label {
  opacity: 1;
}

.ring-nav__annual-ring {
  fill: none;
  stroke: var(--ring-line);
  stroke-width: 0.85;
  stroke-linecap: round;
  pointer-events: none;
}

.ring-nav__annual-ring--soft {
  stroke: var(--ring-line-soft);
}

.ring-nav__bark-base {
  fill: none;
  stroke: var(--ring-bark);
  stroke-width: 4.6;
  stroke-linecap: round;
}

.ring-nav__bark-accent {
  fill: none;
  stroke: var(--ring-bark-accent);
  stroke-width: 1.1;
  stroke-dasharray: 7 12 4 14 5 16;
  opacity: 0.6;
}

.ring-nav__hitarea {
  fill: transparent;
}

.ring-nav__wood-bark {
  fill: #3b2d22;
  stroke: #15100c;
  stroke-width: 2.25;
}

.ring-nav__wood-face {
  fill: var(--ring-wood-face);
  stroke: rgba(159, 123, 74, 0.58);
  stroke-width: 1.55;
}

.ring-nav__wood-ring {
  fill: none;
  stroke: var(--ring-wood-ring);
  stroke-width: 1.18;
}

.ring-nav__wood-ring--thin {
  stroke-width: 0.86;
  opacity: 0.72;
}

.ring-nav__logo {
  fill: var(--ring-logo);
}

/* Holzscheibe: feste Position & Größe – Tiefenwirkung nur über Schatten (kein Springen).
   Geschlossen schwebt sie stärker, geöffnet liegt sie flacher auf. */
.ring-nav__wood {
  transition: filter 0.3s ease;
  filter:
    drop-shadow(0 10px 18px rgba(23, 17, 13, 0.4))
    drop-shadow(0 3px 6px rgba(23, 17, 13, 0.3));
}

.ring-nav.is-open .ring-nav__wood {
  filter:
    drop-shadow(0 3px 7px rgba(23, 17, 13, 0.28))
    drop-shadow(0 1px 2px rgba(23, 17, 13, 0.22));
}

.ring-nav__center:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Ringe sind statisch – die Öffnungsanimation ist der wachsende Clip-Radius
   (Jahresringe „wachsen“ aus der Scheibe heraus). Schließen läuft rückwärts. */
.ring-nav__grow-circle {
  r: 0;
  transition: r 0.65s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.ring-nav.is-open .ring-nav__grow-circle {
  r: 470px;
}

@media (max-width: 360px) {
  .ring-nav__label {
    font-size: 17px;
    letter-spacing: 0.07em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring-nav__grow-circle,
  .ring-nav__wood,
  .ring-nav__label,
  .ring-nav__overlay {
    transition: none !important;
  }
}

/* Sektion 2 – Wald wirkt (Zielgruppen-Karten, ein Viewport) */
.index-wald-wirkt {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: var(--color-bg);
  overflow: hidden;
}

.index-wald-wirkt__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  padding: calc(3.25rem + var(--safe-top)) 1.25rem var(--leaf-nav-reserve);
}

.index-wald-wirkt__intro {
  flex: 0 0 auto;
  margin-bottom: 1rem;
  text-align: center;
}

.index-wald-wirkt__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-primary-deep);
}

.index-wald-wirkt__lead {
  margin: 0 auto;
  max-width: 21rem;
  font-size: clamp(0.88rem, 2.8vw, 0.98rem);
  line-height: 1.55;
  color: var(--color-text);
}

.index-wald-wirkt__cards {
  list-style: none;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0.85rem;
}

.index-wald-wirkt__card {
  min-height: 0;
  display: flex;
}

.index-wald-wirkt__card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
}

.index-wald-wirkt__card-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.index-wald-wirkt__card-media {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 18 / 5;
  overflow: hidden;
  background: var(--color-primary-deep);
}

.index-wald-wirkt__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.index-wald-wirkt__card-body {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
  margin-top: 0;
  padding: 0.65rem 3.15rem 5px 0.95rem;
  background: var(--color-surface);
}

.index-wald-wirkt__card-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 18, 0) 35%,
    rgba(15, 26, 18, 0.45) 72%,
    rgba(15, 26, 18, 0.72) 100%
  );
}

.index-wald-wirkt__card-media-title {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 1.875rem;
  margin: 0;
  padding: 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5vw, 1.55rem);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 4px rgba(0, 0, 0, 0.75),
    0 3px 12px rgba(0, 0, 0, 0.45);
}

.index-wald-wirkt__card-copy {
  display: block;
}

.index-wald-wirkt__card-teaser {
  margin: 0;
  font-size: calc(0.78rem + 2px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.index-wald-wirkt__card-subline {
  margin: 0.2rem 0 0;
  font-size: calc(0.78rem + 2px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}

.index-wald-wirkt__card-go {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Nav-Kreis + Scroll-Pfeil (gemeinsame Kreis-Fläche) */
.nav-circle,
.section-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--section-scroll-size);
  height: var(--section-scroll-size);
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-fingerprint-bg);
  color: var(--color-primary);
  box-shadow: 0 6px 22px rgba(47, 64, 53, 0.2), inset 0 1px 3px rgba(255, 253, 249, 0.5);
  line-height: 0;
}

.section-scroll {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: var(--ring-trigger-y);
  margin-inline: auto;
  cursor: pointer;
  animation: index-start-scroll-hint 2.4s ease-in-out infinite;
}

/* Index + Unterseiten mobil: Pfeil am Viewport (X-Scheiben-Höhe), nur aktive Snap-Sektion */
@media (max-width: 767px) {
  body.page-index.has-leaf-nav .snap-section > .section-scroll,
  body.page-schulen.has-leaf-nav .snap-section > .section-scroll {
    position: fixed;
    z-index: 6;
  }

  body.page-index.has-leaf-nav .snap-section:not(.is-snap-active) > .section-scroll,
  body.page-schulen.has-leaf-nav .snap-section:not(.is-snap-active) > .section-scroll {
    visibility: hidden;
    pointer-events: none;
  }
}

.section-scroll:focus {
  outline: none;
}

.section-scroll:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.section-scroll__icon,
.nav-circle__icon {
  display: block;
}

/* Inhaltsblöcke */
.index-block {
  display: flex;
  align-items: center;
  background: var(--color-bg);
}

.index-block--soft {
  background: var(--color-bg-soft);
}

.index-block__inner {
  width: 100%;
  padding: 2.75rem 1.75rem calc(2.5rem + var(--safe-bottom));
}

.index-block__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-primary-deep);
}

.index-block__text {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  max-width: 36em;
  font-size: 0.94rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.45rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.kontakt__details {
  margin-bottom: 1.5rem;
}

.kontakt__details p {
  margin: 0.35rem 0;
}

.kontakt__name {
  font-weight: 600;
}

.kontakt__address {
  color: var(--color-text-muted);
  margin-top: 0.75rem !important;
}

.kontakt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Kontakt-Karten (Standard auf allen Unterseiten) */
.kontakt-cards-wrap {
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
  padding: 0;
}

.kontakt-cards__lead {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text-muted);
}

.kontakt-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.kontakt-card {
  min-width: 0;
}

.kontakt-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 5.25rem;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  text-align: center;
  color: var(--color-text);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  box-shadow: var(--shadow-soft);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.kontakt-card__link:hover {
  border-color: color-mix(in srgb, var(--color-primary) 38%, transparent);
  box-shadow: 0 8px 20px rgba(47, 64, 53, 0.1);
  transform: translateY(-1px);
}

.kontakt-card__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.kontakt-card__icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.kontakt-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-primary-deep);
}

.page-index #kontakt.index-block {
  align-items: center;
}

.page-index #kontakt .index-block__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: calc(3.5rem + var(--safe-top) + 1rem) 1.75rem calc(1.5rem + var(--leaf-nav-reserve) + var(--safe-bottom));
}

.page-index #kontakt .index-block__title {
  margin-bottom: 0.75rem;
}

.page-index #kontakt .index-block__text {
  margin-bottom: 1rem;
}

.page-index #kontakt .kontakt-cards-wrap {
  flex: 0 0 auto;
}

.page-schulen #kontakt .station__inner--center {
  justify-content: center;
  overflow: visible;
}

.page-schulen #kontakt .station__head {
  flex: 0 0 auto;
}

.page-schulen #kontakt .kontakt-cards-wrap {
  flex: 0 0 auto;
}

.site-footer {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding: 1.75rem 1.75rem calc(1.75rem + var(--safe-bottom));
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer__nav a {
  font-size: 0.86rem;
  text-decoration: none;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

/* Desktop-Frame: dunkler Außenbereich (Waldgrün) ab schmalem Desktop – alle Seiten */
@media (min-width: 520px) {
  body.has-leaf-nav {
    background-color: var(--color-frame-outer);
  }

  body.has-leaf-nav .site-header,
  body.has-leaf-nav .index-main,
  body.has-leaf-nav .page-main,
  body.has-leaf-nav .site-footer {
    background-color: var(--color-bg);
    max-width: var(--content-max-width);
    margin-inline: auto;
  }

  body.has-leaf-nav .index-main,
  body.has-leaf-nav .page-main {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
  }
}

/* Desktop: Viertelring ausblenden – Hamburger-Menü übernimmt */
@media (min-width: 768px) {
  .ring-nav {
    display: none;
  }

  body.has-leaf-nav .snap-section,
  body.has-leaf-nav .site-footer,
  body.has-leaf-nav .page-main {
    padding-bottom: 0;
  }

  /* Site-Menü: kompaktes Dropdown (nicht Fullscreen) */
  .site-nav {
    inset: auto;
    top: calc(3.55rem + var(--safe-top));
    right: max(
      1.25rem,
      calc((100vw - min(100vw, var(--content-max-width))) / 2 + 1.25rem)
    );
    left: auto;
    bottom: auto;
    width: max-content;
    min-width: 10.5rem;
    max-width: min(16rem, calc(100vw - 2rem));
    padding: 0.4rem 0.3rem;
    justify-content: flex-start;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid rgba(61, 82, 68, 0.1);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .site-nav__list {
    text-align: left;
  }

  .site-nav__list a {
    padding: 0.48rem 0.85rem;
    font-size: 0.92rem;
    border-radius: 0.45rem;
    white-space: nowrap;
  }

  .site-nav__list a:hover {
    background: rgba(61, 82, 68, 0.06);
  }

  .site-nav__list a[aria-current="page"] {
    font-weight: 600;
    color: var(--color-primary-deep);
    background: rgba(61, 82, 68, 0.08);
  }

  .site-nav__close {
    display: none;
  }

  .index-start__logo-wrap {
    width: min(26rem, 58vw);
  }

  .index-start__intro {
    max-width: 30rem;
    font-size: 1.08rem;
    line-height: 1.72;
  }

  .index-start__copy {
    padding-bottom: 1.25rem;
  }

  .index-wald-wirkt__inner {
    padding-bottom: 1.25rem;
  }

  .index-wald-wirkt__inner,
  .index-block__inner {
    padding-inline: 2.5rem;
  }
}

.page-main {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-top: calc(3.5rem + var(--safe-top));
}

body.page-schulen .page-main {
  padding-top: 0;
}

/* Schulen: Snap – exakt sichtbarer Viewport (--app-height per JS), festes Einrasten */
body.page-schulen.has-leaf-nav .snap-section {
  padding-bottom: 0;
}

.page-schulen .snap-section,
.page-schulen .station {
  height: var(--app-height, 100dvh);
  min-height: var(--app-height, 100dvh);
  max-height: var(--app-height, 100dvh);
  box-sizing: border-box;
  overflow: hidden;
}

.page-schulen #warum-wald.snap-section,
.page-schulen #kollegium.snap-section,
.page-schulen #ursprung.snap-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}

/* Sektion 2 + 6 – Vollbild-Bild + Creme-Band unten */
.warum-wald__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-primary-deep) url("images/content/waldstimmung.webp") center top / cover no-repeat;
}

.kollegium__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-primary-deep) url("images/content/kollegium.webp") center top / cover no-repeat;
}

.warum-wald__scrim,
.kollegium__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 18, 0.42) 0%,
    rgba(15, 26, 18, 0.12) 28%,
    transparent 48%,
    transparent 58%,
    rgba(15, 26, 18, 0.35) 72%,
    rgba(15, 26, 18, 0.55) 100%
  );
}

.warum-wald__title,
.kollegium__title {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 0 1.25rem 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(2.65rem, 10vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  color: var(--color-bg);
  text-shadow:
    0 0 1px rgba(15, 26, 18, 0.9),
    0 2px 8px rgba(15, 26, 18, 0.75),
    0 8px 28px rgba(15, 26, 18, 0.55);
}

.warum-wald__title {
  bottom: calc(35% + 3.5rem + 0.85rem);
}

.kollegium__title {
  bottom: calc(42% + 3.5rem + 0.85rem);
}

.warum-wald__band,
.kollegium__band {
  position: relative;
  z-index: 3;
  flex: 0 0 35%;
  min-height: 35%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--color-bg);
}

.kollegium__band {
  flex-basis: 42%;
  min-height: 42%;
}

.warum-wald__band-body,
.kollegium__band-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.75rem calc(var(--leaf-trigger-size) + var(--leaf-trigger-inset) + 0.85rem + var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.warum-wald__band-body > .page-eyebrow:first-child,
.kollegium__band-body > .page-eyebrow:first-child {
  margin-bottom: 0.65rem;
}

.warum-wald__text,
.kollegium__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.kollegium__cta {
  margin: 1rem 0 0;
  text-align: center;
}

.page-schulen .snap-section .index-block__inner {
  padding: 1.5rem 1.75rem calc(1.25rem + var(--safe-bottom));
}

/* Unterseiten – Hero (50 % Bild, 50 % Content pro Snap-Screen) */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  overflow: visible;
}

.page-schulen .page-hero.snap-section {
  overflow: visible;
}

.page-hero__visual {
  position: relative;
  flex: 0 0 50dvh;
  height: 50dvh;
  max-height: 50dvh;
  background: var(--color-primary-deep);
  overflow: hidden;
}

.page-schulen .page-hero.snap-section .page-hero__visual {
  flex: 0 0 50%;
  height: 50%;
  max-height: 50%;
  min-height: 0;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-schulen .page-hero__media {
  object-position: center top;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 18, 0.12) 0%,
    rgba(15, 26, 18, 0.04) 50%,
    rgba(15, 26, 18, 0.2) 100%
  );
}

.page-hero__copy {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--color-bg);
  overflow: visible;
}

.page-schulen .page-hero.snap-section .page-hero__copy {
  flex: 1 1 50%;
  min-height: 0;
  overflow: visible;
}

.page-hero__copy-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.25rem 1.75rem 2.25rem;
}

.page-schulen .page-hero.snap-section .page-hero__copy-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(1.25rem + var(--safe-bottom));
}

.page-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-primary-deep);
}

.page-hero__subline {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-primary);
}

.page-hero__text {
  margin: 0 0 1.35rem;
  max-width: 36em;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.page-schulen .page-hero__text {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-schulen .page-hero__subline {
  margin-bottom: 0.65rem;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
}

/* Index Sektion 3 – ~58 % Bild, ~42 % Creme-Band */
body.page-index #warum-wald-x.page-hero.snap-section .page-hero__visual {
  flex: 0 0 58%;
  height: 58%;
  max-height: 58%;
  min-height: 0;
  overflow: hidden;
}

body.page-index #warum-wald-x .page-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.page-index #warum-wald-x.page-hero.snap-section .page-hero__copy {
  flex: 1 1 42%;
  min-height: 0;
  overflow: visible;
}

body.page-index #warum-wald-x.page-hero.snap-section .page-hero__copy-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem var(--leaf-nav-reserve);
}

body.page-index #warum-wald-x .page-hero__title {
  font-size: clamp(1.5rem, 4.8vw, 1.9rem);
  margin-bottom: 0.45rem;
}

body.page-index #warum-wald-x .page-hero__text-row {
  position: relative;
  padding-right: 3.15rem;
}

body.page-index #warum-wald-x .page-hero__text {
  margin: 0;
  max-width: none;
  font-size: calc(0.78rem + 2px);
  line-height: 1.45;
  color: var(--color-text);
}

body.page-index #warum-wald-x .page-hero__text + .page-hero__text {
  margin-top: 0.65rem;
}

body.page-index #warum-wald-x .page-hero__text strong {
  font-weight: 600;
  color: var(--color-text);
}

body.page-index #warum-wald-x .page-hero__go {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
}

.page-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  color: var(--color-text-muted);
}

.page-hero__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.page-schulen .page-main > section {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body.page-schulen .page-main > section.snap-section {
  scroll-snap-stop: always;
}

/* Station – Viewport-Layout + horizontale Karten-Schiene */
.page-schulen .station {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-soft);
}

.page-schulen #idg.station {
  background: var(--color-bg);
}

.page-schulen #erleben.station {
  background: var(--color-bg-soft);
}

.page-schulen .station--soft {
  background: var(--color-bg-soft);
}

.page-schulen #kontakt.snap-section {
  scroll-snap-stop: normal;
}

.page-schulen .station__cta {
  flex: 0 0 auto;
  margin: 0.65rem 0 0;
  padding: 0 1.75rem;
  text-align: center;
}

.page-schulen .station__inner--split {
  justify-content: center;
}

.page-schulen .station__inner--center {
  justify-content: center;
  text-align: center;
}

.page-schulen .station--center .station__head {
  text-align: center;
}

.page-schulen .station--center .kontakt__details {
  margin: 0.5rem 0 1rem;
}

.page-schulen .kontakt__actions--center {
  justify-content: center;
}

.page-schulen #kontakt .station__intro {
  max-width: 22rem;
  margin-inline: auto;
}

.page-schulen .station__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: calc(3.5rem + var(--safe-top) + 0.35rem) 0 calc(var(--leaf-trigger-size) + var(--leaf-trigger-inset) + 3.25rem + var(--safe-bottom));
}

.page-schulen .station__head {
  flex: 0 0 auto;
  padding: 0 1.75rem;
}

.page-schulen .station__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-primary-deep);
}

.page-schulen .station__intro {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.page-schulen .station__intro + .station__intro {
  margin-top: 0.55rem;
}

.page-schulen #fundament .station-cards {
  align-items: flex-start;
}

@media (max-width: 767px) {
  .page-schulen #fundament .station-cards {
    padding: 0.65rem max(0.75rem, calc(50% - min(76vw, 13.75rem) / 2));
  }
}

/* #fundament – Symbol-Karten: warmer Grünton, Luft, größere Icons (nur Sektion 4) */
.page-schulen #fundament .station-cards-wrap {
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

.page-schulen #fundament .station-swipe-nav {
  margin-top: 0.7rem;
}

.page-schulen #fundament .station-card.station-card--symbol {
  background: color-mix(in srgb, var(--color-primary) 22%, var(--ring-1));
  box-shadow: 0 6px 24px rgba(47, 64, 53, 0.1);
  padding: 0.95rem 0.85rem 1rem;
}

.page-schulen #fundament .station-card__symbol {
  margin: 0.25rem 0 0.6rem;
}

.page-schulen #fundament .station-card__symbol img {
  width: 5.25rem;
  height: 5.25rem;
}

.page-schulen .station__outro {
  flex: 0 0 auto;
  margin: 0.85rem 0 0;
  padding: 0 1.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-align: center;
}

.page-schulen .station-cards-wrap {
  flex: 0 0 auto;
  margin: 0.6rem 0 0;
  padding: 0;
}

.page-schulen #erleben .station-cards,
.page-schulen #idg .station-cards,
.page-schulen #wald-x-tag .station-cards,
.page-schulen #raeume .station-cards {
  align-items: stretch;
}

.page-schulen .station-cards {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 0;
  margin: 0;
  padding: 0.15rem max(0.75rem, calc(50% - min(88vw, 17.5rem) / 2));
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Beide Achsen erlauben – Browser wählt Richtung; vertikal → Seite, horizontal → Slider */
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}

.page-schulen .station-cards::-webkit-scrollbar {
  display: none;
}

.page-schulen .station-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(88vw, 17.5rem);
  width: min(88vw, 17.5rem);
  max-width: min(88vw, 17.5rem);
  min-width: 0;
  height: 50vh;
  max-height: 50vh;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 0.75rem 0.9rem 0.8rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.page-schulen .station-card--thumb {
  align-self: stretch;
  padding: 0;
  height: auto;
  max-height: none;
  min-height: 0;
  background: var(--color-surface);
}

/* Symbol-Karten (#fundament): Inhaltshöhe, nicht 50vh – Regel nach .station-card */
.page-schulen .station-card.station-card--symbol {
  flex: 0 0 min(76vw, 13.75rem);
  width: min(76vw, 13.75rem);
  max-width: min(76vw, 13.75rem);
  align-self: flex-start;
  padding: 0.65rem 0.75rem 0.7rem;
  height: auto;
  max-height: none;
  min-height: 0;
}

.page-schulen .station-card__symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0.05rem 0 0.4rem;
}

.page-schulen .station-card__symbol img {
  display: block;
  width: 3.1rem;
  height: 3.1rem;
}

.page-schulen .station-card.station-card--symbol .station-card__title {
  position: static;
  margin: 0 0 0.3rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-deep);
  text-shadow: none;
}

.page-schulen .station-card.station-card--symbol .station-card__text {
  flex: 0 1 auto;
  min-height: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.page-schulen .station-card--thumb .station-card__media {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(61, 82, 68, 0.08);
}

.page-schulen .station-card--portrait .station-card__media {
  aspect-ratio: 3 / 4;
}

.page-schulen .station-card--thumb .station-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  top: 38%;
  background: linear-gradient(to top, rgba(18, 28, 22, 0.88) 0%, rgba(18, 28, 22, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.page-schulen .station-card--thumb .station-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-schulen .station-card--thumb .station-card__title {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.9rem 0.85rem 1.05rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 7.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 4px rgba(0, 0, 0, 0.9),
    0 4px 16px rgba(0, 0, 0, 0.6);
}

.page-schulen .station-card--thumb .station-card__text {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.6rem;
  margin: 0;
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}

.page-schulen .station-card--clone {
  pointer-events: none;
}

.page-schulen .station-swipe-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.45rem 0 0;
}

.page-schulen .station-swipe-nav__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.page-schulen .station-swipe-nav__btn {
  cursor: pointer;
}

.page-schulen .station-swipe-nav__btn:focus {
  outline: none;
}

.page-schulen .station-swipe-nav__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.page-schulen .station-swipe-nav__btn:active {
  transform: scale(0.96);
}

.page-schulen .station-card__icon {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
  line-height: 1;
}

.page-schulen .station-card__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-deep);
}

.page-schulen .station-card__text {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}

/* #fundament: auf kleinen Handys alles in einen Viewport (Swipe-Pfeile sichtbar) */
@media (max-width: 767px) {
  .page-schulen #fundament .station__inner {
    padding-top: calc(3rem + var(--safe-top) + 0.15rem);
    padding-bottom: calc(var(--leaf-trigger-size) + var(--leaf-trigger-inset) + 2.35rem + var(--safe-bottom));
  }

  .page-schulen #fundament .station__head {
    padding-inline: 1.35rem;
  }

  .page-schulen #fundament .station__title {
    margin-bottom: 0.35rem;
    font-size: clamp(1.5rem, 6.8vw, 1.75rem);
  }

  .page-schulen #fundament .station__intro {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .page-schulen #fundament .station__intro + .station__intro {
    margin-top: 0.35rem;
  }

  .page-schulen #fundament .station-cards-wrap {
    margin-top: 0.85rem;
    margin-bottom: 0.15rem;
  }

  .page-schulen #fundament .station-cards {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .page-schulen #fundament .station-swipe-nav {
    flex: 0 0 auto;
    margin-top: 0.55rem;
  }

  .page-schulen #fundament .station__outro {
    margin-top: 0.45rem;
    padding-inline: 1.35rem;
    font-size: 0.8rem;
    line-height: 1.42;
  }
}

@media (min-width: 768px) {
  .page-schulen .station-swipe-nav {
    display: none;
  }

  .page-schulen .station-cards-wrap {
    padding: 0 1.75rem;
  }

  .page-schulen .station-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    touch-action: auto;
    padding: 0;
  }

  .page-schulen .station-cards::after {
    content: none;
  }

  .page-schulen .station-card {
    flex: none;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    min-height: 10.5rem;
  }

  .page-schulen .station-card--thumb {
    min-height: 0;
  }

  .page-schulen .station-card.station-card--symbol {
    flex: none;
    width: auto;
    max-width: none;
    min-height: 0;
  }

  .page-schulen #fundament .station-cards {
    padding: 0.75rem 0;
    overflow: visible;
    touch-action: auto;
    scroll-snap-type: none;
  }

  .page-schulen #fundament .station-card.station-card--symbol {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .page-schulen #fundament .station-cards-wrap {
    margin-top: 1.35rem;
  }

  .page-schulen #fundament .station__outro {
    margin-top: 1rem;
  }
}

/* Schulen-Unterseite */
.schulen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schulen-tags__item {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-soft);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
}

.schulen-idg {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schulen-idg__item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-soft);
}

.schulen-idg__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary-deep);
}

.schulen-idg__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.schulen-eyebrow {
  margin: -0.35rem 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-primary);
}

.schulen-steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: schulen-step;
}

.schulen-steps__item {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(61, 82, 68, 0.1);
  counter-increment: schulen-step;
}

.schulen-steps__item:last-child {
  border-bottom: none;
}

.schulen-steps__label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-deep);
}

.schulen-steps__label::before {
  content: counter(schulen-step) ". ";
  color: var(--color-primary);
}

.schulen-steps__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (min-width: 520px) {
  .schulen-idg {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .schulen-idg__item:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
  }
}

/* Platzhalter-Seiten (noch ohne Inhalt) */
.page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 4rem);
  padding: calc(3.5rem + var(--safe-top) + 1.5rem) 1.75rem calc(var(--leaf-trigger-size) + var(--leaf-trigger-inset) + 2rem + var(--safe-bottom));
  text-align: center;
}

.page-placeholder__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-primary-deep);
}

.page-placeholder__text {
  max-width: 22rem;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .section-scroll {
    animation: none;
  }

  html.snap-enabled,
  html.snap-enabled.snap-proximity {
    scroll-snap-type: none;
  }
}

/* Naturerlebnisgestalter – Seiten-spezifisch */
.page-naturerlebnisgestalter #ursprung .warum-wald__bg {
  background-image: url("images/content/natur-ursprung.webp");
}

/* Überschrift Sektion 2 – explizit wie schulen.html #warum-wald (keine Verkleinerung) */
.page-naturerlebnisgestalter #ursprung .warum-wald__title {
  font-size: clamp(2.65rem, 10vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  text-shadow:
    0 0 1px rgba(15, 26, 18, 0.9),
    0 2px 8px rgba(15, 26, 18, 0.75),
    0 8px 28px rgba(15, 26, 18, 0.55);
}

.page-naturerlebnisgestalter #ursprung .warum-wald__text + .warum-wald__text {
  margin-top: 0.75rem;
}

.page-naturerlebnisgestalter #ursprung .warum-wald__text + .warum-wald__text {
  margin-top: 0.75rem;
}

/* Sektion 6 – Foto wie aufs Blatt gelegt (kein Vollbild-HG) */
.page-schulen #person.station {
  background: var(--color-bg-soft);
}

.page-schulen #person .station__inner--person {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page-schulen #person .person-pin {
  flex: 0 0 auto;
  width: 40%;
  max-width: 11.5rem;
  margin: 0.15rem auto 1.1rem;
  padding: 0.5rem 0.5rem 0.65rem;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 2px;
  box-shadow:
    0 2px 4px rgba(47, 64, 53, 0.07),
    0 10px 26px rgba(47, 64, 53, 0.13),
    0 18px 40px rgba(47, 64, 53, 0.08);
  transform: rotate(-5deg);
}

.page-schulen #person .person-pin img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.page-schulen #person .station__head--person {
  padding-inline: 1.35rem;
}

.page-schulen #person .person__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.page-schulen #person .person__text + .person__text {
  margin-top: 0.75rem;
}

.page-schulen #person .person__text strong {
  font-weight: 600;
  color: var(--color-primary-deep);
}

.page-schulen #person .person__credentials strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--color-primary-deep);
}

.page-schulen #person .person__credentials {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.page-schulen #person .person__cta {
  flex: 0 0 auto;
  margin: 1rem 0 0;
  padding: 0 1.35rem;
  text-align: center;
}

@media (min-width: 768px) {
  .page-schulen #person .station__inner--person {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: 1.75rem;
  }

  .page-schulen #person .person-pin {
    max-width: min(40%, 13.5rem);
    margin-bottom: 1.35rem;
    transform: rotate(-4deg);
  }

  .page-schulen #person .station__head--person,
  .page-schulen #person .person__cta {
    padding-inline: 0;
  }
}

.page-naturerlebnisgestalter #hero .page-hero__visual {
  background: var(--color-bg-soft);
}

.page-naturerlebnisgestalter #hero .page-hero__scrim {
  display: none;
}

.page-naturerlebnisgestalter #hero .page-hero__media {
  object-fit: cover;
  object-position: center center;
}

.page-naturerlebnisgestalter .page-hero.snap-section .page-hero__copy-body {
  padding-bottom: var(--leaf-nav-reserve);
}

.page-naturerlebnisgestalter .page-hero__text {
  margin-bottom: 0;
}

.page-naturerlebnisgestalter .page-hero__text strong {
  font-weight: 600;
}

.page-naturerlebnisgestalter .station-card--link {
  padding: 0;
}

.page-naturerlebnisgestalter .station-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-naturerlebnisgestalter .kontakt__actions--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  max-width: 18rem;
  margin-inline: auto;
}

/* Sektion 5 – Text + Waldbild */
.page-schulen #arbeit .station__inner--vertrauen {
  justify-content: flex-start;
}

.page-schulen #arbeit .station__figure {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0.85rem 1.35rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-surface);
  display: flex;
}

.page-schulen #arbeit .station__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 768px) {
  .page-schulen #arbeit .station__inner--vertrauen {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: 1.75rem;
  }

  .page-schulen #arbeit .station__head {
    padding-inline: 0;
  }

  .page-schulen #arbeit .station__figure {
    margin-inline: 0;
  }
}

/* Betriebe – kompakter Hero (3:2 / 6:4), Schwerpunkt-Sektionen */
.page-betriebe .page-hero.snap-section .page-hero__visual {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: 34%;
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.page-betriebe .page-hero.snap-section .page-hero__copy {
  flex: 1 1 auto;
  min-height: 0;
}

.page-betriebe .page-hero.snap-section .page-hero__copy-body {
  padding-bottom: calc(var(--leaf-nav-reserve));
}

.page-betriebe .page-hero__text + .page-hero__text {
  margin-top: 0.65rem;
}

.page-betriebe .focus-block {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.page-betriebe .focus-block--soft {
  background: var(--color-bg-soft);
}

.page-betriebe .focus-block__inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-betriebe .focus-block__media {
  flex: 0 0 auto;
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 30%;
  overflow: hidden;
  background: var(--color-primary-deep);
}

.page-betriebe .focus-block__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-betriebe .focus-block__copy {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.page-betriebe .focus-block--soft .focus-block__copy {
  background: var(--color-bg-soft);
}

.page-betriebe .focus-block__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.65rem 1.75rem calc(var(--leaf-nav-reserve));
}

.page-betriebe .focus-block__body > .page-eyebrow:first-child {
  margin-bottom: 0.5rem;
}

.page-betriebe .focus-block__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 5.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-primary-deep);
}

.page-betriebe .focus-block__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.page-betriebe .focus-block__text + .focus-block__text {
  margin-top: 0.65rem;
}

.page-betriebe .focus-block__points {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
}

.page-betriebe .focus-block__points li + li {
  margin-top: 0.35rem;
}

.page-betriebe #kontakt .station__intro {
  max-width: 24rem;
}

@media (min-width: 768px) {
  .page-betriebe .page-hero.snap-section .page-hero__visual {
    max-height: 36%;
  }

  .page-betriebe .focus-block__media {
    max-height: 32%;
  }

  .page-betriebe .focus-block__body {
    padding-inline: 2.5rem;
  }
}

/* Coaching – Platzhalterseite + Kontakt */
body.page-coaching.page-schulen .page-main {
  padding-top: 0;
}

.coaching-aufbau.snap-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
}

.coaching-aufbau__inner {
  max-width: 22rem;
  text-align: center;
}

.coaching-aufbau__icon {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.35rem;
}

.coaching-aufbau__inner > .page-eyebrow {
  margin-bottom: 0.55rem;
  text-align: center;
}

.coaching-aufbau__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-primary-deep);
}

.coaching-aufbau__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.coaching-aufbau__text + .coaching-aufbau__text {
  margin-top: 0.5rem;
}

/* Rechtliches – Impressum, Datenschutz */
body.page-legal .page-main {
  padding-top: calc(3.5rem + var(--safe-top));
}

.legal-page {
  padding: 1.25rem 1.75rem calc(2rem + var(--leaf-nav-reserve) + var(--safe-bottom));
}

.legal-page__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.legal-page__icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
}

.legal-page__title {
  margin: 0 0 1.35rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: var(--color-primary-deep);
}

.legal-page__title:has(+ .legal-page__lead) {
  margin-bottom: 0.35rem;
}

.legal-page__lead {
  margin: 0 0 1.35rem;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text-muted);
}

.legal-page__content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.legal-page__block + .legal-page__block {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.legal-page__heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary-deep);
}

.legal-page__content p {
  margin: 0;
}

.legal-page__content p + p {
  margin-top: 0.65rem;
}

.legal-page__address {
  font-style: normal;
}

.legal-page__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
}

.legal-page__list li + li {
  margin-top: 0.35rem;
}

.legal-page__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-page__content a:hover {
  color: var(--color-primary-deep);
}

@media (min-width: 768px) {
  .legal-page {
    padding-inline: 2.5rem;
  }
}
