/*!
 * ECLIPSE · ec.css  (gemeinsames Fundament aller Seiten, Präfix ec-)
 * Verbindliche Doku: /opt/eclipse-web/README.md (Abschnitt „Designsprache“) und REFERENZ-open2077.md   Live: _kit
 *
 *  0 Schriften          5 Navigation, Menü, Musik, Footer
 *  1 Tokens             6 Bausteine (Buttons, CTA, Chips, Status, Medien, Karten, Terminal, Platten, HUD)
 *  2 Reset und Basis    7 Seitenhüllen (Hero, Szene, Seitenkopf, Abschluss)
 *  3 Typografie         8 Kino (Sandwich, Cutout, Triptychon, Fahrt, Fortschritt)
 *  4 Layout             9 Bewegung, Hilfsklassen, reduzierte Bewegung, Druck
 *
 * Formensprache: Komposition nach open2077 (Parallelogramme mit --skew, Streifen-CTAs, Triptychon, Fahrt),
 * Typografie nach SWTOR (Stand 2026-11-07): Titel in Cinzel (Trajan/TOR-Versalien, Kleinbuchstaben sind Kapitälchen)
 * mit statischem Metallverlauf je Kapitel (Gold, Stahlblau, Karmesin), Navigation und Etiketten in Oswald (Rolle
 * von News Gothic Condensed), Fließtext in Open Sans (wie swtor.com). Keine Kursiv- oder Schräg-Headlines, kein
 * farbiger Versatz mehr.
 * Bewegungsregel: Es bewegen sich nur transform und opacity. Schrägen sind STATISCHE transforms auf Ebenen
 * (Pseudo-Elemente), nie auf dem fokussierbaren Element selbst; clip-path nur statisch. Korn nur auf Farbflächen,
 * Triptychon und Footer (statisches Bild, nie animiert).
 */

/* ============================================================ 0 Schriften (SIL OFL, selbst gehostet, Quelle @fontsource in tools/) */
/* Cinzel (OFL, variabel 400 bis 900): Titel, Riesen-Headlines, CTAs, Wortmarke. Trajan-Versalien wie das TOR-Logo;
   die Kleinbuchstaben sind Kapitälchen, darum Titel NICHT in Versalien umwandeln (wie die Überschriften auf swtor.com). */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-ext.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Oswald (OFL, variabel 200 bis 700): Navigation, Etiketten, kleine Buttons, Chips. Rolle von News Gothic Condensed
   auf swtor.com (gleiche Laufweite im Vergleich, ref/typo/vergleich-ui.png). */
@font-face { font-family: "Oswald"; src: url("../fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-ext.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Open Sans (OFL, variabel 300 bis 800, mit Kursive): Fließtext, genau die Textschrift von swtor.com. */
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-ext.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-ext-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Spectral 500 (OFL): Serif für Zitate und Lore (Rolle von Berling auf swtor.com), nur .ec-quote. Wird erst geladen,
   wenn eine Seite sie nutzt (kein Preload). */
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-500-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-500-ext-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
/* Ersatzschriften mit angepassten Metriken (in Chromium gegen die metrisch gleichen Liberation-Schriften gemessen,
   2026-11-07), damit beim Tausch nichts umbricht oder springt:
   ec-title-fallback  Times New Roman Bold auf Cinzel 700 (Laufweite deutscher Titel, Faktor 1,24)
   ec-ui-fallback     Arial Narrow Bold auf Oswald 500; ec-ui-fallback-arial: Arial, falls Arial Narrow fehlt
   ec-body-fallback   Arial auf Open Sans 400;  ec-serif-fallback: Times New Roman auf Spectral 500 */
@font-face { font-family: "ec-title-fallback"; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Times New Roman"); size-adjust: 124%; ascent-override: 79%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: "ec-ui-fallback"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Liberation Sans Narrow Bold"); size-adjust: 92.5%; ascent-override: 128.6%; descent-override: 31.3%; line-gap-override: 0%; }
@font-face { font-family: "ec-ui-fallback-arial"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 78.2%; ascent-override: 152.2%; descent-override: 37.1%; line-gap-override: 0%; }
@font-face { font-family: "ec-body-fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 104.2%; ascent-override: 102.6%; descent-override: 27.8%; line-gap-override: 0%; }
@font-face { font-family: "ec-serif-fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust: 110.8%; ascent-override: 95.7%; descent-override: 41.5%; line-gap-override: 0%; }
@font-face { font-family: "ec-mono-fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"); size-adjust: 100%; ascent-override: 103%; descent-override: 28%; line-gap-override: 0%; }

/* ============================================================ 1 Tokens */
@property --ec-accent { syntax: "<color>"; inherits: true; initial-value: #ffc828; }

:root {
  color-scheme: dark;

  /* Leere und Tinte (Flächen, von hinten nach vorn; kühles Nachtblau wie die Referenz) */
  --void: #04050a;
  --ink-1: #070a12;
  --ink-2: #0b1019;
  --ink-3: #121826;
  --ink-4: #1a2234;

  /* Linien */
  --line: rgb(226 232 245 / .10);
  --line-2: rgb(226 232 245 / .20);
  --line-gold: rgb(255 200 40 / .42);

  /* Text (alle AA auf --void und --ink-2) */
  --text: #f1f0ec;      /* 17:1 */
  --text-2: #b6b8c0;    /*  9.6:1 */
  --text-3: #8a8e9a;    /*  5.8:1, ab 14px */

  /* KAPITELFARBEN (die drei Seiten der Galaxis; Spieltöne aus RP/Shared/config.lua, für AA leicht angepasst).
     Jede taugt für Text auf --void UND als Fläche mit --c-ink darauf (Kontrast in Klammern). */
  --c-gold: #ffc828;       /* Eclipse, Neutrale (12.9:1)     */
  --c-gold-hi: #ffe58c;
  --c-gold-deep: #b98500;
  --c-rep: #2f8bff;        /* Galaktische Republik (6.1:1)   Spiel #2882ff */
  --c-rep-hi: #94c6ff;
  --c-rep-deep: #1450b4;
  --c-sith: #ff3340;       /* Sith-Imperium (5.6:1)          Spiel #e62828 */
  --c-sith-hi: #ff9aa1;
  --c-sith-deep: #a3101c;
  --c-ink: #05060c;        /* Text auf Kapitelflächen */

  /* Marke und Glut (Szene, Korona, Wortmarke) */
  --gold: #f4b860;
  --gold-hi: #ffe2ad;
  --gold-deep: #b9782a;
  --hot: #ff8a2a;
  --gold-ink: #170e03;
  --ec-accent: var(--c-gold);

  /* Fraktionstöne (bestehende API, data-faction): Text-Töne + Spieltöne */
  --rep: #5aa9ff;   --rep-deep: #2882ff;
  --sith: #ff5148;  --sith-deep: #e62828;
  --neu: #ffc828;   --neu-deep: #b3880f;
  --hutt: #a3e635;  --hutt-deep: #5d8a14;   /* nur Discord-Bereich, keine spielbare Fraktion */

  /* Aktuelles Kapitel (setzt data-chapter; Standard Gold) */
  --chapter: var(--c-gold);
  --chapter-hi: var(--c-gold-hi);
  --chapter-deep: var(--c-gold-deep);

  /* METALL (Titel-Look wie das SWTOR- und ECLIPSE-Logo): statische Verläufe für background-clip: text, je Zeile
     (Kachelhöhe 1lh). Hell oben, dunkle Horizontlinie knapp über der Mitte der Versalien, warmer Rückglanz unten.
     Stops sind auf Cinzel bei line-height 0,95 bis 1,1 abgestimmt (Versalien liegen bei 10 bis 80 % der Zeile). */
  --metal-gold: linear-gradient(180deg, #fff8e2 0%, #fff1c9 12%, #ffdc8e 28%, #f4bb55 41%, #9c5f17 46.5%, #c4832f 52%, #eab25a 63%, #ffd98c 74%, #c98a34 82%, #7a4a12 100%);
  --metal-rep: linear-gradient(180deg, #ffffff 0%, #f4f8ff 12%, #d3e3f8 28%, #9dbde6 41%, #36557f 46.5%, #6489bb 52%, #a4c3ea 63%, #e3eeff 74%, #7d9bc4 82%, #3b577f 100%);
  --metal-sith: linear-gradient(180deg, #fff0ee 0%, #ffd9d4 12%, #ff9e96 28%, #f0545a 41%, #7a0c15 46.5%, #b11d27 52%, #e6474e 63%, #ff9f98 74%, #b3242c 82%, #5e0a10 100%);
  --metal-ivory: linear-gradient(180deg, #ffffff 0%, #fbf8f1 12%, #ece6d8 28%, #d6cdb9 41%, #6f675a 46.5%, #a59b88 52%, #d8cfbd 63%, #f6f1e6 74%, #b2a892 82%, #6c6455 100%);
  --metal-hutt: linear-gradient(180deg, #f7ffe6 0%, #ecffc4 12%, #cdf57e 28%, #a3e635 41%, #3f6a0c 46.5%, #6e9f1c 52%, #a6dd44 63%, #e0ffa0 74%, #77a326 82%, #3c5c0d 100%);
  --metal: var(--metal-gold);           /* Verlauf des aktuellen Kapitels (data-chapter, data-faction) */
  /* Kein text-stroke und kein text-shadow auf Metall: Cinzel ist variabel mit überlappenden Konturen (Striche zeigen
     innere Linien), und Schatten malt Chromium ÜBER den geclippten Verlauf. Die Kante steckt im Verlauf selbst. */
  /* Dunkle Kante für Titel OHNE Verlauf (text-shadow, statisch, klein). Altname --chroma (vorher farbiger Versatz). */
  --edge: 0 .04em .05em rgb(2 3 8 / .65);
  --edge-sm: 0 1px 2px rgb(2 3 8 / .75);
  /* Umriss ohne text-stroke (überlappende Konturen): Ring aus acht 1px-Schatten, Füllung in der Grundfarbe */
  --ring-c: var(--line-2);
  --ring: 1px 0 0 var(--ring-c), -1px 0 0 var(--ring-c), 0 1px 0 var(--ring-c), 0 -1px 0 var(--ring-c), .7px .7px 0 var(--ring-c), -.7px .7px 0 var(--ring-c), .7px -.7px 0 var(--ring-c), -.7px -.7px 0 var(--ring-c);
  --chroma: var(--edge);
  --chroma-sm: var(--edge-sm);

  /* Korn: statische Kachel, nur auf Farbflächen, Triptychon und Footer */
  --grain: url("../img/fx/grain.png");

  /* Status (nur für echten Serverstatus) */
  --ok: #6fdc9a;
  --warn: #ffc46b;
  --bad: #ff7a6b;

  /* Schrift (Rollen wie auf swtor.com, freie Doppelgänger; README 1b „Schriften“) */
  --font-title: "Cinzel", "ec-title-fallback", "Times New Roman", Georgia, serif;          /* CustomTOR/Trajan */
  --font-ui: "Oswald", "ec-ui-fallback", "ec-ui-fallback-arial", "Arial Narrow", sans-serif; /* News Gothic Condensed */
  --font-body: "Open Sans", "ec-body-fallback", system-ui, "Segoe UI", sans-serif;          /* Open Sans */
  --font-serif: "Spectral", "ec-serif-fallback", Georgia, serif;                            /* Berling (nur Zitate) */
  --font-mono: "IBM Plex Mono", "ec-mono-fallback", ui-monospace, Consolas, monospace;
  --track-title: .04em;    /* Titel leicht gesperrt */
  --track-ui: .26em;       /* Versal-Etiketten weit gesperrt */
  /* Altnamen aus der open2077-Fassung (Seiten-CSS): zeigen auf die neuen Rollen. Neu nicht mehr verwenden. */
  --font-wide: var(--font-title);
  --font-display: var(--font-ui);
  --wide: 100%;            /* früher Breite der Anybody-Headlines; Cinzel hat keine Breitenachse */

  /* Typo-Skala (fließend 360 bis 1920px) */
  --step--2: .75rem;
  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.04rem + .4vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem);          /* h3, Kartentitel */
  --step-3: clamp(1.875rem, 1.25rem + 2.6vw, 4rem);            /* h2 */
  --step-4: clamp(2.25rem, 1.2rem + 4.6vw, 6.5rem);            /* h1 */
  --step-5: clamp(2.5rem, 1rem + 6.2vw, 8.5rem);               /* ec-xl, Kapitel-Headline */
  --step-6: clamp(3.25rem, .6rem + 11vw, 14rem);               /* Riesen-Wort (Sandwich, Umriss) */
  --xl: var(--step-5);                                         /* Riesen-Headline (ec-xl, Seitenkopf); Handy kleiner, damit lange deutsche Wörter passen */
  --fit: 9.4cqi;                                               /* ec-fit: so groß, dass 13 Versalien in die Spalte passen */

  /* Abstände */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 192px;

  /* Layout */
  --gutter: clamp(16px, 4vw, 64px);
  --wrap: 1360px;
  --wrap-narrow: 820px;
  --wrap-wide: 1680px;
  --nav-h: 80px;   /* Skill-Pre-Flight: Navigation höchstens 80px (vorher 88) */
  --section-y: clamp(96px, 11vw, 192px);
  --grid-gap: clamp(16px, 2vw, 32px);
  --skew: -12deg;          /* DIE Schräge: Karten, CTAs, Navigation, Triptychon, Fortschritt */
  --cut: 10px;
  --radius: 0px;
  --radius-pill: 999px;

  /* Bewegung */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-cine: cubic-bezier(.7, 0, .2, 1);
  --dur-1: .18s;
  --dur-2: .4s;
  --dur-3: .6s;
  --dur-hero: 1.4s;

  /* Ebenen */
  --z-below: -1;
  --z-content: 1;
  --z-nav: 100;
  --z-menu: 200;
  --z-skip: 300;
}
@media (max-width: 759.98px) {
  :root { --nav-h: 64px; --cut: 8px; --xl: clamp(1.75rem, 8vw, 2.875rem); --step-4: clamp(1.625rem, 7vw, 2.375rem); --step-3: clamp(1.4rem, 6vw, 2rem); --track-ui: .2em; }
}

/* Kapitel-Zusammenhang: setzt --chapter (+ hi, deep), den Metallverlauf --metal und seinen Rand für alles darin */
[data-chapter="gold"] { --chapter: var(--c-gold); --chapter-hi: var(--c-gold-hi); --chapter-deep: var(--c-gold-deep); --ec-accent: var(--c-gold); --metal: var(--metal-gold); }
[data-chapter="rep"]  { --chapter: var(--c-rep);  --chapter-hi: var(--c-rep-hi);  --chapter-deep: var(--c-rep-deep);  --ec-accent: var(--c-rep);  --metal: var(--metal-rep); }
[data-chapter="sith"] { --chapter: var(--c-sith); --chapter-hi: var(--c-sith-hi); --chapter-deep: var(--c-sith-deep); --ec-accent: var(--c-sith); --metal: var(--metal-sith); }

/* Fraktions-Zusammenhang (bestehende API) */
[data-faction="rep"]  { --faction: var(--rep);  --faction-deep: var(--rep-deep);  --metal: var(--metal-rep); }
[data-faction="sith"] { --faction: var(--sith); --faction-deep: var(--sith-deep); --metal: var(--metal-sith); }
[data-faction="neu"]  { --faction: var(--neu);  --faction-deep: var(--neu-deep);  --metal: var(--metal-gold); }
[data-faction="hutt"] { --faction: var(--hutt); --faction-deep: var(--hutt-deep); --metal: var(--metal-hutt); }

/* ============================================================ 2 Reset und Basis */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;      /* keine falschen Kursiven oder Fettungen: Cinzel und Oswald haben keine Kursive, „italic“ bleibt aufrecht */
  overflow-x: clip;
  scrollbar-gutter: stable;
  background: var(--void);
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) { scroll-behavior: smooth; }
}
body {
  min-height: 100svh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"], .ec-plain { list-style: none; padding: 0; }
p, h1, h2, h3, h4, h5, h6, li, dd, dt, figcaption { overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
hr { border: 0; }
::selection { background: rgb(255 200 40 / .34); color: var(--text); }
[hidden] { display: none !important; }
:target, [id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* Fokus: immer sichtbar, nur für Tastatur */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-gold-hi); outline-offset: 3px; }

.ec-skip {
  position: fixed;
  left: var(--s-4);
  top: var(--s-4);
  z-index: var(--z-skip);
  padding: 12px 18px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  transform: translateY(-200%);
}
.ec-skip:focus-visible { transform: none; }

/* ============================================================ 3 Typografie */
/* Titel: Cinzel, aufrecht, leicht gesperrt. Kleinbuchstaben sind in Cinzel Kapitälchen: „Wähl deine Seite“ erscheint
   als Versalien mit großem Anfangsbuchstaben wie die Überschriften auf swtor.com. Darum kein text-transform.
   Nie mitten im Wort umbrechen (overflow-wrap normal); die Größe passt sich der Spalte an (ec-fit, Tokens). */
.ec-display, .ec-h1, .ec-h2, .ec-h3, .ec-h4, .ec-xl, .ec-mega {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 700;
  text-transform: none;
  letter-spacing: var(--track-title);
  color: var(--text);
  font-kerning: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-shadow: var(--edge);
}
.ec-xl      { font-size: var(--xl); line-height: 1; font-weight: 700; color: var(--chapter); }
.ec-display { font-size: var(--step-5); line-height: 1; }
.ec-mega    { font-size: var(--step-6); line-height: .96; font-weight: 800; letter-spacing: .02em; }
.ec-h1      { font-size: var(--step-4); line-height: 1.02; }
.ec-h2      { font-size: var(--step-3); line-height: 1.05; }
.ec-h3      { font-size: var(--step-2); line-height: 1.1; font-weight: 600; }
.ec-h4      { font-size: var(--step-1); line-height: 1.2; font-weight: 600; letter-spacing: .05em; }
.ec-h3 em, .ec-h4 em { font-style: inherit; color: var(--ec-accent); }
[data-faction] :is(.ec-h3, .ec-h4) em { color: var(--faction); }
[data-chapter] :is(.ec-h3, .ec-h4) em { color: var(--chapter); }
/* Zeilen einer Riesen-Headline gegeneinander versetzen (wie die Referenz): <span class="ec-xl__l" style="--in:2"> */
.ec-xl__l { display: block; padding-inline-start: calc(var(--in, 0) * .5em); }
/* Passend zur Spalte: In einem .ec-fit-Container (und im Seitenkopf, im Abschluss, in gestapelten Kapiteln)
   wird die Riesen-Headline höchstens so groß, dass 13 Versalien in die Spalte passen (Containereinheiten, --fit). */
.ec-fit, .ec-pagehead__inner, .ec-final__inner, .ec-journey:not(.is-rail) .ec-chapter__block { container-type: inline-size; }
:is(.ec-fit, .ec-pagehead__inner, .ec-final__inner, .ec-journey:not(.is-rail) .ec-chapter__block) :is(.ec-xl, .ec-pagehead .ec-h1, .ec-display) { font-size: min(var(--xl), var(--fit)); }

/* METALL: statischer Verlauf in der Kapitelfarbe per background-clip: text (wie das SWTOR- und ECLIPSE-Logo).
   Automatisch: ec-xl, ec-display, ec-mega, Seitenkopf-h1, Kartentitel, Merkmalstitel, Footer-Statement, <em> in
   ec-h1/ec-h2. Von Hand: .ec-metal (Kapitelfarbe), .ec-gold (immer Gold), .ec-metal--ivory (Silber-Elfenbein).
   JEDES Kind eines Metall-Titels malt seinen Verlauf selbst: Kinder mit eigener Ebene (ec-in, SplitText, GSAP-
   transform, opacity) fallen sonst aus dem Text-Clip des Titels und werden unsichtbar. Inline-Kinder richten die
   Kachel an der Zeile aus (Cinzel: Oberlänge 0,98em, Schriftkasten 1,35em), Block-Kinder (div, p, li, Zeilen-Spans
   wie .ec-xl__l oder *__l, SplitText-Teile .ec-tx) beginnen an ihrer Oberkante. */
.ec-metal, .ec-chroma, .ec-gold, .ec-xl, .ec-display, .ec-mega, .ec-pagehead .ec-h1, :is(.ec-h1, .ec-h2) em, .ec-pcard__title, .ec-feature__title {
  --tx: var(--metal);
}
.ec-footer__statement { --tx: var(--metal-gold); }
.ec-gold { --tx: var(--metal-gold); }
.ec-metal--ivory, .ec-xl em, .ec-display em, .ec-mega em { --tx: var(--metal-ivory); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ec-metal, .ec-chroma, .ec-gold, .ec-xl, .ec-display, .ec-mega, .ec-pagehead .ec-h1, .ec-pcard__title, .ec-feature__title, .ec-footer__statement, :is(.ec-h1, .ec-h2) em,
  :is(.ec-metal, .ec-chroma, .ec-gold, .ec-xl, .ec-display, .ec-mega, .ec-pagehead .ec-h1, .ec-pcard__title, .ec-feature__title, .ec-footer__statement) *, :is(.ec-h1, .ec-h2) em * {
    background-image: var(--tx);
    background-size: 100% 1lh;
    background-repeat: repeat-y;
    background-origin: content-box;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
  /* Inline-Kinder: an der Zeile ausrichten */
  :is(.ec-metal, .ec-chroma, .ec-gold, .ec-xl, .ec-display, .ec-mega, .ec-pagehead .ec-h1, .ec-pcard__title, .ec-feature__title, .ec-footer__statement) *, :is(.ec-h1, .ec-h2) em {
    font-style: inherit;
    background-origin: border-box;
    background-position: 0 calc(.675em - .5lh);
  }
  /* Block- und Inline-Block-Kinder: an der eigenen Oberkante */
  :is(.ec-metal, .ec-chroma, .ec-gold, .ec-xl, .ec-display, .ec-mega, .ec-pagehead .ec-h1, .ec-pcard__title, .ec-feature__title, .ec-footer__statement) :is(div, p, li, .ec-xl__l, [class*="__l "], [class$="__l"], .ec-tx) {
    background-origin: content-box;
    background-position: 0 0;
  }
}
/* Hüllen ohne eigenen Text (ec-core.js metalPaint setzt .ec-mw): kein eigener Verlauf, nur die Text-Träger darin malen.
   Verschachteltes background-clip: text mit Kindern auf eigener Ebene erzeugt auf manchen GPUs Geisterbuchstaben. */
.ec-mw { background-image: none !important; }
/* Dunkle Kante allein (ohne Verlauf), für Titel in fester Farbe */
.ec-chroma-sm { text-shadow: var(--edge-sm); }

/* Riesige Umriss-Buchstaben (statisch; Deko, aria-hidden). Nur einsetzen, wo sie GANZ zu sehen sind und hinter
   keinem Text liegen (README 1b „Sauberer Text“). Kein Schnitt am Bildrand, kein Wort hinter einer Scheibe. */
.ec-outline {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 700;
  font-size: var(--step-6);
  line-height: 1;
  letter-spacing: .04em;
  --ring-c: var(--stroke, var(--line-2));
  color: var(--outline-fill, var(--void));
  text-shadow: var(--ring);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.ec-outline--chapter { --stroke: color-mix(in srgb, var(--chapter) 55%, transparent); }

/* Senkrechte Versal-Etiketten am Rand (wie „LUA 5.4“ in der Referenz) */
.ec-edge {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--chapter);
  white-space: nowrap;
  line-height: 1;
}

/* Gesperrte Versal-Etiketten (Navigation, Kartenzeile, Spaltentitel): Oswald */
.ec-label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--chapter);
}

.ec-lead { font-size: var(--step-1); line-height: 1.55; color: var(--text); max-width: 34em; font-weight: 400; }
.ec-lead strong { color: var(--text); font-weight: 600; }
.ec-body { font-size: var(--step-0); color: var(--text-2); max-width: 64ch; }
/* Zitat, Lore, Inschrift: Spectral (Berling-Rolle). Ohne Anführungszeichen im CSS: im Text „…“ schreiben. */
.ec-quote { font-family: var(--font-serif); font-weight: 500; font-size: var(--step-1); line-height: 1.5; color: var(--text); max-width: 36em; letter-spacing: .005em; }
.ec-quote cite, .ec-quote footer { display: block; margin-top: .6em; font-family: var(--font-ui); font-style: normal; font-size: .8125rem; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--chapter); }

.ec-meta, .ec-mono {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ec-mono { text-transform: none; letter-spacing: .02em; font-size: var(--step--1); }
.ec-code { font-family: var(--font-mono); font-size: .875em; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--chapter) 60%, transparent); color: var(--chapter); white-space: nowrap; }

/* Kicker: Augenbraue über einer Überschrift, sparsam (höchstens eine je drei Abschnitte) */
.ec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: var(--ec-accent);
}
.ec-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
[data-faction] .ec-kicker { color: var(--faction); }
[data-chapter] .ec-kicker { color: var(--chapter); }

.ec-caption { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .06em; color: var(--text-3); }
.ec-num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

.ec-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--chapter) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color var(--dur-1) linear;
}
.ec-link:hover { color: var(--chapter-hi); }
.ec-link--chapter { color: var(--chapter); text-decoration: none; }

.ec-prose { color: var(--text-2); max-width: 66ch; }
.ec-prose > * + * { margin-top: 1em; }
.ec-prose h2, .ec-prose h3 { font-family: var(--font-title); font-style: normal; letter-spacing: var(--track-title); color: var(--text); line-height: 1.12; margin-top: 1.8em; overflow-wrap: normal; }
.ec-prose h2 { font-size: var(--step-2); font-weight: 700; }
.ec-prose h3 { font-size: var(--step-1); font-weight: 600; }
.ec-prose strong { color: var(--text); font-weight: 600; }
.ec-prose a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--chapter) 55%, transparent); text-underline-offset: .22em; }
.ec-prose a:hover { color: var(--chapter-hi); }
.ec-prose ul, .ec-prose ol { padding-left: 1.2em; }
.ec-prose li + li { margin-top: .4em; }
.ec-prose ul li::marker { content: "◆  "; color: var(--chapter); font-size: .6em; }

/* Inline-Icons (Phosphor 256er viewBox oder Marken 24er viewBox, fill currentColor) */
.ec-icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.ec-ext { display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em; fill: currentColor; opacity: .7; }

/* ============================================================ 4 Layout */
.ec-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.ec-wrap--narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); }
.ec-wrap--wide { width: min(100% - 2 * var(--gutter), var(--wrap-wide)); }

.ec-section { position: relative; padding-block: var(--section-y); overflow-x: clip; }
.ec-section--tight { padding-block: calc(var(--section-y) * .55); }
.ec-section--flush-top { padding-top: 0; }
.ec-section--flush-bottom { padding-bottom: 0; }
.ec-section--line::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, color-mix(in srgb, var(--chapter) 45%, transparent) 50%, var(--line) 82%, transparent);
}

.ec-stack { display: flex; flex-direction: column; gap: var(--stack, var(--s-5)); }
.ec-stack > * { margin: 0; }
.ec-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--row, var(--s-4)); }

.ec-grid { display: grid; gap: var(--grid-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .ec-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ec-grid > * { grid-column: var(--start, auto) / span var(--span, 12); }
}
.ec-split { display: grid; gap: var(--s-8) var(--grid-gap); align-items: center; }
@media (min-width: 900px) {
  .ec-split { grid-template-columns: minmax(0, var(--split, 1fr)) minmax(0, 1fr); }
  .ec-split--flip > :first-child { order: 2; }
}

/* ============================================================ 5 Navigation
   Wie die Referenz: links ein Icon-Cluster in schrägen Kästen (Discord, Steam, Musik), gesperrte Versal-Links links
   und rechts um das mittige Logo, rechts außen „Team: ACP-Login“. Unter 1200px: Logo mittig, Burger rechts,
   Vollbild-Menü mit Fokusfalle. Ohne JS: Menü als Zeile unter der Leiste.
   Sauberer Text: Sobald gescrollt ist, liegt hinter der ganzen Leiste eine fast deckende Fläche (Inhalt scheint
   nicht durch die Links), darunter ein kurzer Verlauf. */
.ec-nav {
  --box-h: 50px;
  --box-w: 58px;
  --side: 212px;              /* Platz für Cluster und Ecke, links und rechts gleich (Logo bleibt exakt mittig) */
  --logo-w: 184px;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  transition: transform var(--dur-2) var(--ease-out);
}
/* Grund als eigene Ebene: oben über dem Hero nur ein Verlauf, nach dem Scrollen deckender (nur opacity) */
.ec-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px 0;
  background: linear-gradient(180deg, var(--void) 0, var(--void) var(--nav-h), rgb(4 5 10 / 0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) linear;
}
.ec-nav.is-scrolled::before, html[data-nav="solid"] .ec-nav::before { opacity: 1; }
/* Ohne JS gibt es kein is-scrolled: Leiste immer deckend, damit Inhalt nie lesbar unter der Navigation läuft. */
html:not(.js) .ec-nav::before { opacity: 1; }
.ec-nav.is-hidden { transform: translateY(-110%); }
.ec-nav__bar { position: relative; height: 100%; display: flex; align-items: center; }

/* Schräge Kästen (Icon-Cluster, Ecke, Burger): Fläche und Rand als geneigte Pseudo-Ebene */
.ec-nav__ico, .ec-nav__acp, .ec-nav__burger {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: var(--box-w);
  height: var(--box-h);
  color: var(--c-gold);
  flex: none;
  transition: color var(--dur-1) linear;
}
.ec-nav__ico::before, .ec-nav__acp::before, .ec-nav__burger::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(9 13 24 / .74);
  border: 1px solid var(--line-2);
  border-right-width: 0;
  transform: skewX(var(--skew));
  transition: background-color var(--dur-1) linear;
}
.ec-nav__ico:hover, .ec-nav__acp:hover, .ec-nav__burger:hover { color: var(--c-gold-hi); }
.ec-nav__ico:hover::before, .ec-nav__acp:hover::before, .ec-nav__burger:hover::before { background-color: rgb(24 30 48 / .9); }
.ec-nav__ico svg, .ec-nav__acp svg { width: 24px; height: 24px; fill: currentColor; }
.ec-nav__ico:focus-visible, .ec-nav__acp:focus-visible, .ec-nav__burger:focus-visible { outline-offset: -4px; }

.ec-nav__icons { position: absolute; z-index: 3; left: 0; top: 50%; transform: translateY(-50%); display: flex; }
.ec-nav__icons > :first-child { width: calc(var(--box-w) + 22px); padding-left: 22px; margin-left: -22px; }
.ec-nav__icons > :last-child::before, html:not([data-music]) .ec-nav__icons > :nth-last-child(2)::before { border-right-width: 1px; }
.ec-nav__acp { position: absolute; z-index: 3; right: 0; top: 50%; transform: translateY(-50%); width: calc(var(--box-w) + 14px); padding-left: 4px; overflow: clip; }
.ec-nav__acp::before { right: -16px; }
.ec-nav__acp::before { border-right-width: 0; }

/* Musik-Schalter (ec-music.js): Equalizer-Balken. Ruhig, solange keine Musik läuft; bei Wiedergabe setzt das Modul
   je Bild transform: scaleY() aus den echten Pegeln (AnalyserNode). Der Knopf erscheint erst, wenn Musik verfügbar
   ist (html[data-music]); ohne JS oder ohne Musik bleibt er aus. */
.ec-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.ec-eq > i { display: block; width: 2px; height: 100%; background: currentColor; transform-origin: 50% 100%; transform: scaleY(var(--h, .3)); }
.ec-eq > i:nth-child(1) { --h: .3; --h-on: .62; }
.ec-eq > i:nth-child(2) { --h: .55; --h-on: .95; }
.ec-eq > i:nth-child(3) { --h: .38; --h-on: .74; }
.ec-eq > i:nth-child(4) { --h: .7; --h-on: .5; }
.ec-eq { opacity: .6; transition: opacity var(--dur-2) linear; }
html[data-music-playing] .ec-eq { opacity: 1; }
html[data-music-playing] .ec-eq > i { transform: scaleY(var(--h-on)); }
html:not([data-music]) [data-music-toggle] { display: none !important; }

/* Logo mittig (immer exakt in der Mitte der Leiste) */
.ec-nav__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: block;
  width: var(--logo-w);
  transform: translate(-50%, -50%);
}
.ec-nav__brand img { width: 100%; height: auto; aspect-ratio: 944 / 228; }
.ec-nav__brand:focus-visible { outline-offset: 6px; }

/* Links: zwei Listen, links bündig an der linken Logokante, rechts an der rechten. So bleibt das Logo exakt mittig
   und kein Link läuft ins Logo, auch wenn die Gruppen verschieden breit sind. */
.ec-nav { --nav-gap: clamp(18px, 2.2vw, 44px); }
.ec-nav__menu { position: relative; flex: 1; min-width: 0; height: 100%; pointer-events: none; }   /* die leere Fläche deckt Icons und Ecke nicht ab */
.ec-nav__list, .ec-nav__menu-foot { pointer-events: auto; }
.ec-nav__list {
  list-style: none;
  padding: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}
.ec-nav__list--l { right: calc(50% + var(--logo-w) / 2 + var(--nav-gap)); }
.ec-nav__list--r { left: calc(50% + var(--logo-w) / 2 + var(--nav-gap)); }
.ec-nav__list--l > li:first-child { display: none; }      /* „Start“ nur im Handy-Menü (das Logo führt zur Startseite) */
.ec-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .24em;
  margin-right: -.24em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--dur-1) linear;
}
.ec-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: .24em;
  bottom: 6px;
  height: 3px;
  background: var(--c-gold);
  transform: skewX(var(--skew)) scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-2) var(--ease-out);
}
.ec-nav__link:hover { color: var(--c-gold-hi); }
.ec-nav__link:hover::after { transform: skewX(var(--skew)) scaleX(.4); }
.ec-nav__link[aria-current="page"] { color: var(--c-gold); }
.ec-nav__link[aria-current="page"]::after { transform: skewX(var(--skew)) scaleX(1); }
.ec-nav__menu-foot { display: none; }
.ec-nav__burger { display: none; }

@media (max-width: 1399.98px) {
  .ec-nav { --side: 200px; --logo-w: 160px; --nav-gap: clamp(16px, 1.8vw, 28px); }
  .ec-nav__link { letter-spacing: .16em; margin-right: -.16em; font-size: .84375rem; }
}

/* Handy und Tablet: Logo mittig, links Discord und Steam, rechts Burger und ACP; Menü als Vollbild-Ebene */
@media (max-width: 1199.98px) {
  .ec-nav { --box-h: 44px; --box-w: 48px; --logo-w: clamp(118px, 34vw, 170px); }
  .ec-nav__ico.ec-nav__music { display: none; }
  .ec-nav__icons > :nth-last-child(2)::before { border-right-width: 1px; }
  .ec-nav__burger { display: inline-grid; position: absolute; top: 50%; right: calc(var(--box-w) + 14px); transform: translateY(-50%); }
  .ec-nav__burger::before { border-right-width: 1px; }
  .ec-nav__burger-icon { position: relative; width: 20px; height: 12px; }
  .ec-nav__burger-icon::before, .ec-nav__burger-icon::after, .ec-nav__burger-icon > i {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) linear;
  }
  .ec-nav__burger-icon::before { top: 0; }
  .ec-nav__burger-icon > i { top: 5.25px; right: 5px; }
  .ec-nav__burger-icon::after { bottom: 0; }
  .ec-nav__burger[aria-expanded="true"] .ec-nav__burger-icon::before { transform: translateY(5.25px) rotate(45deg); }
  .ec-nav__burger[aria-expanded="true"] .ec-nav__burger-icon::after { transform: translateY(-5.25px) rotate(-45deg); }
  .ec-nav__burger[aria-expanded="true"] .ec-nav__burger-icon > i { opacity: 0; }

  .js .ec-nav__menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: auto;   /* Vollbild-Menü: eigene Fläche scrollbar (geschlossen ist es visibility: hidden) */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-7);
    padding: calc(var(--nav-h) + var(--s-6)) var(--gutter) max(var(--s-6), env(safe-area-inset-bottom));
    background:
      linear-gradient(115deg, transparent 0 62%, rgb(47 139 255 / .10) 62% 70%, transparent 70%),
      linear-gradient(115deg, transparent 0 74%, rgb(255 51 64 / .10) 74% 82%, transparent 82%),
      var(--void);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur-2) linear, visibility 0s linear var(--dur-2);
  }
  .js .ec-nav.is-open .ec-nav__menu { visibility: visible; opacity: 1; transition: opacity var(--dur-2) linear; }
  .js .ec-nav.is-open::before { opacity: 1; }
  .js .ec-nav__list { position: static; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: auto; }
  .js .ec-nav__list--r { margin-top: calc(4px - var(--s-7)); }
  .js .ec-nav__list > li { display: block; }
  .js .ec-nav__link {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.625rem, 7.4vw, 3rem);
    letter-spacing: var(--track-title);
    text-transform: none;
    margin-right: 0;
    line-height: 1.15;
    min-height: 0;
    padding: 2px 0;
  }
  .js .ec-nav__link::after { right: 0; bottom: 2px; height: 4px; }
  .js .ec-nav__menu .ec-nav__list > li, .js .ec-nav__menu-foot { opacity: 0; transform: translateX(-22px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
  .js .ec-nav.is-open .ec-nav__menu .ec-nav__list > li, .js .ec-nav.is-open .ec-nav__menu-foot { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 45ms); }
  .js .ec-nav__menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); --i: 8; }
  /* ohne JS: Menü als Zeile unter der Leiste, Burger aus */
  html:not(.js) .ec-nav { position: absolute; height: auto; }
  html:not(.js) .ec-nav__bar { height: var(--nav-h); }
  html:not(.js) .ec-nav__burger { display: none; }
  html:not(.js) .ec-nav__menu { position: absolute; top: var(--nav-h); left: 0; right: 0; height: auto; padding: 0 var(--gutter) 8px; }
  html:not(.js) .ec-nav__list { position: static; display: inline-flex; flex-wrap: wrap; gap: 0 18px; height: auto; }
  html:not(.js) .ec-nav__list > li { display: block; }
}
/* Menü-Fuß und Musterseite: Musik-Schalter als Knopf mit Text („Musik aus“ / „Musik an“) */
.ec-music-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--font-ui); font-weight: 500; font-size: .9375rem; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--text); }
.ec-music-btn .ec-eq { color: var(--c-gold); }
.ec-music-btn__on { display: none; }
html[data-music="on"] .ec-music-btn__on { display: inline; }
html[data-music="on"] .ec-music-btn__off { display: none; }
/* Kurzer Hinweis beim Start (Titel · Künstler), unter dem Icon-Cluster */
.ec-music-hint {
  position: fixed;
  z-index: calc(var(--z-menu) + 1);
  left: var(--s-4);
  top: calc(var(--nav-h) + 6px);
  max-width: min(420px, calc(100vw - 2 * var(--s-4)));
  padding: 8px 14px;
  background: rgb(4 5 10 / .94);
  border: 1px solid var(--line-gold);
  font-family: var(--font-ui);
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--dur-2) linear, transform var(--dur-2) var(--ease-out);
}
.ec-music-hint b { font-weight: 500; color: var(--c-gold); }
.ec-music-hint.is-on { opacity: 1; transform: none; }
html.ec-menu-open { overflow: hidden; }

/* ============================================================ 5b Footer
   Statement in Cinzel, schräge Social-Chips, drei Linkspalten, Rechtliches (mit Platz für die Namensnennung der
   Musik), riesige ECLIPSE-Wortmarke als Verlauf Blau, Gold, Rot mit Metallglanz und Korn (statisch, ganz sichtbar). */
.ec-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(72px, 9vw, 150px) 0 0;
  background: linear-gradient(180deg, var(--void) 0%, var(--ink-1) 55%, var(--void) 100%);
  color: var(--text-2);
  font-size: var(--step--1);
}
.ec-footer__top { display: grid; gap: var(--s-8) var(--grid-gap); align-items: start; }
@media (min-width: 1000px) { .ec-footer__top { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.ec-footer__lead { display: grid; gap: var(--s-6); justify-items: start; }
.ec-footer__statement {
  --tx: var(--metal-gold);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.25rem, .95rem + 1.1vw, 2rem);
  line-height: 1.15;
  letter-spacing: var(--track-title);
  color: var(--c-gold);
  overflow-wrap: normal;
}
.ec-footer__social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 10px; }
.ec-footer__cols { display: grid; gap: var(--s-6) var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ec-footer__title { font-family: var(--font-ui); font-size: .8125rem; font-weight: 500; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-5); }
.ec-footer__list { list-style: none; padding: 0; display: grid; gap: 4px; }
.ec-footer__link { display: inline-block; padding-block: 4px; font-size: var(--step-0); line-height: 1.4; color: var(--text); transition: color var(--dur-1) linear; }
.ec-footer__link:hover { color: var(--c-gold-hi); }
.ec-footer__link[aria-current="page"] { color: var(--c-gold); }
.ec-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-8);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ec-footer__credit { margin: var(--s-5) 0 0; max-width: 1120px; color: var(--text-3); font-size: var(--step--1); line-height: 1.6; overflow-wrap: anywhere; }
.ec-footer__credit:empty { display: none; }
.ec-footer__note { margin: var(--s-6) auto 0; max-width: 1120px; text-align: center; color: var(--text-3); font-size: var(--step--1); line-height: 1.75; text-wrap: balance; }
/* Wortmarke: ganz lesbar (kein Anschnitt), Breite an den Bildschirm gebunden, Verlauf Blau, Gold, Rot mit Glanzlinie */
.ec-footer__mark {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 6vw, 96px);
  padding: 0 var(--gutter) clamp(20px, 3vw, 48px);
  pointer-events: none;
  user-select: none;
}
.ec-footer__mark > span {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: min(15.5vw, 19rem);
  line-height: 1;
  letter-spacing: .06em;
  margin-right: -.06em;
  white-space: nowrap;
  text-transform: uppercase;
  background-image:
    var(--grain),
    linear-gradient(180deg, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / .18) 30%, rgb(4 5 10 / .38) 47%, rgb(255 255 255 / 0) 54%, rgb(255 255 255 / .16) 74%, rgb(4 5 10 / .35) 100%),
    linear-gradient(90deg, #1d57b8 0%, #2f8bff 18%, #c99a2e 44%, #ffc828 54%, #e0414b 78%, #a3101c 100%);
  background-size: 192px 192px, 100% 100%, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-gold);
  opacity: .8;
}

/* Schräge Social-Chips (Footer, Abschluss): Parallelogramm-Kontur mit Icon */
.ec-social {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding-inline: 20px 22px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--dur-1) linear;
}
.ec-social::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-2); background: rgb(9 13 24 / .5); transform: skewX(var(--skew)); transition: border-color var(--dur-1) linear; }
.ec-social svg { width: 20px; height: 20px; fill: currentColor; flex: none; color: var(--c-gold); }
.ec-social:hover { color: var(--c-gold-hi); }
.ec-social:hover::before { border-color: var(--c-gold); }

/* ============================================================ 6 Bausteine */

/* --- Streifen-CTA (wie „DOWNLOAD LAUNCHER“): schräge Farbplatte, diagonale Streifen, Lichtstreif beim Hover.
   Schrift Cinzel (wie die TOR-Knöpfe „Kostenlos spielen“), aufrecht, Kapitälchen.
   Markup: <a class="ec-cta ec-cta--gold" href="…" data-magnetic="0.2"><span class="ec-cta__plate" aria-hidden="true"></span><span class="ec-cta__label">Discord beitreten</span></a>
   Farbe: --gold | --rep | --sith (sonst das Kapitel). Varianten: --outline, --end (Streifen rechts), --both, --plain (ohne Streifen),
   Größen --sm, --lg, Kante --edge-start | --edge-end (läuft bis an den Bildrand). Immer einzeilig. */
.ec-cta {
  --cta-c: var(--chapter);
  --cta-h: 58px;
  --cta-pad: 36px;
  --stripe-w: 46px;
  --stripe-gap: 10px;
  --lead: calc(var(--stripe-w) + var(--stripe-gap));
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--cta-h);
  padding-inline: calc(var(--lead) + var(--cta-pad)) var(--cta-pad);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: .05em;
  white-space: nowrap;
  line-height: 1;
  color: var(--c-ink);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-1) linear;
}
.ec-cta--gold { --cta-c: var(--c-gold); }
.ec-cta--rep  { --cta-c: var(--c-rep); }
.ec-cta--sith { --cta-c: var(--c-sith); }
.ec-cta__plate {
  position: absolute;
  inset: 0 0 0 var(--lead);
  z-index: -1;
  overflow: hidden;
  background: var(--cta-c);
  transform: skewX(var(--skew));
}
/* Lichtstreif (nur transform) */
.ec-cta__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / .55) 50%, transparent 100%);
  width: 38%;
  transform: translateX(-140%);
  transition: transform .75s var(--ease-out);
}
.ec-cta:hover .ec-cta__plate::after, .ec-cta:focus-visible .ec-cta__plate::after { transform: translateX(380%); }
/* Diagonale Streifen (statisch) */
.ec-cta::before, .ec-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--stripe-w);
  z-index: -1;
  background: repeating-linear-gradient(90deg, var(--cta-c) 0 6px, transparent 6px 12px);
  transform: skewX(var(--skew));
}
.ec-cta::before { left: 0; }
.ec-cta::after { display: none; right: 0; }
.ec-cta__label { position: relative; }
.ec-cta__icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ec-cta:active { transform: translateY(1px); }
/* Streifen am Ende / an beiden Enden / ohne */
.ec-cta--end { padding-inline: var(--cta-pad) calc(var(--lead) + var(--cta-pad)); }
.ec-cta--end .ec-cta__plate { inset: 0 var(--lead) 0 0; }
.ec-cta--end::before { display: none; }
.ec-cta--end::after { display: block; }
.ec-cta--both { padding-inline: calc(var(--lead) + var(--cta-pad)); }
.ec-cta--both .ec-cta__plate { inset: 0 var(--lead); }
.ec-cta--both::after { display: block; }
.ec-cta--plain { padding-inline: var(--cta-pad); }
.ec-cta--plain .ec-cta__plate { inset: 0; }
.ec-cta--plain::before { display: none; }
/* Umriss-Button (schräg, ohne Streifen) */
.ec-cta--outline { padding-inline: var(--cta-pad); color: var(--cta-c); }
.ec-cta--outline .ec-cta__plate { inset: 0; background: rgb(5 6 12 / .35); border: 1px solid var(--cta-c); }
.ec-cta--outline .ec-cta__plate::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cta-c) 30%, transparent), transparent); }
.ec-cta--outline::before, .ec-cta--outline::after { display: none; }
.ec-cta--outline:hover { color: var(--c-ink); }
.ec-cta--outline .ec-cta__plate::before { content: ""; position: absolute; inset: 0; background: var(--cta-c); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.ec-cta--outline:hover .ec-cta__plate::before { transform: scaleX(1); }
/* Größen */
.ec-cta--sm { --cta-h: 46px; --cta-pad: 24px; --stripe-w: 34px; --stripe-gap: 8px; font-size: .9375rem; }
.ec-cta--lg { --cta-h: 66px; --cta-pad: 44px; --stripe-w: 54px; font-size: 1.3125rem; }
/* Bis an den Bildrand (Hero-Ecken): Platte läuft über die äußere Kante hinaus, Streifen innen */
/* Die Platte läuft über die äußere Kante hinaus und wird am eigenen Kasten abgeschnitten (kein Überlauf der Seite) */
.ec-cta--edge-start, .ec-cta--edge-end { overflow: clip; }
.ec-cta--edge-start { padding-inline: calc(var(--gutter) + 24px) calc(var(--lead) + var(--cta-pad) + 8px); justify-content: flex-start; }
.ec-cta--edge-start .ec-cta__plate { inset: 0 calc(var(--lead) + 8px) 0 -40px; }
.ec-cta--edge-start::before { display: none; }
.ec-cta--edge-start::after { display: block; right: 8px; }
.ec-cta--edge-end { padding-inline: calc(var(--lead) + var(--cta-pad) + 8px) calc(var(--gutter) + 24px); justify-content: flex-end; }
.ec-cta--edge-end .ec-cta__plate { inset: 0 -40px 0 calc(var(--lead) + 8px); }
.ec-cta--edge-end::before { left: 8px; }
@media (max-width: 759.98px) {
  .ec-cta { --cta-h: 52px; --cta-pad: 22px; --stripe-w: 34px; --stripe-gap: 8px; font-size: 1rem; letter-spacing: .03em; }
  .ec-cta--lg { --cta-h: 56px; font-size: 1.0625rem; }
  .ec-cta--sm { --cta-h: 44px; font-size: .875rem; }
}
[aria-disabled="true"].ec-cta { opacity: .45; pointer-events: none; }

/* --- Buttons (bestehende API, an die Schräge angepasst). Primär = Goldplatte, Ghost = Kontur, Text = Link. */
.ec-btn {
  --btn-h: 48px;
  --btn-pad: 26px;
  --btn-c: var(--ec-accent);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--btn-h);
  padding-inline: var(--btn-pad);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-1) linear;
}
.ec-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border: 1px solid var(--btn-c);
  background: rgb(5 6 12 / .4);
  transform: skewX(var(--skew));
}
.ec-btn > .ec-btn__fill { position: absolute; inset: 0; z-index: -1; background: var(--btn-c); transform: skewX(var(--skew)) scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.ec-btn::after { content: none; }
.ec-btn:active { transform: translateY(1px); }
.ec-btn__icon { width: 18px; height: 18px; flex: none; fill: currentColor; transition: transform var(--dur-2) var(--ease-out); }
.ec-btn:hover .ec-btn__icon:last-child { transform: translateX(3px); }
.ec-btn:hover .ec-btn__icon--out:last-child { transform: translate(2px, -2px); }
.ec-btn--primary { color: var(--c-ink); }
.ec-btn--primary::before { background: var(--btn-c); }
.ec-btn--primary:hover::before { background: var(--c-gold-hi); border-color: var(--c-gold-hi); }
[data-chapter] .ec-btn--primary:hover::before { background: var(--chapter-hi); border-color: var(--chapter-hi); }
.ec-btn--ghost { color: var(--btn-c); }
.ec-btn--ghost:hover { color: var(--c-ink); }
.ec-btn--ghost:hover > .ec-btn__fill { transform: skewX(var(--skew)) scaleX(1); }
[data-faction] .ec-btn--ghost { --btn-c: var(--faction); }
[data-chapter] .ec-btn { --btn-c: var(--chapter); }
.ec-btn--text { --btn-h: 44px; --btn-pad: 0; color: var(--text); }
.ec-btn--text::before { content: none; }
.ec-btn--text > .ec-btn__label { position: relative; }
.ec-btn--text > .ec-btn__label::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--btn-c); transform-origin: 0 50%; transform: scaleX(.35); transition: transform var(--dur-2) var(--ease-out); }
.ec-btn--text:hover { color: var(--chapter-hi); }
.ec-btn--text:hover > .ec-btn__label::after { transform: scaleX(1); }
.ec-btn--sm { --btn-h: 40px; --btn-pad: 18px; font-size: .8125rem; gap: 10px; letter-spacing: .14em; }
.ec-btn--lg { --btn-h: 58px; --btn-pad: 34px; font-size: 1.0625rem; }
.ec-btn--block { width: 100%; }
.ec-btn[aria-disabled="true"], .ec-btn.is-disabled { opacity: .45; pointer-events: none; }

/* --- Chips: kleine Etiketten in Mono-Versalien. Nie über Bildern. Punkt nur für echten Status. */
.ec-chip {
  --chip: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding-inline: 11px;
  border: 1px solid color-mix(in srgb, var(--chip) 38%, transparent);
  background: color-mix(in srgb, var(--chip) 7%, transparent);
  color: var(--chip);
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.ec-chip--gold { --chip: var(--c-gold); }
.ec-chip--rep  { --chip: var(--rep); }
.ec-chip--sith { --chip: var(--sith); }
.ec-chip--neu  { --chip: var(--neu); }
.ec-chip--hutt { --chip: var(--hutt); }
.ec-chip--faction { --chip: var(--faction, var(--c-gold)); }
.ec-chip--chapter { --chip: var(--chapter); }
.ec-chip--live { --chip: var(--ok); }
.ec-chip__dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: currentColor; flex: none; }

/* --- Live-Status (ECLIPSE-Server oder ECLIPSE-Discord), Zahlen mit festen Ziffernbreiten */
.ec-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.ec-status--framed { position: relative; isolation: isolate; padding: 6px 18px; }
.ec-status--framed::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-2); background: rgb(4 5 10 / .7); transform: skewX(var(--skew)); }
.ec-status__dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: var(--radius-pill); background: var(--text-3); }
.ec-status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 1px solid currentColor; color: var(--ok); opacity: 0; }
[data-state="online"] .ec-status__dot, .ec-status[data-state="online"] .ec-status__dot { background: var(--ok); }
[data-state="offline"] .ec-status__dot, .ec-status[data-state="offline"] .ec-status__dot { background: var(--bad); }
.ec-status__label { color: var(--text); }
.ec-status__count { padding-left: 10px; border-left: 1px solid var(--line-2); }
.ec-status__count b, .ec-status b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.4ch; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) [data-state="online"] .ec-status__dot::after { animation: ec-ping 2.4s var(--ease-out) infinite; }
}
@keyframes ec-ping { 0% { transform: scale(.6); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
[data-status]:not([data-state]) [data-status-when]:not([data-status-when~="unknown"]) { display: none; }

/* --- Medienrahmen: festes Seitenverhältnis, Bild füllt, HUD-Ecken. Parallax auf das innere Bild. */
.ec-media {
  --ratio: 16 / 9;
  --focus: 50% 50%;
  --tick: color-mix(in srgb, var(--chapter) 55%, transparent);
  position: relative;
  aspect-ratio: var(--ratio);
  overflow: clip;
  background: var(--ink-2);
  isolation: isolate;
}
.ec-media > picture, .ec-media > img, .ec-media > video, .ec-media > canvas, .ec-media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus);
}
.ec-media > [data-parallax] { inset: calc(var(--ec-bleed, 0px) * -1) 0; height: auto; }
.ec-media > picture[data-parallax] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus); }
.ec-media--hud::before, .ec-media--hud::after { content: ""; position: absolute; z-index: 2; width: 18px; height: 18px; pointer-events: none; }
.ec-media--hud::before { left: 10px; top: 10px; border-left: 1px solid var(--tick); border-top: 1px solid var(--tick); }
.ec-media--hud::after { right: 10px; bottom: 10px; border-right: 1px solid var(--tick); border-bottom: 1px solid var(--tick); }
.ec-media--contain > picture > img, .ec-media--contain > img { object-fit: contain; }
.ec-figure { display: grid; gap: var(--s-3); }
.ec-figure > figcaption { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .08em; color: var(--text-3); }

/* --- Parallelogramm-Bildkarte (wie „LIVE ANOTHER LIFE“): dünner Akzentrahmen, versetzte Rahmenlinien außen,
   Versalzeile (Oswald), Titel in Cinzel mit Metall der Kapitelfarbe, ein Satz. Bild innen mit dunklem Verlauf.
   Markup: article.ec-pcard > div.ec-pcard__frame > picture.ec-pcard__media … ; div.ec-pcard__body > p.ec-pcard__label,
   h3.ec-pcard__title, p.ec-pcard__text. Optional: a.ec-pcard__link (ganze Karte klickbar, Text im Link). */
.ec-pcard {
  --pc-pad-x: clamp(28px, 3.4vw, 56px);
  --pc-pad-y: clamp(26px, 3vw, 44px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: var(--pc-h, clamp(240px, 21vw, 300px));
  width: var(--pc-w, min(100%, 600px));
  padding: var(--pc-pad-y) var(--pc-pad-x);
}
.ec-pcard__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border: 1px solid var(--chapter);
  background: var(--ink-2);
  transform: skewX(var(--skew));
}
.ec-pcard__frame > picture, .ec-pcard__frame > img, .ec-pcard__media { position: absolute; inset: -2px -18%; max-width: none; transform: skewX(calc(var(--skew) * -1)); }
.ec-pcard__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.ec-pcard__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(4 5 10 / .93) 0%, rgb(4 5 10 / .78) 38%, rgb(4 5 10 / .28) 78%, rgb(4 5 10 / .12) 100%);
}
/* Versetzte Rahmenlinien außen (statisch) */
.ec-pcard::before, .ec-pcard::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 1px;
  background: var(--chapter);
  transform: skewX(var(--skew));
  pointer-events: none;
}
.ec-pcard::before { left: -14px; top: 26%; bottom: 26%; }
.ec-pcard::after { right: -14px; top: 26%; bottom: 26%; opacity: .7; }
.ec-pcard__body { position: relative; display: grid; gap: 14px; max-width: 30em; }
.ec-pcard__label { font-family: var(--font-ui); font-weight: 500; font-size: .8125rem; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--chapter); }
.ec-pcard__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.08;
  letter-spacing: var(--track-title);
  color: var(--chapter);
  overflow-wrap: normal;
}
.ec-pcard__text { color: var(--text); font-size: var(--step--1); line-height: 1.55; max-width: 34ch; }
.ec-pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ec-pcard__link:focus-visible { outline: none; }
.ec-pcard:has(.ec-pcard__link:focus-visible) .ec-pcard__frame { outline: 2px solid var(--c-gold-hi); outline-offset: 4px; }
.ec-pcard .ec-pcard__frame img { transition: transform .9s var(--ease-out); }
.ec-pcard:hover .ec-pcard__frame img { transform: scale(1.04); }
/* Ohne Bild: dunkle Platte (z. B. Systemkarten) */
.ec-pcard--plain .ec-pcard__frame { background: linear-gradient(120deg, var(--ink-3), var(--ink-1)); }
@media (max-width: 759.98px) {
  .ec-pcard { --pc-pad-x: 30px; width: var(--pc-w-m, calc(100% - 28px)); margin-inline: 14px; }
  .ec-pcard::before, .ec-pcard::after { display: none; }
}

/* --- Karten-Gruppe (wie die drei Karten in der Referenz): oben zwei, darunter eine versetzt. Stapel unter 900px. */
.ec-cluster { display: grid; gap: clamp(28px, 3vw, 44px); justify-items: center; }
@media (min-width: 900px) {
  .ec-cluster { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 72px); justify-items: stretch; }
  .ec-cluster > .ec-pcard { width: auto; }
  .ec-cluster > :nth-child(3n+1) { grid-column: 1 / span 2; }
  .ec-cluster > :nth-child(3n+2) { grid-column: 3 / span 2; }
  .ec-cluster > :nth-child(3n+3) { grid-column: 2 / span 2; margin-left: -4%; }
}

/* --- Merkmal mit senkrechtem Etikett (wie „LUA 5.4 / ONE LANGUAGE“): Etikett, kursive Zeile, Text, Link */
.ec-features { display: grid; gap: clamp(36px, 5vh, 64px); }
.ec-feature { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: clamp(18px, 2.4vw, 36px); row-gap: 12px; max-width: 34rem; }
.ec-feature > .ec-edge { grid-row: 1 / span 3; align-self: start; justify-self: center; opacity: .85; }
.ec-feature__title { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.25rem, .95rem + 1vw, 2rem); line-height: 1.1; letter-spacing: var(--track-title); color: var(--chapter); overflow-wrap: normal; }
.ec-feature__text { color: var(--text); font-size: var(--step-0); line-height: 1.55; }

/* --- Holonetz-Terminal (wie die Code-Blöcke im Dev-Kapitel): schräger Rahmen, Mono-Text, Pfad oben, Status unten */
.ec-term { position: relative; isolation: isolate; display: grid; gap: 10px; width: var(--term-w, min(100%, 620px)); }
.ec-term__path, .ec-term__status { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--chapter); }
.ec-term__path { text-align: right; padding-inline: 26px; }
.ec-term__status { padding-inline: 4px; }
.ec-term__status::after { content: " …"; opacity: .6; }
.ec-term__code {
  position: relative;
  margin: 0;
  padding: 24px clamp(28px, 3vw, 44px);
  font-family: var(--font-mono);
  font-size: clamp(.75rem, .7rem + .2vw, .8125rem);
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ec-term__code::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--chapter); background: rgb(4 5 10 / .55); transform: skewX(var(--skew)); }
.ec-term__code b { font-weight: 500; color: var(--chapter); }
.ec-term__code i { font-style: normal; color: var(--c-gold); }
.ec-term__code u { text-decoration: none; color: var(--c-rep-hi); }

/* --- Platte: dunkles Glas ohne backdrop-filter, Haarlinie, Eckmarken in Kapitelfarbe */
.ec-panel {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, rgb(11 16 25 / .92), rgb(7 10 18 / .96));
  border: 1px solid var(--line);
}
.ec-panel::before, .ec-panel::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.ec-panel::before { top: -1px; left: -1px; border-top: 1px solid var(--chapter); border-left: 1px solid var(--chapter); }
.ec-panel::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--chapter); border-right: 1px solid var(--chapter); }
[data-faction] .ec-panel::before, [data-faction] .ec-panel::after, .ec-panel[data-faction]::before, .ec-panel[data-faction]::after { border-color: var(--faction); }
.ec-panel--cut { border: 0; background: none; isolation: isolate; }
.ec-panel--cut > .ec-panel__plate { position: absolute; inset: 0; z-index: -1; background: var(--line-2); clip-path: polygon(calc(var(--cut) * 2) 0, 100% 0, 100% calc(100% - var(--cut) * 2), calc(100% - var(--cut) * 2) 100%, 0 100%, 0 calc(var(--cut) * 2)); }
.ec-panel--cut > .ec-panel__plate::after { content: ""; position: absolute; inset: 1px; background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); clip-path: inherit; }
/* Farbfläche mit Korn (Kapitelfarbe, dunkle Schrift) */
.ec-fill { background-color: var(--chapter); background-image: var(--grain); background-size: 192px 192px; color: var(--c-ink); }

.ec-hud { position: relative; }
.ec-hud > .ec-hud__c { position: absolute; width: 16px; height: 16px; border-color: color-mix(in srgb, var(--chapter) 55%, transparent); border-style: solid; border-width: 0; pointer-events: none; }
.ec-hud > .ec-hud__c:nth-of-type(1) { top: -8px; left: -8px; border-top-width: 1px; border-left-width: 1px; }
.ec-hud > .ec-hud__c:nth-of-type(2) { top: -8px; right: -8px; border-top-width: 1px; border-right-width: 1px; }
.ec-hud > .ec-hud__c:nth-of-type(3) { bottom: -8px; left: -8px; border-bottom-width: 1px; border-left-width: 1px; }
.ec-hud > .ec-hud__c:nth-of-type(4) { bottom: -8px; right: -8px; border-bottom-width: 1px; border-right-width: 1px; }

.ec-readout { display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--line); }
.ec-readout > dt, .ec-readout > dd { padding-block: 12px; border-bottom: 1px solid var(--line); }
.ec-readout > dt { padding-right: var(--s-6); font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); align-self: center; }
.ec-readout > dd { color: var(--text); font-variant-numeric: tabular-nums; }

.ec-rule {
  position: relative;
  height: 9px;
  margin-block: var(--s-7);
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, color-mix(in srgb, var(--chapter) 50%, transparent) 50%, var(--line-2) 80%, transparent) center / 100% 1px no-repeat;
}
.ec-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--void); border: 1px solid var(--chapter); transform: translate(-50%, -50%) rotate(45deg); }

.ec-ornament { width: var(--size, 120px); height: auto; aspect-ratio: 1; color: var(--gold); overflow: visible; }
.ec-ornament .ec-orn-ring { fill: none; stroke: currentColor; stroke-width: 1; }
.ec-ornament .ec-orn-faint { fill: none; stroke: var(--line-2); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .ec-ornament--spin .ec-orn-spin { transform-origin: 50% 50%; transform-box: view-box; animation: ec-spin 60s linear infinite; }
}
@keyframes ec-spin { to { transform: rotate(360deg); } }

/* ============================================================ 7 Seitenhüllen */

/* Szene: Träger für das WebGL-Canvas (ec-eclipse.js), Standbild darunter als Ersatz */
.ec-scene { position: absolute; inset: 0; z-index: var(--z-below); overflow: hidden; background: var(--void); contain: strict; }
.ec-scene__plate { position: absolute; inset: 0; display: grid; place-items: center; }
.ec-scene__plate > img { width: 100%; height: 100%; max-width: calc(1672px * 1.25); object-fit: cover; object-position: var(--plate-focus, 50% 45%); }
.ec-scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.ec-scene.is-live .ec-scene__canvas { opacity: 1; }
.ec-scene.is-live .ec-scene__plate { opacity: 0; transition: opacity 0s linear 1.3s; }
.ec-scene.no-webgl .ec-scene__canvas { display: none; }
.ec-scene__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(4 5 10 / .55) 0, rgb(4 5 10 / 0) 22%, rgb(4 5 10 / 0) 70%, var(--void) 100%); }
.ec-scene:not(.is-live) .ec-scene__veil { background: radial-gradient(56% 46% at 50% 50%, rgb(4 5 10 / .78), rgb(4 5 10 / .35) 70%, rgb(4 5 10 / 0) 100%), linear-gradient(180deg, rgb(4 5 10 / .55) 0, rgb(4 5 10 / 0) 22%, rgb(4 5 10 / 0) 70%, var(--void) 100%); }
.ec-scene--fixed { position: fixed; }

/* Hero (Startseite): volle Höhe */
.ec-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + var(--s-6)) 0 var(--s-8);
  text-align: center;
  overflow: clip;
}
.ec-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.ec-hero__title { margin: 0; line-height: 0; }
.ec-hero__word { width: min(640px, 78vw); height: auto; aspect-ratio: 816 / 136; margin-inline: auto; }
.ec-hero__lead { max-width: 34em; color: var(--text); font-size: var(--step-1); line-height: 1.5; }
.ec-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-top: var(--s-2); }

/* Seitenkopf (Unterseiten): riesige Cinzel-Headline im Metall der Kapitelfarbe, Randetikett.
   Das frühere Umriss-Wort dahinter (.ec-pagehead__ghost) ist abgeschaltet: angeschnitten und hinter Text. */
.ec-pagehead {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 128px)) 0 clamp(56px, 7vw, 112px);
  overflow: clip;
}
.ec-pagehead::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--chapter), color-mix(in srgb, var(--chapter) 25%, transparent) 40%, transparent);
}
.ec-pagehead__inner { position: relative; display: grid; gap: var(--s-5); justify-items: start; }
.ec-pagehead .ec-h1 { color: var(--chapter); font-size: var(--xl); line-height: 1.02; font-weight: 700; }
.ec-pagehead__ghost, .ec-final__ghost { display: none; }
.ec-pagehead__edge { position: absolute; left: max(10px, calc(var(--gutter) * .35)); top: calc(var(--nav-h) + 40px); }
/* Handy quer: das senkrechte Etikett liefe unter die erste Ansicht. */
@media (max-height: 500px) { .ec-pagehead__edge { display: none; } }
.ec-pagehead__glow {
  position: absolute;
  z-index: -2;
  right: -14vw;
  top: -22vw;
  width: min(70vw, 960px);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--chapter) 16%, transparent), color-mix(in srgb, var(--chapter) 5%, transparent) 50%, transparent 72%);
}
.ec-pagehead__orn { position: absolute; z-index: -1; right: max(var(--gutter), 6vw); top: calc(var(--nav-h) + 24px); --size: clamp(140px, 22vw, 340px); opacity: .9; }
@media (max-width: 759.98px) {
  .ec-pagehead__orn { opacity: .35; right: -40px; }
  .ec-pagehead__edge { display: none; }
}

/* Abschluss (Block @ec:final): riesige Aufforderung, Streifen-CTA, Discord-Live */
.ec-final { position: relative; isolation: isolate; overflow: clip; text-align: left; }
.ec-final__inner { display: grid; gap: var(--s-6); justify-items: start; }
.ec-final__title { color: var(--chapter); }
.ec-final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.ec-final__mark { width: clamp(96px, 12vw, 160px); height: auto; aspect-ratio: 1; }
.ec-final__glow { position: absolute; z-index: -2; left: 70%; top: 50%; width: min(110vw, 1200px); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgb(255 200 40 / .10), rgb(255 138 42 / .04) 50%, transparent 72%); pointer-events: none; }

.ec-building { display: grid; gap: var(--s-5); justify-items: start; }
.ec-building__links { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); }

/* ============================================================ 8 Kino */

/* --- Wort zwischen den Ebenen (Sandwich): hinten, Riesenwort, vorn, Inhalt. Das Wort driftet waagerecht.
   Sauberer Text: Das Wort muss an seiner Ruhestelle GANZ lesbar sein (nicht vom Bildrand und nicht von der Scheibe
   angeschnitten). --word-size so wählen, dass es in die Breite passt; --word-y so, dass die Scheibe es nicht teilt.
   .ec-sandwich > .ec-sandwich__back + .ec-sandwich__word (> span.ec-sandwich__run) + .ec-sandwich__front + .ec-sandwich__content */
.ec-sandwich { position: relative; isolation: isolate; overflow: clip; }
.ec-sandwich__back, .ec-sandwich__front { position: absolute; inset: 0; pointer-events: none; }
.ec-sandwich__back { z-index: 0; }
.ec-sandwich__word { position: absolute; z-index: 1; left: 0; right: 0; top: var(--word-y, 30%); display: flex; justify-content: center; pointer-events: none; user-select: none; }
.ec-sandwich__run {
  flex: none;
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: var(--word-size, var(--step-6));
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--word-c, var(--text));
  text-shadow: var(--edge);
}
.ec-sandwich__front { z-index: 2; }
/* Mit Scheibe als Vorderebene: ohne gezeichnete Szene (kein JS, kein WebGL) gibt es keine Scheibe, dann kein Wort über dem Text */
.ec-sandwich:has(.ec-disc):not(:has(.ec-scene.is-live)) .ec-sandwich__word { visibility: hidden; }
.ec-sandwich__content { position: relative; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .ec-sandwich__run--loop { animation: ec-drift var(--drift-dur, 38s) ease-in-out infinite alternate;   /* hin und zurück: kein Sprung am Ende jeder Runde */ }
}
@keyframes ec-drift { from { transform: translateX(6%); } to { transform: translateX(-6%); } }

/* --- Scheibe als DOM-Ebene (ec-eclipse.js bindDisc): liegt VOR dem Riesenwort, exakt auf der Shader-Scheibe.
   1000px Grundgröße, Lage und Größe nur per transform; unsichtbar, bis die Szene gezeichnet hat (kein WebGL: bleibt aus). */
.ec-disc {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #040509 0%, #05060b 78%, #070910 93%, rgb(7 9 16 / 0) 100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

/* --- Cutout-Ebene (data-cutout): freigestelltes Schiff (Drehbild) oder später eine Figur. Leuchten in Kapitelfarbe dahinter. */
.ec-cutout { position: relative; width: var(--cut-w, min(100%, 720px)); aspect-ratio: var(--cut-ratio, 960 / 538); pointer-events: none; }
.ec-cutout::before { content: ""; position: absolute; inset: 8% 6%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--chapter) 34%, transparent), color-mix(in srgb, var(--chapter) 10%, transparent) 55%, transparent 75%); }
.ec-cutout > picture, .ec-cutout > img, .ec-cutout > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ec-cutout.is-figure { aspect-ratio: var(--fig-ratio, 2 / 3); }
.ec-cutout--flip > picture, .ec-cutout--flip > img { transform: scaleX(-1); }

/* --- Triptychon: drei schräge Farbpaneele mit Etikett, Umriss-Buchstaben und Korn.
   Ruhezustand (ohne JS, reduzierte Bewegung, Handy) = das volle Bild (alle drei Paneele stehen).
   Die Umriss-Buchstaben stehen ganz im Paneel und nie hinter dem Etikett (Paneel 1 und 3 oben, Paneel 2 unten);
   am Handy entfallen sie. Höchstens vier Buchstaben. */
.ec-tri {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: var(--tri-h, min(100svh, 980px));
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--void);
}
.ec-tri__panel { position: relative; isolation: isolate; display: grid; }
.ec-tri__bg {
  position: absolute;
  inset: 0 -1px;
  z-index: -1;
  overflow: hidden;
  background-color: var(--chapter);
  background-image: var(--grain);
  background-size: 192px 192px;
  transform: skewX(var(--skew));
}
.ec-tri__panel:first-child .ec-tri__bg { left: -40%; }
.ec-tri__panel:last-child .ec-tri__bg { right: -40%; }
.ec-tri__ghost {
  position: absolute;
  left: var(--ghost-x, 14%);
  top: var(--ghost-y, 9%);
  transform: skewX(calc(var(--skew) * -1));
  font-family: var(--font-title);
  font-weight: 700;
  font-size: min(7.6vw, 22svh);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  --ring-c: rgb(5 6 12 / .62);
  color: color-mix(in srgb, var(--chapter) 90%, #05060c);
  text-shadow: var(--ring);
  white-space: nowrap;
  pointer-events: none;
}
/* Lage im schrägen Grund (der Grund von Paneel 1 und 3 ist 40 % breiter als das Paneel) */
.ec-tri__panel:first-child .ec-tri__ghost { --ghost-x: 36%; }
.ec-tri__panel:nth-child(2) .ec-tri__ghost { --ghost-x: 12%; top: auto; bottom: 7%; }
.ec-tri__panel:last-child .ec-tri__ghost { --ghost-x: 5%; }
@media (max-width: 899.98px) { .ec-tri__ghost { display: none; } }
.ec-tri__label {
  align-self: center;
  justify-self: end;
  margin-right: 12%;
  text-align: right;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.125rem, 2.6vw, 3.5rem);   /* ein Wort mit 12 Versalien passt ins Drittel */
  line-height: 1.04;
  letter-spacing: .03em;
  color: var(--c-ink);
  overflow-wrap: normal;
}
.ec-tri__panel:nth-child(2) .ec-tri__label { align-self: start; margin-top: 26%; }
.ec-tri__panel:nth-child(3) .ec-tri__label { align-self: end; margin-bottom: 30%; justify-self: start; margin-left: 12%; text-align: left; }
@media (max-width: 759.98px) {
  .ec-tri { --tri-h: 78svh; min-height: 520px; grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .ec-tri__bg { inset: -1px -12%; transform: skewY(-6deg); }
  .ec-tri__panel:first-child .ec-tri__bg { left: -12%; top: -30%; }
  .ec-tri__panel:last-child .ec-tri__bg { right: -12%; bottom: -30%; }
  .ec-tri__label, .ec-tri__panel:nth-child(n) .ec-tri__label { align-self: center; justify-self: start; margin: 0 0 0 var(--gutter); text-align: left; font-size: clamp(1.3rem, 6.6vw, 2rem); }
}

/* --- Fahrt (ec-journey): Bühne mit optionalem Intro, Triptychon und Spur. JS schaltet .is-rail ein
   (Desktop, GSAP, fx nicht off); sonst steht alles untereinander (Handy, reduzierte Bewegung, ohne JS). */
.ec-journey { position: relative; }
.ec-journey__stage { position: relative; }
.ec-track { position: relative; }
.ec-track__rail { position: relative; display: flex; flex-direction: column; }
.ec-chapter {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 96px);
  padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(64px, 9vw, 120px);
}
.ec-chapter__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.ec-chapter__bg > picture, .ec-chapter__bg > img, .ec-chapter__bg > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.ec-chapter__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(4 5 10 / .8) 0%, rgb(4 5 10 / .36) 34%, rgb(4 5 10 / .42) 72%, rgb(4 5 10 / .7) 100%),   /* Abnahme: Key Arts in der Mitte heller (mehr Bild, wie die Referenz) */ linear-gradient(180deg, rgb(4 5 10 / .6) 0%, transparent 25%, transparent 70%, rgb(4 5 10 / .9) 100%); }
/* weiche Nähte zwischen den Kapiteln (Fenster-Ränder dunkel auslaufen lassen) */
.ec-chapter__bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--void) 0, var(--void) 3px, rgb(4 5 10 / 0) min(14vw, 220px), rgb(4 5 10 / 0) calc(100% - min(14vw, 220px)), var(--void) calc(100% - 3px)); }
.ec-chapter__block { position: relative; display: grid; gap: var(--s-6); align-content: center; justify-items: start; }
.ec-chapter__layer { position: relative; pointer-events: none; }
.ec-chapter__edge { position: absolute; left: 10px; top: 50%; transform: translateY(-50%) rotate(180deg); }

/* Spur-Modus (nur mit .is-rail auf .ec-journey) */
.ec-journey.is-rail .ec-journey__stage { height: 100vh; height: 100svh; overflow: hidden; }
.ec-sticky { position: sticky !important; top: 0; }   /* !important: ein position aus Seiten-CSS (lädt danach) brach den Pin sonst still */
.ec-journey.is-rail .ec-journey__intro, .ec-journey.is-rail .ec-tri { position: absolute; inset: 0; height: auto; min-height: 0; }
.ec-journey.is-rail .ec-journey__intro { z-index: 2; }
.ec-journey.is-rail .ec-tri { z-index: 3; background: none; pointer-events: none; }
.ec-journey.is-rail .ec-track { position: absolute; inset: 0; z-index: 1; }
.ec-journey.is-rail .ec-track__rail { flex-direction: row; height: 100%; width: max-content; will-change: transform; }
.ec-journey.is-rail .ec-chapter {
  flex: none;
  flex-direction: row;
  align-items: center;
  width: var(--chapter-w, max-content);
  min-width: 100vw;
  height: 100%;
  gap: var(--chapter-gap, 7vw);
  padding: calc(var(--nav-h) + 24px) 8vw 96px 9vw;
}
.ec-journey.is-rail .ec-chapter__bg > [data-depth] { right: auto; width: 120vw; max-width: none; left: calc(50% - 60vw); }
.ec-journey.is-rail .ec-chapter__block { flex: none; width: var(--w, max-content); max-width: none; }
.ec-journey:not(.is-rail) .ec-chapter__block[data-depth] { width: min(100%, var(--w-m, 640px)); margin-inline: auto; }
.ec-journey.is-rail .ec-chapter__layer { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--w, 40vw); transform: translate(-50%, -50%); }
.ec-journey.is-rail .ec-chapter__layer > * { width: 100%; }
.ec-journey.is-rail [data-depth] { will-change: transform; }
.ec-journey:not(.is-rail) .ec-chapter__layer { width: min(100%, var(--w-m, 640px)); margin-inline: auto; }
.ec-journey:not(.is-rail) .ec-chapter, .ec-journey:not(.is-rail) .ec-journey__intro { overflow-x: clip; }

/* Fortschrittsbalken (nur Spur-Modus; erzeugt ec-journey.js): drei schräge Segmente in den Kapitelfarben */
.ec-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 40px; pointer-events: none; opacity: 0; transition: opacity var(--dur-2) linear; }
.ec-journey.is-track .ec-progress { opacity: 1; }
.ec-journey.is-done .ec-progress { opacity: 0; }
.ec-progress__seg { position: absolute; bottom: 0; height: 10px; }
.ec-progress__seg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: color-mix(in srgb, var(--chapter) 70%, transparent); }
.ec-progress__fill { position: absolute; inset: 0 -6px 0 0; background-color: var(--chapter); background-image: var(--grain); background-size: 192px 192px; transform-origin: 0 50%; transform: skewX(var(--skew)) scaleX(0); }
.ec-progress__label {
  position: absolute;
  bottom: 18px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--chapter);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-2) linear, transform var(--dur-2) var(--ease-out);
}
.ec-progress__label.is-on { opacity: 1; transform: none; }

/* ============================================================ 9 Bewegung */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .ec-in { animation: ec-in-up var(--dur-hero) var(--ease-out) var(--in-delay, 0s) both; }
  html:not([data-fx="off"]) .ec-in--fade { animation-name: ec-in-fade; }
  html:not([data-fx="off"]) .ec-in--scale { animation-name: ec-in-scale; animation-duration: 2.2s; }
  html:not([data-fx="off"]) .ec-in--flicker { animation: ec-in-flicker .9s linear var(--in-delay, 0s) both; }
  html:not([data-fx="off"]) .ec-in--left { animation-name: ec-in-left; }
  html:not([data-fx="off"]) .ec-in--right { animation-name: ec-in-right; }
}
@keyframes ec-in-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ec-in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ec-in-scale { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes ec-in-left { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes ec-in-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes ec-in-flicker { 0% { opacity: 0; } 12% { opacity: .8; } 18% { opacity: .15; } 30% { opacity: .9; } 42% { opacity: .45; } 100% { opacity: 1; } }

/* Reveal-Zustände: setzt NUR ec-core.js, nie von Hand. Höchstens 0,6 s und 24px. */
.ec-rv { transition: opacity var(--dur-3) var(--ease-out) var(--ec-delay, 0s), transform var(--dur-3) var(--ease-out) var(--ec-delay, 0s); }
.ec-rv:not(.is-in) { opacity: 0; }
.ec-rv--up:not(.is-in) { transform: translateY(24px); }
.ec-rv--left:not(.is-in) { transform: translateX(-24px); }
.ec-rv--right:not(.is-in) { transform: translateX(24px); }
.ec-rv--scale:not(.is-in) { transform: scale(.96); }
.ec-rv--split, .ec-rv--split:not(.is-in), .ec-rv--draw, .ec-rv--draw:not(.is-in), .ec-rv--scramble, .ec-rv--scramble:not(.is-in) { opacity: 1; transform: none; transition: none; }

/* ============================================================ 9b Hilfsklassen */
.ec-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.ec-center { text-align: center; margin-inline: auto; }
.ec-nowrap { white-space: nowrap; }
.ec-muted { color: var(--text-3); }
.ec-text-gold { color: var(--c-gold); }
.ec-text-chapter { color: var(--chapter); }
@media (max-width: 759.98px) { .ec-hide-mobile { display: none !important; } }
@media (min-width: 760px) { .ec-hide-desktop { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html[data-fx="off"] *, html[data-fx="off"] *::before, html[data-fx="off"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

@media print {
  .ec-nav, .ec-scene, .ec-skip, .ec-progress, .ec-footer__mark { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Drehbild-Spieler (ec-cutout.js createFramePlayer): canvas genau über dem Startbild; das Bild bleibt (opacity 0, alt) */
.ec-frames { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ec-cutout--flip > .ec-frames { transform: scaleX(-1); }

/* Schweben (23.11., Jordy: „als ob sie im All schweben und korrigieren“): Startbild und Drehbild-canvas bewegen sich gemeinsam.
   Eigene Eigenschaften translate/rotate – sie setzen sich auf transform (Spiegeln, Fahrt, Parallaxe) drauf, statt es zu ersetzen.
   Hub (7,6 s) und Lage (13,7 s) laufen gegeneinander, die Lage driftet langsam und wird zweimal je Runde mit einem kurzen
   Düsenstoß zurückgeholt (schnell, leichtes Überschwingen). Ausschläge in % der eigenen Größe → groß wie klein gleich ruhig.
   Versatz je Schiff: --sw-d (negative Verzögerung im Markup). Aus bei reduzierter Bewegung und ?fx=off. */
@keyframes ec-schweben-hub {
  0%, 100% { translate: 0 0; }
  50% { translate: 0.5% -1.6%; }
}
@keyframes ec-schweben-lage {
  0% { rotate: 0deg; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  38% { rotate: -1.1deg; animation-timing-function: cubic-bezier(.15, .85, .3, 1); }
  44% { rotate: .35deg; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  50% { rotate: -.1deg; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  82% { rotate: .8deg; animation-timing-function: cubic-bezier(.15, .85, .3, 1); }
  87% { rotate: -.3deg; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  93%, 100% { rotate: 0deg; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .ec-cutout:not(.is-figure) > picture,
  html:not([data-fx="off"]) .ec-cutout:not(.is-figure) > .ec-frames {
    transform-origin: 50% 55%;
    animation: ec-schweben-hub 7.6s cubic-bezier(.45, 0, .55, 1) var(--sw-d, 0s) infinite,
               ec-schweben-lage 13.7s linear calc(var(--sw-d, 0s) * 1.7) infinite;
  }
}

/* --- Lichtschwert-Klinge (Deko, aria-hidden). Markup:
     <i class="ec-blade" style="--blade: var(--c-sith)"><i class="ec-blade__glow"></i><i class="ec-blade__core"></i></i>
   Lage per left/right/top der Elternregel; Dicke --blade-h. Aufbau wie im Film: weißglühender Kern mit runder Spitze,
   farbiger Körper, dreistufiger Schein (Box-Schatten folgen der Form), Funke am Emitter, schwaches Licht auf die
   Umgebung. Lebt leicht: der Schein flackert unregelmäßig, über den Kern läuft ein kaum sichtbarer Energiefluss.
   Zünden: .ec-blade--armed (eingefahren) + .is-lit am selben Element oder an einem Vorfahren. */
.ec-blade {
  --blade: var(--c-sith);
  --blade-h: 12px;
  position: absolute;
  isolation: isolate;
  height: var(--blade-h);
  border-radius: 0 999px 999px 0;
  transform-origin: 0 50%;
  pointer-events: none;
}
.ec-blade::before {   /* Licht auf die Umgebung */
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: calc(var(--blade-h) * -7);
  bottom: calc(var(--blade-h) * -7);
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blade) 26%, transparent), color-mix(in srgb, var(--blade) 8%, transparent) 60%, transparent);
}
.ec-blade::after {    /* Funke am Emitter */
  content: "";
  position: absolute;
  left: calc(var(--blade-h) * -1.3);
  top: 50%;
  width: calc(var(--blade-h) * 2.6);
  height: calc(var(--blade-h) * 2.6);
  margin-top: calc(var(--blade-h) * -1.3);
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0%, color-mix(in srgb, #fff 55%, var(--blade)) 30%, color-mix(in srgb, var(--blade) 45%, transparent) 60%, transparent);
}
.ec-blade__glow, .ec-blade__core { position: absolute; display: block; border-radius: inherit; }
.ec-blade__glow {
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--blade) 70%, #fff) 0%, var(--blade) 22%, var(--blade) 78%, color-mix(in srgb, var(--blade) 70%, #fff) 100%);
  box-shadow:
    0 0 calc(var(--blade-h) * .5) calc(var(--blade-h) * .15) var(--blade),
    0 0 calc(var(--blade-h) * 1.6) calc(var(--blade-h) * .4) color-mix(in srgb, var(--blade) 75%, transparent),
    0 0 calc(var(--blade-h) * 4) calc(var(--blade-h) * .9) color-mix(in srgb, var(--blade) 45%, transparent),
    0 0 calc(var(--blade-h) * 9) calc(var(--blade-h) * 2) color-mix(in srgb, var(--blade) 22%, transparent);
}
.ec-blade__core {
  left: 0;
  right: 2px;
  top: 27%;
  bottom: 27%;
  overflow: hidden;
  background: linear-gradient(90deg, #fff 0%, #fff 90%, color-mix(in srgb, #fff 75%, var(--blade)) 100%);
  box-shadow: 0 0 calc(var(--blade-h) * .3) calc(var(--blade-h) * .08) #fff, 0 0 calc(var(--blade-h) * .9) color-mix(in srgb, #fff 45%, var(--blade));
}
.ec-blade__core::after {   /* Energiefluss: schwache Streifen wandern zur Spitze */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  width: 200%;
  background: repeating-linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--blade) 14%, transparent) 30px, transparent 60px, transparent 110px);
  opacity: .5;
}
.ec-blade--armed { transform: scaleX(0); opacity: 0; transition: transform .26s cubic-bezier(.2, .9, .3, 1), opacity .1s linear; }
.ec-blade--armed.is-lit, .is-lit > .ec-blade--armed, .is-lit .ec-blade--armed { transform: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .ec-blade__glow { animation: ec-hum 2.4s steps(1, end) infinite; }
  html:not([data-fx="off"]) .ec-blade__core::after { animation: ec-flow 1.1s linear infinite; }
}
@keyframes ec-hum {
  0% { opacity: 1; } 7% { opacity: .9; } 9% { opacity: 1; } 31% { opacity: .94; } 33% { opacity: 1; }
  52% { opacity: .88; } 53% { opacity: .98; } 71% { opacity: .93; } 74% { opacity: 1; } 90% { opacity: .95; } 92% { opacity: 1; }
}
@keyframes ec-flow { from { transform: translateX(0); } to { transform: translateX(110px); } }
/* Sonderkristalle: schwarzer Kern, instabile Klinge, Klinge mit Blitzen (Markup wie ec-blade, Blitz mit
   <svg class="ec-blade__bolt" viewBox="0 0 200 20" preserveAspectRatio="none"><polyline …/><polyline …/></svg>) */
.ec-blade--dark .ec-blade__glow { background: color-mix(in srgb, var(--blade) 30%, #020205); }
.ec-blade--dark .ec-blade__core {
  top: 22%;
  bottom: 22%;
  background: linear-gradient(180deg, #2a2c33 0%, #050507 35%, #000 50%, #050507 65%, #2a2c33 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blade) 55%, #fff), 0 0 calc(var(--blade-h) * .7) color-mix(in srgb, var(--blade) 80%, #fff);
}
.ec-blade--dark .ec-blade__core::after { display: none; }
.ec-blade--unstable .ec-blade__bolt { stroke: color-mix(in srgb, var(--blade) 55%, #fff); stroke-width: 1.8; filter: drop-shadow(0 0 2px var(--blade)) drop-shadow(0 0 5px var(--blade)); }
.ec-blade__bolt { position: absolute; left: 0; right: 0; top: -60%; bottom: -60%; width: 100%; height: 220%; overflow: visible; fill: none; stroke: color-mix(in srgb, #fff 70%, var(--blade)); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px var(--blade)); }
.ec-blade__bolt polyline:last-child { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .ec-blade--unstable .ec-blade__glow { animation: ec-crackle .16s steps(1, end) infinite; }
  html:not([data-fx="off"]) .ec-blade__bolt polyline:first-child { animation: ec-bolt-a .5s steps(1, end) infinite; }
  html:not([data-fx="off"]) .ec-blade__bolt polyline:last-child { animation: ec-bolt-b .5s steps(1, end) infinite; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .ec-blade--unstable .ec-blade__bolt polyline:first-child { animation: ec-crk-a .34s steps(1, end) infinite; }
  html:not([data-fx="off"]) .ec-blade--unstable .ec-blade__bolt polyline:last-child { animation: ec-crk-b .34s steps(1, end) infinite; }
}
.ec-blade--unstable .ec-blade__bolt polyline:last-child { opacity: 1; }
@keyframes ec-crk-a { 0% { opacity: 1; } 30% { opacity: .35; } 55% { opacity: 1; } 80% { opacity: .6; } }
@keyframes ec-crk-b { 0% { opacity: .5; } 25% { opacity: 1; } 60% { opacity: .3; } 85% { opacity: 1; } }
@keyframes ec-crackle { 0% { transform: scaleY(1.22); } 33% { transform: scaleY(.9); } 66% { transform: scaleY(1.1); } }
@keyframes ec-bolt-a { 0% { opacity: 1; } 45% { opacity: 0; } 70% { opacity: .8; } 85% { opacity: 0; } }
@keyframes ec-bolt-b { 0% { opacity: 0; } 45% { opacity: 1; } 70% { opacity: 0; } 85% { opacity: .9; } }
