/* PlateFinder – "Nachtfahrt": Graphit wie ein Cockpit bei Nacht, Champagner als einziger Akzent,
   das Kennzeichen als Schmuckstück. Dunkel zuerst, heller Modus gleichwertig. */
:root {
  /* Farben (dunkel) */
  --bg: #0a0c10;
  --bg-glow: #141a26;
  --surface: #12151c;
  --surface-2: #1a1f29;
  --surface-3: #232937;
  --line: #242a36;
  --line-strong: #323a4a;
  --text: #eef0f4;
  --muted: #8a91a2;
  --faint: #5d6476;
  --accent: #d4b47a;
  --accent-hi: #ecd3a0;
  --accent-lo: #a8874f;
  --on-accent: #1b1407;
  --accent-soft: #2a2418;
  --ok: #5fd3a2;
  --ok-soft: #12291f;
  --warn: #f0b860;
  --warn-soft: #2d2312;
  --danger: #ff7a7a;
  --danger-soft: #301617;
  --eu: #0f3ec2;
  --star: #ffd23f;
  --plate: #fbfbf8;
  --plate-ink: #111111;
  --glass: #12151ccc;
  --shadow: 0 18px 40px -18px #000000cc;

  /* Schrift */
  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-plate: "Saira Semi Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

  /* Form */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --tabbar: 84px;
  --topbar: 60px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f1f2f5; --bg-glow: #e6e9f0; --surface: #ffffff; --surface-2: #f3f4f7; --surface-3: #e8eaf0;
    --line: #e2e5eb; --line-strong: #cfd4de; --text: #0d1017; --muted: #5f6677; --faint: #9aa0ae;
    --accent: #a8844a; --accent-hi: #c4a066; --accent-lo: #8a6a35; --on-accent: #ffffff; --accent-soft: #f4ecdd;
    --ok: #1c9467; --ok-soft: #e2f4ec; --warn: #b7791f; --warn-soft: #fbf0dc; --danger: #cf3f3f; --danger-soft: #fbe6e6;
    --glass: #ffffffd9; --shadow: 0 18px 40px -22px #1b2233aa;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f1f2f5; --bg-glow: #e6e9f0; --surface: #ffffff; --surface-2: #f3f4f7; --surface-3: #e8eaf0;
  --line: #e2e5eb; --line-strong: #cfd4de; --text: #0d1017; --muted: #5f6677; --faint: #9aa0ae;
  --accent: #a8844a; --accent-hi: #c4a066; --accent-lo: #8a6a35; --on-accent: #ffffff; --accent-soft: #f4ecdd;
  --ok: #1c9467; --ok-soft: #e2f4ec; --warn: #b7791f; --warn-soft: #fbf0dc; --danger: #cf3f3f; --danger-soft: #fbe6e6;
  --glass: #ffffffd9; --shadow: 0 18px 40px -22px #1b2233aa;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, var(--bg-glow), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Icons ---------- */
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.ico.sm { width: 16px; height: 16px; }
.ico.lg { width: 24px; height: 24px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--topbar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 20px 0;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-strong); }
.brand-name { font: 600 15px var(--font-plate); letter-spacing: 3.2px; text-transform: uppercase; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 11px var(--font-ui); letter-spacing: 1.4px; text-transform: uppercase;
  padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted);
}
.badge.premium { border-color: var(--accent-lo); color: var(--accent); background: var(--accent-soft); }

/* ---------- Seite ---------- */
main { max-width: 560px; margin: 0 auto; padding: 24px 20px 8px; display: flex; flex-direction: column; gap: 18px; }
main > div { display: flex; flex-direction: column; gap: 18px; }
h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.6px; margin: 0; text-wrap: balance; }
h2 { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }
p { margin: 0; }
.eyebrow {
  font: 600 12px var(--font-plate); letter-spacing: 2.6px; text-transform: uppercase; color: var(--accent);
}
.lead { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 34em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .btn { flex: 1; }
.grow { flex: 1; min-width: 0; }
.heading { display: flex; flex-direction: column; gap: 8px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.card.flat { background: transparent; }

/* ---------- Formulare ---------- */
label.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.field small { font-weight: 500; color: var(--faint); }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font-size: 16px; font-weight: 500; outline: none; transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus { border-color: var(--accent-lo); background: var(--surface); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; padding: 0 20px; border: 0; border-radius: var(--r);
  background: linear-gradient(135deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo));
  color: var(--on-accent); font-weight: 800; font-size: 15px; letter-spacing: .2px; cursor: pointer;
  box-shadow: 0 10px 24px -12px var(--accent-lo), inset 0 1px 0 #ffffff40;
  transition: transform .15s ease, filter .2s;
}
.btn:active { transform: scale(.985); }
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; border: 1px solid transparent; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.link {
  background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 700;
}
.link.small { font-size: 13px; }
.alt { text-align: center; color: var(--muted); font-size: 14px; }

.error {
  color: var(--danger); background: var(--danger-soft); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 14px; font-weight: 600;
}
.ok { color: var(--ok); font-weight: 700; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; margin: 0;
  border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface-2); cursor: pointer;
  display: grid; place-items: center;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input[type=radio] { border-radius: 50%; }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* ---------- Kennzeichen ---------- */
.plate {
  position: relative; display: flex; align-items: stretch; height: 76px;
  border-radius: 12px; overflow: hidden; color: var(--plate-ink);
  background: linear-gradient(180deg, #ffffff, var(--plate) 45%, #ecece6);
  border: 3px solid var(--plate-ink);
  box-shadow: 0 0 0 1px #ffffff14, 0 20px 40px -20px #000000, inset 0 -3px 6px #00000014;
  transition: box-shadow .25s;
}
.plate::after { /* Lichtreflex */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, #ffffff66 48%, transparent 60%);
}
.plate:focus-within { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 5px var(--accent-lo), 0 20px 40px -20px #000; }
.plate .eu {
  width: 46px; flex: none; background: linear-gradient(180deg, #1a4ee0, var(--eu));
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 9px 0 7px;
}
.plate .eu svg { width: 26px; height: 26px; }
.plate .eu span { font: 700 17px var(--font-plate); color: #fff; }
.plate input {
  flex: 1; min-width: 0; height: auto; border: 0; border-radius: 0; background: transparent; color: var(--plate-ink);
  font: 600 38px var(--font-plate); letter-spacing: 3px; text-transform: uppercase; padding: 0 16px;
}
.plate input::placeholder { color: #00000033; }
.plate input:focus { background: transparent; }
.plate.lg { height: 92px; }
.plate.lg input { font-size: 46px; }
/* Eingabe in drei Feldern: Ort · Buchstaben · Zahl */
.plate-parts { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.plate-fields input { flex: none; padding: 0 2px; letter-spacing: 2px; text-align: center; min-width: 0; max-width: 40%; }
.plate-fields input:focus { background: #0000000a; border-radius: 6px; }
.plate-seal { /* Plakette zwischen Ort und Buchstaben, wie auf dem echten Schild */
  flex: none; width: 18px; height: 18px; margin: 0 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4f1e6, #c9c3ad); box-shadow: inset 0 0 0 2px #00000022;
}
.plate.lg .plate-seal { width: 22px; height: 22px; }
.plate-gap { flex: none; width: 10px; }
.plate-input { display: flex; flex-direction: column; gap: 6px; }
.plate-hint { padding-left: 46px; text-align: center; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }

.plate-tag {
  display: inline-flex; align-items: stretch; height: 24px; border-radius: 5px; overflow: hidden; flex: none;
  border: 1.5px solid var(--plate-ink); background: var(--plate); color: var(--plate-ink); vertical-align: middle;
}
.plate-tag::before { content: ""; width: 7px; background: var(--eu); }
.plate-tag span { padding: 0 7px; font: 600 15px/21px var(--font-plate); letter-spacing: 1.2px; white-space: nowrap; }

/* Schaustück auf der Startseite */
.showcase { position: relative; padding: 26px 8px 34px; perspective: 900px; }
.showcase .plate { height: 84px; transform: rotateX(14deg) rotateZ(-3deg); }
.showcase .plate .plate-text { flex: 1; display: flex; align-items: center; padding: 0 16px; font: 600 44px var(--font-plate); letter-spacing: 3px; }
.showcase::after { /* Lichtkegel */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 6px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}

/* ---------- Vorteile ---------- */
.perks { display: flex; flex-direction: column; gap: 2px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.perk + .perk { border-top: 1px solid var(--line); }
.perk .ico-wrap {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.perk b { display: block; font-size: 15px; }
.perk span { color: var(--muted); font-size: 14px; }

/* ---------- Avatar, Status ---------- */
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 700 18px var(--font-ui); color: var(--accent-hi);
  background: radial-gradient(circle at 30% 25%, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line-strong);
}
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.sm { width: 38px; height: 38px; font-size: 15px; }
.avatar.car > * { display: grid; place-items: center; width: 52%; height: 52%; }
.avatar.car svg { width: 100%; height: 100%; }
.result-name .plate-tag, .profile-head .name .plate-tag { height: 32px; }
.result-name .plate-tag span, .profile-head .name .plate-tag span { font-size: 21px; line-height: 30px; padding: 0 9px; }

.vbadge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: .2px; vertical-align: middle; white-space: nowrap;
}
.vbadge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vbadge.verified { background: var(--ok-soft); color: var(--ok); }
.vbadge.pending { background: var(--warn-soft); color: var(--warn); }
.vbadge.rejected { background: var(--danger-soft); color: var(--danger); }
.vbadge.unverified { background: var(--surface-3); color: var(--muted); }
.vcheck { display: inline-flex; color: var(--accent); vertical-align: middle; }
.vcheck .ico { width: 18px; height: 18px; }

/* ---------- Suche & Ergebnis ---------- */
.result { padding: 22px; gap: 18px; animation: rise .35s ease both; }
.result-head { display: flex; gap: 14px; align-items: center; }
.result-name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; }
.result-sub { color: var(--muted); font-size: 14px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 20px; }
.empty-state .ico-wrap { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }

.quick-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.quick-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left;
  background: var(--surface-2); border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text);
}
.quick-item + .quick-item { border-top: 1px solid var(--line); }
.quick-item .ico { color: var(--faint); margin-left: auto; }
.quick-item:hover { background: var(--surface-3); }

.upsell {
  position: relative; border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%);
  border: 1px solid var(--accent-lo);
}
.upsell .eyebrow { display: flex; align-items: center; gap: 8px; }

.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r);
  background: var(--warn-soft); color: var(--text); border: 1px solid transparent;
}
.notice .ico { color: var(--warn); margin-top: 2px; }
.notice .stack { gap: 6px; }

/* ---------- Listen ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; cursor: pointer; }
.list li + li { border-top: 1px solid var(--line); }
.list .title { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list .sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.time { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800;
}

/* Einstellungs-Gruppe wie in iOS */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.group-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; background: none; border: 0;
  text-align: left; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none;
}
.group-row + .group-row { border-top: 1px solid var(--line); }
.group-row > .ico:first-child { color: var(--muted); }
.group-row .chev { margin-left: auto; color: var(--faint); }
.group-row .value { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; }
.group-row.danger, .group-row.danger > .ico:first-child { color: var(--danger); }

.plate-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.plate-row + .plate-row { border-top: 1px solid var(--line); }
.plate-row .stack { gap: 6px; }

.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head .name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; }

/* ---------- Chat ---------- */
.chat {
  display: flex; flex-direction: column; gap: 0; margin: -24px -20px -8px;
  height: calc(100vh - var(--topbar) - var(--tabbar) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--extra-top, 0px));
  height: calc(100dvh - var(--topbar) - var(--tabbar) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--extra-top, 0px));
}
.chat-head {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.chat-head .who { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.chat-head .who b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); cursor: pointer;
}
.menu {
  position: absolute; right: 16px; top: 58px; z-index: 5; min-width: 200px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.menu button {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 0;
  background: none; text-align: left; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text);
}
.menu button:hover { background: var(--surface-3); }
.menu button.danger { color: var(--danger); }
.msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.day { align-self: center; font-size: 12px; color: var(--faint); padding: 4px 10px; }
.msg {
  max-width: 80%; padding: 10px 14px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line);
  white-space: pre-wrap; word-wrap: break-word; font-size: 15px; animation: rise .25s ease both;
}
.msg.mine {
  align-self: flex-end; border: 0; color: var(--on-accent); font-weight: 600;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  border-bottom-right-radius: 6px;
}
.msg:not(.mine) { align-self: flex-start; border-bottom-left-radius: 6px; }
.msg time { display: block; font-size: 11px; opacity: .65; margin-top: 3px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; background: var(--surface); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--accent-lo); }
.composer { display: flex; gap: 10px; align-items: center; padding: 10px 16px 14px; background: var(--surface); }
.composer textarea { height: 48px; padding: 13px 16px; border-radius: 24px; resize: none; line-height: 1.4; }
.send {
  width: 48px; height: 48px; border-radius: 50%; flex: none; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo)); color: var(--on-accent);
}

/* ---------- Abo ---------- */
.plan {
  position: relative; border-radius: 28px; padding: 26px 22px; display: flex; flex-direction: column; gap: 18px;
  background:
    radial-gradient(140% 90% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--accent-lo);
  box-shadow: var(--shadow);
}
.plan-name { display: flex; align-items: center; gap: 10px; font: 600 14px var(--font-plate); letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font: 600 56px/1 var(--font-plate); letter-spacing: -1px; }
.price span { color: var(--muted); font-weight: 600; }
.features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.features li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.features .ico { color: var(--accent); }
.fine { color: var(--faint); font-size: 12px; line-height: 1.6; }

/* ---------- Verifizierung ---------- */
.photos { display: flex; flex-direction: column; gap: 10px; }
.photo {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r);
  border: 1px dashed var(--line-strong); background: var(--surface-2); cursor: pointer; color: var(--text);
  transition: border-color .2s, background .2s;
}
.photo:hover { border-color: var(--accent-lo); }
.photo.done { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.photo-preview {
  width: 60px; height: 60px; flex: none; border-radius: 12px; background: var(--surface-3); color: var(--accent);
  display: grid; place-items: center; overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo b { display: block; font-size: 15px; }
.photo-hint { font-size: 13px; color: var(--muted); }
.photo .state { margin-left: auto; color: var(--faint); }
.photo.done .state { color: var(--ok); }
.privacy { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.privacy .ico { color: var(--accent); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); }
.steps i.on { background: var(--accent); }

/* Admin */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.doc { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.doc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.doc.empty { justify-content: center; min-height: 90px; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 8px; }
.quote { border-left: 2px solid var(--accent-lo); padding-left: 12px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.warn-text { color: var(--warn); font-size: 14px; font-weight: 600; }

/* ---------- Navigation unten ---------- */
.tabs {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 420px); height: 68px; padding: 6px;
  display: flex; gap: 4px;
  background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow);
}
.tab {
  flex: 1; position: relative; border: 0; background: none; border-radius: 18px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .3px; transition: color .2s, background .2s;
}
.tab.active { color: var(--accent); background: var(--accent-soft); }
.dot {
  position: absolute; top: 9px; left: calc(50% + 7px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}

.toast {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; z-index: 30;
  bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 40px);
  padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 600;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  animation: rise .25s ease both;
}

.legal { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.legal a { color: var(--muted); text-decoration: none; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Release: Verschlüsselung, Kennzeichen-Paar, Prüfteam ---------- */
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pair { display: flex; align-items: center; gap: 6px; color: var(--faint); flex-wrap: wrap; }
.pair .ico { width: 14px; height: 14px; }
.e2e-note {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px;
  font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line);
}
.e2e-note .ico { color: var(--accent); }
.msg.locked { font-style: italic; opacity: .7; }
.safety {
  font: 600 22px/1.6 var(--font-plate); letter-spacing: 2px; text-align: center; padding: 16px;
  border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin-top: 4px; }
.kv > div { display: contents; }
.kv span { color: var(--muted); }
.kv b { min-width: 0; overflow-wrap: anywhere; }
.pair { flex-wrap: nowrap; min-width: 0; }
.pair .plate-tag { height: 21px; }
.pair .plate-tag span { font-size: 13px; line-height: 18px; padding: 0 5px; letter-spacing: .8px; }

/* ---------- Steuerzentrale (Admin) ---------- */
.ops-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--muted); }
.ops-dot.ok { background: #3ecf8e; box-shadow: 0 0 0 4px #3ecf8e22; }
.ops-dot.bad { background: #ff5d5d; box-shadow: 0 0 0 4px #ff5d5d22; }
.ops-dot.busy { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ops-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ops-stat b { font-size: 20px; }
.ops-stat span { font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.ops-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ops-actions .btn { flex: 1 1 140px; }
.kv .ok-text { color: #3ecf8e; }
.kv .off-text { color: var(--muted); font-weight: 500; }
.ops-actions .btn { white-space: nowrap; }
.ops-log summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.ops-log pre { white-space: pre-wrap; word-break: break-word; font-size: 11px; max-height: 220px; overflow: auto; background: var(--surface-2); padding: 10px; border-radius: 10px; margin: 8px 0 0; }
