/* ============================================================
   HYGHSOFT - ANMELDESEITEN, GEMEINSAMER STIL

   Eine Datei fuer alle vier Anmeldungen:
     /login              HyghFleet
     /hyghsoftid/login   HyghsoftID (und damit HyghCheck, HyghTrack)
     /hyghrent/login     HyghRent
   Ausgeliefert unter /static/login/login.css - /static zeigt auf
   hyghfleet/web, siehe hyghfleet/main.py.

   Warum eine Datei: die Seiten sahen vorher jede anders aus (Blau,
   Indigo, iOS-Grau). Wer sich bei einem Dienst anmeldet, soll dieselbe
   Tuer sehen wie bei den anderen.

   FARBEN kommen aus dem Logo, nicht aus dem Bauch:
     HyghSoft-Zeichen  #F2707F (Koralle, oben) -> #7C3AED (Violett, unten)
     Produktzeichen    Koralle -> Magenta (#FF5B4D -> #B2279B u. a.)
   Violett ist deshalb die Bedienfarbe (Links, Fokus, Hauptknopf),
   Koralle der warme Gegenpol im Hintergrund. Das "leichte Lila" der
   App ist genau dieses Ende des Logo-Verlaufs.

   Das Erscheinungsbild folgt der App, NICHT dem Betriebssystem:
   localStorage['hf_settings'].theme kennt nur 'light' und 'dark',
   Standard hell. Deshalb html[data-theme="dark"] und bewusst kein
   prefers-color-scheme - sonst stuende ein dunkler Login vor einer
   hellen App.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

:root {
  color-scheme: light;

  /* Markenverlauf (HyghSoft-Zeichen) */
  --warm:        #F2707F;
  --mid:         #A63FD9;
  --cool:        #7C3AED;

  --accent:      #7C3AED;
  --accent-dk:   #6D28D9;
  --accent-soft: #F3ECFF;

  --bg:          #FBF9FF;
  --ink:         #0B0817;
  --muted:       #52525B;
  --faint:       #A1A1AA;
  --line:        rgba(11,8,23,.07);
  --line-2:      rgba(11,8,23,.11);

  --green:       #10B981;
  --green-soft:  #ECFDF5;
  --rose:        #E11D48;
  --rose-soft:   #FFF1F4;

  --card:        rgba(255,255,255,.76);
  --card-line:   rgba(255,255,255,.74);
  --input:       rgba(255,255,255,.80);

  --sh-card:     0 24px 60px rgba(76,29,149,.13), 0 2px 8px rgba(11,8,23,.05);
  --sh-btn:      0 10px 26px rgba(124,58,237,.30), 0 1px 3px rgba(11,8,23,.10);

  --grad:        linear-gradient(145deg, #F1667E 0%, #A63FD9 54%, #7C3AED 100%);

  --ease:        cubic-bezier(.22,.61,.36,1);
  --ease-bk:     cubic-bezier(.34,1.56,.64,1);
  --sans:        "Figtree",-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,sans-serif;

  --safe-t:      env(safe-area-inset-top,0px);
  --safe-b:      env(safe-area-inset-bottom,0px);
  --safe-l:      env(safe-area-inset-left,0px);
  --safe-r:      env(safe-area-inset-right,0px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --accent:      #A78BFA;
  --accent-dk:   #8B5CF6;
  --accent-soft: rgba(167,139,250,.15);
  --bg:          #0B0817;
  --ink:         #F5F3FF;
  --muted:       #A8A2B8;
  --faint:       #6E6880;
  --line:        rgba(255,255,255,.09);
  --line-2:      rgba(255,255,255,.15);
  --green:       #34D399;
  --green-soft:  rgba(52,211,153,.13);
  --rose:        #FB7185;
  --rose-soft:   rgba(251,113,133,.13);
  --card:        rgba(26,22,38,.76);
  --card-line:   rgba(255,255,255,.08);
  --input:       rgba(255,255,255,.05);
  --sh-card:     0 24px 60px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.42);
  --sh-btn:      0 10px 26px rgba(124,58,237,.40), 0 1px 3px rgba(0,0,0,.42);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overscroll-behavior-y: none;   /* kein Gummiband, das die Safari-Leiste hervorholt */
}

button, input { font-family: inherit; color: inherit; touch-action: manipulation; }
button { border: 0; background: none; cursor: pointer; }
svg, img { display: block; }
a { color: var(--accent); text-decoration: none; }
::selection { background: rgba(124,58,237,.20); }

/* Sprachumschalter aus pages.js sitzt fix oben rechts - im Vollbild
   sonst unter der Statusleiste. */
#hf-lang-switch {
  top: calc(12px + var(--safe-t)) !important;
  right: calc(12px + var(--safe-r)) !important;
}

/* ───────── Hintergrund ─────────
   Warm oben links, violett unten - dieselbe Wanderung wie im Zeichen. */
.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1000px 620px at 6% -14%,  rgba(242,112,127,.20), transparent 60%),
    radial-gradient(900px 600px at 98% 6%,    rgba(178,39,155,.13),  transparent 60%),
    radial-gradient(820px 560px at 46% 112%,  rgba(124,58,237,.20),  transparent 62%),
    var(--bg);
}

.app::before {
  content: "";
  position: absolute;
  inset: -120px;
  background-image:
    linear-gradient(rgba(124,58,237,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 26%, rgba(0,0,0,.5), transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 26%, rgba(0,0,0,.5), transparent 62%);
}

/* ───────── Shell ───────── */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    calc(34px + var(--safe-t))
    calc(20px + var(--safe-r))
    calc(30px + var(--safe-b))
    calc(20px + var(--safe-l));
}

.stack { width: 100%; max-width: 416px; }

/* ───────── Marke ─────────
   Das Logo ist eine echte Datei aus dem Markenpaket und steht frei -
   kein Kasten drumherum, die Zeichen haben ihre eigene Silhouette. */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  animation: fadeDown .5s var(--ease) both;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 12px 26px rgba(124,58,237,.26));
}

.brand-name { font-size: 26px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.brand-sub  { font-size: 13.5px; font-weight: 600; color: var(--faint); text-align: center; line-height: 1.35; }

/* ───────── Karte ───────── */
.card {
  border-radius: 27px;
  background: var(--card);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: var(--sh-card);
  padding: 25px 22px 22px;
  animation: fadeUp .55s .08s var(--ease) both;
}

.card-title { font-size: 23px; font-weight: 800; letter-spacing: -.55px; line-height: 1.15; }
.card-sub   { font-size: 13.5px; font-weight: 600; color: var(--faint); margin-top: 5px; line-height: 1.45; }

.step { display: none; }
.step.on { display: block; animation: fadeIn .28s var(--ease) both; }

/* ───────── Felder ───────── */
.field-group { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

.field-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
}

.field-wrap { position: relative; }

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
  transition: color .18s var(--ease);
}
.field-wrap:focus-within .field-icon { color: var(--accent); }

/* 16px ist Pflicht: darunter zoomt iOS beim Fokus in das Feld hinein. */
.field-input {
  width: 100%;
  height: 52px;
  border-radius: 15px;
  border: 1.5px solid var(--line-2);
  background: var(--input);
  padding: 0 14px 0 43px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field-input::placeholder { color: var(--faint); font-weight: 500; }
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124,58,237,.13); }
.field-input.error { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(225,29,72,.13); }
.field-input.pad-toggle { padding-right: 48px; }

.field-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--faint);
  transition: color .15s, background .15s;
}
.field-toggle:hover { color: var(--ink); background: var(--accent-soft); }

/* Code-Feld: eine Zeile, nur Ziffern, gross genug fuers Tippen */
.field-input.code {
  padding: 0 14px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 11px;
  text-indent: 11px;
  font-variant-numeric: tabular-nums;
}
.field-input.code::placeholder { font-size: 15px; font-weight: 600; letter-spacing: 0; text-indent: 0; }

.hint { font-size: 12px; font-weight: 600; color: var(--faint); margin-top: 7px; line-height: 1.4; }

/* ───────── Merken / Vergessen ───────── */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
}

input[type="checkbox"].toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle-wrap { display: flex; align-items: center; gap: 9px; cursor: pointer; }

.toggle-track {
  width: 42px;
  height: 26px;
  border-radius: 999px;
  background: var(--line-2);
  position: relative;
  flex-shrink: 0;
  transition: background .22s;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(11,8,23,.24);
  transition: transform .22s var(--ease-bk);
}
input[type="checkbox"].toggle-input:checked + .toggle-track { background: var(--accent); }
input[type="checkbox"].toggle-input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }

.toggle-label { font-size: 13.5px; font-weight: 700; color: var(--muted); user-select: none; }

.forgot-btn { font-size: 13.5px; font-weight: 700; color: var(--accent); padding: 0; transition: opacity .15s; }
.forgot-btn:hover { opacity: .72; }
.forgot-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ───────── Knoepfe ─────────
   .btn      voller Markenverlauf - die eine Handlung, die gemeint ist
   .btn-alt  nur Umriss - der Nebenweg
   .btn-flat gar nichts - Abbrechen, Zurueck, Abmelden */
.btn {
  width: 100%;
  height: 54px;
  margin-top: 18px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-btn);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), opacity .16s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.17), transparent 58%);
}
.btn:hover  { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(124,58,237,.36); }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-alt {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: none;
  transition: background .16s, transform .16s var(--ease), opacity .16s;
}
.btn-alt::after { content: none; }
.btn-alt:hover  { background: var(--accent-soft); transform: none; box-shadow: none; }
.btn-alt:active { transform: scale(.975); }
.btn-alt:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-flat {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-flat:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Zeichen im Hauptknopf (HyghsoftID-Weg) */
.btn-mark {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.34);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}
.btn-alt .spinner { border-color: rgba(124,58,237,.26); border-top-color: var(--accent); }

.btn.loading  .btn-text, .btn.loading  .btn-mark,
.btn-alt.loading .btn-text, .btn-alt.loading .btn-mark { display: none; }
.btn.loading .spinner, .btn-alt.loading .spinner { display: block; }

.btn-note {
  font-size: 12px;
  font-weight: 650;
  color: var(--faint);
  text-align: center;
  margin-top: 10px;
  line-height: 1.45;
}

/* ───────── Trenner ───────── */
.sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; }
.sep i { flex: 1; height: 1px; background: var(--line-2); }
.sep span {
  font-size: 11px;
  font-weight: 800;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .7px;
  white-space: nowrap;
}

/* ───────── Aufklapper ───────── */
.disc {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1.5px solid var(--line-2);
  background: var(--input);
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  transition: border-color .16s, color .16s, background .16s;
}
.disc:hover { border-color: var(--accent); color: var(--accent); }
.disc[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.disc-icon { flex: 0 0 auto; }
.disc-txt  { flex: 1; min-width: 0; }
.disc-chev { flex: 0 0 auto; transition: transform .24s var(--ease); }
.disc[aria-expanded="true"] .disc-chev { transform: rotate(180deg); }

/* Aufklappen ohne feste Hoehe: 0fr -> 1fr waechst exakt auf den Inhalt.
   Browser ohne Unterstuetzung zeigen den Bereich schlicht offen an -
   der Weg bleibt also in jedem Fall begehbar. */
.adv { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.adv.open { grid-template-rows: 1fr; }
.adv > div { overflow: hidden; }

/* ───────── Meldung ───────── */
.error-toast {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--rose-soft);
  border: 1px solid rgba(225,29,72,.20);
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.error-toast.visible, .error-toast.on { display: flex; animation: shake .35s var(--ease) both; }

.error-icon {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: .5px;
  background: var(--rose);
  color: #fff;
  display: grid;
  place-items: center;
}

/* ───────── Bestehende Session ───────── */
.sess {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 17px;
  background: var(--green-soft);
  border: 1px solid rgba(16,185,129,.22);
}
.sess-av {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: 0 0 auto;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(124,58,237,.26);
}
.sess-txt { min-width: 0; flex: 1; }
.sess-k { font-size: 11px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .6px; }
.sess-v {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ───────── Fuss ───────── */
.foot {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--faint);
  margin-top: 18px;
  line-height: 1.9;
}
.foot a { font-weight: 700; }
.foot a:hover { opacity: .72; }

.footer {
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--faint);
  text-align: center;
  opacity: .85;
  animation: fadeUp .55s .16s var(--ease) both;
}

/* ───────── Erfolg ───────── */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background:
    radial-gradient(760px 520px at 50% 42%, rgba(16,185,129,.15), transparent 64%),
    var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.success-overlay.show { opacity: 1; pointer-events: all; }

.success-orb {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(16,185,129,.20), 0 14px 36px rgba(16,185,129,.20);
  animation: pop .45s .08s var(--ease-bk) both;
}
.success-text { font-size: 26px; font-weight: 800; letter-spacing: -.8px; animation: fadeUp .4s .18s var(--ease) both; }
.success-sub  { font-size: 14.5px; font-weight: 650; color: var(--faint); animation: fadeUp .4s .26s var(--ease) both; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(14px); }  to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; }                               to { opacity: 1; } }
@keyframes pop      { from { opacity: 0; transform: scale(.6); }         to { opacity: 1; transform: scale(1); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  22%     { transform: translateX(-4px); }
  46%     { transform: translateX(4px); }
  70%     { transform: translateX(-2px); }
  86%     { transform: translateX(2px); }
}

@media (min-width: 600px) {
  .card       { padding: 32px 30px 26px; border-radius: 31px; }
  .card-title { font-size: 26px; }
  .brand-logo { width: 88px; height: 88px; }
  .brand-name { font-size: 29px; }
}

@media (max-width: 359px) {
  .card       { padding: 20px 16px 18px; border-radius: 23px; }
  .card-title { font-size: 21px; }
  .brand      { margin-bottom: 16px; }
  .disc       { font-size: 13.5px; gap: 9px; }
  .field-input.code { font-size: 22px; letter-spacing: 8px; text-indent: 8px; }
}

/* Kleine Hoehen (Landscape am Telefon): nicht zentrieren, sonst rutscht
   die Karte unter die Tastatur. */
@media (max-height: 680px) {
  .shell      { justify-content: flex-start; }
  .brand      { margin-bottom: 16px; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-name { font-size: 22px; }
}

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

/* ───────── Schrittformular (Registrierung) ─────────
   Der Balken zeigt, wie weit es noch ist. Ohne ihn wirkt ein
   dreiteiliges Formular laenger als eines am Stueck, nicht kuerzer. */
.wiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wiz-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}

.wiz-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}

.wiz-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transition: width .32s var(--ease);
}

/* Zwei Felder nebeneinander, sobald Platz da ist. Unter 380px
   untereinander, sonst wird jedes Feld zu schmal zum Tippen. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 379px) { .pair { grid-template-columns: 1fr; } }

/* Zwei Knoepfe nebeneinander: Zurueck schmal, Weiter breit. */
.wiz-nav { display: flex; gap: 10px; align-items: stretch; }
.wiz-nav .btn-flat { margin-top: 18px; width: auto; flex: 0 0 92px; }
.wiz-nav .btn { flex: 1; }

/* Ruecksicht auf die Kennung: gruen frei, rot vergeben. */
.field-input.ok { border-color: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.13); }
.hint.ok  { color: var(--green); font-weight: 700; }
.hint.bad { color: var(--rose);  font-weight: 700; }

/* Passwortstaerke: vier Streifen, gefuellt nach Laenge und Vielfalt. */
.pw-meter { display: flex; gap: 5px; margin-top: 8px; }
.pw-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background .2s;
}
.pw-seg.on-1 { background: #F43F5E; }
.pw-seg.on-2 { background: #F59E0B; }
.pw-seg.on-3 { background: #10B981; }
.pw-seg.on-4 { background: var(--accent); }

/* Zustimmung: Kaestchen und Text auf einer Zeile, Text bricht um. */
.agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree-box {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--line-2);
  background: var(--input);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background .16s, border-color .16s, color .16s;
}
.agree input:checked + .agree-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.agree a { font-weight: 700; }

/* Abschluss: dasselbe Bild wie nach einer Anmeldung, nur mit Brief. */
.done-note {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--faint);
  text-align: center;
  line-height: 1.5;
  margin-top: 18px;
}

/* Schrittname ueber dem Balken. Eine blosse Zahl sagt nicht, was
   kommt; der Name nimmt die Sorge, es koenne noch viel folgen. */
.wiz-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.wiz-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .7px;
}

/* Uebersicht im letzten Schritt: was gleich abgeschickt wird. */
.sum {
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--input);
  padding: 2px 14px;
  margin-top: 18px;
}
.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  min-width: 0;
}
.sum-row:last-child { border-bottom: 0; }
.sum-k { font-weight: 700; color: var(--faint); white-space: nowrap; }
.sum-v {
  font-weight: 800;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
