/* ==========================================================================
   kyrelo.nexhub.dev  ·  Design v2
   Dunkles, präzises Streamer-Design. Brand-Magenta aus KYROs Logo als
   einziger Akzent, Rot ausschließlich als Live-Status.
   Shape-System: Flächen 16px · interaktive Elemente voll rund · Media 12px.
   Motion: nur transform/opacity, alles reduced-motion-sicher.
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Display-Font: tactical/techno für Headlines, Buttons, Labels */
@font-face {
  font-family: 'Chakra Petch';
  src: url('/fonts/chakra-petch-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('/fonts/chakra-petch-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('/fonts/chakra-petch-700i.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Seite IST dunkel: verhindert Force-Dark-Umfärbungen (blaue Links) durch
     Chrome-Android/Samsung-Internet-Dark-Mode; ergänzt darkreader-lock */
  color-scheme: dark;

  --bg: #08080b;
  --surface: #0e0e13;
  --surface-2: #13131a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #9d9da8;
  --faint: #6e6e7a;

  --accent: #ff2e9e;
  --accent-strong: #ff5cb5;
  --accent-ink: #22030f;
  --accent-dim: rgba(255, 46, 158, 0.14);

  --live: #ff4655;
  --live-dim: rgba(255, 70, 85, 0.14);

  --r-surface: 4px;
  --r-media: 4px;

  /* Chamfer-Schnitte (R6-HUD-Look): oben links + unten rechts gekappt */
  --cut-card: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --cut-btn: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --cut-chip: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);

  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Chakra Petch', 'Space Grotesk', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* hidden-Attribut muss IMMER gewinnen, auch gegen display:flex auf Klassen
   (sonst bleibt z. B. die Live-Leiste dauerhaft sichtbar) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

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

::selection { background: var(--accent); color: var(--accent-ink); }

/* ==========================================================================
   Hintergrund: ruhige, gezielte Lichtquellen statt Farbmatsch.
   Eigenes Element + <meta name="darkreader-lock">, damit Dark Reader
   das fertige Dark-Design nicht überschreibt.
   ========================================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

/* Lichtkegel oben mittig + kaltes Gegenlicht unten rechts */
.bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(58% 42% at 50% -6%, rgba(255, 46, 158, 0.1), transparent 70%),
    radial-gradient(44% 36% at 88% 108%, rgba(64, 112, 255, 0.07), transparent 70%),
    radial-gradient(30% 26% at 8% 82%, rgba(255, 46, 158, 0.045), transparent 70%);
}

/* eine langsame, kaum sichtbare Lichtbewegung */
.bg-sweep {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 160%;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 46, 158, 0.05) 50%, transparent 70%);
  transform: translate3d(-40%, 0, 0) rotate(6deg);
  animation: sweep 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes sweep {
  to { transform: translate3d(150%, 0, 0) rotate(6deg); }
}

/* feines Korn gegen Banding */
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.038;
  background-image: 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.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* taktisches Raster + Scanlines, sehr dezent */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
  background-size: 56px 56px, 56px 56px, 100% 3px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
}

/* ==========================================================================
   Live-Leiste
   ========================================================================== */
.live-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px max(22px, env(safe-area-inset-left));
  background: linear-gradient(90deg, var(--live-dim), rgba(255, 70, 85, 0.05));
  border-bottom: 1px solid rgba(255, 70, 85, 0.3);
  color: var(--text);
  font-size: 0.94rem;
}
.live-bar:hover { color: var(--text); }
.live-bar strong { color: #ff97a0; white-space: nowrap; font-weight: 600; }
.live-bar-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.live-bar-cta { margin-left: auto; color: var(--text); font-weight: 600; white-space: nowrap; font-size: 0.9rem; }
.live-bar-cta i { font-size: 0.78em; margin-left: 5px; }

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
  animation: pulse 1.7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0.5); }
  55% { box-shadow: 0 0 0 7px rgba(255, 70, 85, 0); }
}

/* ==========================================================================
   Navigation: 3-Spalten-Grid, Links exakt mittig
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 66px;
  padding: 0 var(--pad);
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.2em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-bolt { width: 19px; height: 19px; fill: var(--accent); }

.nav-links { justify-self: center; display: flex; gap: 34px; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.nav-icon:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  font-size: 1.02rem;
  cursor: pointer;
}

/* Mobiles Menü */
.nav-menu {
  position: sticky;
  top: 66px;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 10px var(--pad) 22px;
  background: rgba(10, 10, 14, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  animation: menu-in 0.28s var(--ease);
}
.nav-menu > a:not(.btn) {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.nav-menu .btn { margin-top: 14px; justify-content: center; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 0;
  clip-path: var(--cut-btn);
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 18px -6px rgba(255, 46, 158, 0.45);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); color: var(--text); }

.btn-live {
  background: var(--live);
  color: #fff;
  box-shadow: 0 4px 18px -6px rgba(255, 70, 85, 0.5);
}
.btn-live:hover { background: #ff5f6c; color: #fff; }

.btn-sm { padding: 9px 17px; font-size: 0.9rem; }
.btn-icon { padding: 12px 15px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(52px, 9vh, 96px) var(--pad) clamp(44px, 7vh, 80px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 22px 0 20px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; padding-right: 0.08em; }

/* Wort-für-Wort-Einstieg der Headline */
.hero h1 .hw { display: inline-block; animation: word-in 0.7s var(--ease) both; }
.hw-1 { animation-delay: 0.05s; }
.hw-2 { animation-delay: 0.12s; }
.hw-3 { animation-delay: 0.19s; }
.hw-4 { animation-delay: 0.28s; }
.hw-5 { animation-delay: 0.35s; }
.hw-6 { animation-delay: 0.42s; }
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.55em); }
  to { opacity: 1; transform: translateY(0); }
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44ch;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 0;
  clip-path: var(--cut-chip);
  border: 1px solid var(--line-strong);
  background: rgba(14, 14, 19, 0.7);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #55555f; }
.status-pill[data-state='live'] { border-color: rgba(255, 70, 85, 0.5); color: #ff97a0; background: var(--live-dim); }
.status-pill[data-state='live'] .status-dot { background: var(--live); animation: pulse 1.7s ease-in-out infinite; }

/* --- Avatar ------------------------------------------------------------ */
.hero-visual { justify-self: center; text-align: center; }

/* Das Profilbild ist ein Kreis auf schwarzem Quadrat.
   Rund ausschneiden, ruhiger Doppelring, weicher Brand-Glow darunter. */
.avatar-frame {
  position: relative;
  width: min(320px, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 45%) border-box;
  border: 1px solid var(--line-strong);
  margin: 0 auto;
  box-shadow:
    0 30px 80px -30px rgba(255, 46, 158, 0.35),
    0 10px 40px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.avatar-frame::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 46, 158, 0.22);
}
.avatar-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface);
}
.avatar-frame.is-live { border-color: rgba(255, 70, 85, 0.55); }
.avatar-frame.is-live::after { border-color: rgba(255, 70, 85, 0.3); animation: pulse-ring 2.2s ease-in-out infinite; }
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.035); opacity: 0.55; }
}

/* schwebendes LIVE-Abzeichen am Avatar */
.avatar-badge {
  position: absolute;
  top: 6%;
  right: 2%;
  padding: 6px 14px;
  clip-path: var(--cut-chip);
  background: var(--live);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  box-shadow: 0 6px 20px -6px rgba(255, 70, 85, 0.6);
}

.avatar-caption { margin-top: 18px; display: flex; flex-direction: column; gap: 1px; }
.avatar-caption strong { letter-spacing: 0.12em; font-size: 1.02rem; }
.avatar-caption a { color: var(--muted); font-size: 0.93rem; }
.avatar-caption a:hover { color: var(--accent); }

/* ==========================================================================
   Marquee (einmal pro Seite)
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: rgba(14, 14, 19, 0.5);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
/* Pause nur auf echten Hover-Geräten: auf Touch bleibt :hover sonst nach
   einem Tap dauerhaft hängen und der Marquee stoppt für immer */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}
.marquee-track i { color: var(--accent); font-size: 0.75em; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   Bento: Stats + letzte Streams + Discord
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: clamp(36px, 6vh, 60px);
  padding-bottom: clamp(28px, 4vh, 44px);
}

.tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  clip-path: var(--cut-card);
  padding: 24px 26px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.tile:hover { border-color: rgba(255, 46, 158, 0.3); }
/* HUD-Eckwinkel unten links */
.tile::after {
  content: '';
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-left: 2px solid rgba(255, 46, 158, 0.45);
  border-bottom: 2px solid rgba(255, 46, 158, 0.45);
  pointer-events: none;
}

/* Cursor-Spotlight auf Karten (Position via --mx/--my aus JS) */
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 46, 158, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.glow-card:hover::before { opacity: 1; }

.stat-tile { display: flex; flex-direction: column; gap: 3px; }
.tile-icon { color: var(--accent); font-size: 1.05rem; margin-bottom: 12px; }
.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat-label {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Sparkline + Meilenstein im Follower-Tile */
.sparkline { width: 100%; height: 30px; margin-top: 12px; overflow: visible; }
.sparkline polyline { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline circle { fill: var(--accent); }

.milestone { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.milestone-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.milestone-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1s var(--ease);
}
.milestone-text { color: var(--faint); font-size: 0.82rem; }
.milestone-text .num { font-family: var(--mono); color: var(--muted); }

.history-tile { grid-column: span 2; }
.history-tile h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-tile h3 i { color: var(--accent); font-size: 0.9em; }
.history-list { list-style: none; display: flex; flex-direction: column; }
.history-list li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  font-size: 0.95rem;
}
.history-list li + li { border-top: 1px solid var(--line); }
.history-date { color: var(--text); font-weight: 600; white-space: nowrap; }
.history-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.history-dur, .history-peak { font-family: var(--mono); color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.history-peak i { color: var(--accent); font-size: 0.8em; margin-right: 4px; }
.history-empty { color: var(--faint); font-size: 0.93rem; }

.discord-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-end;
  min-height: 190px;
  color: var(--text);
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(255, 46, 158, 0.16), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.discord-tile:hover { color: var(--text); transform: translateY(-2px); }
.discord-tile > i { font-size: 1.9rem; color: var(--accent); margin-bottom: auto; }
.discord-tile strong { font-size: 1.08rem; letter-spacing: -0.01em; }
.discord-tile > span { color: var(--muted); font-size: 0.92rem; }
.tile-cta {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.94rem;
}
.tile-cta i { font-size: 0.8em; margin-left: 5px; transition: transform 0.2s ease; }
.discord-tile:hover .tile-cta i { transform: translateX(4px); }

.stats-note { grid-column: 1 / -1; color: var(--faint); font-size: 0.83rem; }

/* ==========================================================================
   Sektionen
   ========================================================================== */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 9vh, 100px) var(--pad);
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
/* HUD-Marker vor Überschriften */
.section h2::before {
  content: '';
  width: 14px;
  height: 0.85em;
  flex-shrink: 0;
  background: var(--accent);
  clip-path: polygon(0 100%, 45% 0, 100% 0, 55% 100%);
}
.section > p, .customs-intro > p { color: var(--muted); font-size: 1.06rem; }

/* --- Live-Karte --------------------------------------------------------- */
.live-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  clip-path: var(--cut-card);
  padding: clamp(26px, 4vw, 46px);
}
.live-card[data-state='live'] {
  border-color: rgba(255, 70, 85, 0.4);
}
.live-card[data-state='live']::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--live);
}

.live-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.live-card h2 { margin: 12px 0 8px; }
.live-card p { color: var(--muted); font-size: 1.04rem; max-width: 58ch; }
.live-card p .num { font-family: var(--mono); color: var(--text); font-weight: 600; }

.live-flag-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-uptime {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.live-flag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 0;
  clip-path: var(--cut-chip);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.live-card[data-state='live'] .live-flag {
  color: #fff;
  background: var(--live);
  border-color: transparent;
}

/* --- Live-Vorschau ------------------------------------------------------ */
.live-preview { margin-top: 26px; }

.preview-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  color: var(--text);
  font-family: var(--font);
}
.preview-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(0.4) saturate(1.3);
  transform: scale(1.2);
}
.preview-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 70% at 50% 50%, transparent, rgba(0, 0, 0, 0.55));
}
.preview-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  clip-path: var(--cut-btn);
  background: var(--live);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px -8px rgba(255, 70, 85, 0.6);
  transition: transform 0.15s ease;
}
.preview-poster:hover .preview-cta { transform: translateY(-2px); }
.preview-note { position: relative; z-index: 1; color: rgba(245, 245, 247, 0.72); font-size: 0.84rem; }

.preview-player video {
  display: block;
  width: 100%;
  max-height: min(68vh, 560px);
  border-radius: var(--r-media);
  border: 1px solid var(--line);
  background: #000;
}
.preview-tools { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.chip-btn { cursor: pointer; font-family: var(--font); transition: border-color 0.2s ease, color 0.2s ease; }
.chip-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.preview-fallback { margin-top: 14px; color: var(--muted); }

/* --- Customs ------------------------------------------------------------ */
.customs {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.customs-dc { margin-top: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border-radius: 0;
  clip-path: var(--cut-chip);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip i { color: var(--accent); font-size: 0.95em; }
.chip-warn { border-color: rgba(255, 46, 158, 0.5); background: var(--accent-dim); }

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  clip-path: var(--cut-card);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.step:hover { border-color: rgba(255, 46, 158, 0.35); transform: translateX(4px); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  background: var(--accent-dim);
  clip-path: var(--cut-chip);
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 4px; letter-spacing: 0.02em; text-transform: uppercase; }
.step p { color: var(--muted); max-width: 52ch; font-size: 0.99rem; }

/* --- Zeiten + Live-Alarm ------------------------------------------------ */
.zeiten { max-width: 860px; }
.zeiten p { max-width: 60ch; }
.alarm { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.alarm-note { color: var(--faint); font-size: 0.9rem; max-width: 52ch; }

/* --- Wochen-Heatmap ------------------------------------------------------ */
.heatmap-wrap { margin-top: 28px; }
.heatmap-wrap h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.heatmap {
  display: grid;
  grid-template-columns: 34px repeat(24, 1fr);
  gap: 3px;
}
.heatmap .hm-day {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  align-self: center;
}
.heatmap .hm-cell {
  aspect-ratio: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}
.heatmap-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-left: 37px;
}
.heatmap-hours {
  flex: 1;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}
.heatmap-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--faint);
  white-space: nowrap;
}
.heatmap-scale {
  width: 64px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 46, 158, 0.08), var(--accent));
}
.heatmap-empty { margin-top: 22px; color: var(--faint); font-size: 0.92rem; }

/* --- Regeln / FAQ (Accordion) -------------------------------------------- */
.regeln { max-width: 860px; }
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faq details {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  clip-path: var(--cut-card);
  transition: border-color 0.25s ease;
}
.faq details[open] { border-color: rgba(255, 46, 158, 0.35); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--accent); font-size: 0.8em; transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.faq-body li { padding-left: 20px; position: relative; }
.faq-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--accent);
  clip-path: polygon(0 100%, 45% 0, 100% 0, 55% 100%);
}
.faq-body strong { color: var(--text); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 42px var(--pad) max(50px, env(safe-area-inset-bottom));
  max-width: var(--wrap);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-top: 24px; color: var(--faint); font-size: 0.84rem; max-width: 80ch; }

/* ==========================================================================
   Unterseiten (Impressum / Datenschutz / 404)
   ========================================================================== */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) var(--pad);
}
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 26px; }
.page h2 { font-size: 1.22rem; margin: 34px 0 10px; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 22px; margin: 10px 0; }
.page .back { display: inline-block; margin-top: 42px; }
.page address { font-style: normal; color: var(--muted); }

/* ==========================================================================
   Back-to-top + Toast
   ========================================================================== */
.to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 14, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  animation: rise 0.4s var(--ease) both;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.to-top:hover { border-color: rgba(255, 46, 158, 0.45); transform: translateY(-2px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.7);
  animation: rise 0.3s var(--ease) both;
}

/* ==========================================================================
   Motion: Laden + Scroll-Reveal
   Ohne JS (kein .js am <html>) ist ALLES sichtbar.
   ========================================================================== */
.rise { animation: rise 0.8s var(--ease) both; }
.rise-2 { animation-delay: 0.1s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee-track { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: clamp(36px, 6vh, 56px); }
  .hero-visual { justify-self: center; order: -1; }
  .avatar-frame { width: min(230px, 58vw); }
  .hero { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .customs { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .history-tile { grid-column: span 2; }
  .discord-tile { grid-column: span 2; min-height: 150px; }
}

@media (max-width: 840px) {
  .nav { display: flex; justify-content: space-between; }
  .nav-links, .nav-follow, .nav .nav-icon { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (min-width: 841px) {
  .nav-menu { display: none !important; }
}

@media (max-width: 720px) {
  .live-bar { font-size: 0.87rem; }
  .live-bar-title { display: none; }
  .live-card-head { flex-direction: column; align-items: flex-start; }
  .marquee-track span { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-ctas .btn-icon { flex: 0 1 auto; margin: 0 auto; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .history-tile, .discord-tile { grid-column: auto; }
  .history-list li { grid-template-columns: auto 1fr auto; }
  .history-title { display: none; }
  .step { padding: 18px; gap: 14px; }
  .preview-poster { min-height: 210px; }
}
