/* Test-Startseite: Rundgang als Video statt 3D (Jacek 06.11.2026 nachts: „ich will nicht mehr eine Animation haben wie bis jetzt, also Renderings,
   sondern das Ganze als Video“; lib/home-v2.js videoStage, public/assets/startseite-video/home-video.js). Nur auf /test/startseite-video bzw. /en/test/home-video.
   Mehrere Videos liegen übereinander, das sichtbare ganz oben (z-index setzt das Skript); darunter bleiben die übrigen voll deckend, denn Safari
   pausiert unsichtbare stumme Videos – verdeckt reicht. Das Vorschaubild liegt zu Beginn über allem und blendet aus, sobald das erste Video läuft. */
.story-v .hv { position: absolute; inset: 0; overflow: hidden; background: var(--paper); }
.story-v.is-night .hv { background: #0f0b16; }
.hv picture { position: absolute; inset: 0; z-index: 100000; pointer-events: none; }   /* über allen Videos (deren z-index zählt das Skript hoch) */
.hv-v, .hv-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
/* 16:9: das Motiv steht in den rechten zwei Dritteln, links die Karte (EINBAU 2.) – schmalere Fenster schneiden eher links ab */
.hv-v, .hv-poster { object-position: 70% 50%; }
.hv-v { z-index: 1; opacity: 0; background: transparent; }
.hv-poster { transition: opacity .35s linear; }
.hv-poster.off { opacity: 0; }
/* 9:16 (Handy, Hochformat): Karte unten – breitere Bildschirme schneiden eher unten ab (lib/home-video.js VIDEO_PORTRAIT_MQ) */
@media (max-width: 760px), (max-aspect-ratio: 87/100) { .hv-v, .hv-poster { object-position: 50% 35%; } }
/* ohne Bewegung (Bewegung reduziert, Datensparmodus): nur Vorschaubilder je Station hinter den Kapiteln */
.static .story-v .hv picture { z-index: 100000; }
/* Bildausschnitt am Handy (home-video.js frameOf, Jacek 06.11.2026: „LED-Wandbilder verdeckt … geht sowas?“): Videos verschoben bzw. etwas kleiner
   (transform, Ursprung oben links); was am Rand frei wird, füllt eine unscharfe, vergrößerte Kopie des laufenden Bilds (Zeichenfläche .hv-fill),
   der untere Rand des Videos läuft weich hinein – keine Balken, keine Kante */
.hv-v { transform-origin: 0 0; }
.hv-fill { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: none; pointer-events: none; filter: blur(14px) brightness(.82);
  transform: scale(1.12); }
.hv.hv-fr .hv-fill { display: block; }
.hv.hv-fr .hv-v { inset: auto; left: 0; top: 0; width: var(--hv-w, 100%); height: var(--hv-h, 100%); max-width: none; max-height: none; object-fit: fill; }
/* weicher Rand unten nur so breit, wie darunter etwas frei ist (--hv-fade, home-video.js applyFrame; 1106c: vorher immer 72 px – schaltete der
   Ausschnitt ein, blendete unten plötzlich ein Streifen weg) */
.hv.hv-fr .hv-v { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--hv-fade, 0px)), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--hv-fade, 0px)), transparent 100%); }

/* Textkarten ab Station 1 (Jacek 06.11.2026: „Können wir vielleicht die Textkarten ein wenig transparenter machen und nicht weiß?“ – „die Startseite
   bleibt, es geht ab Station 1“): halbdurchsichtig dunkel (Ink #16131D) mit leichter Unschärfe dahinter, weiße Schrift, Akzent in Lila für dunklen
   Grund; seit 1107f auch die Eingangskarte am Globus (unten). Deckung so gewählt, dass weiße Schrift auch vor dem hellsten Bild jeder Station mindestens 4,5 : 1
   Kontrast hat (gemessen, LIESMICH); ohne backdrop-filter etwas deckender. Die Karte blendet selbst (home-video.js paintChapters) – blendete das
   Kapitel, wirkte die Unschärfe erst am Ende des Einblendens */
.story-v .ch:not(.front) { will-change: auto; }
.story-v .ch:not(.front) .ch-card { will-change: opacity, transform; background: rgba(22, 19, 29, .62); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 22px 56px -30px rgba(0, 0, 0, .7); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .story-v .ch:not(.front) .ch-card { background: rgba(22, 19, 29, .8); }
}
.story-v .ch:not(.front) .s-h2, .story-v .ch:not(.front) .s-body, .story-v .ch:not(.front) .s-note, .story-v .ch:not(.front) .chk,
.story-v .ch:not(.front) .plist b, .story-v .ch:not(.front) .ch-share li { color: #fff; }
/* Akzent: große Schrift (Überschriften) im Lila für dunklen Grund wie die Night (≥ 3 : 1 auch vor dem hellsten Bild), kleine Schrift heller (≥ 4,5 : 1) */
.story-v .ch:not(.front) .h-soft, .story-v .ch:not(.front) .hl { color: var(--lila-on-night); }
.story-v .ch:not(.front) .chk span:first-child, .story-v .ch:not(.front) .ch-share b, .story-v .ch:not(.front) .plist em { color: #E0CCFA; }
.story-v .ch:not(.front) .chk::before { background: var(--lila-on-night); }
.story-v .ch:not(.front) .plist { border-top-color: rgba(255, 255, 255, .55); }
.story-v .ch:not(.front) .plist li { border-bottom-color: rgba(255, 255, 255, .18); }
.story-v .ch:not(.front) .plist small { color: #E9E4F0; }
.story-v .ch:not(.front) .ch-share li { border-color: rgba(255, 255, 255, .4); }
.story-v .ch:not(.front) .s-link, .story-v .ch:not(.front) .s-note a { color: #fff; border-bottom-color: var(--lila-on-night); }
.story-v .ch:not(.front) .s-link:hover { color: #fff; }
.story-v .ch.night .ch-card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 22px 56px -30px rgba(0, 0, 0, .7); }
/* Eingangskarte am Globus (1107f, Jacek 07.11.2026 morgens, iPhone: „Mache die Kachel genau so dunkel wie alle anderen, ich glaube, das sieht besser
   aus“): dunkel wie die Karten ab Station 1 – vor dem hellen Globus deckender (.8 statt .62, sonst wirkte sie grau statt dunkel) */
.story-v .ch.front .ch-card { will-change: opacity; background: rgba(22, 19, 29, .8); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 22px 56px -30px rgba(0, 0, 0, .7); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .story-v .ch.front .ch-card { background: rgba(22, 19, 29, .9); } }
/* PC: ausblendende Karte (1108c, home-video.js paintChapters) – Grund, Unschärfe und Schatten gehen gemeinsam mit dem Inhalt, die Karte selbst
   bleibt deckend (Chrome schaltet die Unschärfe sonst sofort ab); gleiche Schattenform, nur durchsichtig, damit der Übergang weich ist */
.story-v .ch .ch-card.hv-out { background-color: rgba(22, 19, 29, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0), 0 22px 56px -30px rgba(0, 0, 0, 0); }
/* iPhone (1108f, Jacek 08.11.2026: „woher kommt dieser Blitz am Anfang? … der nervt“ – Bildschirmvideo: genau ein Bild ohne Karte, „Scrollen“ und
   „Überspringen“, der Globus dahinter blieb): beim Losfahren springt die Seite eine Station weiter (home-video.js jump); Safari führte die
   Kartenebene dabei ein Bild lang nicht mit, die Bühne schon. Eigene Ebene wie die Bühne, damit Safari sie beim Springen gleich mitführt */
.story-v .chapters { will-change: transform; }
.story-v .ch.front .front-title, .story-v .ch.front .front-meta a { color: #fff; }
.story-v .ch.front .front-title span { color: var(--lila-on-night); }
.story-v .ch.front .front-sub, .story-v .ch.front .front-lead, .story-v .ch.front .front-meta { color: #E9E4F0; }
.story-v .ch.front .front-sub::before { background: var(--lila-on-night); }
.story-v .ch.front .btn-ghost.tour-start { color: #fff; border-color: rgba(255, 255, 255, .55); }
/* Handy: dieselbe Karte unten, etwas kompakter (mehr Bild darüber) – Knöpfe bleiben 44 px hoch */
@media (max-width: 760px) {
  .story-v .ch:not(.front) { padding-bottom: 18px; gap: 12px; }
  .story-v .ch:not(.front) .ch-card { padding: 12px 14px 13px; gap: 7px; }
  .story-v .ch:not(.front) .s-h2 { font-size: 22px; line-height: 1.12; }
  .story-v .ch:not(.front) .s-body { font-size: 13.5px; line-height: 1.38; }
  .story-v .ch:not(.front) .plist li { padding: 4px 0; }
  .story-v .ch:not(.front) .ch-card > .ctas { margin-top: 4px; row-gap: 12px; }
  .story-v .ch.night .ch-card { padding-top: 13px; padding-bottom: 15px; }
}
/* Scroll-Hinweis als Pille mit Wort (1107h, Jacek mit Verweis auf solaxpower.com: „Mach mal so nen Scrollindikator auf der Seite hin. Sonst kapiert
   niemand, dass er weiter scrollen muss“): statt der zwei Winkel (v2-home.css .ch-hint) über jeder Karte eine dunkle Pille wie die Karten – Maus
   mit wanderndem Rad nach unten, bei Touch ein Fingerpunkt, der nach oben wischt (.hint-up wie bisher), daneben „Scrollen“ (home-video.js setzt
   das Wort). Abstand zur Karte + Höhe wie bei den Winkeln (Handy 6 + 52, PC 8 + 42 px), so bleibt der Bildausschnitt an den Stationen gleich
   (home-video.js hintTop). Ohne backdrop-filter – in der Karte (selbst mit Unschärfe) sähe er nur die Karte; deshalb deckender */
.story.story-v .ch-hint { left: 50%; bottom: calc(100% + 10px); width: auto; height: 40px; margin-left: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; padding: 0 16px 0 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(22, 19, 29, .8); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 10px 26px -14px rgba(0, 0, 0, .7);
  animation: hvCue 2.4s ease-in-out infinite; }
.story.story-v .ch-hint b { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; line-height: 1; }
/* Maus: Umriss (erstes i) und Rad (zweites i, wandert nach unten und verblasst) */
.story.story-v .ch-hint i { position: relative; left: auto; top: auto; flex: none; width: 16px; height: 24px; margin: 0; background: none;
  border: 2px solid #fff; border-radius: 9px; opacity: 1; translate: none; transform: none; animation: none; }
.story.story-v .ch-hint i + i { position: absolute; left: 20px; top: 50%; width: 2px; height: 6px; margin-top: -7px; border: 0; border-radius: 2px;
  background: #fff; animation: hvWheel 1.6s ease-in-out infinite; }
@keyframes hvWheel { 0% { opacity: 0; translate: 0 0; } 25% { opacity: 1; } 75% { opacity: 1; translate: 0 7px; } 100% { opacity: 0; translate: 0 9px; } }
@keyframes hvCue { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
/* Touch: Fingerpunkt auf einer kurzen Spur, wischt von unten nach oben */
.story.story-v.hint-up .ch-hint { animation-name: hvCueUp; }
.story.story-v.hint-up .ch-hint i { width: 4px; height: 26px; margin: 0 6px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .28);
  transform: none; animation: none; }
.story.story-v.hint-up .ch-hint i + i { left: 15px; width: 12px; height: 12px; margin: -6px 0 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(195, 154, 242, .45); animation: hvSwipe 1.6s ease-in-out infinite; }
@keyframes hvSwipe { 0% { opacity: 0; translate: 0 10px; } 20% { opacity: 1; } 70% { opacity: 1; translate: 0 -8px; } 100% { opacity: 0; translate: 0 -11px; } }
@keyframes hvCueUp { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.story.story-v.hint-off .ch-hint, .story.story-v.hint-off .ch-hint i { animation-play-state: paused; }
@media (max-width: 760px) {
  .story.story-v .ch-hint { bottom: calc(100% + 12px); height: 46px; padding: 0 19px 0 15px; gap: 10px; }
  .story.story-v .ch-hint b { font-size: 16px; }
  .story.story-v .ch-hint i + i { left: 22px; }
  .story.story-v.hint-up .ch-hint i + i { left: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .story.story-v .ch-hint, .story.story-v .ch-hint i + i, .story.story-v.hint-up .ch-hint i + i { animation: none; opacity: 1; translate: none; }
}
/* Ladeanzeige (1106c, Jacek: „Teilweise muss man 3× scrollen“): die Fahrt wartet nach einer Geste noch auf ihren Clip bzw. stockt – drei Punkte unten in
   der Mitte, erst nach 0,3 s (startet der Clip gleich, blinkt nichts); eine weitere Geste lässt sie kurz aufleuchten (.hv-ack). Lila Rand wie die
   Scroll-Pfeile, ohne Schrift */
.hv-wait-ui { position: absolute; left: 50%; bottom: 18%; z-index: 3; display: flex; gap: 7px; transform: translateX(-50%); opacity: 0; pointer-events: none;
  transition: opacity .15s linear; }
.story-v.hv-wait .hv-wait-ui { opacity: 1; transition: opacity .2s linear .3s; }
.hv-wait-ui i { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(129, 69, 189, .9), 0 1px 6px rgba(0, 0, 0, .35);
  animation: hvWait 1s ease-in-out infinite; animation-play-state: paused; }
.story-v.hv-wait .hv-wait-ui i { animation-play-state: running; }
.hv-wait-ui i:nth-child(2) { animation-delay: .15s; }
.hv-wait-ui i:nth-child(3) { animation-delay: .3s; }
@keyframes hvWait { 0%, 70%, 100% { transform: scale(.6); opacity: .55; } 35% { transform: scale(1); opacity: 1; } }
.story-v.hv-ack .hv-wait-ui { opacity: 1; animation: hvAck .45s ease-out; }
@keyframes hvAck { 0%, 100% { transform: translateX(-50%) scale(1); } 30% { transform: translateX(-50%) scale(1.45); } }
.static .hv-wait-ui { display: none; }
@media (prefers-reduced-motion: reduce) { .hv-wait-ui i { animation: none; opacity: 1; transform: none; } }
/* ?zeit=1: Anzeige zum Testen (Format, Clip, Zeit, Tempo, geladene MB) */
.hv-dbg { position: fixed; left: 6px; right: 6px; bottom: 6px; z-index: 2147483647; margin: 0; padding: 4px 7px; font: 11px/1.4 ui-monospace, Menlo, monospace;
  color: #fff; background: rgba(0, 0, 0, .75); border-radius: 6px; pointer-events: none; }
