@font-face {
  font-family: 'Anton';
  src: url('/assets/anton.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #15162B;
  --bg-head: #0D0E1E;
  --card: #1E1F3A;
  --line: #33345A;
  --fg: #F6F6F6;
  --dim: #9A9BB8;
  --faint: #61637F;
  --gold: #F9B233;
  --gold-ink: #3D2A00;
  --org: #E3540A;
  --top: #FFAA29;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}

.display {
  font-family: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .94;
  margin: 0;
}

.topbar { height: 7px; background: var(--top); }

.wrap { max-width: 560px; margin: 0 auto; }

/* ── Kopfbereich ───────────────────────────────────────────────────────── */

.head {
  position: relative;
  background: var(--bg-head);
  padding: 22px 20px 34px;
  overflow: hidden;
}

.head-bg {
  position: absolute;
  inset: -20% 0 0;
  background: url('/assets/header-background.jpg') center / cover no-repeat;
  opacity: .5;
  will-change: transform;
}

.head-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,14,30,.35), rgba(13,14,30,.92) 78%, var(--bg-head));
}

.head-inner { position: relative; }

.logo { display: block; width: 168px; max-width: 52%; margin: 0 auto 22px; }

.sticker {
  display: inline-block;
  background: var(--org);
  color: #FFF4EE;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 11px;
  margin-bottom: 12px;
}

h1.display { font-size: clamp(38px, 13vw, 54px); }
h1 .gold { color: var(--gold); }

.lede { font-size: 14px; color: #C9CADC; line-height: 1.55; margin: 14px 0 0; }

/* ── Inhalt ────────────────────────────────────────────────────────────── */

main { padding: 20px; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }

.chip {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #191A32;
  color: var(--dim);
}

.chip.prize {
  background: #3A2A00;
  color: var(--gold);
  border: 1px dashed #6B5010;
}

.btn {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--gold-ink);
  border: 0;
  border-radius: 9px;
  padding: 16px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
}

.btn:disabled { opacity: .45; cursor: default; }
.btn:active:not(:disabled) { transform: scale(.99); }

/* Zweite Stufe: gleiche Form wie der Hauptknopf, aber nur umrandet — so
   bleibt klar, was der eine wichtige Weg ist und was die Nebenhandlung. */
.btn-secondary {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 13px;
  color: var(--gold);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.btn-secondary:active { transform: scale(.99); }
.btn-secondary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-cancel {
  display: block;
  margin: 0 auto;
  background: none;
  border: 0;
  color: var(--faint);
  font-size: 12.5px;
  cursor: pointer;
}

.hint { font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.hint.center { text-align: center; }

.steps {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step { display: flex; gap: 10px; align-items: center; }

.num {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 14px;
  color: var(--org);
  width: 20px;
  flex: none;
}

/* ── Dateiliste ────────────────────────────────────────────────────────── */

.filelist {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.fileitem { padding: 11px; border-bottom: 1px solid #2A2C4E; }
.fileitem:last-child { border-bottom: 0; }

.filerow { display: flex; gap: 10px; align-items: center; }
.filemeta { min-width: 0; flex: 1; }
.filename {
  font-size: 12.5px;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filesize { color: var(--faint); font-size: 11px; margin: 0; }

.remove {
  background: none;
  border: 0;
  color: var(--faint);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex: none;
}
.remove:hover { color: var(--fg); }

.state { font-size: 11px; color: var(--faint); flex: none; }
.state.done { color: var(--gold); }
.state.failed { color: #FF9E76; }

.bar { height: 6px; background: #2A2C4E; border-radius: 3px; overflow: hidden; margin-top: 9px; }
.bar > i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .25s linear; }

/* ── Formular ──────────────────────────────────────────────────────────── */

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 5px; }
.field .opt { color: var(--faint); }

.field input {
  width: 100%;
  background: #191A32;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 44px;
  padding: 0 12px;
  color: var(--fg);
  font-size: 16px; /* unter 16px zoomt iOS beim Fokus hinein */
  font-family: inherit;
}

.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field input::placeholder { color: #55576F; }
.field.invalid input { border-color: var(--org); }

.err { color: #FF9E76; font-size: 12px; margin: 5px 0 0; }

.consents { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--gold);
}

.consent a { color: var(--gold); }

.placeholder-note {
  font-size: 10.5px;
  color: #FF8A5C;
  background: #3A1405;
  border: 1px dashed var(--org);
  border-radius: 6px;
  padding: 7px 9px;
  margin: 0 0 12px;
}

.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

.notice.bad { border-color: var(--org); color: #FF9E76; }

/* ── Abschluss ─────────────────────────────────────────────────────────── */

.done-wrap { text-align: center; padding: 40px 0 10px; }

.tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 34px;
  line-height: 1;
}

.codebox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin: 20px 0;
}

.codebox p { margin: 0; }
.codebox .label { font-size: 11px; color: var(--faint); margin-bottom: 5px; }
.codebox .value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
  color: var(--gold);
  letter-spacing: .06em;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 18px 20px 40px;
  font-size: 11.5px;
  color: var(--faint);
  text-align: center;
}

footer a { color: var(--dim); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .bar > i { transition: none; }
}

/* Ab dem zweiten Schritt schrumpft der Kopfbereich auf das Logo — die
   Plakat-Überschrift hat ihre Arbeit dann getan und würde nur noch
   Scrollweg kosten. */
.compact .head { padding: 14px 20px 16px; }
.compact .head-bg { opacity: .28; }
.compact .logo { width: 104px; margin-bottom: 0; }
/* Nur der Kopfbereich schrumpft — nicht jede Überschrift auf der Seite.
   Ohne die Einschränkung auf .head verschwindet auch der Titel der
   Rechtstexte, die denselben Plakat-Stil benutzen. */
.compact .head .sticker,
.compact .head h1.display,
.compact .head .lede { display: none; }

/* ── Standbild und Zusatzangaben in der Auswahl ────────────────────────── */

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
  background: #2A2C4E;
  flex: none;
}

.thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 15px;
}

.flag {
  margin: 8px 0 0 64px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--gold);
}

/* Die Überschrift bekommt beim Ansichtswechsel den Fokus — ohne Rahmen für
   Mausnutzer, aber sichtbar für alle, die mit der Tastatur unterwegs sind. */
h1:focus, h2:focus { outline: none; }
h1:focus-visible, h2:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ── Rechtstexte ───────────────────────────────────────────────────────── */

.legal { padding: 24px 20px 10px; }
.legal h1 { margin-bottom: 6px; }
.legal-lead { font-size: 12.5px; color: var(--faint); margin: 0 0 26px; }

.legal h2 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--gold);
  margin: 30px 0 8px;
}

.legal p, .legal li { font-size: 14px; line-height: 1.65; color: #C3C4D8; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--fg); font-weight: 500; }
.legal a { color: var(--gold); }

.legal-todo {
  background: #3A1405;
  border: 1px dashed var(--org);
  border-radius: 8px;
  padding: 11px 13px;
  color: #FF9E76 !important;
  font-size: 12.5px !important;
}

.legal-back { margin: 34px 0 0; font-size: 14px; }
