/* Vorstart von zielkreis.com. Tokens nach design/README.md (dunkle Seite), Entwurf design/project/Vorstart.dc.html. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/assets/space-grotesk-latin.woff2') format('woff2'); }

:root {
  --grund: #0A1512; --grund-2: #0C1815; --flaeche: #0F1D19; --raster: #12221D;
  --linie: #1E332B; --linie-2: #26392F; --rand: #3A5248;
  --text: #E8EFEA; --text-2: #C9D6CF; --text-3: #9DB0A8; --text-4: #7F928A;
  --signal: #C6F25C; --signal-hell: #DCF89A; --tinte: #10201C; --warnung: #F5B0B7;
  --titel: 'Space Grotesk', system-ui, sans-serif; --schrift: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--schrift); font-size: 17px; line-height: 1.55; color: var(--text);
  background-color: var(--grund);
  background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px);
  background-size: 56px 56px;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-hell); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.rahmen { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.sprung { position: absolute; left: -9999px; top: 8px; background: var(--signal); color: var(--tinte); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.sprung:focus { left: 8px; }

/* Kopf */
.kopf { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.marke { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-family: var(--titel); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.marke svg { color: var(--signal); }
.marke:hover { color: var(--text); }
.stand { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #2C443A; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--flaeche); }
.stand i { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
h1 { margin: 0; font-family: var(--titel); font-weight: 700; font-size: clamp(42px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.kreiswort { position: relative; display: inline-block; white-space: nowrap; color: var(--signal); margin: 0 0.1em; }
.kreiswort svg { position: absolute; left: -11%; top: -6%; width: 122%; height: 118%; overflow: visible; stroke-dasharray: 640; stroke-dashoffset: 640; animation: zeichne 1.1s 0.35s ease-out forwards; }
@keyframes zeichne { to { stroke-dashoffset: 0; } }
.einleitung { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 30em; }

/* Warteliste */
.warteliste { display: flex; flex-direction: column; gap: 14px; max-width: 560px; scroll-margin-top: 24px; }
.feldtitel { font-size: 15px; font-weight: 600; }
.eingabe { display: flex; flex-wrap: wrap; gap: 10px; background: var(--flaeche); border: 1.5px solid var(--rand); border-radius: 18px; padding: 8px; transition: border-color 0.15s; }
.eingabe:focus-within { border-color: var(--signal); }
.eingabe input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 18px; padding: 14px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--text); }
.eingabe input::placeholder { color: var(--text-4); }
.eingabe input:focus-visible { outline: none; }
.eingabe button, .knopf { flex: 0 0 auto; font: inherit; font-weight: 600; font-size: 18px; background: var(--signal); color: var(--tinte); border: 0; border-radius: 12px; padding: 14px 24px; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.15s, transform 0.1s; }
.eingabe button:hover, .knopf:hover { background: var(--signal-hell); color: var(--tinte); }
.eingabe button:active, .knopf:active { transform: translateY(1px); }
.eingabe button[disabled] { opacity: 0.6; cursor: progress; }
.einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text-3); cursor: pointer; }
.einwilligung input { width: 22px; height: 22px; margin: 0; accent-color: var(--signal); flex: none; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.meldung { margin: 0; min-height: 1.5em; font-size: 15px; font-weight: 500; }
.meldung.fehler { color: var(--warnung); }
.meldung.gut { color: var(--signal); }
.warteliste.fertig .eingabe, .warteliste.fertig .einwilligung, .warteliste.fertig .feldtitel { display: none; }
.warteliste.fertig .meldung { font-size: 19px; line-height: 1.45; border: 1.5px solid var(--signal); border-radius: 18px; padding: 20px 22px; background: var(--flaeche); }

/* Der Kreis zum Selberziehen */
.spiel { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.karte { --r: 26.85%; position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 28px; background: var(--flaeche); border: 1px solid var(--linie-2); overflow: hidden; }
.strassen { position: absolute; inset: 0; width: 100%; height: 100%; }
.strassen g { stroke: #1B2F28; stroke-width: 0.5; }
.strassen .fluss { stroke: #16323A; stroke-width: 3; stroke-linecap: round; }
.ring, .puls { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; transform: translate(-50%, -50%); }
.ring { border: 2.5px solid var(--signal); background: rgba(198, 242, 92, 0.07); transition: width 0.25s ease-out, height 0.25s ease-out; }
.puls { border: 1.5px solid var(--signal); animation: puls 2.8s ease-out infinite; }
@keyframes puls { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; } 100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; } }
.mitte { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; border: 2.5px solid var(--text); }
.punkt { position: absolute; width: 6px; height: 6px; border-radius: 50%; transform: translate(-50%, -50%); background: #34493F; transition: background 0.2s, width 0.2s, height 0.2s, box-shadow 0.2s; }
.punkt.innen { width: 8px; height: 8px; background: var(--text); }
.punkt.innen.stark { width: 13px; height: 13px; background: var(--signal); box-shadow: 0 0 0 6px rgba(198, 242, 92, 0.16); }
.zaehler { position: absolute; left: 18px; top: 18px; margin: 0; background: var(--grund); border: 1px solid #2C443A; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-2); max-width: calc(100% - 36px); }
.zaehler strong { font-family: var(--titel); font-weight: 700; font-size: 34px; line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; }
.hinweis { position: absolute; right: 18px; bottom: 16px; font-size: 12px; color: var(--text-4); }
.regler { display: flex; flex-direction: column; gap: 6px; }
.regler label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 600; }
.regler output { font-family: var(--titel); font-size: 22px; color: var(--signal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.regler input { width: 100%; height: 44px; margin: 0; accent-color: var(--signal); cursor: grab; }

/* Acht Schritte */
.band { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--grund-2); padding: 72px 0; }
.band-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 44px; }
h2 { margin: 0; font-family: var(--titel); font-weight: 700; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -0.025em; max-width: 14em; text-wrap: balance; }
.band-kopf p { margin: 0; color: var(--text-3); max-width: 26em; }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 28px 12px; }
.schritte li { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--linie-2); padding-top: 16px; }
.schritte .nr { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--rand); display: flex; align-items: center; justify-content: center; font-family: var(--titel); font-weight: 700; font-size: 17px; }
.schritte .name { font-family: var(--titel); font-weight: 600; font-size: 18px; line-height: 1.2; }
.schritte .text { color: var(--text-3); font-size: 14px; line-height: 1.45; }
.schritte li.aktiv { border-top-color: var(--signal); }
.schritte li.aktiv .nr { background: var(--signal); border-color: var(--signal); color: var(--tinte); }

/* Drei Kacheln */
.drei { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie-2); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.kachel h3 { margin: 0; font-family: var(--titel); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.kachel p { margin: 0; color: var(--text-2); }
.kachel.signal { background: var(--signal); border-color: var(--signal); color: var(--tinte); }
.kachel.signal h3 { font-weight: 700; }
.kachel.signal p { color: var(--tinte); }
.kachel.signal a { align-self: flex-start; color: var(--tinte); font-weight: 600; padding: 8px 0; }

/* Fuss */
.fuss { border-top: 1px solid var(--linie); background: var(--grund); }
.fuss-innen { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: 15px; color: var(--text-3); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.fuss nav a { padding: 10px 0; }

/* Zustandsseiten und Rechtliches */
.zustand { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 760px; }
.zustand-ring { color: var(--signal); }
.zustand h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; }
.zustand p { margin: 0; font-size: 20px; color: var(--text-2); }
.zustand p.klein { font-size: 15px; color: var(--text-3); }
.zustand .abmelden { margin: 0; }
.recht { padding-top: 48px; padding-bottom: 96px; max-width: 820px; }
.recht h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 28px; }
.recht h2 { font-size: 24px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.recht p { margin: 0 0 14px; color: var(--text-2); }
.etikett { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); }

@media (max-width: 640px) {
  .rahmen { padding-left: 20px; padding-right: 20px; }
  .kopf { padding-top: 16px; padding-bottom: 16px; }
  .marke { font-size: 22px; }
  .hero { padding-top: 20px; padding-bottom: 56px; gap: 40px; }
  .eingabe button { flex: 1 1 100%; }
  .band, .drei { padding-top: 52px; padding-bottom: 52px; }
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regler label { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .kreiswort svg { stroke-dashoffset: 0; }
  .puls { display: none; }
}
