/* Schriften lokal (keine Anfragen an Google) */
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  /* Farben aus dem Server-Logo: tiefes Violett, Lila und Neon-Pink */
  --tief: #0e0420;
  --violett: #24093f;
  --lila: #8b3dff;
  --pink: #ff3fb4;
  --rosa: #ff8fd6;
  --hell: #fbf0ff;
  --hell-leise: #d7c3f3;
  --stadt: #07010f;
  --fenster-an: #ff6ec7;
  --fenster-aus: #2a0f48;
  --gruen: #3ee08a;
  --kopf: "Unbounded", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --schatten: 5px 5px 0 var(--stadt);
  --rand: 2px solid rgba(255, 143, 214, .45);
  --verlauf: linear-gradient(120deg, var(--rosa), var(--pink) 45%, var(--lila));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { font: 400 1.0625rem/1.6 var(--text); color: var(--hell); background: var(--tief); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }
img { display: block; }
::selection { background: var(--pink); color: var(--stadt); }

.sprung { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--pink); color: var(--stadt); padding: .6rem 1rem; font-weight: 700; }
.sprung:focus { top: 1rem; }

/* ---------- Himmel (fixiert, liegt über den Bandfarben, unter dem Inhalt) ---------- */
.himmel { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sterne {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 80px, #ffd6f0, transparent),
    radial-gradient(2px 2px at 160px 40px, #fff, transparent),
    radial-gradient(1px 1px at 230px 120px, #e3ccff, transparent),
    radial-gradient(1.5px 1.5px at 290px 70px, #fff, transparent);
  background-size: 320px 160px;
}
.funkel { position: absolute; width: 6px; height: 6px; background: #fff; opacity: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
/* Neon-Sonne mit Streifen, wie im Logo-Glow */
.sonnen-gruppe { position: absolute; right: 8vw; top: 16vh; width: clamp(110px, 15vw, 210px); aspect-ratio: 1; }
.sonnen-schein {
  position: absolute; inset: -65%;
  background: radial-gradient(circle, rgba(255, 63, 180, .45), rgba(139, 61, 255, .18) 45%, transparent 70%);
}
.sonne {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(transparent 0 62%, var(--tief) 62% 66%, transparent 66% 72%, var(--tief) 72% 77%, transparent 77% 83%, var(--tief) 83% 89%, transparent 89%),
    linear-gradient(#ffd0ef, var(--pink) 55%, var(--lila));
  clip-path: polygon(30% 0,70% 0,70% 10%,90% 10%,90% 30%,100% 30%,100% 70%,90% 70%,90% 90%,70% 90%,70% 100%,30% 100%,30% 90%,10% 90%,10% 70%,0 70%,0 30%,10% 30%,10% 10%,30% 10%);
}
.wolke { position: absolute; fill: #5b2a8f; opacity: .55; }
.wolke-a { width: clamp(140px, 18vw, 260px); top: 26vh; left: -2vw; }
.wolke-b { width: clamp(110px, 13vw, 200px); top: 60vh; right: 4vw; opacity: .45; }
.wolke-c { width: clamp(90px, 10vw, 160px); top: 10vh; left: 40vw; opacity: .35; }

/* ---------- Kopf ---------- */
.kopf { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50; }
.navi {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 1rem;
  background: rgba(20, 6, 44, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: var(--rand); box-shadow: 4px 4px 0 var(--stadt); padding: .55rem .6rem .55rem 1rem;
}
.marke { display: flex; align-items: center; gap: .6rem; font: 800 1.05rem/1 var(--kopf); text-decoration: none; }
.marke img { image-rendering: pixelated; }
.navi-links { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.navi-links a { position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem .7rem; color: var(--hell-leise); }
.navi-links a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.navi-links a:hover { color: var(--hell); }
.navi-links a:hover::after { transform: scaleX(1); }
.navi-links a.navi-shop { background: var(--pink); color: var(--stadt); font-weight: 800; margin-left: .35rem; box-shadow: 3px 3px 0 var(--lila); }
.navi-links a.navi-shop::after { display: none; }
.navi-links a.navi-shop:hover { background: var(--rosa); }
.menue-knopf { display: none; margin-left: auto; background: none; border: 0; font-size: 1.3rem; padding: .3rem .6rem; cursor: pointer; }

/* ---------- Bänder: von Abendglühen bis tiefer Nacht ---------- */
.band { padding: clamp(5rem, 11vw, 8rem) 1rem; }
.huelle { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.huelle.schmal { max-width: 820px; }
.b0 {
  background:
    radial-gradient(ellipse 80% 45% at 70% 100%, rgba(255, 63, 180, .42), transparent 70%),
    linear-gradient(#12052a, #260a48 55%, #45115f);
}
.b1 { background: linear-gradient(#45115f, #321058); }
.b2 { background: linear-gradient(#321058, #260b49); }
.b3 { background: linear-gradient(#260b49, #1c0839); }
.b4 { background: linear-gradient(#1c0839, #15062d); }
.b5 { background: linear-gradient(#15062d, var(--tief)); }

.titel { font: 800 clamp(1.9rem, 4.6vw, 3.1rem)/1.1 var(--kopf); letter-spacing: -.02em; max-width: 20ch; }
.untertitel { margin-top: .9rem; max-width: 52ch; font-size: 1.1rem; color: var(--hell-leise); }
.leise { color: var(--hell-leise); margin-top: .8rem; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 7rem; }
.hero .huelle { width: 100%; }
.status-pille {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem;
  background: rgba(20, 6, 44, .8); border: var(--rand); box-shadow: 3px 3px 0 var(--stadt); padding: .4rem .85rem;
}
.punkt { width: 10px; height: 10px; background: var(--gruen); box-shadow: 0 0 0 3px rgba(62, 224, 138, .25), 0 0 12px var(--gruen); }
.status-pille.aus .punkt { background: #ff5470; box-shadow: 0 0 0 3px rgba(255, 84, 112, .25); }
.wortmarke-feld { position: relative; }
.wortmarke-schein {
  position: absolute; left: -4%; top: 10%; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 63, 180, .5), rgba(139, 61, 255, .25) 45%, transparent 70%);
  filter: blur(30px);
}
.wortmarke {
  position: relative; font: 900 clamp(3.4rem, 14vw, 10.5rem)/.92 var(--kopf); letter-spacing: -.045em;
  margin: 1.4rem 0 1.4rem -.04em; white-space: nowrap; color: #fff;
  text-shadow: 0 0 22px rgba(255, 63, 180, .65), 0 0 60px rgba(139, 61, 255, .55), 6px 6px 0 var(--lila);
}
.buchstabe { display: inline-block; will-change: transform; }
.anim .buchstabe, .anim .status-pille, .anim .einleitung, .anim .adresse, .anim .hero-neben { opacity: 0; }
.einleitung { max-width: 34ch; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45; font-weight: 500; }
.adresse { display: inline-flex; flex-wrap: wrap; margin-top: 2.2rem; border: 3px solid var(--pink); box-shadow: 6px 6px 0 var(--lila), 0 0 34px rgba(255, 63, 180, .35); background: rgba(20, 6, 44, .85); }
.adresse-wert { font: 800 clamp(1.15rem, 2.6vw, 1.5rem)/1 var(--kopf); padding: 1rem 1.3rem; user-select: all; }
.adresse-knopf {
  display: inline-flex; align-items: center; gap: .55rem; border: 0; border-left: 3px solid var(--pink);
  background: var(--pink); color: var(--stadt); padding: 1rem 1.3rem; font-weight: 800; cursor: pointer;
}
.adresse-knopf:hover { background: var(--rosa); }
.hero-neben { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; }
.hero-neben a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--pink); }
.hero-neben a i { margin-right: .3rem; color: var(--rosa); }
.neben-info { color: var(--hell-leise); font-size: .95rem; }

/* ---------- Live ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.kennzahl { border-top: 4px solid var(--pink); padding-top: 1rem; display: flex; flex-direction: column-reverse; gap: .3rem; }
.kennzahl:nth-child(2) { border-color: var(--rosa); }
.kennzahl:nth-child(3) { border-color: var(--lila); }
.kennzahl dd { font: 900 clamp(3rem, 8vw, 5.5rem)/1 var(--kopf); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kennzahl dd span { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kennzahl dt { font-weight: 600; color: var(--hell-leise); }
.live-zweier { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; margin-top: 3.5rem; }
.tafel { background: rgba(255, 255, 255, .05); border: var(--rand); box-shadow: var(--schatten); padding: 1.5rem; }
.tafel h3 { font: 700 1.05rem/1.3 var(--kopf); margin-bottom: 1.1rem; }
.spieler { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.spieler li { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 143, 214, .4); padding: .3rem .65rem .3rem .3rem; font-weight: 700; font-size: .95rem; }
.spieler img { width: 28px; height: 28px; image-rendering: pixelated; background: var(--violett); }
.spieler small { font-size: .7rem; font-weight: 800; background: var(--lila); color: #fff; padding: 0 .35rem; }
.verlauf { width: 100%; height: 170px; display: block; overflow: visible; }
.verlauf .raster { stroke: rgba(255, 255, 255, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.verlauf .flaeche { fill: url(#verlaufFarbe); }
.verlauf .kurve { fill: none; stroke: var(--pink); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: miter; filter: drop-shadow(0 0 6px rgba(255, 63, 180, .7)); }
.verlauf-achse { display: flex; justify-content: space-between; font-size: .82rem; color: var(--hell-leise); margin-top: .5rem; font-variant-numeric: tabular-nums; }

/* ---------- Features ---------- */
.gruppen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.gruppe { background: rgba(255, 255, 255, .05); border: var(--rand); box-shadow: var(--schatten); padding: 1.6rem 1.5rem; transition: border-color .25s; }
.gruppe:hover { border-color: var(--pink); }
.gruppe h3 { font: 800 1.4rem/1.2 var(--kopf); display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 2px solid rgba(255, 143, 214, .3); }
.gruppe h3 i { font-size: 1.1rem; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; background: var(--lila); color: #fff; box-shadow: 3px 3px 0 var(--stadt); }
.gruppe:nth-child(2) h3 i { background: var(--pink); color: var(--stadt); }
.gruppe:nth-child(3) h3 i { background: var(--rosa); color: var(--stadt); }
.gruppe ul { list-style: none; }
.gruppe li { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); display: grid; gap: .15rem; }
.gruppe li:last-child { border-bottom: 0; padding-bottom: 0; }
.gruppe li strong { font-weight: 800; }
.gruppe li span { color: var(--hell-leise); font-size: .97rem; }

/* ---------- Rang-Treppe ---------- */
.treppe { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: .7rem; margin-top: 3.5rem; min-height: 360px; }
.stufe { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.stufe-saeule {
  height: calc(var(--hoehe) * 260px + 46px); background: var(--saeule, var(--farbe)); border: 2px solid var(--stadt);
  box-shadow: 4px 4px 0 var(--stadt), 0 0 26px color-mix(in srgb, var(--farbe) 40%, transparent);
  transform-origin: bottom; transform: scaleY(var(--wachstum, 1)); display: flex; align-items: flex-start; justify-content: center; padding-top: .55rem;
}
.stufe-zahl { font: 800 .85rem/1.1 var(--kopf); color: var(--stadt); text-align: center; white-space: nowrap; }
.stufe:nth-child(5) .stufe-zahl { color: #fff; }
.stufe-text { margin-top: .8rem; display: grid; gap: .1rem; }
.stufe-text strong { font: 800 1rem/1.2 var(--kopf); color: var(--farbe); }
.stufe-text span { font-size: .85rem; color: var(--hell-leise); }
.treppe-link { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.knopf-hell { display: inline-block; background: var(--pink); color: var(--stadt); font-weight: 800; text-decoration: none; padding: .9rem 1.3rem; border: 2px solid var(--stadt); box-shadow: 4px 4px 0 var(--lila); }
.knopf-hell:hover { background: var(--rosa); }
.leise-hell { color: var(--hell-leise); }

/* ---------- Spielen ---------- */
.editionen { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.edition { border: var(--rand); box-shadow: var(--schatten); background: rgba(255, 255, 255, .05); padding: 1.6rem; }
.edition h3 { font: 800 1.3rem/1.2 var(--kopf); display: flex; gap: .6rem; align-items: center; }
.edition h3 i { color: var(--rosa); }
.edition ol { margin: 1.1rem 0 1.4rem 1.2rem; color: var(--hell-leise); display: grid; gap: .35rem; }
.edition li::marker { font: 800 .9rem var(--kopf); color: var(--pink); }
.edition em { font-style: normal; color: var(--hell); font-weight: 600; }
.kopierzeile { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; }
.kopierfeld {
  width: 100%; display: flex; align-items: center; gap: .8rem; text-align: left; cursor: pointer;
  background: var(--hell); color: var(--violett); border: 2px solid var(--hell); box-shadow: 4px 4px 0 var(--pink); padding: .8rem 1rem;
}
.kopierfeld span { font-size: .78rem; font-weight: 700; color: #6a4f8f; }
.kopierfeld strong { font: 800 1.05rem/1 var(--kopf); margin-right: auto; }
.kopierfeld i { color: var(--lila); }
.kopierfeld:hover { background: #fff; }

/* ---------- Fragen ---------- */
.fragen { margin-top: 2.5rem; border-top: 2px solid rgba(255, 143, 214, .3); }
.frage { border-bottom: 2px solid rgba(255, 143, 214, .3); }
.frage summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; font: 700 1.1rem/1.35 var(--kopf);
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary:hover { color: var(--rosa); }
.frage summary i { color: var(--pink); transition: transform .3s; flex: none; }
.frage[open] summary i { transform: rotate(45deg); }
.antwort { padding: 0 0 1.3rem; color: var(--hell-leise); max-width: 62ch; }
.antwort strong { color: var(--hell); }
.antwort a { color: var(--rosa); }

/* ---------- Fuß mit Skyline ---------- */
.fuss { position: relative; z-index: 1; background: linear-gradient(var(--tief) 0, var(--tief) 40%, var(--stadt) 40%); }
.skyline { display: block; width: 100%; height: clamp(140px, 22vw, 240px); }
.haeuser rect { fill: var(--stadt); }
.fenster rect { fill: var(--fenster-aus); }
.fenster rect.an { fill: var(--fenster-an); }
.fuss-innen { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1rem 2.5rem; }
.fuss-zeile { font-size: 1.1rem; max-width: 52ch; color: var(--hell-leise); }
.fuss-zeile strong { color: var(--fenster-an); font-family: var(--kopf); }
.fuss-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 1.8rem 0; }
.fuss-links a { text-decoration: none; font-weight: 700; }
.fuss-links a:hover { color: var(--rosa); }
.fuss-links i { margin-right: .35rem; color: var(--pink); }
.fuss-klein { font-size: .82rem; color: var(--hell-leise); opacity: .8; }

/* ---------- Meldung „Kopiert“ ---------- */
.meldung {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); opacity: 0; pointer-events: none;
  background: var(--pink); color: var(--stadt); font-weight: 800; padding: .8rem 1.2rem; border: 2px solid var(--stadt); box-shadow: 4px 4px 0 var(--lila);
}

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .menue-knopf { display: block; }
  .navi { flex-wrap: wrap; }
  .navi-links { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: .4rem 0 .2rem; }
  .navi-links.offen { display: flex; }
  .navi-links a.navi-shop { margin: .3rem 0 0; text-align: center; }
  .gruppen { grid-template-columns: 1fr; }
  .live-zweier { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .kennzahlen { grid-template-columns: 1fr; gap: 1.2rem; }
  .editionen { grid-template-columns: 1fr; }
  .kopierzeile { grid-template-columns: 1fr; }
  /* Treppe wird zu liegenden Balken */
  .treppe { grid-template-columns: 1fr; min-height: 0; gap: .9rem; }
  .stufe { flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: .8rem; height: auto; }
  .stufe-saeule {
    height: 34px; width: calc(var(--hoehe) * 62% + 18%); flex: none; transform-origin: left; transform: scaleX(var(--wachstum, 1));
    align-items: center; justify-content: flex-end; padding: 0 .6rem;
  }
  .stufe-text { margin: 0; width: 6.5rem; flex: none; }
  .adresse { display: flex; }
  .adresse-wert { flex: 1; }
  .adresse-knopf { flex: 1 0 100%; border-left: 0; border-top: 3px solid var(--pink); justify-content: center; }
  .wortmarke { white-space: normal; text-shadow: 0 0 18px rgba(255, 63, 180, .6), 4px 4px 0 var(--lila); }
  .sonnen-gruppe { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frage summary i, .navi-links a::after, .gruppe { transition: none; }
}
