/* KSC-Workshop: gemeinsame Gestaltung für Leinwand, Handy und Ergebnisseite.
   Schwarze Bühne, Magenta-Licht von oben, Glasflächen, Pillen-Knöpfe.
   Schriften: Archivo (Überschriften), Hind (Text), JetBrains Mono (Nebenangaben).
   Es gibt bewusst nur diese eine dunkle Ansicht: Sie trägt auch auf einem flauen Beamer. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hind"; src: url("/fonts/hind-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind"; src: url("/fonts/hind-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hind"; src: url("/fonts/hind-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrainsmono-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --mag: #fb00ff;
  --mag-ink: #fd84ff;
  --mag-soft: rgb(251 0 255 / .14);
  --mag-glow: 0 0 0 1px rgb(251 0 255 / .55), 0 0 42px -6px rgb(251 0 255 / .65);
  --bg: #050506;
  --card: rgb(255 255 255 / .05);
  --card-2: rgb(255 255 255 / .085);
  --line: rgb(255 255 255 / .10);
  --line-2: rgb(255 255 255 / .18);
  --text: #f5f5f7;
  --mut: rgb(255 255 255 / .68);
  --faint: rgb(255 255 255 / .52);
  --ok: #5fe3a1; --ok-soft: rgb(95 227 161 / .14);
  --warn: #f7c35f; --warn-soft: rgb(247 195 95 / .13);
  --red: #ff7a70; --red-soft: rgb(255 122 112 / .14);
  --blau: #7aa7ff; --orange: #ff9a62; --violett: #c58cff;
  --r: 28px;
  --sanft: cubic-bezier(.22, 1, .36, 1);
  --glas: linear-gradient(180deg, rgb(255 255 255 / .075), rgb(255 255 255 / .028));
  --schatten: inset 0 1px 0 rgb(255 255 255 / .09), 0 40px 70px -40px rgb(0 0 0 / .9);
  --display: "Archivo", system-ui, sans-serif;
  --body: "Hind", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mag); outline-offset: 3px; }
[hidden] { display: none !important; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Marke: Hanfland und Freunde ---------- */
.huf-zeichen {
  display: inline-block; width: 1.5em; height: 1.5em; border-radius: .32em; flex: none; vertical-align: middle;
  background: var(--mag) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23fff'%3E%3Crect x='7' y='12' width='3' height='8' rx='1.5'/%3E%3Crect x='11.5' y='8' width='3' height='16' rx='1.5'/%3E%3Crect x='16' y='5' width='3' height='22' rx='1.5'/%3E%3Crect x='20.5' y='10' width='3' height='12' rx='1.5'/%3E%3Crect x='25' y='13.5' width='2.4' height='5' rx='1.2'/%3E%3C/g%3E%3C/svg%3E") center/100% no-repeat;
}
.marke { display: inline-flex; align-items: center; gap: .6em; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.marke-gross { display: flex; align-items: center; justify-content: center; gap: .6em; font: 800 13px/1 var(--display); letter-spacing: .16em; margin-bottom: 26px; }

/* ---------- Schrift ---------- */
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mag-ink); }
.frage { font: 800 clamp(30px, 6vw, 64px)/1.02 var(--display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.mut { color: var(--mut); }
.zahl { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ---------- Flächen ---------- */
.karte { background: var(--glas), rgb(14 14 18 / .72); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--schatten); }
.kulisse { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.kulisse video, .kulisse img { position: absolute; left: 50%; top: -14%; width: max(120%, 1100px); transform: translateX(-50%); opacity: .9; object-fit: cover; }
.kulisse::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 5 6 / 0) 18%, rgb(5 5 6 / .82) 52%, var(--bg) 78%); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; background: var(--mag); color: #0a0a0c; font: 600 17px/1 var(--body);
  box-shadow: 0 12px 36px -10px rgb(251 0 255 / .75); transition: transform .2s var(--sanft), box-shadow .2s var(--sanft), opacity .2s;
  text-decoration: none; white-space: nowrap;
}
.knopf:hover { transform: translateY(-1px); }
.knopf:active { transform: translateY(1px) scale(.99); }
.knopf:disabled { opacity: .45; cursor: default; transform: none; }
.knopf.zart { background: rgb(255 255 255 / .07); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.knopf.zart:hover { background: rgb(255 255 255 / .12); }
.knopf.voll { width: 100%; }
.knopf.klein { min-height: 38px; padding: 0 16px; font-size: 15px; }
.knopf svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Bausteine ---------- */
.chip {
  --f: var(--mag);
  display: inline-flex; align-items: center; gap: .5em; padding: .42em .9em .42em .55em; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--f) 55%, transparent); background: color-mix(in srgb, var(--f) 14%, transparent);
  color: var(--text); font: 600 15px/1 var(--body); white-space: nowrap;
}
.chip .ico { width: 1.45em; height: 1.45em; border-radius: 50%; display: grid; place-items: center; background: var(--f); color: #0a0a0c; flex: none; }
.chip .ico svg { width: .95em; height: .95em; }

/* ---------- Eingaben ---------- */
.feld { display: grid; gap: 7px; }
.feld label { font-weight: 600; font-size: 15px; }
.feld input, .feld textarea {
  width: 100%; min-height: 50px; padding: 11px 15px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .06); color: var(--text); font-size: 17px;
}
.feld textarea { min-height: 96px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--mag); border-color: transparent; }
.hinweis-gelb { margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 15px; }
.hinweis-gruen { margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-size: 15px; }

/* ---------- Balken ---------- */
.balken { position: relative; height: 10px; border-radius: 999px; background: rgb(255 255 255 / .08); overflow: hidden; }
.balken > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--mag); transition: width .7s var(--sanft); }

/* ---------- Anmeldung ---------- */
body.anmelden { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(180deg, rgb(5 5 6 / 0) 180px, var(--bg) 440px), var(--bg) url("/media/licht.jpg") 50% -90px / max(100%, 900px) auto no-repeat; }
.anmeldekarte { width: min(420px, 100%); padding: 34px 28px 28px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: rgb(12 12 16 / .8); box-shadow: 0 40px 80px -30px #000, 0 0 90px -40px var(--mag); text-align: center; }
.anmeldekarte h1 { font: 800 36px/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 6px; }
.anmeldekarte p { margin: 0 0 22px; color: var(--mut); }
.anmeldekarte label { display: block; text-align: left; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.anmeldekarte input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .06); }
.anmeldekarte .knopf { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
