@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  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+2113;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --bg: #08080a;
  --flaeche: #141418;
  --flaeche-2: #1c1c22;
  --linie: #2c2c35;
  --text: #f4f4f6;
  --leise: #a3a3ae;
  --akzent: #f90b23;
  --akzent-dunkel: #de0322;
  --auf-akzent: #ffffff;
  --fehler: #ff6b7a;
  --radius: 14px;
  --breite: 560px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
[hidden] { display: none !important; }

.glow {
  position: fixed;
  inset: -30vh -20vw auto -20vw;
  height: 70vh;
  background:
    radial-gradient(40% 55% at 28% 30%, rgba(249, 11, 35, 0.22), transparent 70%),
    radial-gradient(35% 50% at 75% 20%, rgba(120, 60, 255, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.top, main, .foot { position: relative; z-index: 1; width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: 20px; }

.top { padding-top: max(22px, env(safe-area-inset-top)); }
.logo { display: block; height: 38px; width: auto; }
.progress { margin-top: 22px; height: 4px; border-radius: 4px; background: var(--linie); overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--akzent-dunkel), var(--akzent)); transition: width 0.35s ease; }
.step-count { margin: 10px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise); }

main { flex: 1; padding-top: 26px; padding-bottom: 28px; outline: none; }

.kopf h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.kopf p { margin: 12px 0 0; color: var(--leise); max-width: 46ch; }

.frage { margin-top: 30px; }
.frage-titel { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.hinweis { margin: 4px 0 0; font-size: 14px; color: var(--leise); }
.block-titel {
  margin: 40px 0 -8px;
  padding-top: 22px;
  border-top: 1px solid var(--linie);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  appearance: none;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--linie);
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: #4a4a57; }
.chip:active { transform: scale(0.97); }
.chip.on { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); font-weight: 600; }
.chip.klein { min-height: 44px; padding: 9px 16px; font-size: 15px; align-self: flex-start; }

.feld {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--linie);
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
textarea.feld { resize: vertical; min-height: 110px; }
.feld::placeholder { color: #6f6f7b; }
.feld:disabled { opacity: 0.4; }
.feld:focus-visible, .chip:focus-visible, .btn:focus-visible, .link:focus-visible, .vorschau:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.feld:focus-visible { border-color: var(--akzent); }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.stapel .feld { margin-bottom: 0; }
.stapel.oben { margin-top: 14px; }
.adresse { display: flex; flex-direction: column; gap: 10px; }
.adresse .feld { margin-top: 0; }
.adresse .zeile { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }

.fehler { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: var(--fehler); }
.fehler:empty { display: none; }
.hat-fehler .feld { border-color: var(--fehler); }

.nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 22px 20px max(16px, env(safe-area-inset-bottom));
}
.nav-inner { display: flex; gap: 12px; max-width: calc(var(--breite) - 40px); margin-inline: auto; }
.nav .primary { flex: 1; }
.nav.nur-zurueck { position: static; background: none; padding-top: 0; }

.btn {
  appearance: none;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--akzent); color: var(--auf-akzent); }
.btn.primary:hover { background: var(--akzent-dunkel); }
.btn.ghost { background: transparent; border-color: var(--linie); color: var(--text); }
.btn.ghost:hover { border-color: #4a4a57; background: var(--flaeche); }
.btn.text { background: transparent; color: var(--leise); min-height: 48px; }
.btn.text:hover { color: var(--text); }
.btn.breit { width: 100%; }

.vorschau {
  margin: 24px 0 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--linie);
  background: var(--flaeche);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 38dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  user-select: all;
  -webkit-user-select: all;
}
.senden { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; font-weight: 500; text-align: center; }
.status:empty { margin: 0; min-height: 0; }

.link {
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 6px;
  min-height: 44px;
  color: var(--leise);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--text); }
.link.mitte { display: block; margin: 14px auto 0; }

.foot { display: flex; justify-content: center; gap: 18px; padding-top: 4px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }

dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(80dvh, 720px);
  padding: 24px;
  border: 1.5px solid var(--linie);
  border-radius: 18px;
  background: var(--flaeche-2);
  color: var(--text);
  font-size: 15px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
dialog p { margin: 0 0 14px; color: #d4d4dc; overflow-wrap: anywhere; }
dialog a { color: var(--text); }
dialog form { margin-top: 18px; }

.versteckt { position: fixed; top: 0; left: -9999px; opacity: 0; }
.noscript { position: relative; z-index: 1; max-width: var(--breite); margin: 24px auto; padding: 0 20px; }

@media (min-width: 700px) {
  .top { padding-top: 44px; }
  .logo { height: 44px; }
  main { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
