/* WEB-SCROLL1 (F1616): Bewegungsschicht (Scrollytelling) - animiert nur opacity und die Transform-Familie (translate/scale), nie
   Layout-Werte. Verborgener Ausgangszustand NUR unter html.bw (Kopf-Skript js/bewegung-kopf.js, vor dem ersten Zeichnen) und NUR bei
   prefers-reduced-motion: no-preference - ohne JS oder mit reduzierter Bewegung ist alles sofort sichtbar, unversetzt, ohne Haften.
   Reveal: src/scripts/bewegung.js (Motion). Parallaxe und Fortschrittslinie: CSS-Scroll-/View-Timeline (Compositor, kein
   Scroll-Listener), nur wo unterstuetzt; Parallaxe +-3 % der Bildhoehe, unter 48 rem und bei grobem Zeiger ohne Hover halbiert.
   Haften (Erzaehlstrecke, Strecke.astro): position: sticky, kein JS-Pinning. Wer Elemente markiert: nie zusammen mit data-einblenden. */

/* Erzaehlstrecke: Raster ab 64 rem auch ohne Bewegung (gleiches Bild mit/ohne JS), Haften nur mit Bewegung */
.bw-fortschritt-bahn { display: none; }
@media (min-width: 64rem) {
  .bw-strecke { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: calc(var(--tv-spalte) * 2); align-items: start; }
  .bw-strecke-haft > .tv-titel-block { margin-bottom: 0; grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  html.bw [data-bw]:not(.bw-da):not(:focus-within), html.bw [data-bw-gruppe] > :not(.bw-da):not(:focus-within) { opacity: 0; }
  @media (min-width: 64rem) {
    html.bw .bw-strecke-haft { position: sticky; top: calc(var(--tv-kopf-hoehe) + 2rem); }
  }
  @supports (animation-timeline: view()) {
    html.bw [data-bw-parallax] { overflow: clip; }
    html.bw [data-bw-parallax] img { --bw-hub: 3%; scale: 1.07; animation: bw-parallax linear both; animation-timeline: view(); animation-range: cover; }
    @media (max-width: 47.99rem), (pointer: coarse) and (hover: none) {
      html.bw [data-bw-parallax] img { --bw-hub: 1.5%; scale: 1.035; }
    }
    @media (min-width: 64rem) {
      html.bw .bw-strecke { view-timeline: --bw-strecke block; }
      html.bw .bw-fortschritt-bahn { display: block; height: 2px; max-width: 12rem; margin-top: 2rem; background: var(--tv-rand); overflow: hidden; }
      html.bw .bw-fortschritt { display: block; height: 100%; background: var(--tv-rot); transform-origin: 0 50%;
        animation: bw-fortschritt linear both; animation-timeline: --bw-strecke; animation-range: contain; }
    }
  }
}
@keyframes bw-parallax { from { translate: 0 calc(var(--bw-hub) * -1); } to { translate: 0 var(--bw-hub); } }
@keyframes bw-fortschritt { from { scale: 0 1; } to { scale: 1 1; } }
@media print { html.bw [data-bw], html.bw [data-bw-gruppe] > * { opacity: 1 !important; translate: none !important; } }
