/* NaturRebellen e.V. – Stylesheet
   Farben: Waldgrün aus dem Logo (#214C2E) + Streuobst-Ocker als Zweitfarbe.
   Schriften: Poppins (Überschriften, passend zur Wortmarke) + Lora (Fließtext), lokal eingebunden – keine Verbindung zu Google. */

@layer reset, base, layout, components, pages, utilities;

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-display: swap; src: url("fonts/lora-400.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600 700; font-display: swap; src: url("fonts/lora-600.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lora-italic-400.woff2") format("woff2"); }

/* Seitenübergänge zwischen den Unterseiten (Chrome/Edge/Safari) */
@view-transition { navigation: auto; }

:root {
  --gruen: #214c2e;
  --gruen-tief: #15311d;
  --ocker: #e3a92f;
  --ocker-hell: #f6e3b4;
  --papier: #f4f7f0;
  --moos: #dde7d4;
  --tinte: #1b2820;
  --text-leise: #4a5a4f;
  --linie: color-mix(in oklch, var(--gruen) 18%, var(--papier));

  --font-titel: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Lora", Charter, "Sitka Text", Cambria, Georgia, serif;

  /* fließende Typo-Skala (ca. 1.25) */
  --s-1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --s0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --s1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --s2: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --s3: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --s4: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem);

  --rand: clamp(1.25rem, 4vw, 3rem);
  --breit: 76rem;
  --lese: 40rem;
  --rund-klein: 0.5rem;
  --rund-gross: 1.75rem;

  color-scheme: light;
  interpolate-size: allow-keywords;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img, svg { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 6rem);
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
}

@layer base {
  body {
    background: var(--papier);
    color: var(--tinte);
    font-family: var(--font-text);
    font-size: var(--s0);
    line-height: 1.65;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
  }
  main { flex: 1; }
  h1, h2, h3, h4 {
    hyphens: auto;
    overflow-wrap: break-word;
    font-family: var(--font-titel);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--gruen);
    text-wrap: balance;
  }
  h1 { font-size: var(--s4); letter-spacing: -0.03em; line-height: 1.02; }
  h2 { font-size: var(--s3); letter-spacing: -0.025em; }
  h3 { font-size: var(--s1); font-weight: 500; letter-spacing: -0.005em; }
  p, li { text-wrap: pretty; }
  a {
    color: var(--gruen);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    text-decoration-color: color-mix(in oklch, var(--gruen) 45%, transparent);
    &:hover { text-decoration-color: var(--ocker); }
  }
  /* Tastaturfokus: 3 px Ring in --fokus (Styleguide-Token `fokus`).
     Hell: Waldgrün (≥ 9:1); auf dunkelgrünen Flächen: Ocker (≥ 4,7:1); auf Ocker: Tiefgrün (6,7:1). */
  :root { --fokus: var(--gruen); }
  .held, .seitenkopf, .region, .fuss, .art--foerder, .nav:popover-open { --fokus: var(--ocker); }
  .aufruf { --fokus: var(--gruen-tief); }  /* der Ring liegt auf dem Ocker-Grund */
  :focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: var(--ocker-hell); color: var(--gruen-tief); }
  strong { font-weight: 600; }
}

@layer layout {
  .huelle { width: min(100% - 2 * var(--rand), var(--breit)); margin-inline: auto; }
  .abschnitt { padding-block: clamp(3.5rem, 8vw, 7rem); }
  .abschnitt--anschluss { padding-top: 0; }
  .lesebreite { max-width: var(--lese); }
  .stapel > * + * { margin-top: var(--abstand, 1em); }
}

@layer components {
  /* ---------- Kopfzeile ---------- */
  .kopf {
    position: sticky;
    top: 0;
    z-index: 20;
    /* Handy: deckend statt Weichzeichner (backdrop-filter kostet beim Scrollen viel Rechenleistung) */
    background: var(--papier);
    @media (hover: hover) and (pointer: fine) and (min-width: 56rem) {
      background: rgb(244 247 240 / 0.86);
      backdrop-filter: blur(12px) saturate(1.4);
      -webkit-backdrop-filter: blur(12px) saturate(1.4);
    }
    border-bottom: 1px solid var(--linie);
    padding-top: env(safe-area-inset-top, 0px);
    margin-top: calc(-1 * env(safe-area-inset-top, 0px));
    view-transition-name: kopf;

    /* Lesefortschritt – Scroll-getriebene Animation */
    &::after {
      content: "";
      position: absolute;
      inset: auto 0 -1px 0;
      height: 3px;
      background: var(--ocker);
      transform-origin: left;
      transform: scaleX(0);
    }
  }
  @media (hover: none), (pointer: coarse), (pointer: none) { .kopf::after { display: none; } }
  @supports (animation-timeline: scroll()) {
    @media (hover: hover) and (pointer: fine) { .kopf::after { animation: fortschritt linear both; animation-timeline: scroll(root); } }
  }
  @keyframes fortschritt { to { transform: scaleX(1); } }

  .kopf__innen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
  }
  .marke {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-family: var(--font-titel);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--gruen);
    img { width: 2.1rem; }
    span span { font-weight: 500; opacity: 0.8; }
  }

  .menue-knopf {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--gruen);
    background: transparent;
    color: var(--gruen);
    font-family: var(--font-titel);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: 99px;
    cursor: pointer;
    svg { width: 1.1rem; }
  }

  /* Navigation: auf Mobilgeräten als Popover (natives HTML-Popover-API) */
  .nav {
    border: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) var(--rand) calc(env(safe-area-inset-bottom, 0px) + 2rem);
    margin: 0 0 0 auto;
    width: min(22rem, 88vw);
    height: 100dvh;
    max-height: none;
    background: var(--gruen);
    color: var(--papier);
    box-shadow: -1rem 0 3rem rgb(21 49 29 / 0.25);

    &::backdrop { background: rgb(21 49 29 / 0.55); }

    ul { list-style: none; padding: 0; display: grid; gap: 0.25rem; margin-top: 2.5rem; }
    a {
      display: block;
      padding: 0.7rem 0;
      color: inherit;
      text-decoration: none;
      font-family: var(--font-titel);
      font-weight: 500;
      font-size: 1.5rem;
      border-bottom: 1px solid rgb(244 247 240 / 0.15);
      &[aria-current="page"] { color: var(--ocker); }
    }
    .nav__zu {
      display: block;
      margin-left: auto;
      background: none;
      border: 1.5px solid rgb(244 247 240 / 0.5);
      color: inherit;
      border-radius: 99px;
      padding: 0.4rem 0.9rem;
      font-family: var(--font-titel);
      cursor: pointer;
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    .nav {
      transition: translate 0.35s cubic-bezier(.2,.8,.2,1), display 0.35s allow-discrete, overlay 0.35s allow-discrete;
      translate: 100% 0;
      &:popover-open { translate: 0 0; }
    }
    @starting-style { .nav:popover-open { translate: 100% 0; } }
  }

  @media (min-width: 66rem) {
    .menue-knopf, .nav__zu { display: none !important; }
    .nav {
      display: block;
      position: static;
      inset: auto;
      width: auto;
      height: auto;
      padding: 0;
      margin: 0;
      background: none;
      color: var(--tinte);
      box-shadow: none;
      overflow: visible;
      translate: none;
      ul { display: flex; align-items: center; gap: 0.35rem; margin: 0; }
      a {
        white-space: nowrap;
        font-size: 1rem;
        padding: 0.5rem 0.85rem;
        border: 0;
        border-radius: 99px;
        &:hover { background: var(--moos); }
        &[aria-current="page"] { color: var(--gruen); background: var(--moos); }
      }
      li:last-child a {
        background: var(--gruen);
        color: var(--papier);
        margin-left: 0.5rem;
        &:hover { background: var(--gruen-tief); }
        &[aria-current="page"] { background: var(--ocker); color: var(--gruen-tief); }
      }
    }
  }

  /* ---------- Knöpfe ---------- */
  .knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    font-family: var(--font-titel);
    font-weight: 500;
    font-size: 1.02rem;
    padding: 0.85em 1.5em;
    border-radius: 99px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    background: var(--ocker);
    color: var(--gruen-tief);
    &:hover { background: color-mix(in oklch, var(--ocker) 85%, white); }
  }
  .knopf--linie {
    background: transparent;
    color: currentColor;
    border-color: currentColor;
    &:hover { background: rgb(255 255 255 / 0.08); }
  }
  .knopf--gruen {
    background: var(--gruen);
    color: var(--papier);
    &:hover { background: var(--gruen-tief); }
  }
  .knopf--hell { color: var(--gruen); }
  .knopfreihe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

  /* Platzhalter für Angaben, die der Verein noch eintragen muss */
  .ph {
    background: var(--ocker-hell);
    color: var(--gruen-tief);
    border-bottom: 2px dashed var(--ocker);
    padding: 0 0.25em;
    border-radius: 3px;
    font-style: normal;
  }

  /* ---------- Seitenkopf der Unterseiten ---------- */
  .seitenkopf {
    background: var(--gruen);
    color: var(--papier);
    padding-top: clamp(3rem, 7vw, 5.5rem);
    position: relative;
    overflow: clip;
    h1 { color: var(--papier); max-width: 16ch; view-transition-name: seitentitel; }
    p { max-width: 38rem; font-size: var(--s1); line-height: 1.5; margin-top: 1.25rem; color: color-mix(in oklch, var(--papier) 88%, var(--gruen)); }
  }

  /* ---------- Fuß ---------- */
  .fuss {
    background: var(--gruen-tief);
    color: color-mix(in oklch, var(--papier) 82%, var(--gruen-tief));
    padding-block: 4rem 2.5rem;
    font-size: var(--s-1);
    line-height: 1.7;
    a { color: var(--papier); text-decoration-color: rgb(244 247 240 / 0.35); }
    h2 { color: var(--papier); font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-bottom: 0.6rem; }
  }
  .fuss__raster {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgb(244 247 240 / 0.14);
  }
  .fuss__marke {
    display: flex; gap: 0.9rem; align-items: flex-start;
    img { width: 3rem; flex: none; }
    strong { display: block; font-family: var(--font-titel); color: var(--papier); font-size: 1.1rem; }
  }
  .fuss ul { list-style: none; padding: 0; }
  .fuss__unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
  .fuss__unten :is(a, button) { display: inline-block; padding-block: 0.25rem; }
  .fuss .ph { background: rgb(227 169 47 / 0.2); color: var(--ocker-hell); }
}

@layer pages {
  /* ================= Startseite ================= */
  .held {
    background: var(--gruen);
    color: var(--papier);
    position: relative;
    overflow: clip;
    padding-top: clamp(3.5rem, 9vw, 7.5rem);
  }
  .held__text {
    position: relative;
    z-index: 2;
    max-width: 50rem;
    h1 { color: var(--papier); view-transition-name: seitentitel; }
    p { font-size: var(--s1); line-height: 1.5; margin-block: 1.5rem 2.25rem; max-width: 36rem; color: color-mix(in oklch, var(--papier) 90%, var(--gruen)); }
  }
  /* ---------- Hügellandschaft (Start + alle Seitenköpfe) ----------
     Jede Hügel-Ebene ist ein eigenes <svg>. Bewegt wird nur das ganze Element
     (translate/transform) – das übernimmt die Grafikkarte, ohne neu zu zeichnen. */
  .landschaft {
    position: relative;
    view-transition-name: landschaft; /* Hügel bleiben beim Seitenwechsel stehen und passen sich nur an */
    contain: layout style;
    .ebene { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; overflow: visible; }
    .sonne-scroll { fill: var(--ocker); }
    .baum { transform-box: fill-box; transform-origin: 50% 100%; }
  }
  .held__landschaft { margin-top: clamp(-2rem, -3vw, 0rem); height: clamp(11rem, 26vw, 21rem); }
  .landschaft--klein { margin-top: clamp(1.5rem, 4vw, 3rem); height: clamp(5.5rem, 12vw, 10rem); }

  /* Fluss, der sich beim Scrollen durch die Region „zeichnet“:
     Eine Abdeckung in Hintergrundfarbe gleitet zur Seite (GPU) statt die Linie neu zu zeichnen. */
  .region { position: relative; overflow: clip; }
  .region .huelle { position: relative; z-index: 1; }
  .fluss {
    position: absolute; inset: auto 0 1rem 0; height: 5rem; pointer-events: none;
    svg { width: 100%; height: 100%; fill: none; stroke: var(--ocker); stroke-width: 3; stroke-linecap: round; opacity: 0.6; }
  }
  .fluss__deckel { position: absolute; inset: -0.5rem 0; background: var(--gruen-tief); translate: 101% 0; }

  .einleitung {
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    align-items: start;
    .gross { font-size: var(--s2); font-family: var(--font-titel); font-weight: 500; line-height: 1.3; color: var(--gruen); letter-spacing: -0.015em; text-wrap: balance; }
  }

  .saeulen {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    margin-top: 3rem;
  }
  .saeule {
    border-radius: var(--rund-gross);
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--moos);
    .saeule__icon { width: 3.25rem; color: var(--gruen); margin-bottom: 1.5rem; }
    h3 { font-size: var(--s2); font-weight: 700; margin-bottom: 0.75rem; }
    ul { padding-left: 1.1em; margin-top: 1rem; }
    li::marker { color: var(--ocker); }
    li + li { margin-top: 0.35rem; }
    .gesetz { font-size: var(--s-1); color: var(--text-leise); margin-top: 1.25rem; }
  }
  .saeule--bildung { background: var(--ocker-hell); }

  .region {
    background: var(--gruen-tief);
    color: var(--papier);
    h2 { color: var(--papier); }
    .region__raster {
      display: grid;
      gap: clamp(2rem, 5vw, 4rem);
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
      align-items: center;
    }
    p { color: color-mix(in oklch, var(--papier) 85%, var(--gruen-tief)); margin-top: 1.25rem; }
    .orte {
      list-style: none;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      li {
        font-family: var(--font-titel);
        font-weight: 500;
        font-size: var(--s1);
        padding: 0.55em 1.1em;
        border-radius: 99px;
        border: 1.5px solid rgb(244 247 240 / 0.3);
      }
      li:nth-child(odd) { background: rgb(244 247 240 / 0.06); }
    }
  }

  .partner {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    margin-top: 2.5rem;
    border-top: 2px solid var(--gruen);
    > div {
      padding: 1.5rem 1.5rem 1.5rem 0;
      border-bottom: 1px solid var(--linie);
    }
    h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
    p { color: var(--text-leise); font-size: var(--s-1); line-height: 1.6; }
  }

  .aufruf {
    background: var(--ocker);
    color: var(--gruen-tief);
    border-radius: var(--rund-gross);
    padding: clamp(2rem, 6vw, 4.5rem);
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: end;
    h2 { color: var(--gruen-tief); }
    p { margin-top: 1rem; font-size: var(--s1); line-height: 1.5; }
    .knopf { background: var(--gruen-tief); color: var(--papier); &:hover { background: var(--gruen); } }
    .knopf--linie { background: transparent; color: var(--gruen-tief); &:hover { background: rgb(21 49 29 / 0.08); } }
    .knopfreihe { justify-content: flex-end; }
  }

  /* ================= Was wir machen ================= */
  .taetigkeit-layout {
    display: grid;
    gap: 3rem;
    @media (min-width: 62rem) {
      grid-template-columns: 15rem 1fr;
      gap: 5rem;
    }
  }
  .inhaltsnav {
    font-family: var(--font-titel);
    font-size: 0.95rem;
    @media (min-width: 62rem) { position: sticky; top: 7rem; align-self: start; }
    p { color: var(--text-leise); margin-bottom: 0.75rem; font-weight: 500; }
    ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; @media (min-width: 62rem) { display: grid; gap: 0.1rem; } }
    a {
      display: block; text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 99px; background: var(--moos);
      @media (min-width: 62rem) { background: none; border-radius: 0; padding: 0.5rem 0 0.5rem 1rem; border-left: 2px solid var(--linie); }
      &:hover { border-left-color: var(--ocker); }
    }
  }

  .feld { container-type: inline-size; padding-block: 3rem; border-top: 1px solid var(--linie); &:first-child { border-top: 0; padding-top: 0; } }
  .feld__kopf {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 3.5rem 1fr;
    align-items: start;
    svg { width: 3.5rem; color: var(--gruen); background: var(--moos); border-radius: 1rem; padding: 0.7rem; }
    h2 { font-size: var(--s2); }
    p { margin-top: 0.75rem; max-width: 38rem; }
  }
  .beispiele {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    li {
      background: white;
      border: 1px solid var(--linie);
      border-radius: var(--rund-klein);
      padding: 1.1rem 1.25rem;
      border-left: 4px solid var(--ocker);
    }
    strong { display: block; font-family: var(--font-titel); font-weight: 500; color: var(--gruen); margin-bottom: 0.2rem; }
    span { font-size: var(--s-1); color: var(--text-leise); line-height: 1.55; display: block; }
  }
  /* Bildplatzhalter – werden automatisch vom Foto überdeckt */
  .bild {
    position: relative;
    margin-top: 2rem;
    aspect-ratio: 3 / 2;
    border-radius: var(--rund-gross);
    overflow: clip;
    background: var(--moos);
    picture, img { position: absolute; inset: 0; width: 100%; height: 100%; }
    img { object-fit: cover; }
  }
  .bild__platzhalter {
    position: absolute; inset: 0;
    display: grid; place-content: center; justify-items: center; gap: 0.35rem;
    text-align: center; padding: 1rem;
    font-family: var(--font-titel); font-weight: 500; color: var(--gruen);
    background: radial-gradient(circle at 1px 1px, rgb(33 76 46 / 0.2) 1.2px, transparent 0) 0 0 / 16px 16px, var(--moos);
    svg { width: 2.75rem; opacity: 0.75; margin-bottom: 0.25rem; }
    small { font-family: var(--font-text); font-weight: 400; font-size: 0.8rem; color: var(--text-leise); }
  }

  /* Container Query: Beispiele passen sich der verfügbaren Breite an, nicht dem Bildschirm */
  @container (min-width: 36rem) {
    .beispiele { grid-template-columns: 1fr 1fr; }
    .beispiele, .zielgruppen, .ablauf, .bild, .feld > .mt-2 { margin-left: 4.75rem; }
    .bild { aspect-ratio: 16 / 7; }
  }
  @container (min-width: 56rem) { .beispiele { grid-template-columns: repeat(3, 1fr); } }

  .zielgruppen {
    display: grid; gap: 1rem; margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
    > div { padding: 1.4rem; border-radius: var(--rund-klein); background: var(--ocker-hell); }
    h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
    p { font-size: var(--s-1); line-height: 1.6; }
  }

  .ablauf {
    list-style: none;
    padding: 0;
    margin-top: 2.5rem;
    counter-reset: schritt;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    li { counter-increment: schritt; position: relative; padding-top: 3.75rem; }
    li::before {
      content: counter(schritt);
      position: absolute; top: 0; left: 0;
      width: 2.75rem; aspect-ratio: 1;
      display: grid; place-items: center;
      border-radius: 50%;
      background: var(--gruen); color: var(--papier);
      font-family: var(--font-titel); font-weight: 700;
    }
    h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
    p { font-size: var(--s-1); color: var(--text-leise); line-height: 1.6; }
  }

  @media (min-width: 48rem) {
    .ablauf { position: relative; view-timeline: --ablauf; }
    .ablauf::before {
      content: ""; position: absolute; top: calc(1.375rem - 1px); left: 1.375rem; right: 12%;
      height: 2px; background: var(--ocker); transform-origin: left;
    }
    .ablauf li::before { z-index: 1; }
    @media (prefers-reduced-motion: no-preference) {
      @media (hover: hover) and (pointer: fine) {
        @supports (animation-timeline: view()) {
          .ablauf::before { animation: linie linear both; animation-timeline: --ablauf; animation-range: entry 40% cover 50%; }
          .ablauf li::before { animation: auftauchen linear both; animation-timeline: --ablauf; }
          .ablauf li:nth-child(1)::before { animation-range: entry 40% entry 60%; }
          .ablauf li:nth-child(2)::before { animation-range: entry 60% entry 80%; }
          .ablauf li:nth-child(3)::before { animation-range: entry 80% cover 40%; }
          .ablauf li:nth-child(4)::before { animation-range: cover 35% cover 50%; }
        }
      }
    }
  }
  @keyframes linie { from { scale: 0 1; } }
  @keyframes auftauchen { from { scale: 0.3; opacity: 0; } }

  /* ================= Satzung ================= */
  .hinweis {
    display: flex; gap: 0.9rem; align-items: flex-start;
    background: var(--ocker-hell);
    border-radius: var(--rund-klein);
    padding: 1.1rem 1.25rem;
    font-size: var(--s-1);
    line-height: 1.6;
    svg { width: 1.4rem; flex: none; color: var(--gruen); margin-top: 0.15rem; }
  }
  .satzung { max-width: 46rem; }
  .satzung__werkzeug { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-block: 2rem 1.5rem; }
  .paragraf {
    border-top: 1px solid var(--linie);
    &:last-of-type { border-bottom: 1px solid var(--linie); }
    summary {
      list-style: none;
      cursor: pointer;
      display: grid;
      grid-template-columns: 3.25rem minmax(0, 1fr) 1.5rem;
      hyphens: auto;
      overflow-wrap: break-word;
      gap: 0.75rem;
      align-items: baseline;
      padding: 1.25rem 0;
      font-family: var(--font-titel);
      font-weight: 500;
      font-size: var(--s1);
      color: var(--gruen);
      &::-webkit-details-marker { display: none; }
      &::after { content: "+"; font-size: 1.5rem; line-height: 1; text-align: right; transition: rotate 0.25s; }
      .nr { color: var(--text-leise); font-weight: 700; font-size: 1rem; }
      &:hover { color: var(--gruen-tief); }
    }
    &[open] summary::after { rotate: 45deg; }
    .paragraf__text { padding: 0 0 1.75rem 4rem; }
    ol, ul { padding-left: 1.3em; }
    li + li { margin-top: 0.4rem; }
    ul { list-style: "–  "; }
    .leer { color: var(--text-leise); font-style: italic; }
    @media (max-width: 34rem) { .paragraf__text { padding-left: 0; } }
  }
  /* weiches Aufklappen dank ::details-content + interpolate-size */
  @media (prefers-reduced-motion: no-preference) {
    .paragraf::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete; }
    .paragraf[open]::details-content { block-size: auto; }
  }

  /* ================= Mitglied werden ================= */
  .arten {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    margin-top: 2.5rem;
  }
  .art {
    border: 2px solid var(--gruen);
    border-radius: var(--rund-gross);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex; flex-direction: column; gap: 0.9rem;
    h3 { font-size: var(--s2); font-weight: 700; }
    .beitrag { font-family: var(--font-titel); font-weight: 500; color: var(--gruen); font-size: var(--s1); }
    ul { padding-left: 1.1em; }
    li::marker { color: var(--ocker); }
  }
  .art--foerder { background: var(--gruen); color: var(--papier); h3, .beitrag { color: var(--papier); } }

  .antrag-raster {
    display: grid;
    gap: 2rem;
    @media (min-width: 62rem) { grid-template-columns: 17rem 1fr; gap: 4rem; }
  }
  .antrag-info {
    @media (min-width: 62rem) { position: sticky; top: 7rem; align-self: start; }
    p { color: var(--text-leise); }
  }
  .antrag {
    background: white;
    border: 1px solid var(--linie);
    border-radius: var(--rund-gross);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    box-shadow: 0 1.5rem 3rem -1.5rem rgb(33 76 46 / 0.25);
  }
  .formular { display: grid; gap: 1.25rem; grid-template-columns: repeat(6, 1fr); }
  .formular > * { grid-column: 1 / -1; }
  @media (min-width: 40rem) {
    .formular .halb { grid-column: span 3; }
    .formular .drittel { grid-column: span 2; }
    .formular .zweidrittel { grid-column: span 4; }
  }
  .eingabe {
    display: grid; gap: 0.35rem;
    label, legend { font-family: var(--font-titel); font-weight: 500; font-size: 0.95rem; color: var(--gruen); }
    input, select, textarea {
      width: 100%;
      padding: 0.8rem 0.95rem;
      border: 1.5px solid #5f7d69; /* Styleguide `rand-eingabe`, ≥ 3:1 */
      border-radius: var(--rund-klein);
      background: var(--papier);
      font-family: var(--font-text);
      font-size: 1rem;
      transition: border-color 0.2s, background-color 0.2s;
      &:focus { outline: none; border-color: var(--gruen); background: white; box-shadow: 0 0 0 2px var(--gruen); }
    }
    textarea { min-height: 7rem; resize: vertical; field-sizing: content; }
    .fehler { display: none; font-size: 0.85rem; color: #9b2c1f; }
    /* Fehler erst nach Nutzerinteraktion zeigen: :user-invalid + :has() */
    &:has(:user-invalid) {
      input, select, textarea { border-color: #b3402f; background: #fdf3f1; }
      .fehler { display: block; }
    }
      }
  fieldset.eingabe { border: 0; padding: 0; }
  .wahl {
    display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    label {
      display: flex; gap: 0.7rem; align-items: flex-start;
      border: 1.5px solid var(--linie); border-radius: var(--rund-klein);
      padding: 0.9rem 1rem; cursor: pointer;
      font-family: var(--font-text); font-weight: 400; color: var(--tinte);
      transition: border-color 0.2s, background-color 0.2s;
      strong { display: block; font-family: var(--font-titel); font-weight: 500; color: var(--gruen); }
      &:has(:checked) { border-color: var(--gruen); background: var(--moos); }
    }
    input { width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; accent-color: var(--gruen); flex: none; }
  }
  .wahl--klein {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    label { padding: 0.75rem 0.8rem; font-size: 0.95rem; }
  }
  .zustimmung {
    display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--s-1); line-height: 1.55;
    input { width: 1.5rem; height: 1.5rem; accent-color: var(--gruen); flex: none; margin-top: 0.05rem; }
  }
  .formular__ende { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--linie); padding-top: 1.5rem; }
  .formular__ende p { font-size: var(--s-1); color: var(--text-leise); max-width: 28rem; }
  /* Beitritt als Organisation: Feld für den Namen; Geburtsdatum nur bei Privatpersonen */
  :root.js .nur-organisation { display: none; }
  :root.js .ist-organisation .nur-organisation { display: grid; }
  :root.js .ist-organisation .nur-person { display: none; }
  .nur-organisation .klein { font-size: 0.85rem; }
  .bestaetigung[hidden] { display: none; }
  .bestaetigung { margin-top: 1.5rem; }

  /* ================= Rechtstexte ================= */
  .rechtstext h2 { font-size: var(--s1); margin-top: 2.25rem; }
}

@layer utilities {
  .nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  a.nur-sr:focus { position: fixed; z-index: 100; top: 0.75rem; left: 0.75rem; width: auto; height: auto; clip-path: none; padding: 0.6rem 1rem; border-radius: var(--rund-klein); background: var(--gruen); color: var(--papier); }
  .pflicht { color: var(--gruen); font-weight: 700; }
  .klein { font-size: var(--s-1); color: var(--text-leise); }
  .zentriert { text-align: center; }
  .mt-2 { margin-top: 2rem; }
}

/* Übergänge zwischen Seiten: Titel gleitet, Kopfzeile bleibt stehen */
::view-transition-old(seitentitel),
::view-transition-new(seitentitel) { animation-duration: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  .kopf, .fuss, .menue-knopf, .satzung__werkzeug { display: none; }
  .paragraf::details-content { block-size: auto !important; content-visibility: visible !important; }
  body { background: white; }
}

/* =====================================================================
   Effekte & Animationen
   Regeln für flüssige Darstellung auf Handys:
   · animiert werden nur transform/translate/scale/rotate und opacity (GPU)
   · nichts wird innerhalb eines SVG animiert, jede bewegte Ebene ist ein eigenes Element
   · Daueranimationen pausieren, sobald sie nicht zu sehen sind (main.js)
   Alles läuft nur, wenn weder das Gerät "weniger Bewegung" meldet
   noch der Schalter im Fuß auf "aus" steht.
   ===================================================================== */
@layer components {
  /* ---------- Nach-oben-Knopf ---------- */
  .nach-oben {
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 15;
    width: 3.25rem; aspect-ratio: 1;
    display: grid; place-items: center;
    border: 2px solid var(--ocker); border-radius: 50%; cursor: pointer;
    background: var(--gruen); color: var(--papier);
    box-shadow: 0 0.75rem 1.5rem -0.75rem rgb(21 49 29 / 0.5);
    svg { width: 1.25rem; }
    span { display: contents; }
    &:hover { background: var(--gruen-tief); }
  }
  :root.js .nach-oben { opacity: 0; scale: 0.6; visibility: hidden; transition: opacity 0.25s, scale 0.25s, visibility 0s linear 0.25s; }
  :root.js.weit-gescrollt .nach-oben { opacity: 1; scale: 1; visibility: visible; transition-delay: 0s; }

  .bewegung-schalter { background: none; border: 0; padding: 0; color: var(--papier); font: inherit; text-decoration: underline; text-decoration-color: rgb(244 247 240 / 0.35); text-underline-offset: 0.18em; cursor: pointer; }

  /* ---------- Schatten unter der Kopfzeile erscheint beim Scrollen (nur Deckkraft → GPU) ---------- */
  .kopf::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    box-shadow: 0 10px 30px -18px rgb(21 49 29 / 0.45);
    opacity: 0; transition: opacity 0.3s;
  }
  :root.gescrollt .kopf::before { opacity: 1; }

  /* ---------- 3D-Kippen mit Lichtreflex (nur Maus) ---------- */
  [data-kippen] { position: relative; }
  @media (hover: hover) and (pointer: fine) {
    [data-kippen] {
      transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
      transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
      &::after {
        content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
        background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 0.4), transparent 55%);
        opacity: var(--glanz, 0); transition: opacity 0.4s;
        mix-blend-mode: soft-light;
      }
      &:hover { transition-duration: 0.15s; will-change: transform; }
    }
  }

  /* ---------- Aktiver Eintrag im Inhaltsverzeichnis (Scrollspy) ---------- */
  .inhaltsnav a[aria-current="true"] { color: var(--gruen-tief); font-weight: 700; border-left-color: var(--ocker); background: var(--ocker-hell); @media (min-width: 62rem) { background: none; } }

  /* ---------- Blätterregen nach dem Absenden ---------- */
  .blatt { position: fixed; z-index: 50; width: 1.1rem; pointer-events: none; }
  .scroll-marke { position: absolute; top: 0; left: 0; width: 1px; pointer-events: none; }
}

@layer pages {
  /* ---------- Vom Acker zum Lebensraum ---------- */
  .verwandlung { view-timeline: --verw; background: var(--papier); padding-block: 2rem clamp(3.5rem, 8vw, 6rem); }
  .verwandlung__buehne {
    display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
    @media (min-width: 56rem) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  }
  .verwandlung__notiz { color: var(--text-leise); margin-top: 0.75rem; }
  .schritte { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.5rem; }
  .schritt { border-left: 3px solid var(--ocker); padding-left: 1.1rem; h3 { margin-bottom: 0.3rem; } }
  .verwandlung__fortschritt { display: none; }

  /* Die Szene besteht aus gestapelten Ebenen; Endzustand (blühende Wiese) ist der Normalzustand. */
  .szene {
    position: relative; width: 100%; aspect-ratio: 600 / 420;
    border-radius: 28px; overflow: clip; isolation: isolate;
    box-shadow: 0 2rem 3rem -2rem rgb(21 49 29 / 0.45);
    contain: layout paint;
  }
  .v-himmel { position: absolute; inset: 0; background: #d9dcd4; }
  .v-himmel--blau { background: #d8e7ee; }
  .v-ebene { position: absolute; display: block; overflow: visible; }
  .v-furchen { opacity: 0; }
  .v-hecke, .v-baum { transform-origin: 50% 100%; }
  .v-falter { position: absolute; }
  .v-falter__flug, .v-falter__fluegel { width: 100%; height: 100%; }
  .v-falter__fluegel { display: block; }
}

/* ---------- alles, was sich bewegt ----------
   Maus/Trackpad: Effekte hängen direkt an der Scrollposition (Parallaxe, Scroll-Geschichte).
   Handy/Tablet:  nichts ist an die Scrollposition gekoppelt – Touch-Browser aktualisieren solche
                  Effekte während des Wischens nicht zuverlässig, dann „springt“ das Bild beim Loslassen.
                  Stattdessen spielen die Animationen einmal ab, sobald ein Bereich ins Bild kommt. */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-bewegung="aus"]) {
    /* Auftritt der Startseite: Titel, Text und Knöpfe nacheinander */
    .held__text > * { animation: auftritt 0.9s cubic-bezier(.2, .8, .2, 1) both; }
    .held__text > :nth-child(2) { animation-delay: 0.12s; }
    .held__text > :nth-child(3) { animation-delay: 0.24s; }

    /* Hügel: beim Laden wachsen Bäume, die Sonne geht auf */
    .landschaft .baum { animation: wachsen 0.9s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(0.25s + var(--i) * 0.09s); }
    .landschaft .sonne--aufgang { animation: aufgang 1.4s cubic-bezier(.2, .8, .2, 1) 0.2s both; }
  }

  /* ======== Maus / Trackpad ======== */
  @media (hover: hover) and (pointer: fine) {
    :root:not([data-bewegung="aus"]) {
      /* Maus-Parallaxe im Kopfbild */
      .held .ebene-1 { transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -5px)); }
      .held .ebene-2 { transform: translate(calc(var(--mx, 0) * -22px), calc(var(--my, 0) * -8px)); }
      .held .sonne-scroll { transform: translate(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 10px)); }
      .held :is(.ebene-1, .ebene-2, .sonne-scroll) { transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
    }

    @supports (animation-timeline: scroll()) {
      :root:not([data-bewegung="aus"]) {
        /* Hügel-Parallaxe beim Scrollen */
        .landschaft .ebene-1 { animation: hebe-1 linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
        .landschaft .ebene-2 { animation: hebe-2 linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
        .landschaft .sonne-scroll { animation: sinke linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
        .landschaft--klein :is(.ebene-1, .ebene-2, .sonne-scroll) { animation-range: 0 45vh; }
        .landschaft .sonne-scroll.sonne--aufgang { animation: sinke linear both, aufgang 1.4s cubic-bezier(.2, .8, .2, 1) 0.2s both; animation-timeline: scroll(root), auto; animation-range: 0 45vh, normal; }
      }
    }

    @supports (animation-timeline: view()) {
      :root:not([data-bewegung="aus"]) {
        .fluss__deckel { animation: aufziehen linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
        .bild { animation: bild-rein linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
        .bild > * { animation: heranzoomen linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }

        /* Scroll-Geschichte: Bühne bleibt stehen, die Szene verwandelt sich */
        .verwandlung { height: 320vh; padding: 0; }
        .verwandlung__buehne { position: sticky; top: 3.75rem; height: calc(100vh - 3.75rem); height: calc(100svh - 3.75rem); align-content: center; }
        .schritte { grid-template-areas: "s"; }
        .schritt { grid-area: s; animation: schritt linear both; animation-timeline: --verw; }
        .schritt:nth-child(1) { animation-name: schritt-erster; animation-range: contain 0% contain 33%; }
        .schritt:nth-child(2) { animation-range: contain 33% contain 66%; }
        .schritt:nth-child(3) { animation-name: schritt-letzter; animation-range: contain 66% contain 100%; }
        .verwandlung__fortschritt {
          display: block; height: 4px; margin-top: 2rem; border-radius: 2px; background: var(--moos); overflow: hidden;
          span { display: block; height: 100%; background: var(--ocker); transform-origin: left; animation: wachsen-x linear both; animation-timeline: --verw; animation-range: contain 0% contain 100%; }
        }
        .v-himmel--blau { animation: einblenden-o linear both; animation-timeline: --verw; animation-range: contain 30% contain 90%; }
        .v-sonne { animation: sonne-auf linear both; animation-timeline: --verw; animation-range: contain 55% contain 90%; }
        .v-furchen { animation: furchen linear both; animation-timeline: --verw; animation-range: contain 10% contain 35%; }
        .v-wiese { animation: einblenden-o linear both; animation-timeline: --verw; animation-range: contain 25% contain 50%; }
        .v-gras-1 { animation: gras linear both; animation-timeline: --verw; animation-range: contain 28% contain 42%; }
        .v-gras-2 { animation: gras linear both; animation-timeline: --verw; animation-range: contain 34% contain 50%; }
        .v-gras-3 { animation: gras linear both; animation-timeline: --verw; animation-range: contain 42% contain 58%; }
        .v-hecke { animation: hecke linear both; animation-timeline: --verw; animation-range: contain 36% contain 55%; }
        .v-baum { animation: wachsen linear both; animation-timeline: --verw; animation-range: contain 40% contain 62%; }
        .v-blumen-1 { animation: blumen linear both; animation-timeline: --verw; animation-range: contain 62% contain 74%; }
        .v-blumen-2 { animation: blumen linear both; animation-timeline: --verw; animation-range: contain 68% contain 82%; }
        .v-blumen-3 { animation: blumen linear both; animation-timeline: --verw; animation-range: contain 76% contain 90%; }
        .v-falter-gruppe { animation: einblenden-o linear both; animation-timeline: --verw; animation-range: contain 84% contain 95%; }
        .v-falter__flug { animation: gaukeln 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.1s); }
        .v-falter__fluegel { animation: flattern 0.25s ease-in-out infinite alternate; }
      }
    }
  }

  /* ======== Handy / Tablet: einmal abspielen, sobald sichtbar (Klasse .ist-sichtbar aus main.js) ======== */
  @media (hover: none), (pointer: coarse), (pointer: none) {
    :root.js:not([data-bewegung="aus"]) {
      /* Hügel steigen beim Laden einmal sanft auf */
      .held .ebene-1 { animation: hochkommen 1.2s cubic-bezier(.2, .8, .2, 1) 0.1s both; }
      .held .ebene-2 { animation: hochkommen 1.2s cubic-bezier(.2, .8, .2, 1) 0.25s both; }

      .fluss__deckel { animation: aufziehen 1.8s cubic-bezier(.5, 0, .3, 1) 0.2s both; }
      .bild { animation: bild-rein 0.8s cubic-bezier(.2, .8, .2, 1) both; }
      .bild > * { animation: heranzoomen 1.4s cubic-bezier(.2, .8, .2, 1) both; }
      .ablauf::before { animation: linie 1.2s cubic-bezier(.3, .7, .3, 1) 0.2s both; }
      .ablauf li::before { animation: auftauchen 0.5s cubic-bezier(.3, 1.4, .5, 1) both; }
      .ablauf li:nth-child(1)::before { animation-delay: 0.1s; }
      .ablauf li:nth-child(2)::before { animation-delay: 0.45s; }
      .ablauf li:nth-child(3)::before { animation-delay: 0.8s; }
      .ablauf li:nth-child(4)::before { animation-delay: 1.15s; }

      /* Verwandlung als kurzer Film (6.5 s), Schritte leuchten nacheinander auf */
      .schritt { animation: schritt-an 0.6s ease-out both; }
      .schritt:nth-child(2) { animation-delay: 2.15s; }
      .schritt:nth-child(3) { animation-delay: 4.29s; }
      .verwandlung__fortschritt {
        display: block; height: 4px; margin-top: 1.5rem; border-radius: 2px; background: var(--moos); overflow: hidden;
        span { display: block; height: 100%; background: var(--ocker); transform-origin: left; animation: wachsen-x 6.5s linear both; }
      }
      .v-himmel--blau { animation: einblenden-o 3.90s cubic-bezier(.3, .7, .3, 1) 1.95s both; }
      .v-sonne { animation: sonne-auf 2.27s cubic-bezier(.3, .7, .3, 1) 3.58s both; }
      .v-furchen { animation: furchen 1.62s cubic-bezier(.3, .7, .3, 1) 0.65s both; }
      .v-wiese { animation: einblenden-o 1.62s cubic-bezier(.3, .7, .3, 1) 1.62s both; }
      .v-gras-1 { animation: gras 0.91s cubic-bezier(.3, .7, .3, 1) 1.82s both; }
      .v-gras-2 { animation: gras 1.04s cubic-bezier(.3, .7, .3, 1) 2.21s both; }
      .v-gras-3 { animation: gras 1.04s cubic-bezier(.3, .7, .3, 1) 2.73s both; }
      .v-hecke { animation: hecke 1.24s cubic-bezier(.3, .7, .3, 1) 2.34s both; }
      .v-baum { animation: wachsen 1.43s cubic-bezier(.3, .7, .3, 1) 2.60s both; }
      .v-blumen-1 { animation: blumen 0.78s cubic-bezier(.3, .7, .3, 1) 4.03s both; }
      .v-blumen-2 { animation: blumen 0.91s cubic-bezier(.3, .7, .3, 1) 4.42s both; }
      .v-blumen-3 { animation: blumen 0.91s cubic-bezier(.3, .7, .3, 1) 4.94s both; }
      .v-falter-gruppe { animation: einblenden-o 0.71s cubic-bezier(.3, .7, .3, 1) 5.46s both; }
      .v-falter__flug { animation: gaukeln 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.1s); }
      .v-falter__fluegel { animation: flattern 0.25s ease-in-out infinite alternate; }

      /* bis der Bereich sichtbar ist, im Startzustand warten */
      :is(.bild, .fluss, .ablauf, .verwandlung):not(.ist-sichtbar) *,
      .ablauf:not(.ist-sichtbar) li::before,
      .ablauf:not(.ist-sichtbar)::before,
      .bild:not(.ist-sichtbar) { animation-play-state: paused; }
    }
  }
}
@keyframes hebe-1 { to { translate: 0 18%; } }
@keyframes hebe-2 { to { translate: 0 9%; } }
@keyframes sinke { to { translate: 0 45%; } }
@keyframes wachsen { from { scale: 0; } }
@keyframes aufgang { from { transform: translateY(35%); opacity: 0.4; } }
@keyframes hochkommen { from { translate: 0 22%; } }
@keyframes schritt-an { from { opacity: 0.35; } }
@keyframes auftritt { from { opacity: 0; translate: 0 1.5rem; } }
@keyframes aufziehen { from { translate: 0 0; } to { translate: 101% 0; } }
@keyframes bild-rein { from { opacity: 0.2; translate: 0 2.5rem; scale: 0.96; } }
@keyframes heranzoomen { from { scale: 1.12; } }
@keyframes schritt { 0% { opacity: 0; translate: 0 1.5rem; } 20%, 80% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -1.5rem; } }
@keyframes schritt-erster { 0%, 80% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -1.5rem; } }
@keyframes schritt-letzter { 0% { opacity: 0; translate: 0 1.5rem; } 20%, 100% { opacity: 1; translate: 0 0; } }
@keyframes wachsen-x { from { scale: 0 1; } }
@keyframes einblenden-o { from { opacity: 0; } }
@keyframes sonne-auf { from { translate: 0 262%; } }
@keyframes furchen { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gras { from { opacity: 0; translate: 0 3%; } }
@keyframes hecke { from { opacity: 0; scale: 1 0; } }
@keyframes blumen { from { opacity: 0; translate: 0 4%; scale: 1 0.96; } }
@keyframes gaukeln { 0% { translate: 0 0; rotate: -8deg; } 50% { translate: 60% -90%; } 100% { translate: -40% -150%; rotate: 10deg; } }
@keyframes flattern { to { scale: 0.35 1; } }


/* Daueranimationen anhalten, solange ihr Bereich nicht sichtbar ist (spart Akku und Rechenzeit) */
[data-anim-bereich].ruht :is(.v-falter__flug, .v-falter__fluegel) { animation-play-state: paused !important; }

/* Schalter "Animationen ausschalten" */
:root[data-bewegung="aus"] *,
:root[data-bewegung="aus"] *::before,
:root[data-bewegung="aus"] *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
:root[data-bewegung="aus"] [data-kippen] { transform: none !important; }

/* Groß-Gerau als Zentrum hervorheben */
@layer pages {
  .region .orte li { font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem); white-space: nowrap; }
  .region .orte li.orte__zentrum { background: var(--ocker); border-color: var(--ocker); color: var(--gruen-tief); }
}

/* Häufige Fragen (Seite „Für Schulen“): ohne Nummernspalte */
@layer pages {
  .faq .paragraf summary { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .faq .paragraf .paragraf__text { padding-left: 0; }
}
