/* =====================================================================
   Block 20 Borussen — Scroll-Scrub & Atmosphäre (Konzept-Seiten)
   ===================================================================== */

/* Sticky-Bühne: außen hoch, innen klebt der Viewport.
   Höhe bewusst kompakt — je kürzer, desto dichter die Animation pro Scroll. */
.scrub-stage { position: relative; height: 300vh; background: #070707; }
.scrub-stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
/* Buehnen-Medium: Loop-Video. object-fit:cover, weil das Video exakt 16:9
   ist und der Rahmen ebenfalls 16:9 — es entstehen also keine Balken, und
   bei abweichenden Rahmen wird sauber beschnitten statt verzerrt. */
.scrub-stage__sticky .scrub-stage__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Verdunklung + Vignette für Lesbarkeit der Overlays */
.scrub-stage__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(7, 7, 7, .28) 0%, rgba(7, 7, 7, .12) 38%, rgba(7, 7, 7, .6) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, .45) 0%, transparent 30%, transparent 60%, rgba(7, 7, 7, .78) 100%);
  pointer-events: none;
}

/* Overlay-Copy: Zeilen blenden über Fortschritts-Fenster ([data-in]/[data-out]) */
.scrub-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  pointer-events: none;
  padding: 0 var(--gutter, 24px);
}
.scrub-overlay > div { position: absolute; max-width: 860px; opacity: 0; will-change: opacity, transform; }
.scrub-overlay h1, .scrub-overlay h2 {
  color: #fff;
  /* Kompakter als früher: der Frame läuft in Contain-Darstellung (ganzes Bild
     sichtbar, Banner-Format) — die Headline soll ihn nicht erschlagen. */
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: .98;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.scrub-overlay p {
  font-size: clamp(16px, 2.2vw, 22px);
  margin: 0 auto;
  max-width: 640px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .7);
}
.scrub-overlay .accent { color: var(--yellow, #ffdf00); }
.scrub-overlay .btn { pointer-events: auto; margin-top: 22px; }

/* Scroll-Hinweis */
.scrub-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.scrub-hint::after {
  content: "";
  width: 2px;
  height: 34px;
  background: linear-gradient(180deg, var(--yellow, #ffdf00), transparent);
  animation: scrub-hint-drop 1.6s ease-in-out infinite;
}
@keyframes scrub-hint-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Scroll-Reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease, ease), transform .7s var(--ease, ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }

/* Parallax-Elemente nicht ruckeln lassen */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .scrub-stage { height: 100vh; }
  .scrub-overlay > div { opacity: 1 !important; transform: none !important; position: static; }
  .scrub-overlay { display: grid; align-content: center; gap: 18px; }
  .scrub-hint { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Kürzere Zwischen-Bühne (Variante B/C) */
.scrub-stage--short { height: 220vh; }

@media (max-width: 720px) {
  .scrub-stage { height: 240vh; }
  .scrub-stage--short { height: 180vh; }
}

/* Banner-Variante (Startseite): KEIN Pinning, keine schwarzen Balken.
   Das Banner ist ein normales 16:9-Loop-Video im Seitenfluss; die Overlay-
   Zeilen blenden ueber den Flow-Fortschritt ein und aus (siehe scrub.js).
   Bewusst maximal spezifisch + am Dateiende, damit Basis- und
   Reduced-Motion-Höhen sicher überschrieben werden. */
.scrub-stage.scrub-stage--banner { height: auto; }
.scrub-stage.scrub-stage--banner .scrub-stage__sticky {
  position: relative;
  top: auto;
  height: auto;
  aspect-ratio: 16 / 9;
}
