/* =====================================================================
   PRISM Roleplay — "City of PRISM" Website
   Design-DNA aus prism_loadingscreen v3.4: Spektrum-Palette,
   Cinzel + DM Sans (self-hosted), Chrom-Wordmark, Glas, Korn, Sterne.
   ===================================================================== */

/* ---------- Fonts (self-hosted, DSGVO) ---------- */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --text:       #eaf2ff;
  --text-dim:   #a0b0cc;
  --text-muted: #7e8bab;   /* leicht heller als Loadingscreen-Muted, Lesbarkeit */

  --cyan:   #06b6d4;
  --blue:   #3b82f6;
  --violet: #8b5cf6;
  --pink:   #ec4899;

  --bg: #04060e;

  --online:  #43e08a;
  --offline: #ff5d6a;
  --blurple: #5865f2;

  --spectrum: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899);
  --spectrum-loop: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #8b5cf6, #3b82f6, #06b6d4);

  --glass-bg: rgba(10, 14, 28, 0.55);
  --glass-bg-strong: rgba(8, 12, 24, 0.78);
  --glass-border: rgba(160, 176, 204, 0.14);
  --glass-border-bright: rgba(160, 176, 204, 0.32);
  --glass-highlight: rgba(234, 242, 255, 0.06);

  --band: rgba(4, 6, 14, 0.86);

  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Cinzel", "Georgia", "Times New Roman", serif;
  --font-mono: "Cascadia Code", "Consolas", monospace;

  /* Chrom-Satin wie auf dem PRISM-Logo-Badge (aus dem Loadingscreen) */
  --chrome: linear-gradient(180deg,
      #ffffff 0%, #e6eef9 30%, #b7c8e0 50%, #8ba3c2 62%,
      #d6e2f1 82%, #f4f8fd 100%);

  --r: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-Skala */
  --z-backdrop: 0;
  --z-scene: 2;
  --z-scrim: 3;
  --z-content: 10;
  --z-nav: 100;
  --z-lightbox: 150;
  --z-trailer: 200;
  --z-skip: 210;
}

/* ---------- Reset / Basis ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: var(--z-skip);
  padding: 10px 18px; border-radius: 999px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-bright);
  color: var(--text); font-weight: 700; font-size: 0.9rem; text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus-visible { top: 14px; }

/* =====================================================================
   Nacht-Backdrop: Foto (Ken Burns) + Sternen-Canvas + Scrims
   ===================================================================== */

.backdrop {
  position: fixed; inset: 0; z-index: var(--z-backdrop);
  overflow: hidden; background: var(--bg);
}

.backdrop__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.72);
  /* 2 Durchläufe (hin & zurück, ~92 s), dann steht das Bild — Energie */
  animation: kenburns 46s ease-in-out 2 alternate both;
}

@keyframes kenburns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Höhe setzt scene.js (nur oberer Himmelsbereich — Performance) */
#scene {
  position: fixed; top: 0; left: 0; width: 100%; z-index: var(--z-scene);
  pointer-events: none;
}

/* EINE fixe Scrim-Ebene statt drei (Overdraw!): Korn (Opacity in der SVG
   gebacken) + Vignette + Verlaufs-Abdunklung als Background-Stapel. */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim);
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, transparent 50%, rgba(4, 6, 14, 0.6) 100%),
    linear-gradient(180deg, rgba(4, 6, 14, 0.62) 0%, rgba(4, 6, 14, 0.18) 30%,
                    rgba(4, 6, 14, 0.18) 55%, rgba(4, 6, 14, 0.72) 100%);
}

/* Beim Scrollen pausieren alle Dauer-Animationen (main.js setzt die Klasse) —
   Compositing-Last runter, Scroll bleibt flüssig. */
html.is-scrolling .backdrop__img,
html.is-scrolling .wordmark__sheen,
html.is-scrolling .spectrum-divider,
html.is-scrolling .hero-logo,
html.is-scrolling .cta-box::before,
html.is-scrolling .video-wrap::before,
html.is-scrolling .hero-scroll { animation-play-state: paused; }

/* Ruhemodus (60 s ohne Interaktion, main.js): die teuren Vollbild-Loops
   stehen still — Ken-Burns, Logo-Floaty, Scroll-Pfeil. Sheen/Divider/Puls
   bleiben (winzige Flächen), damit die Seite lebendig wirkt. */
html.is-idle .backdrop__img,
html.is-idle .hero-logo,
html.is-idle .hero-scroll { animation-play-state: paused; }

/* Eco-Modus (main.js: ≤4 Kerne/GB RAM oder Akku-Betrieb): Deko-Loops aus,
   statischer Verlauf bleibt. Das Sternen-Canvas zeichnet einmal statisch. */
html.eco .backdrop__img { animation: none; }
html.eco .wordmark__sheen { display: none; }
html.eco .spectrum-divider,
html.eco .cta-box::before,
html.eco .video-wrap::before { animation: none; }
html.eco.js .hero .hero-logo { animation: rise 0.8s var(--ease) 0.10s both; }
html.eco.js .hero .hero-scroll { animation: riseScroll 0.9s var(--ease) 1.1s both; }
html.eco .hero-scroll { animation: none; }

/* =====================================================================
   Typo-Bausteine
   ===================================================================== */

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-wrap: balance;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
}

.lead {
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 68ch;
  text-wrap: pretty;
}

.muted { color: var(--text-dim); }

/* Kicker mit Spektrum-Strich — Signatur aus der Loadingscreen-Tippkarte.
   Bewusst sparsam einsetzen (nicht über jeder Sektion). */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-dim);
}
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 999px;
  background: var(--spectrum); flex-shrink: 0;
}

.spectrum-divider {
  width: clamp(150px, 14vw, 260px); height: 2px; border-radius: 999px;
  background: var(--spectrum-loop);
  background-size: 300% 100%;
  /* 10 Durchläufe (~70 s), danach statischer Verlauf */
  animation: spectrumShift 7s linear 10;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}
.spectrum-divider--center { margin-inline: auto; }

@keyframes spectrumShift {
  from { background-position: 0% 0; }
  to   { background-position: 300% 0; }
}

/* Chrom-Wortmarke (nur für PRISM selbst) */
.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   Buttons & Pills
   ===================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s ease, border-color 0.25s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--spectrum);
  color: #04060e;
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.42);
}
.btn-primary:hover, .btn-primary:focus-visible {
  filter: brightness(1.1);
  box-shadow: 0 12px 34px rgba(139, 92, 246, 0.55);
}

.btn-discord { background: var(--blurple); color: #fff; }
.btn-discord:hover, .btn-discord:focus-visible {
  background: #4954e0;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.5);
}

.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--glass-border-bright);
  background: rgba(18, 24, 44, 0.75);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-ico { font-size: 0.8em; }

/* Live-Status-Pille */
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  font-size: 0.83rem; font-weight: 700; color: var(--text-dim);
  white-space: nowrap;
}
.live-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted); flex-shrink: 0;
}
.live-pill.online .dot {
  background: var(--online);
  box-shadow: 0 0 10px var(--online);
  animation: pulse 2s ease-in-out infinite;
}
.live-pill.offline .dot { background: var(--offline); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* =====================================================================
   Navigation
   ===================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(18px, 3.2vw, 44px);
  background: rgba(4, 6, 14, 0.42);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav.scrolled {
  background: rgba(4, 6, 14, 0.82);
  border-bottom-color: var(--glass-border);
}

.nav-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-brand img { width: 34px; height: 34px; }
.nav-brand .names { display: flex; flex-direction: column; line-height: 1.05; }
.nav-brand .name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.12em;
}
.nav-brand .sub {
  font-size: 0.6rem; letter-spacing: 0.42em; color: var(--text-dim);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links a {
  position: relative; text-decoration: none;
  color: var(--text-dim); font-weight: 500; font-size: 0.95rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  height: 2px; width: 0; border-radius: 999px;
  background: var(--spectrum);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 9px 20px; font-size: 0.9rem; }

.nav-burger {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg); color: var(--text);
  font-size: 1.2rem; cursor: pointer;
}

/* =====================================================================
   Seiten-Gerüst: Bänder & Fenster auf die Stadt
   ===================================================================== */

main { position: relative; z-index: var(--z-content); }

.wrap {
  max-width: 1160px; margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.wrap--narrow { max-width: 860px; }

/* Inhaltsband: läuft oben/unten weich in die Nacht aus */
.band {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
  background: linear-gradient(180deg,
      rgba(4, 6, 14, 0) 0%,
      var(--band) clamp(60px, 7vw, 100px),
      var(--band) calc(100% - clamp(60px, 7vw, 100px)),
      rgba(4, 6, 14, 0) 100%);
}
.band--first { padding-top: clamp(90px, 11vw, 150px); }

/* Fenster: Blick auf die Stadt zwischen den Bändern */
.window-gap { height: clamp(90px, 14vh, 180px); }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .kicker { margin-bottom: 14px; }
.section-head .h2 { margin-bottom: 0; }
.section-head p { margin-top: 16px; }

/* =====================================================================
   Trailer-Intro (nur Startseite, 1× pro Sitzung)
   ===================================================================== */

#trailerIntro {
  position: fixed; inset: 0; z-index: var(--z-trailer);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
/* Ohne JS darf das Overlay die Seite nicht verdecken (Crawler, No-JS) */
html:not(.js) #trailerIntro { display: none; }
#trailerIntro.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.trailer-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  opacity: 0; visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.8s ease, visibility 0.8s ease,
              transform 1.2s var(--ease), letter-spacing 1.2s var(--ease);
  text-align: center;
  padding: 24px;
}
.trailer-card p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  text-shadow: 0 0 26px rgba(59, 130, 246, 0.5), 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: letter-spacing 1.4s var(--ease);
}
.trailer-card.show {
  opacity: 1; visibility: visible; transform: scale(1);
}
.trailer-card.show p { letter-spacing: 0.30em; }

.trailer-card .t-divider { opacity: 0.85; }

.trailer-card.logo-card img {
  width: clamp(170px, 24vw, 260px);
  height: auto;
  filter: drop-shadow(0 10px 34px rgba(30, 58, 138, 0.55));
}
.trailer-card.logo-card .credit {
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
}

.trailer-skip {
  position: absolute; right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 36px);
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  color: var(--text-dim); font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.trailer-skip:hover, .trailer-skip:focus-visible {
  color: var(--text); border-color: var(--glass-border-bright);
}

/* =====================================================================
   Hero (Startseite)
   ===================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px clamp(18px, 4vw, 40px) 90px;
}

.hero .hero-logo {
  width: clamp(150px, 19vw, 230px);
  height: auto;
  margin-bottom: clamp(10px, 1.8vh, 22px);
  filter: drop-shadow(0 12px 38px rgba(30, 58, 138, 0.55));
  animation: floaty 6s ease-in-out 14;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.wordmark {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 11vw, 8.25rem);  /* Logotype, kein Fließtext-Heading */
  letter-spacing: 0.05em;
  line-height: 1.02;
  display: inline-block;
}
.wordmark__main {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 1px rgba(8, 16, 34, 0.6))
          drop-shadow(0 9px 28px rgba(30, 58, 138, 0.45));
}
.wordmark__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
      transparent 46%, rgba(255, 255, 255, 0.45) 50%, transparent 54%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 12 Durchläufe (~66 s), endet unsichtbar (letzter Frame: opacity 0) */
  animation: sheen 5.5s ease-in-out 12 both;
  pointer-events: none;
}
@keyframes sheen {
  0%       { background-position: 120% 0; opacity: 0; }
  12%      { opacity: 1; }
  38%      { background-position: -60% 0; opacity: 0.9; }
  50%,100% { background-position: -160% 0; opacity: 0; }
}

.wordmark-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.15vw, 1.25rem);
  letter-spacing: 0.5em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(30, 58, 138, 0.5));
  margin-top: clamp(6px, 1vh, 16px);
}

.hero .spectrum-divider { margin: clamp(18px, 2.6vh, 32px) auto; }

/* Rotierende Tagline — Trailer-Textkarte (ohne JS: statisch sichtbar) */
.tagline-slot { min-height: 1.9em; }
.tagline {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 26px rgba(59, 130, 246, 0.5), 0 2px 10px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.30em;
}
html.js .tagline {
  opacity: 0;
  letter-spacing: 0.16em;
  transform: scale(1.04);
  transition: opacity 0.8s ease,
              transform 1.2s var(--ease),
              letter-spacing 1.2s var(--ease);
}
html.js .tagline.is-in {
  opacity: 1;
  letter-spacing: 0.30em;
  transform: scale(1);
}

.hero-sub {
  margin-top: clamp(16px, 2.4vh, 26px);
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  text-wrap: pretty;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin-top: clamp(22px, 3.4vh, 38px);
}

.hero-live { margin-top: 22px; }

.hero-scroll {
  position: absolute; bottom: clamp(16px, 3.5vh, 34px); left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-dim); text-decoration: none; font-size: 1.1rem;
  animation: bob 2.6s ease-in-out 20;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-scroll:hover, .hero-scroll:focus-visible {
  color: var(--text); border-color: var(--glass-border-bright);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* Eingangs-Choreografie (wie Loadingscreen "rise") — reine CSS-Keyframes
   mit Delays, kein JS-Klassenwechsel nötig; ohne JS bleibt alles sichtbar. */
html.js .hero .hero-logo    { animation: rise 0.8s var(--ease) 0.10s both, floaty 6s ease-in-out 1s 14; }
html.js .hero .hero-title   { animation: titleReveal 1.6s var(--ease) 0.30s both; }
html.js .hero .wordmark-sub { animation: rise 0.9s var(--ease) 0.55s both; }
html.js .hero .spectrum-divider,
html.js .hero .tagline-slot { animation: rise 0.9s var(--ease) 0.75s both; }
html.js .hero .hero-sub,
html.js .hero .hero-actions,
html.js .hero .hero-live    { animation: rise 0.9s var(--ease) 0.95s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes titleReveal {
  from { opacity: 0; transform: scale(1.14); filter: blur(12px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
/* .hero-scroll kombiniert translateX — eigene rise-Variante */
html.js .hero .hero-scroll { animation: riseScroll 0.9s var(--ease) 1.1s both, bob 2.6s ease-in-out 2.2s 20; }
@keyframes riseScroll {
  from { opacity: 0; transform: translateX(-50%) translateY(26px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =====================================================================
   Unterseiten-Hero
   ===================================================================== */

.page-hero {
  position: relative;
  min-height: clamp(380px, 56svh, 560px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 150px clamp(18px, 4vw, 40px) clamp(48px, 7vh, 80px);
}
.page-hero .kicker { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65), 0 0 40px rgba(59, 130, 246, 0.25);
}
.page-hero .spectrum-divider { margin: 22px auto 18px; }
.page-hero p {
  max-width: 64ch;
  color: var(--text-dim);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  text-wrap: pretty;
}
.page-hero .hero-actions { margin-top: 26px; }

/* =====================================================================
   Scroll-Reveals (nur mit JS aktiv, sonst sofort sichtbar)
   ===================================================================== */

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: translateY(0); }

/* =====================================================================
   Teaser (Startseite): 2 große Bühnen + Zeilen-Liste
   ===================================================================== */

.stage-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.stage {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(26px, 3.2vw, 40px);
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);  /* kein backdrop-blur: Scroll-Performance */
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 18px 50px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.stage::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--spectrum);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.stage:hover, .stage:focus-visible { transform: translateY(-5px); border-color: var(--glass-border-bright); }
.stage:hover::before, .stage:focus-visible::before { transform: scaleX(1); }

.stage .h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.stage p { color: var(--text-dim); max-width: 46ch; }
.stage .go {
  margin-top: auto; padding-top: 10px;
  font-weight: 700; font-size: 0.95rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.stage .go::after { content: "→"; transition: transform 0.25s var(--ease); }
.stage:hover .go::after { transform: translateX(5px); }

/* Zeilen-Liste für die weiteren Seiten */
.index-list { margin-top: 26px; border-top: 1px solid var(--glass-border); }
.index-row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr auto;
  align-items: baseline; gap: 18px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--glass-border);
  text-decoration: none;
  transition: background 0.25s ease, padding-left 0.25s var(--ease);
}
.index-row:hover, .index-row:focus-visible {
  background: rgba(234, 242, 255, 0.03);
  padding-left: 14px;
}
.index-row .t {
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--text); letter-spacing: 0.03em;
}
.index-row .d { color: var(--text-dim); font-size: 0.95rem; }
.index-row .a { color: var(--text-dim); transition: transform 0.25s var(--ease), color 0.2s ease; }
.index-row:hover .a { color: var(--text); transform: translateX(4px); }

/* =====================================================================
   Video
   ===================================================================== */

.video-wrap {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  position: relative;
}
.video-wrap::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--spectrum-loop); background-size: 300% 100%;
  animation: spectrumShift 7s linear 10;
  z-index: 1;
}
.video-wrap video { width: 100%; display: block; background: #000; }

/* =====================================================================
   Werte / Regel-Kacheln
   ===================================================================== */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.tile {
  padding: 24px 24px 26px;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: rgba(10, 14, 28, 0.5);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--glass-border-bright); }
.tile h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem;
  color: var(--text); margin-bottom: 8px;
}
.tile p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }

/* Feature-Bento (Server-Seite): erste zwei Kacheln groß */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento .tile:nth-child(1), .bento .tile:nth-child(2) { grid-column: span 2; }
.bento .tile:nth-child(1) h3, .bento .tile:nth-child(2) h3 {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em;
}

/* =====================================================================
   Join-Schritte (echte Sequenz → Nummern erlaubt)
   ===================================================================== */

.join { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.join-step {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 18px 50px rgba(0, 0, 0, 0.35);
}
.join-step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem;
  line-height: 1;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(30, 58, 138, 0.5));
  margin-bottom: 12px;
}
.join-step h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 10px; letter-spacing: 0.02em;
}
.join-step p { color: var(--text-dim); font-size: 0.96rem; }
.join-step a { color: var(--text); font-weight: 700; text-decoration: none; }
.join-step a:hover { text-decoration: underline; text-underline-offset: 3px; }

.servercode {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 40px;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
}
.servercode span {
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700;
}
.servercode b {
  font-family: var(--font-mono); font-size: 1.7rem; letter-spacing: 0.14em;
  color: var(--text);
}
.servercode button {
  margin-top: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: transparent;
  color: var(--text-dim); font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 600; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.servercode button:hover, .servercode button:focus-visible {
  color: var(--text); border-color: var(--glass-border-bright);
}

/* =====================================================================
   Prosa (Über uns, Datenschutz)
   ===================================================================== */

.prose { max-width: 68ch; }
.prose--center { margin-inline: auto; text-align: center; }
.prose p { color: var(--text-dim); margin-bottom: 18px; text-wrap: pretty; }
.prose strong { color: var(--text); }
.prose h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 42px 0 16px; letter-spacing: 0.02em;
}
.prose a { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 22px; color: var(--text-dim); margin-bottom: 18px; }

/* Zitat als Trailer-Karte */
.pull {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin: clamp(40px, 6vw, 64px) auto;
  text-align: center;
}
.pull p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: var(--text);
  text-shadow: 0 0 26px rgba(59, 130, 246, 0.5), 0 2px 10px rgba(0, 0, 0, 0.6);
  max-width: 26ch;
  margin: 0;
}

/* =====================================================================
   Team-Bios
   ===================================================================== */

.bio {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.bio:nth-of-type(even) { grid-template-columns: 1fr minmax(240px, 340px); }
.bio:nth-of-type(even) .bio-photo { order: 2; }

.bio-photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.bio-photo::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgba(234, 242, 255, 0.06);
  pointer-events: none;
}
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Runde Variante für quadratische Porträts mit eingebautem Kreis-Ausschnitt */
.bio-photo--round { border-radius: 50%; }
.bio-photo--round::after { border-radius: 50%; }
.bio-photo--round img { aspect-ratio: 1 / 1; }

.bio-body h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.bio-body .role {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.bio-body .role::before {
  content: ""; width: 22px; height: 2px; border-radius: 999px;
  background: var(--spectrum);
}
.bio-body p { color: var(--text-dim); margin-bottom: 14px; max-width: 62ch; text-wrap: pretty; }
.bio-body .rp-tag { color: var(--text-muted); font-size: 0.92rem; }
.bio-body .rp-tag strong { color: var(--text); }

/* =====================================================================
   Originals (Filmplakate) & Galerie & Lightbox
   ===================================================================== */

.story {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.story:nth-of-type(even) { grid-template-columns: 1fr minmax(280px, 520px); }
.story:nth-of-type(even) .story-media { order: 2; }

.story-media {
  border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--glass-border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease;
}
.story-media:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-bright);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.2);
}
.story-media img { width: 100%; display: block; }

.story-body h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.03em; margin-bottom: 6px; text-wrap: balance;
}
.story-body .credit {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}
.story-body .credit::before {
  content: ""; width: 22px; height: 2px; border-radius: 999px;
  background: var(--spectrum);
}
.story-body p { color: var(--text-dim); max-width: 58ch; text-wrap: pretty; }
.story-body .quote { color: var(--text-muted); font-size: 0.92rem; margin-top: 10px; }

/* Galerie: Masonry über Spalten */
.gallery { columns: 3; column-gap: 14px; }
.gallery .ph {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.gallery .ph:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-bright);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.15);
}
.gallery .ph img { width: 100%; display: block; }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: none;
  align-items: center; justify-content: center;
  background: rgba(2, 3, 8, 0.92);
  backdrop-filter: blur(10px);
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.open { display: flex; }
.lb-figure { max-width: min(1200px, 92vw); text-align: center; }
.lb-figure img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 12px; margin-inline: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}
.lb-figure figcaption { margin-top: 14px; color: var(--text-dim); font-size: 0.95rem; }
.lb-close, .lb-nav {
  position: fixed;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg); color: var(--text);
  font-size: 1.25rem; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { border-color: var(--glass-border-bright); background: rgba(18, 24, 44, 0.85); }
.lb-close { top: 22px; right: 22px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* =====================================================================
   CTA-Dock
   ===================================================================== */

.cta-box {
  position: relative;
  text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--spectrum-loop); background-size: 300% 100%;
  animation: spectrumShift 7s linear 10;
}
.cta-box .h2 { margin-bottom: 12px; }
.cta-box > p { max-width: 56ch; margin-inline: auto; }
.cta-box .hero-actions { margin-top: 28px; }
.cta-badge { width: 110px; height: 110px; margin: 0 auto 18px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }

/* =====================================================================
   Footer
   ===================================================================== */

.footer {
  position: relative; z-index: var(--z-content);
  margin-top: clamp(60px, 9vh, 120px);
  background: rgba(3, 5, 12, 0.9);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(420px, 60vw); height: 2px; border-radius: 999px;
  background: var(--spectrum);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}

.foot-inner {
  max-width: 1160px; margin-inline: auto;
  padding: 44px clamp(18px, 4vw, 40px) 30px;
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 40px; height: 40px; }
.foot-brand .name {
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em;
  font-size: 1.02rem; display: block; line-height: 1.2;
}
.foot-brand .tag { color: var(--text-muted); font-size: 0.85rem; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s ease;
}
.foot-links a:hover, .foot-links a:focus-visible { color: var(--text); }

.foot-bottom {
  border-top: 1px solid rgba(160, 176, 204, 0.08);
  padding: 18px clamp(18px, 4vw, 40px) 26px;
  text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}
.foot-bottom a { color: var(--text-dim); }

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 940px) {
  .nav-links {
    position: fixed; top: 66px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px;
    border-radius: var(--r);
    border: 1px solid var(--glass-border);
    background: rgba(4, 6, 14, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; border-radius: 10px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { background: rgba(234, 242, 255, 0.05); }
  .nav-burger { display: block; }
  .live-pill { display: none; }
  .hero-live.live-pill { display: inline-flex; }  /* im Hero sichtbar lassen */
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .tile:nth-child(1), .bento .tile:nth-child(2) { grid-column: span 2; }
  .gallery { columns: 2; }
}

@media (max-width: 720px) {
  .bio, .bio:nth-of-type(even),
  .story, .story:nth-of-type(even) { grid-template-columns: 1fr; }
  .bio:nth-of-type(even) .bio-photo, .story:nth-of-type(even) .story-media { order: 0; }
  .bio-photo { max-width: 420px; }
  .index-row { grid-template-columns: 1fr auto; }
  .index-row .d { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .tile:nth-child(1), .bento .tile:nth-child(2) { grid-column: span 1; }
  .gallery { columns: 1; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(340px, 100%); margin-inline: auto; }
  .nav-cta .btn { width: auto; }
}

/* =====================================================================
   Reduzierte Bewegung
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop__img { animation: none; }
  .wordmark__sheen { animation: none; opacity: 0; }
  .spectrum-divider, .load-bar, .cta-box::before, .video-wrap::before { animation: none; }
  .hero-scroll { animation: none; }
  .live-pill.online .dot { animation: none; }
  .hero .hero-logo { animation: none; }
  html.js .hero > * { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .tagline { transition: opacity 0.3s ease; letter-spacing: 0.3em; transform: none; }
  .trailer-card, .trailer-card p { transition: opacity 0.3s ease; }
  *, *::before, *::after { animation-duration: 0.001s !important; }
}
