/* Saturn · Hardani-Design (Schriften und Farben von hardani.de, selbst gehostet) */

@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/SpaceGrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/SpaceGrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/JetBrainsMono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #FFFFFF; --bg2: #F4F6F9; --panel: #EBEFF4; --line: #DCE2E9; --line2: #C4CDD8;
  --txt: #0F2A4A; --txt2: #2B4160; --muted: #5A6675; --dim: #6F7B89;
  --accent: #D9532B; --accent-strong: #B8421F; --accent-dim: #FBE4DB;
  --glass: rgba(255, 255, 255, 0.72);
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1626; --bg2: #0E1D31; --panel: #122642; --line: #22344D; --line2: #34486A;
  --txt: #F5F2EB; --txt2: #D5D3CC; --muted: #A9AFB8; --dim: #7F8896;
  --accent: #D9532B; --accent-strong: #F26A45; --accent-dim: #2C1A15;
  --glass: rgba(10, 22, 38, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background-image: radial-gradient(circle at 50% 42%, var(--bg2) 0, var(--bg) 62%);
}
a { color: inherit; text-decoration: none; }

/* ---------- Kopf ---------- */
.kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; height: 64px;
}
.logo { display: inline-flex; align-items: center; border: 1px solid var(--line2); padding: 8px 12px; color: var(--txt); transition: border-color .2s ease; }
.logo:hover { border-color: var(--txt); }
.logo svg { width: 112px; height: 25px; }
.kopf-label, .label, .status, .chip, .fuss {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.kopf-label { color: var(--muted); }

/* ---------- Bühne ---------- */
.buehne {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 12px 20px 28px;
  gap: 14px;
}
.label { color: var(--accent-strong); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 18px; height: 3px; background: var(--accent); }
.titel { font-size: clamp(44px, 8vw, 76px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.modell {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted);
  max-width: 44em; line-height: 1.7; margin-top: -4px;
}
.modell span { color: var(--txt); }
.modell a { color: var(--accent-strong); border-bottom: 1px solid transparent; transition: border-color .2s ease; white-space: nowrap; }
.modell a:hover { border-bottom-color: var(--accent-strong); }
.satz { max-width: 30em; color: var(--txt2); font-size: 17px; }

.stimmen { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.chip {
  appearance: none; cursor: pointer;
  background: var(--glass); color: var(--muted);
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 9px 16px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--muted); color: var(--txt); }
.chip.an { background: var(--txt); border-color: var(--txt); color: var(--bg); }
.chip:disabled { cursor: default; opacity: .45; }
.chip.an:disabled { opacity: 1; }

/* ---------- Knopf mit Ring ---------- */
.kreis {
  --pegel: 0;
  position: relative;
  width: min(300px, 74vw); aspect-ratio: 1;
  display: grid; place-items: center;
  margin: 4px 0;
}
.ring { position: absolute; inset: -6%; width: 112%; height: 112%; pointer-events: none; overflow: visible; }
.ring ellipse {
  fill: none; stroke: var(--line2); stroke-width: 1.5;
  transition: stroke .3s ease;
}
.kreis.laeuft .ring ellipse { stroke: var(--accent); stroke-width: calc(1.5px + var(--pegel) * 3px); }
.kreis.spricht .ring ellipse { stroke-dasharray: 3 9; animation: kreisen 2.4s linear infinite; }
@keyframes kreisen { to { stroke-dashoffset: -120; } }

.knopf {
  appearance: none; cursor: pointer;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--txt); color: var(--bg);
  font-family: var(--font-sans); font-size: 19px; font-weight: 600; letter-spacing: -0.005em;
  display: grid; place-items: center; padding: 18px;
  box-shadow: 0 0 0 calc(var(--pegel) * 14px) color-mix(in srgb, var(--accent) 22%, transparent);
  transition: background .25s ease, transform .15s ease, box-shadow .12s linear;
  position: relative; z-index: 1;
}
.knopf:hover:not(:disabled) { background: var(--accent-strong); }
.knopf:active:not(:disabled) { transform: scale(.98); }
.knopf:disabled { cursor: default; opacity: .55; }
.knopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.kreis.laeuft .knopf { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.kreis.laeuft .knopf:hover { background: var(--accent-strong); }

/* ---------- Status und Untertitel ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); min-height: 18px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.status.aktiv i { background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
.status.hinweis-rot { color: var(--accent-strong); }
.uhr { color: var(--dim); }
.uhr:empty { display: none; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.untertitel {
  min-height: 3.2em; max-width: 34em;
  color: var(--muted); font-size: 16px; line-height: 1.6;
  transition: opacity .6s ease;
}
.untertitel.weg { opacity: 0; }

.hinweis { color: var(--dim); font-size: 13px; max-width: 32em; }

/* ---------- Fuß ---------- */
.fuss {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  padding: 16px 24px 20px; color: var(--dim); border-top: 1px solid var(--line);
  font-size: 10px;
}
.fuss nav { display: flex; gap: 18px; }
.fuss a:hover { color: var(--txt); }

@media (max-width: 560px) {
  .kopf { padding: 12px 16px; }
  .buehne { gap: 12px; padding-top: 4px; }
  .satz { font-size: 16px; }
  .knopf { font-size: 17px; }
  .fuss { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .kreis.spricht .ring ellipse, .status.aktiv i { animation: none; }
}

/* ---------- Hinweis auf Saturn Stadt ---------- */
.spiel {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  max-width: 32em; width: 100%; margin-top: 8px; padding: 16px 20px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  color: var(--txt); text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.spiel:hover { border-color: var(--accent); transform: translateY(-1px); }
.spiel-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.spiel strong { font-weight: 500; font-size: 17px; line-height: 1.35; }
.spiel-text { color: var(--muted); font-size: 14px; line-height: 1.55; }
.spiel-pfeil { color: var(--accent-strong); font-size: 14px; font-weight: 500; margin-top: 2px; }
