/* Neuentwurf /neu/ – Bewegungs-Varianten D, E, F, G (gemeinsam). Gilt nur mit html.fx. */

/* Leinwand einer three.js-Szene: füllt den Behälter, liegt hinter dem Inhalt, fängt keine Klicks */
.fx .fx-szene { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.fx .fx-szene.fx-da { opacity: 1; }
.fx .fx-szene.fx-hinten { z-index: -1; }
.fx .fx-szene canvas { display: block; width: 100% !important; height: 100% !important; }
.fx .fx-buehne-rel { position: relative; isolation: isolate; }
.fx .fx-buehne-rel > :not(.fx-szene) { position: relative; z-index: 1; }

/* Kippkarten */
.fx .fx-kipp { transform-style: preserve-3d; will-change: transform; }
.fx .fx-kipp-raum { perspective: 1100px; }
.fx .fx-kipp::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--fx-glanz-x, 50%) var(--fx-glanz-y, 50%), rgba(255, 255, 255, .28), transparent 55%); }
.fx .fx-kipp:hover::after { opacity: 1; }

/* Laufband (E, G) */
.fx .fx-laufband { overflow: hidden; white-space: nowrap; user-select: none; }
.fx .fx-laufband-spur { display: inline-flex; gap: .6em; will-change: transform; }
.fx .fx-laufband-spur span { display: inline-flex; align-items: center; gap: .6em; }
.fx .fx-laufband-spur span::after { content: "·"; opacity: .5; }

/* SplitText-Masken: Zeilen dürfen nicht abgeschnitten wirken */
.fx [data-fx-geteilt] { overflow: visible; }

/* Ruhig: nichts bewegt sich, Leinwände bleiben weg */
.fx-ruhig .fx-szene, .fx-ruhig .fx-nur-bewegt { display: none !important; }
@media (prefers-reduced-motion: reduce) { .fx .fx-szene, .fx .fx-nur-bewegt { display: none !important; } }

/* ---------- E: Laufband, quer scrollende Welten, Schrittlinie, helles Tuch ---------- */
.fx-e .fx-e-band { padding: clamp(18px, 3vw, 34px) 0; background: #002e5f; color: transparent; }
.fx-e .fx-e-band .fx-laufband-spur { font-family: tanuki, "Arial Black", sans-serif; text-transform: uppercase; font-size: clamp(42px, 8vw, 120px); line-height: 1; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.fx-e .fx-e-band .fx-laufband-spur span:nth-child(3n+1) { color: #e5007d; -webkit-text-stroke: 0; }
.fx-e .fx-e-quer { overflow: hidden; }
.fx-e .fx-e-quer .n-welten { display: flex !important; flex-wrap: nowrap; gap: 28px; width: max-content; grid-template-columns: none; }
.fx-e .fx-e-quer .n-welt { flex: none; width: min(44vw, 620px); height: min(68vh, 640px); }
.fx-e .fx-e-quer .n-welt img { width: 116%; max-width: none; }
.fx-e .n-schritte { position: relative; }
.fx-e .fx-e-linie { position: absolute; left: 0; right: 0; top: 30px; height: 3px; transform-origin: 0 50%; background: linear-gradient(90deg, #e5007d, #f7a600, #3fc0f0); border-radius: 2px; z-index: 0; }
.fx-e .n-schritt { position: relative; z-index: 1; }
@media (max-width: 760px) { .fx-e .fx-e-linie { display: none; } }
.fx-e .fx-e-tuch-hell { mix-blend-mode: multiply; }

/* ---------- F: Vorhang, echte Spots statt gemalter Lichter, Spot auf Karten, Stufen leuchten ---------- */
.fx-f .c-buehne:has(.fx-szene.fx-da) .c-licht, .fx-f .c-art-kopf:has(.fx-szene.fx-da)::before { opacity: 0; transition: opacity 1.4s; }
.fx-f .fx-f-licht { mix-blend-mode: screen; }
.fx-f .fx-f-vorhang { position: fixed; inset: 0; z-index: 99999; pointer-events: none; display: grid; grid-template-columns: 1fr 1fr; }
.fx-f .fx-f-vorhang i { display: block; background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(90deg, #3a0a24 0, #6b0f3f 23px, #3a0a24 46px); box-shadow: inset 0 -80px 120px rgba(0, 0, 0, .6); }
.fx-f .fx-f-spot { position: relative; overflow: hidden; }
.fx-f .fx-f-spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--f, #fff) 45%, transparent), transparent 70%); mix-blend-mode: screen; }
.fx-f .fx-f-spot:hover::after { opacity: 1; }
.fx-f .fx-f-stufe { transition: filter .6s, opacity .6s, transform .6s; opacity: .45; filter: saturate(.3); }
.fx-f .fx-f-stufe.fx-an { opacity: 1; filter: none; transform: translateX(6px); }
.fx-ruhig.fx-f .fx-f-stufe { opacity: 1; filter: none; transform: none; }
