/* Cosmic Worlds, Schritt 1. Ergänzt hero.css nur von außen; Stripe-Darstellung und -Verhalten bleiben unberührt. */
/* Ebene 0: Anthrazit-Verlauf mit Lichthof und Korn (Look „Kunstwerk“) */
.stage.cosmos{background:radial-gradient(ellipse 60% 55% at 56% 42%,#3c424a59,#3c424a00 70%),linear-gradient(135deg,#202327,#16181b 50%,#0d0e10)}
.stage.cosmos:before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.07;mix-blend-mode:overlay;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
/* Bestands-Introfilm HOME-00 entfällt laut Entscheidung; Medienlogik in hero.js bleibt unverändert */
.stage.cosmos .films{visibility:hidden}
/* Ebenen 1–3: eine WebGL-Fläche zwischen Hintergrund und Bestands-Video */
.cosmos-space{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:0}
.cosmos-canvas{position:absolute;inset:0;z-index:1;width:100%;height:100%;display:block;pointer-events:none}
.cosmos-video-source{position:fixed;left:0;top:0;width:2px;height:2px;opacity:0;pointer-events:none}
/* Ebene 5: Namenszeile (ersetzt die Bestands-Namensleiste unter dem Band) */
.stage.cosmos .stripe-name-carousel{display:none!important}
.cosmos-labels{position:absolute;inset:0;z-index:4;pointer-events:none}
.cosmos-lab{position:absolute;left:0;top:0;display:flex;flex-direction:column;align-items:center;gap:14px;padding:10px 6px;color:#d9dde1;font:400 13px/1 M,Montserrat,sans-serif;letter-spacing:.32em;text-transform:uppercase;white-space:nowrap;transform-origin:50% 0;will-change:transform,opacity}
.cosmos-lab i{display:block;height:2px;width:44px;background:var(--c);transition:width .25s cubic-bezier(.37,0,.63,1),box-shadow .25s}
.cosmos-lab[data-hot="1"]{color:#fff}.cosmos-lab[data-hot="1"] i{width:72px;box-shadow:0 0 10px var(--c)}
/* Namen und Figuren klickbar wie die Stripes (Tobi, 31.10.); läuft der Weltfilm, führt der Name mit ↗ zur Unterseite */
.cosmos-lab{cursor:pointer}.cosmos-lab:hover{color:#fff}.cosmos-lab:hover i{width:72px}
.cosmos-lab[data-link="1"] span::after{content:"\00a0↗"}
.stage.cosmos-fig-hot{cursor:pointer}
/* Ebene 6: Beschreibung unten links (motion-spec.md, Abschnitt 9), max. 420 px */
.stage.band-v2.cosmos .world-copy{position:absolute;left:max(4vw,24px);right:auto;bottom:24px;width:auto;max-width:420px;margin:0;text-align:left}
.stage.band-v2.cosmos .world-copy:before{content:"";position:absolute;inset:-80px -120px -60px -80px;z-index:-1;background:radial-gradient(closest-side,#08090b8c,#08090b00);pointer-events:none}
.stage.band-v2.cosmos .world-number{display:block}
.stage.band-v2.cosmos .world-description{margin:0}
/* Schritt 2 (Teil-Aufhebung, 27.10.) — gilt nur, wenn die Cosmos-Ebene läuft; ohne WebGL bleibt der Bestand */
/* Video-Übergang: die Cosmos-Ebene zeigt das Video in der Linienmaske; die Bestands-Filme spielen unsichtbar weiter als Quelle */
.stage.cosmos-live .portal{opacity:0!important}
/* Intro: die Stripes verdichten sich, statt hereinzugleiten; bedienbar erst, wenn sie stehen */
.stage.band-v2.cosmos-live .hero-centre{transform:none;transition:opacity var(--cosmos-reveal,.65s) cubic-bezier(.22,1,.36,1)}
/* Sperre nur auf den Elementen, die Eingaben annehmen (Band, Stripes, altes Logo, Beschreibung, Trefferflächen); alle anderen Nachfahren erben „none“ von .hero-centre.
   Ein Selektor mit „*“ würde beim Phasenwechsel den Stil aller Nachfahren neu rechnen (Safari: sichtbarer Ruckler am Ende des Intros) */
.stage[data-cosmos-phase="loading"] .hero-centre>.world-picker,.stage[data-cosmos-phase="intro"] .hero-centre>.world-picker,.stage[data-cosmos-phase="loading"] .hero-centre .hit,.stage[data-cosmos-phase="intro"] .hero-centre .hit,.stage[data-cosmos-phase="loading"] .hero-centre .world-copy,.stage[data-cosmos-phase="intro"] .hero-centre .world-copy,.stage[data-cosmos-phase="loading"] .hero-centre .stripe,.stage[data-cosmos-phase="intro"] .hero-centre .stripe,.stage[data-cosmos-phase="loading"] .hero-centre>.logo-space,.stage[data-cosmos-phase="intro"] .hero-centre>.logo-space{pointer-events:none!important}
/* Band im Video: zieht sich zurück, sobald die Verwandlung Figur → Video fertig ist – gemächlich, kleiner und transparenter (2 s);
   bei Rückkehr des Zeigers wird es weich wieder groß und deckend (0,8 s) – Tobi, 28.10. */
.stage.cosmos-live .world-picker-grid{transform-origin:50% 100%;transition:transform .8s cubic-bezier(.33,0,.15,1),opacity .6s cubic-bezier(.33,0,.15,1)}
.stage.cosmos-live[data-band="small"] .world-picker-grid{transform:translate(var(--band-dx,0),var(--band-dy,0)) scale(var(--band-k,.46));opacity:.38;transition:transform 2s cubic-bezier(.45,0,.25,1),opacity 2s cubic-bezier(.45,0,.25,1)}
.stage.cosmos-live[data-band="lift"] .world-picker-grid{transform:translateY(var(--band-ly,0)) scale(var(--band-lk,1))}
/* Beschreibung erst 200 ms nach Ankunft des Videos */
.stage.cosmos-live:not([data-cosmos-copy]) .world-copy{visibility:hidden}
.stage.cosmos-live[data-cosmos-copy] .world-copy{animation:cosmos-copy .3s cubic-bezier(.22,1,.36,1) both}
@keyframes cosmos-copy{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.stage.cosmos-live .world-picker-grid{transition:none}.stage.cosmos-live[data-cosmos-copy] .world-copy{animation:none}}
/* Prototyp-Leiste */
.cosmos-dev{position:fixed;z-index:50;left:50%;transform:translateX(-50%);bottom:max(10px,env(safe-area-inset-bottom,0px));display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;max-width:calc(100vw - 32px);padding:7px;border-radius:24px;background:#0a0b0dd9;border:1px solid #e8ebee24;backdrop-filter:blur(8px);font:500 10px M,Montserrat,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#9aa3ab}
.cosmos-dev button{min-height:32px;padding:0 12px;border-radius:16px;border:1px solid #e8ebee24;background:#121417;color:#e8ebee;font:inherit;cursor:pointer}
.cosmos-dev button[aria-pressed="true"]{background:#e8ebee;color:#121417}
.cosmos-dev button:focus-visible{outline:2px solid #e8ebee;outline-offset:2px}
.cosmos-dev label{display:flex;align-items:center;gap:6px}.cosmos-dev input{width:90px;accent-color:#e8ebee}
.cosmos-dev output{color:#e8ebee;font-variant-numeric:tabular-nums}.cosmos-dev .t{padding:0 4px}
@media(max-width:799px){.cosmos-dev{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start}.cosmos-dev .t{display:none}.cosmos-lab{font-size:12px;letter-spacing:.26em}.stage.band-v2.cosmos .world-copy{left:16px;right:60px;bottom:calc(max(16px,env(safe-area-inset-bottom,0px)) + 8px);max-width:none}}   /* Beschreibung ganz unten: Button vollständig sichtbar, Abstand max(16px, Safe-Area) + 8px zum Bühnenrand (M3, 04.11.; der frühere Ausgleich -55px passte nicht mehr, hero-centre hat bottom:0) */
/* Namenszeile folgt dem Band: beim Zurückziehen gleich transparent, bei Rückkehr zügig deckend */
.stage.cosmos-live .cosmos-labels{transition:opacity .6s cubic-bezier(.33,0,.15,1)}
.stage.cosmos-live[data-band="small"] .cosmos-labels{opacity:.38;transition:opacity 2s cubic-bezier(.45,0,.25,1)}
.stage.cosmos-live[data-band="small"] .cosmos-labels:hover{opacity:1;transition-duration:.25s}
/* Band mittig unter dem Header, mehr Luft oben als unten (Abstand rechnet cosmos.js) */
.stage.band-v2.cosmos-centred .hero-centre{justify-content:flex-start;padding-top:var(--cosmos-band-pad,0px)}
/* Aufladen beim Einrasten: Lichtschicht über dem gewählten Stripe (nur während des Einrastens sichtbar) */
.cosmos-stripe-energy{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;mix-blend-mode:screen}
/* Hochformat (Tobi, 29.10.: „Walze muss tiefer, oben kein Platz für den Header“): Band beginnt bei 44 % der Bühnenhöhe,
   darüber zwischen Header und Band die Figurenwalze (cosmos.js, placeOf) */
@media(max-width:799px) and (orientation:portrait),(hover:none) and (pointer:coarse) and (orientation:portrait){.stage.band-v2.cosmos .hero-centre{top:44%;bottom:0;justify-content:flex-start}}
/* Logo-Intro „Herzschlag“ (03.11., cosmos-logo.js): eine Leinwand über der Walze für Logo, Welle und Striche */
.cosmos-logo{position:absolute;inset:0;z-index:5;width:100%;height:100%;display:block;pointer-events:none}
.cosmos-logo[hidden]{display:none}
/* Erstbesuch-Hinweis „Wischen für weitere Welten“ (M3, nur Hochformat, einmalig; siehe cosmos-hint.js) */
.swipe-hint{position:absolute;z-index:5;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 56px);margin:0;display:flex;align-items:center;gap:12px;padding:10px 16px;border-radius:999px;color:#d9dde1;background:#0b101566;border:1px solid #ffffff1f;font:500 12px/1 M,Montserrat,sans-serif;letter-spacing:.06em;white-space:nowrap;pointer-events:none;opacity:0;transform:translate(-50%,6px);transition:opacity .45s ease,transform .45s ease}
.swipe-hint[data-show="1"]{opacity:1;transform:translate(-50%,0)}
.swipe-hint .swipe-dot{animation:swipe-dot 1.8s cubic-bezier(.45,0,.55,1) infinite}
@keyframes swipe-dot{0%,100%{transform:translateX(-9px)}50%{transform:translateX(9px)}}
@media(prefers-reduced-motion:reduce){.swipe-hint{transition:none;transform:translate(-50%,0)}.swipe-hint .swipe-dot{animation:none}}
