/* =========================================================
   Motion-Graphic-Band „Bühne“ – Grundlayout = statische Fassung (ohne JS) und kompaktes Review-Band (Akt 2)
   Alles unter .dn-stage-slot / #dn-stage. Zustandsklassen am <html> (dn-stage-opener, dn-stage-compact) setzt das
   Kopfskript; ohne Klasse = Fassung ohne JavaScript.
   Entscheidung Anwender 2026-10-20 (Ruling 12): kein Logo im kompakten/statischen Band (doppelt zum Seitenkopf-Logo);
   oben eine schmale Zeile Claim links / „Alle Reviews →“ rechts, darunter die Karten über die volle Bandbreite.
   Ruling 28 (2026-10-22): unter 768 px Fensterbreite gibt es kein Band (weder Opener noch Review-Band, auch ohne JS) –
   die Startseite sieht dort aus wie vor dem Motion Graphic. display:none verhindert auch das Laden von Logo und Covern
   (beide loading="lazy"). Letzte Fassung mit Handy-Band/Karussell: local/snapshots/stage/snap-7/dn-stage.css.vor-snap7.
   ========================================================= */
/* „not all and (min-width: 768px)“ statt der früheren Obergrenze 767 px – deckt auch Bruchteil-Breiten (767,5 px bei Zoom/Skalierung) und
   entspricht genau der Abfrage im Kopfskript (functions.php) und in dn-stage.js (Fix-Runde 1, Ruling 30). */
@media not all and (min-width: 768px) {
  .dn-stage-slot { display: none; }
}

/* Platzhalter im Fluss: in jedem Zustand die kompakte Höhe (Ruling 21, CLS 0). Container für cqw (Überlagerungshöhe, Ruling 29).
   z-index 10 = über der Slideshow (#slideshow z 1), unter dem Menü (#topnav z 20 mit Untermenüs). */
.dn-stage-slot { position: relative; z-index: 10; container-type: inline-size; }

.dn-stage {
  position: relative; overflow: hidden; height: 240px;
  background: #0b0b0b; color: #fff;
  border-bottom: 2px solid var(--accent, #c4161c);
  font-family: var(--font-body, system-ui, sans-serif);
}
/* Canvas, Genres und „Überspringen“ gehören zum Opener (Canvas zusätzlich zur Ruhe-Glut) */
.dn-stage .dn-stage__canvas,
.dn-stage .dn-stage__genres,
.dn-stage .dn-stage__skip { display: none; }
/* Logo nur im Opener; das Markup bleibt im HTML (Opener braucht es) */
.dn-stage .dn-stage__logo { display: none; }

.dn-stage .dn-stage__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw, 990px); height: 100%; margin: 0 auto;
  padding: 12px var(--gutter, 16px) 14px;
  display: grid; gap: 10px 20px; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "claim all" "cards cards";
}
.dn-stage .dn-stage__logo picture { display: block; }
.dn-stage .dn-stage__logo img { display: inline-block; max-width: 100%; height: auto; }

/* Claim-Zeile: Claim links (mit kurzem roten Strich), „Alle Reviews →“ rechts */
.dn-stage .dn-stage__claim {
  grid-area: claim; min-width: 0; margin: 0; text-align: left; color: #bdbdbd;
  font-size: 13px; line-height: 1.35; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dn-stage .dn-stage__claim::before {
  content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 9px; vertical-align: middle;
  background: var(--accent, #c4161c); box-shadow: 0 0 6px rgba(224, 36, 42, .8);
}
.dn-stage .dn-stage__all {
  grid-area: all; justify-self: end; white-space: nowrap;
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; text-decoration: none;
  padding: 2px 1px 3px; border-bottom: 1px solid var(--accent, #c4161c);
}
.dn-stage .dn-stage__all:hover,
.dn-stage .dn-stage__all:focus-visible { color: var(--accent-hover, #e0242a); }
.dn-stage .dn-stage__all:focus-visible { outline: 3px solid var(--accent-hover, #e0242a); outline-offset: 2px; }

/* Karten: 3 nebeneinander über die volle Breite (768–899 px hochkant) */
.dn-stage .dn-stage__cards { grid-area: cards; display: flex; flex-direction: row; gap: 12px; min-width: 0; min-height: 0; align-self: stretch; }
.dn-stage .dn-stage__card {
  flex: 1 1 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  justify-items: stretch; align-items: start; align-content: start; row-gap: 4px; min-width: 0;
  padding: 6px; overflow: hidden; border-radius: var(--radius, 10px);
  background: rgba(22, 22, 22, .88); border: 1px solid #2a2a2a;
  color: #fff; text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.dn-stage .dn-stage__card:hover,
.dn-stage .dn-stage__card:focus-visible {
  border-color: var(--accent, #c4161c);
  box-shadow: 0 0 0 1px var(--accent, #c4161c), 0 0 18px rgba(196, 22, 28, .55);
}
.dn-stage .dn-stage__card:focus-visible { outline: 3px solid var(--accent-hover, #e0242a); outline-offset: 2px; }
.dn-stage .dn-thumb { width: 96px; height: 96px; justify-self: center; border-radius: 6px; overflow: hidden; background: #000; }
.dn-stage .dn-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; margin: 0; padding: 0; border: 0; }
.dn-stage .dn-rating { left: 4px; bottom: 4px; }
.dn-stage .dn-stage__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  align-self: start; min-width: 0;
  color: #fff; font-size: 14px; font-weight: 600; line-height: 1.25;
  overflow-wrap: anywhere;
}
.dn-stage .dn-stage__date { display: block; align-self: end; color: #8f8f8f; font-size: 12px; line-height: 1.2; }

/* Ab 900 px: Karten quer (Cover links, Titel/Datum rechts) – nutzt die volle Bandbreite */
@media (min-width: 900px) {
  .dn-stage .dn-stage__card {
    grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch; align-content: stretch; column-gap: 14px; row-gap: 6px; padding: 10px;
  }
  .dn-stage .dn-thumb { grid-row: 1 / 3; align-self: center; width: 150px; height: 150px; }
  .dn-stage .dn-stage__title { align-self: end; font-size: 16px; line-height: 1.3; -webkit-line-clamp: 4; }
  .dn-stage .dn-stage__date { align-self: start; }
}

/* =========================================================
   Zustände (Klassen am <html>, vom Kopfskript gesetzt; Opener nur ab 768 px)
   Höhen: kompakt 240 px; Opener-Überlagerung bis zur Oberkante der Leiste „Tipps der Redaktion“ (Ruling 29).
   ========================================================= */
/* Opener (Aufgabe 4): Canvas als Bühne; darüber das echte Logo, Claim und Genres, gesteuert von dn-stage.js
   über Klassen am Band (is-hit, is-claim, li.is-on, is-transition) und Custom Properties (--fill 0..1, --glow 0..1).
   Ruling 21 (Überlagerung): der Platzhalter behält 240 px, die Bühne liegt absolut darüber (Seite darunter bewegt sich nie).
   Ruling 29: Höhe --dn-ov = vom Platzhalter bis zur Oberkante der Leiste „Tipps der Redaktion“ (.slides-nav-container),
   also 240 px + Folienhöhe. Bei Vollbreiten-Folien ist das Bild 990:310 und so breit wie der Platzhalter (100cqw) –
   damit steht die richtige Höhe schon im ersten Bild. dn-stage.js misst beim Start nach (andere Folien, ältere Browser).
   Ohne Slideshow: 400 px. */
.dn-stage-opener .dn-stage-slot { height: 240px; }
.dn-stage-opener .dn-stage { --dn-ov: 400px; position: absolute; top: 0; left: 0; right: 0; height: var(--dn-ov); }
/* In @supports: Safari 15.4–15.6 kennt :has, aber keine Container-Einheiten – dort bliebe sonst eine ungültige Höhe (Ruling 30);
   ohne cqw gilt 400 px, bis dn-stage.js nachmisst. */
@supports (width: 1cqw) {
  .dn-stage-opener .dn-stage-slot:has(+ #home-top .slides-nav-container):not(:has(+ #home-top .slides li:not(.full-width))) > .dn-stage {
    --dn-ov: calc(240px + 100cqw * 310 / 990);
  }
}
.dn-stage-opener .dn-stage .dn-stage__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.dn-stage-opener .dn-stage .dn-stage__inner {
  height: 100%; padding-top: 12px; padding-bottom: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.dn-stage-opener .dn-stage .dn-stage__cards,
.dn-stage-opener .dn-stage .dn-stage__all { display: none; }
.dn-stage-opener .dn-stage .dn-stage__logo { display: block; text-align: center; }
/* Logo: füllt sich von unten nach oben (clip-path über --fill), glüht kurz in #e0242a */
.dn-stage-opener .dn-stage .dn-stage__logo picture {
  filter: drop-shadow(0 0 calc(var(--glow, 0) * 16px) rgba(224, 36, 42, .9)) brightness(calc(1 + var(--glow, 0) * .3));
}
.dn-stage-opener .dn-stage .dn-stage__logo img {
  width: min(560px, 64vw);
  clip-path: inset(calc((1 - var(--fill, 0)) * 100%) 0 0 0);
}
.dn-stage-opener .dn-stage .dn-stage__claim {
  align-self: center; text-align: center; font-size: 16px; color: #d9d0d0; letter-spacing: .04em; text-shadow: 0 1px 6px #000;
  white-space: normal; overflow: visible;
  opacity: 0; transform: translateY(8px); transition: opacity .7s ease-out, transform .7s ease-out;
}
.dn-stage-opener .dn-stage .dn-stage__claim::before { display: none; }
.dn-stage-opener .dn-stage.is-claim .dn-stage__claim { opacity: 1; transform: none; }
/* Genres: Großbuchstaben, sehr fett, weit gesperrt, rotes Glimmen; weiches Einblenden (>= 150 ms), kein Ausblenden */
.dn-stage-opener .dn-stage .dn-stage__genres {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
  margin: 0; padding: 0; list-style: none;
}
.dn-stage-opener .dn-stage .dn-stage__genres li {
  margin: 0; padding: 0; font-family: var(--font-head, system-ui, sans-serif);
  font-size: 19px; font-weight: 900; letter-spacing: .32em; line-height: 1.2; color: #f4e9e6;
  text-shadow: 0 0 6px rgba(224, 36, 42, .95), 0 0 16px rgba(196, 22, 28, .7);
  opacity: 0; transform: scale(.94); transition: opacity 250ms ease-out, transform 250ms ease-out;
}
.dn-stage-opener .dn-stage .dn-stage__genres li.is-on { opacity: 1; transform: none; }
/* Schlag: kurze Vibration (Versatz <= 3 px) nur innerhalb des Bands (overflow: hidden -> keine Überbreite der Seite) */
@keyframes dn-stage-hit {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-3px, 2px); }
  30% { transform: translate(3px, -2px); }
  45% { transform: translate(-2px, 1px); }
  65% { transform: translate(2px, -1px); }
  85% { transform: translate(-1px, 0); }
}
.dn-stage-opener .dn-stage.is-hit .dn-stage__canvas,
.dn-stage-opener .dn-stage.is-hit .dn-stage__inner { animation: dn-stage-hit 250ms linear 1; }
/* Filmkorn: feine Punktraster mit teilerfremden Kachelgrößen (reiner CSS-Verlauf, kein Bild) */
.dn-stage-opener .dn-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .22;
  background:
    radial-gradient(rgba(255, 255, 255, .08) .5px, transparent .9px) 0 0 / 5px 5px,
    radial-gradient(rgba(0, 0, 0, .5) .6px, transparent 1px) 2px 3px / 7px 7px,
    radial-gradient(rgba(255, 255, 255, .06) .6px, transparent 1px) 4px 1px / 11px 11px;
}
/* „Überspringen“ oben rechts (Ruling 30): die Überlagerung ist bis ca. 550 px hoch und reicht bei niedrigen Fenstern
   (z. B. 1366 × 657) unter den sichtbaren Bereich – unten läge der Knopf außer Sicht. Oben rechts bleibt er neben Logo/Claim (mittig). */
.dn-stage-opener .dn-stage .dn-stage__skip {
  display: block; position: absolute; z-index: 2; right: var(--gutter, 16px); top: 12px; bottom: auto;
  padding: 8px 14px; min-height: 36px; border-radius: 6px;
  background: rgba(0, 0, 0, .55); color: #fff; border: 1px solid #555;
  font: inherit; font-size: 13px; cursor: pointer;
}
.dn-stage-opener .dn-stage .dn-stage__skip:hover { border-color: var(--accent, #c4161c); }
.dn-stage-opener .dn-stage .dn-stage__skip:focus-visible { outline: 3px solid var(--accent-hover, #e0242a); outline-offset: 2px; }

/* Übergang (Aufgabe 5, Opener-Uhr 6000–6800 ms): die Überlagerung zieht sich in 800 ms auf die kompakte Höhe zurück
   und gibt die Slideshow frei (nur die absolut liegende Bühne ändert die Höhe, der Platzhalter nicht); das Logo
   verglüht (hell aufglühen + ausblenden), Genres und Claim blenden aus. Canvas und Inhalt behalten ihre Höhe und
   werden nur unten beschnitten – so verschiebt sich auch im Band nichts. */
.dn-stage.is-transition { transition: height 800ms cubic-bezier(.4, 0, .2, 1); }
.dn-stage-opener .dn-stage.is-transition { height: 240px; }
.dn-stage-opener .dn-stage.is-transition .dn-stage__canvas,
.dn-stage-opener .dn-stage.is-transition .dn-stage__inner { height: var(--dn-ov); }
.dn-stage-opener .dn-stage.is-transition .dn-stage__logo picture {
  opacity: 0;
  filter: drop-shadow(0 0 26px rgba(255, 138, 42, .95)) brightness(1.9);
  transition: opacity 520ms cubic-bezier(.4, 0, .6, 1) 80ms, filter 320ms ease-out;
}
.dn-stage-opener .dn-stage.is-transition .dn-stage__genres li { opacity: 0; transition-duration: 350ms !important; }
.dn-stage-opener .dn-stage.is-transition .dn-stage__claim { opacity: 0; transition: opacity .4s ease-in .15s; }
.dn-stage-opener .dn-stage.is-transition .dn-stage__skip { visibility: hidden; }

/* Akt 2 – kompaktes Review-Band */
/* Ruhe-Glut (dn-stage.js, nur ab 768 px und ohne „Bewegung reduzieren“): Canvas hinter Claim und Karten */
.dn-stage-compact .dn-stage.is-idle .dn-stage__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
/* Karten fahren nacheinander ein (nur nach dem Opener: Klasse is-pre kurz gesetzt), 0/150/300 ms versetzt */
.dn-stage-compact .dn-stage .dn-stage__card,
.dn-stage-compact .dn-stage .dn-stage__claim,
.dn-stage-compact .dn-stage .dn-stage__all {
  transition: opacity .45s ease-out var(--dn-d, 0ms), translate .5s cubic-bezier(.2, .7, .2, 1) var(--dn-d, 0ms),
    box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.dn-stage-compact .dn-stage .dn-stage__cards > :nth-child(2) { --dn-d: 150ms; }
.dn-stage-compact .dn-stage .dn-stage__cards > :nth-child(3) { --dn-d: 300ms; }
.dn-stage-compact .dn-stage.is-pre .dn-stage__card { opacity: 0; translate: 0 16px; }
.dn-stage-compact .dn-stage.is-pre .dn-stage__claim,
.dn-stage-compact .dn-stage.is-pre .dn-stage__all { opacity: 0; }

/* Weniger Bewegung: kein Opener (das Kopfskript setzt dann gleich „kompakt“); kein Überspringen-Knopf, keine Übergänge */
@media (prefers-reduced-motion: reduce) {
  .dn-stage .dn-stage__skip { display: none !important; }
  .dn-stage,
  .dn-stage .dn-stage__card,
  .dn-stage .dn-stage__claim,
  .dn-stage .dn-stage__all { transition: none !important; }
}
