/* Cockpit Bürgerweg 14 – Bautafel-Stil: kühler Beton, Stahlblau, Signalfarben der Ampel */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/static/fonts/archivo.woff2") format("woff2");
}

:root {
  --paper: #eef0f2; --surface: #ffffff; --sunk: #f6f7f8; --ink: #1d2733; --muted: #5e6b78; --line: #d8dde3;
  --brand: #23466b; --brand-ink: #ffffff;
  --go: #2e9e5b; --wait: #e3a21a; --stop: #d2453b; --off: #c3cad2;
  --housing: #26303b;
  --r-lg: 14px; --r-md: 10px; --r-sm: 6px;
  --side: 232px; --tab: 64px;
  --font: "Archivo", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141a20; --surface: #1c242d; --sunk: #182029; --ink: #e6ebf0; --muted: #94a1ae; --line: #2b3641;
    --brand: #8fb4dc; --brand-ink: #10202f; --off: #3a4652; --housing: #0f141a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--font); background: var(--paper); color: var(--ink); }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { font-stretch: 88%; letter-spacing: -0.005em; margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 10px; }
code { font-size: .92em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.envbar { background: var(--wait); color: #231a00; font-size: 12px; text-align: center; padding: 2px 8px; position: relative; z-index: 30; }

/* ---------- Marke: kleine Ampel ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand strong { display: block; font-stretch: 85%; font-size: 17px; font-weight: 750; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.brand-mark { display: inline-flex; flex-direction: column; gap: 2px; padding: 4px 3px; background: var(--housing); border-radius: 6px; }
.brand-mark .l { display: block; width: 7px; height: 7px; border-radius: 50%; }
.brand-mark.big { padding: 7px 6px; gap: 4px; border-radius: 10px; }
.brand-mark.big .l { width: 14px; height: 14px; }
.l.rot { background: var(--stop); } .l.gelb { background: var(--wait); } .l.gruen { background: var(--go); }

/* ---------- Grundgerüst ---------- */
.shell { min-height: 100vh; }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.topbar-actions { display: flex; gap: 6px; }
.topbar-actions a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.main { padding: 18px 16px calc(var(--tab) + 28px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 28px 0 0; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 11px; }
.tabbar a[aria-current=page] { color: var(--brand); font-weight: 650; }
.tabbar a[aria-current=page]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--wait); color: #231a00; font-size: 11px; font-weight: 700; font-style: normal; }
.tabbar .count { position: absolute; top: 7px; left: calc(50% + 6px); }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--side) 1fr; }
  .topbar, .tabbar { display: none; }
  .side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; padding: 22px 14px;
    background: var(--surface); border-right: 1px solid var(--line); }
  .side .brand { padding: 0 8px 4px; }
  .side-nav, .side-foot { display: flex; flex-direction: column; gap: 2px; }
  .side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
  .side-nav a, .side-foot a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-md);
    color: var(--ink); text-decoration: none; font: inherit; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
  .side-nav a:hover, .side-foot a:hover, .side-foot button:hover { background: var(--sunk); }
  .side-nav a[aria-current=page], .side-foot a[aria-current=page] { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
  .side-nav .count { margin-left: auto; }
  .side-foot form { margin: 0; }
  .main { padding: 28px 36px 36px; }
}

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Flächen ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.panel + .panel, .grid-2 + .panel, .panel + .grid-2 { margin-top: 14px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-head a { font-size: 14px; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Lage: die große Ampel ---------- */
.lage { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.signal { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--housing); border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.04); }
.signal .lamp { width: 30px; height: 30px; border-radius: 50%; background: #3a444f; }
.signal .lamp.rot.on { background: var(--stop); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--stop) 70%, transparent); }
.signal .lamp.gelb.on { background: var(--wait); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--wait) 70%, transparent); }
.signal .lamp.gruen.on { background: var(--go); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--go) 70%, transparent); }
.lage-text .word { font-stretch: 75%; font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.lage-text .word.rot { color: var(--stop); } .lage-text .word.gelb { color: #b97f00; } .lage-text .word.gruen { color: var(--go); }
@media (prefers-color-scheme: dark) { .lage-text .word.gelb { color: var(--wait); } }
.lage-text p { margin: 8px 0 6px; font-size: 16px; max-width: 62ch; }
.lage-text a { font-size: 14px; }
@media (min-width: 960px) {
  .lage { padding: 22px 26px; gap: 26px; }
  .signal .lamp { width: 38px; height: 38px; }
  .lage-text .word { font-size: 52px; }
}

/* ---------- Bereichs-Ampeln ---------- */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.area { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); text-decoration: none; }
.area:hover { border-color: var(--muted); }
.area .dot { grid-row: span 2; }
.area .t { font-size: 13px; color: var(--muted); }
.area .v { font-size: 13px; color: var(--muted); }
.area .v b { font-size: 22px; color: var(--ink); font-weight: 700; font-stretch: 85%; margin-right: 4px; font-variant-numeric: tabular-nums; }
.area.rot { border-left: 4px solid var(--stop); } .area.gelb { border-left: 4px solid var(--wait); } .area.gruen { border-left: 4px solid var(--go); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--off); flex: none; }
.dot.rot { background: var(--stop); box-shadow: 0 0 0 4px color-mix(in srgb, var(--stop) 18%, transparent); }
.dot.gelb { background: var(--wait); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wait) 20%, transparent); }
.dot.gruen { background: var(--go); box-shadow: 0 0 0 4px color-mix(in srgb, var(--go) 18%, transparent); }

/* ---------- Zeilenlisten ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.rows > li:first-child { border-top: 0; padding-top: 2px; }
.rows .main-col { flex: 1; min-width: 0; }
.rows .title { display: block; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.title:hover { color: var(--brand); }
.rows .sub { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .end { flex: none; text-align: right; font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 6px 0; }

/* Datumsstempel für Fristen */
.date { flex: none; width: 48px; text-align: center; border-radius: var(--r-sm); background: var(--sunk); border: 1px solid var(--line); padding: 4px 0 3px; line-height: 1.05; }
.date b { display: block; font-size: 19px; font-weight: 700; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.date small { display: block; font-size: 11px; color: var(--muted); }
.date.rot { background: var(--stop); border-color: var(--stop); color: #fff; } .date.rot small { color: #ffe3e0; }
.date.gelb { border-color: var(--wait); }
.date.none b { font-size: 15px; color: var(--muted); }

/* Kennzeichen */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap; background: var(--surface); }
.tag .dot { width: 8px; height: 8px; box-shadow: none; }
.kind { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); }
.kind .ic { width: 18px; height: 18px; }
.kind.hot { background: color-mix(in srgb, var(--wait) 22%, var(--surface)); color: #8a5c00; }
@media (prefers-color-scheme: dark) { .kind.hot { color: var(--wait); } }

/* ---------- Phasen-Leiste ---------- */
.phases { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.phase { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.phase .bar { height: 10px; border-radius: 3px; background: var(--off); }
.phase.laeuft .bar { background: var(--brand); } .phase.erledigt .bar { background: var(--go); } .phase.blockiert .bar { background: var(--stop); }
.phase span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phase.laeuft span { color: var(--ink); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--off); }
.legend i.laeuft { background: var(--brand); } .legend i.erledigt { background: var(--go); } .legend i.blockiert { background: var(--stop); }
@media (max-width: 639px) {
  .phases { grid-template-columns: 1fr; gap: 8px; }
  .phase { flex-direction: row; align-items: center; }
  .phase .bar { width: 46px; flex: none; }
}

/* Plan: Zeitleiste der Phasen (Detailseite) */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.steps li:first-child { border-top: 0; }
.steps .dot { margin-top: 5px; }

/* ---------- Tabelle (Aufgaben am PC) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.nr { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.table td.due { white-space: nowrap; }
.table a { color: var(--ink); text-decoration: none; } .table a:hover { color: var(--brand); }
.only-wide { display: none; } .only-narrow { display: block; }
@media (min-width: 760px) { .only-wide { display: table; } .only-narrow { display: none; } }

.filters { display: flex; gap: 6px; }
.filters a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; }
.filters a[aria-current=page] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- Dokumente ---------- */
.search { display: flex; gap: 8px; }
.docs { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 640px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .docs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); text-decoration: none; color: var(--ink); min-width: 0; }
.doc:hover { border-color: var(--brand); }
.doc .ic { width: 28px; height: 28px; color: var(--stop); }
.doc .main-col { min-width: 0; }
.doc .title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.doc .sub { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Formulare und Knöpfe ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--muted); }
input[type=email], input[type=password], input[type=text], input[type=search], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }
input.code { font-size: 26px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; font-stretch: 85%; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.btn, button { font: inherit; font-weight: 550; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; }
.btn:hover, button:hover { border-color: var(--muted); }
.btn.primary, button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover, button.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 5px 11px; font-size: 13.5px; }
button.danger { background: var(--stop); border-color: var(--stop); color: #fff; }
.alert { background: color-mix(in srgb, var(--stop) 12%, var(--surface)); color: var(--stop); border-radius: var(--r-md); padding: 9px 12px; margin: 0 0 12px; }
.notice { background: color-mix(in srgb, var(--go) 12%, var(--surface)); color: var(--go); border-radius: var(--r-md); padding: 9px 12px; margin: 0 0 12px; }
.narrow { max-width: 560px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details[open] summary { margin-bottom: 8px; }

/* ---------- Anmeldung (ohne Navigation) ---------- */
.plain-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 18px; }
.plain-brand { display: flex; align-items: center; gap: 12px; }
.plain-brand strong { font-stretch: 80%; font-size: 26px; font-weight: 750; }
.plain-main .panel { width: 100%; max-width: 400px; padding: 22px; }
.plain-main h1 { font-size: 21px; margin-bottom: 14px; }
.qr { display: flex; justify-content: center; margin: 10px 0; }
.qr svg { width: 200px; height: 200px; background: #fff; border-radius: var(--r-md); padding: 4px; }
.codes { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; font-size: 16px; }
.password code { font-size: 20px; user-select: all; word-break: break-all; }

/* ---------- Interview-Chat ---------- */
.chat-wrap { max-width: 760px; }
.progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; display: block; }
.progress::-webkit-progress-bar { background: var(--line); }
.progress::-webkit-progress-value { background: var(--brand); }
.progress::-moz-progress-bar { background: var(--brand); }
.chat { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.bubble p { margin: 6px 0 0; }
.bubble.ai { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.bubble.small { font-size: 14px; color: var(--muted); }
.bubble.current { max-width: 100%; border: 2px solid var(--brand); }
.saved { align-self: center; color: var(--go); font-size: 13.5px; margin: 0; }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink) !important; font-size: 15px !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.answer { margin-top: 12px; }

/* ---------- Markdown-Ansicht ---------- */
.md { max-width: 78ch; overflow-wrap: anywhere; }
.md h2 { font-size: 22px; margin: 4px 0 12px; }
.md h3 { font-size: 17px; margin: 22px 0 8px; }
.md h4, .md h5, .md h6 { font-size: 15px; margin: 16px 0 6px; }
.md ul, .md ol { padding-left: 20px; }
.md li.lvl1 { margin-left: 16px; } .md li.lvl2 { margin-left: 32px; } .md li.lvl3 { margin-left: 48px; }
.md blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--line); color: var(--muted); }
.md pre { overflow-x: auto; background: var(--sunk); padding: 10px; border-radius: var(--r-sm); font-size: 13px; }
.tablewrap { overflow-x: auto; margin: 10px 0; }
.md table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { background: var(--sunk); }
.crumb { font-size: 13px; color: var(--muted); word-break: break-all; margin-bottom: 10px; }

/* ---------- Benutzerverwaltung ---------- */
.action { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.action:first-of-type { border-top: 0; }
.action .muted { font-size: 13.5px; flex: 1; min-width: 200px; }
.action button { min-width: 200px; }

@media (prefers-reduced-motion: no-preference) {
  .signal .lamp.on { animation: glow 2.4s ease-in-out 1; }
  @keyframes glow { 0% { filter: brightness(.6); } 40% { filter: brightness(1.25); } 100% { filter: brightness(1); } }
}
.phase .bar { display: block; }
.dot.blau { background: var(--brand); }
/* Überlauf langer Zeilen in Rastern verhindern */
.grid-2 > *, .panel, .main { min-width: 0; }
.side-foot button { justify-content: flex-start; font-weight: 400; }
.grid-2 > .panel { margin-top: 0; }
.history .chat { margin-top: 6px; }
/* Kosten */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kpi { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.kpi span { font-size: 13px; color: var(--muted); grid-column: 2; }
.kpi .dot { grid-row: 1; grid-column: 1; width: 9px; height: 9px; box-shadow: none; }
.kpi b { grid-column: 1 / -1; font-size: 22px; font-weight: 700; font-stretch: 85%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi:not(:has(.dot)) span { grid-column: 1 / -1; }
.stack { display: block; width: 100%; height: 14px; border-radius: 4px; overflow: hidden; }
.s-off { fill: var(--off); } .s-go { fill: var(--go); } .s-wait { fill: var(--wait); }
.legend i.offen-g { background: var(--wait); }
.amount { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kosten-mini { display: grid; gap: 10px; }
.kosten-mini .zahlen { display: flex; gap: 22px; flex-wrap: wrap; }
.kosten-mini .zahlen span { font-size: 13px; color: var(--muted); }
.kosten-mini .zahlen b { display: block; font-size: 20px; color: var(--ink); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.topbar { padding-top: max(10px, env(safe-area-inset-top)); }
