/* =========================================================
   STIER FINANZ — Kfz-Antragsstrecke
   Eigenständig und bewusst klein: die Seite ist das Ziel von
   Instagram-Anzeigen und muss auf dem Handy sofort da sein.
   Tokens sind mit style.css abgestimmt, aber nicht importiert.
   ========================================================= */

:root {
  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Inter, Arial, sans-serif;

  --navy: #0a1a2f;
  --gold: #c9a227;
  --gold-soft: #e0bf5c;

  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --bg-elev: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.18);
  --ok: #15803d;
  --bad: #b91c1c;

  --radius: 16px;
  --pad: clamp(20px, 5.5vw, 32px);
  --maxw: 560px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #000000;
    --bg-tint: #0c0c0e;
    --bg-elev: #17171a;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.13);
    --line-strong: rgba(255, 255, 255, 0.24);
    --gold: #e0bf5c;
    --ok: #4ade80;
    --bad: #f87171;
  }
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-tint: #0c0c0e;
  --bg-elev: #17171a;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --gold: #e0bf5c;
  --ok: #4ade80;
  --bad: #f87171;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* ---------- Kopfzeile ---------- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.mark { display: block; height: 30px; width: auto; }
.mark--dark { display: none; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .mark--light { display: none; }
  html:not([data-theme="light"]) .mark--dark { display: block; }
}

html[data-theme="dark"] .mark--light { display: none; }
html[data-theme="dark"] .mark--dark { display: block; }

.bar-note {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Fortschritt ---------- */
.progress {
  position: sticky;
  top: 55px;
  z-index: 9;
  height: 3px;
  background: var(--line);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.45s var(--ease);
}

/* ---------- Grundlayout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 64px;
}

h1 {
  font-size: clamp(32px, 8.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(25px, 6.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 10px;
}

.grad {
  background: linear-gradient(100deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 17px;
  color: var(--text-2);
  margin: 0 0 24px;
}

.sub {
  color: var(--text-2);
  font-size: 15.5px;
  margin: 0 0 22px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.micro {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-3);
  margin: 20px 0 0;
}

.micro--center { text-align: center; }

.q {
  font-size: 15px;
  font-weight: 600;
  margin: 26px 0 10px;
}

/* ---------- Intro ---------- */
.intro { padding: 40px 0 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 22px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.usp {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.usp li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}

.usp b { color: var(--text); font-weight: 600; }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.985); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #17130a;
  box-shadow: 0 6px 22px rgba(201, 162, 39, 0.28);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-2);
  min-height: 46px;
  font-size: 15px;
  font-weight: 500;
}

.btn--big { width: 100%; min-height: 58px; font-size: 17px; }

.btn[disabled] { opacity: 0.45; cursor: default; }

/* ---------- Auswahlkarten ---------- */
.step { padding: 34px 0 0; }

.choices { display: grid; gap: 11px; }

.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 17px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), transform 0.12s var(--ease),
    background 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.choice:active { transform: scale(0.99); }

.choice b {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.choice span {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}

.choice[aria-pressed="true"] {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, var(--bg-elev));
}

.flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #17130a;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 7px;
  vertical-align: 2px;
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 11px 16px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  font: inherit;
  font-size: 15px;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--bg-elev));
  font-weight: 600;
}

/* ---------- Uploads ---------- */
.uploads { display: grid; gap: 11px; }

.up {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.up input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.up-icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.up-icon svg { width: 100%; height: 100%; display: block; }

.up-text { flex: 1; min-width: 0; }

.up-text b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.up-hint {
  display: block;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.35;
}

.up-state {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
  text-align: right;
  max-width: 92px;
}

.up[data-filled="ja"] {
  border-style: solid;
  border-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 7%, var(--bg-elev));
}

.up[data-busy="ja"] { opacity: 0.6; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 5px;
  vertical-align: 1px;
  /* Ohne das bricht „falls abweichend" mitten im Wort um und der
     Rahmen zerfällt über zwei Zeilen. Lieber rutscht das ganze
     Etikett in die nächste Zeile. */
  white-space: nowrap;
}

.note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--bg-tint);
  border-radius: 12px;
  padding: 13px 15px;
  margin: 14px 0 0;
}

.note b { color: var(--text); }

.hint-alt {
  font-size: 14px;
  color: var(--text-3);
  margin: 18px 0 0;
}

/* ---------- Hinweis auf den kurzen Weg -------------------
   Steht am Kopf des Ersatzwegs. Er soll auffallen, ohne wie eine
   Fehlermeldung auszusehen — wer hier landet, hat nichts falsch
   gemacht, es geht nur einfacher. */
.hinweis-foto {
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, var(--bg-elev));
  border-radius: var(--radius);
  padding: 17px 18px;
  margin: 4px 0 8px;
}

.hinweis-foto p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.hinweis-foto b { color: var(--text); }
.hinweis-foto .btn { width: 100%; }

/* Zwei kurze Felder: auf dem Handy untereinander, erst ab 480 px
   nebeneinander. Die Grenze liegt bewusst über allen gängigen
   Telefonbreiten — sonst stünde dasselbe Formular auf einem iPhone
   einspaltig und auf dem nächsten zweispaltig. */
.feld-paar {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .feld-paar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.feld-hilfe {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-3);
  margin: -6px 0 0;
}

/* Nach einer Chip-Reihe braucht die Hilfe etwas Luft nach oben. */
.chips + .feld-hilfe { margin-top: 10px; }

.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Eingabefelder ---------- */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* unter 16px zoomt iOS beim Fokus */
}

.field input:focus-visible,
.choice:focus-visible,
.chip:focus-visible,
.up:focus-within,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 20px 0 22px;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--gold);
}

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

.err {
  font-size: 14.5px;
  color: var(--bad);
  background: color-mix(in srgb, var(--bad) 9%, transparent);
  border-radius: 12px;
  padding: 12px 15px;
  margin: 0 0 16px;
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.nav .btn--gold { flex: 1; }
.nav--single { justify-content: flex-start; }

/* ---------- Fertig ---------- */
.done { padding: 60px 0 0; text-align: center; }

.done-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #17130a;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.done-mark svg { width: 30px; height: 30px; }

/* ---------- Fußzeile ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 26px var(--pad) 40px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

.foot p { margin: 0 0 8px; }
.foot a { color: var(--text-2); }

/* ---------- Honigtopf ---------- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Ohne JavaScript ---------- */
/* Ohne Skript bleiben alle Schritte sichtbar und das Formular wird
   ganz normal abgeschickt. Erst kfz.js blendet einzeln ein. */
.flow[hidden] { display: block; }
.js .flow[hidden] { display: none; }
.js .step { display: none; }
.js .step[data-aktiv] { display: block; }

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

/* ---------- Ab Tablet ---------- */
@media (min-width: 700px) {
  body { font-size: 17.5px; }
  main { padding-top: 8px; }
  .intro { padding-top: 56px; }
  .btn--big { width: auto; min-width: 280px; }
  .done .btn--ghost { min-width: 200px; }
}
