/* AirBon App-Bausteine (seit 04.11.2026, Farben nach Design System 2 seit 16.11.2026, #29)
 *
 * Aufbau wie die Komponenten von shadcn/ui (Knopf, Feld, Karte, Tabs, Schalter, Tabelle,
 * Hinweis, Ladeplatzhalter, Toast, Dialog), aber als reines CSS: kein React, kein Tailwind,
 * kein Build-Schritt. Eingebunden von login, passwort, customer, merchant, dashboard und
 * analytics. Hell und dunkel folgen dem System.
 *
 * Farben, Radien und Schatten kommen aus airbon-corporate-design/brand/tokens.json
 * (Design System 2). Die Variablennamen sind die alten, damit die Seiten unverändert bleiben;
 * daneben stehen die Token-Namen. Rot, Grün und Gelb für Fehler, Erfolg und Warnung gibt es im
 * Design System nicht; sie bleiben als reine Statusfarben.
 */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #F8FAFC;          /* bg */
  --foreground: #0B2540;          /* ink */
  --card: #FFFFFF;                /* surface */
  --card-foreground: #0B2540;     /* ink */
  --popover: #FFFFFF;             /* surface */
  --primary: #0B2540;             /* button */
  --primary-foreground: #FFFFFF;  /* on-button */
  --primary-hover: #0B2540;       /* Hover hebt den Knopf, die Farbe bleibt */
  --secondary: transparent;       /* zweiter Knopf: nur Rahmen */
  --secondary-foreground: #0B2540;
  --secondary-hover: #EEF3F8;     /* bg-soft */
  --muted: #EEF3F8;               /* bg-soft */
  --muted-foreground: #5A6878;    /* ink-muted */
  --accent: #EEF3F8;              /* bg-soft */
  --border: #E2E8F0;              /* line */
  --input: #E2E8F0;               /* line */
  --input-hover: #5A6878;         /* ink-muted, wie beim zweiten Knopf */
  --ring: #245C96;                /* focus */
  --ring-soft: rgba(36, 92, 150, 0.20);
  --brand: #245C96;               /* brand-text */
  --brand-soft: #E6F0FA;          /* brand-tint */
  --sky: #4F98D8;                 /* brand-sky */
  --on-sky: #0B2540;              /* on-sky */
  --chart-1: #4F98D8;             /* brand-sky */
  --chart-track: #EEF3F8;         /* bg-soft */
  --chart-grid: #E2E8F0;          /* line */
  --destructive: #c8261f;
  --destructive-foreground: #ffffff;
  --destructive-soft: #fdf0ef;
  --destructive-border: #f3c7c3;
  --success: #17803d;
  --success-soft: #edf8f1;
  --success-border: #bfe3cb;
  --warning: #9a5b00;
  --warning-soft: #fdf6e7;
  --warning-border: #f0dcae;
  --radius-sm: 8px;               /* radius-sm: Felder, kleine Elemente */
  --radius: 16px;                 /* radius-md: innere Elemente, Hinweise, Toasts */
  --radius-lg: 24px;              /* radius-lg: Karten, Knöpfe, Dialoge */
  --shadow-xs: 0 1px 2px rgba(11, 37, 64, 0.05);
  --shadow-sm: 0 1px 2px rgba(11, 37, 64, 0.05), 0 8px 24px rgba(11, 37, 64, 0.08);   /* shadow-soft */
  --shadow-lg: 0 2px 4px rgba(11, 37, 64, 0.06), 0 12px 32px rgba(11, 37, 64, 0.12);  /* shadow-lift */
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --kurve: cubic-bezier(0.32, 0.72, 0, 1);
  --logo-hell: block;
  --logo-dunkel: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #081320;
    --foreground: #EEF3F8;
    --card: #102236;
    --card-foreground: #EEF3F8;
    --popover: #102236;
    --primary: #4F98D8;             /* button: im Dunkelmodus Himmelblau */
    --primary-foreground: #081320;  /* on-button */
    --primary-hover: #4F98D8;
    --secondary: transparent;
    --secondary-foreground: #EEF3F8;
    --secondary-hover: #0D1B2C;
    --muted: #0D1B2C;
    --muted-foreground: #94A3B4;
    --accent: #0D1B2C;
    --border: #1E3248;
    --input: #1E3248;
    --input-hover: #94A3B4;
    --ring: #8CC0EC;
    --ring-soft: rgba(140, 192, 236, 0.25);
    --brand: #8CC0EC;
    --brand-soft: #13324F;
    --sky: #4F98D8;
    --on-sky: #0B2540;
    --chart-1: #4F98D8;
    --chart-track: #0D1B2C;
    --chart-grid: #1E3248;
    --destructive: #ff7b72;
    --destructive-foreground: #2a0a08;
    --destructive-soft: #2a1514;
    --destructive-border: #5b2522;
    --success: #5fd38a;
    --success-soft: #11241a;
    --success-border: #1f4a30;
    --warning: #f2c063;
    --warning-soft: #281f0d;
    --warning-border: #4d3a14;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45);
    --logo-hell: none;
    --logo-dunkel: block;
  }
}

/* ── Grundlage ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.015em; font-weight: 560; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, a, input, select, label { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ring-soft); color: var(--foreground); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted-foreground); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
svg.icon { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Logo: dunkle Schrift auf hell, weiße Schrift im Dunkelmodus */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 36px; width: auto; }
.logo .logo-hell { display: var(--logo-hell); }
.logo .logo-dunkel { display: var(--logo-dunkel); }

/* ── Knopf (shadcn Button) ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 550; line-height: 20px; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none;
  background: var(--primary); color: var(--primary-foreground);
  transition: background-color 160ms, border-color 160ms, color 160ms, box-shadow 160ms, transform 160ms var(--kurve);
}
/* Design System 2: Knöpfe heben sich beim Überfahren 1px und drücken beim Klick ein */
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px) scale(0.98); transition-duration: 80ms; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
/* Zweiter Knopf: nur Rahmen. .btn-secondary und .btn-outline sehen gleich aus (ein Knopf-Paar). */
.btn-secondary, .btn-outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-secondary:hover, .btn-outline:hover { background: transparent; border-color: var(--input-hover); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); box-shadow: none; transform: none; }
.btn-destructive { background: var(--destructive); color: var(--destructive-foreground); }
.btn-destructive:hover { background: var(--destructive); filter: brightness(0.92); }
.btn-link { background: none; box-shadow: none; color: var(--foreground); padding: 0; min-height: 0; border-radius: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.btn-link:hover { background: none; box-shadow: none; transform: none; text-decoration-thickness: 2px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 24px; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm.btn-icon { width: 36px; }
.btn-block { width: 100%; }
/* Ladezustand: Knopf bleibt gleich breit, Drehkreis vor dem Text */
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.8; }
.btn[aria-busy="true"]::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: drehen 0.7s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

/* ── Formular (shadcn Label, Input, Select) ────────────────────────────── */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label { font-size: 14px; font-weight: 550; color: var(--foreground); }
.input, .select {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--input); border-radius: var(--radius-sm);
  background: var(--card); color: var(--foreground);
  font: inherit; font-size: 15px;
  box-shadow: var(--shadow-xs);
  transition: border-color 150ms, box-shadow 150ms;
}
.input::placeholder { color: var(--muted-foreground); opacity: 0.8; }
.input:hover, .select:hover { border-color: var(--input-hover); }
.input:focus, .select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); }
.input[aria-invalid="true"] { border-color: var(--destructive); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--destructive) 22%, transparent); }
.input:disabled { opacity: 0.6; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-group .btn-icon { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); min-height: 38px; height: 38px; width: 40px; border-radius: 6px; color: var(--muted-foreground); }
.input-group .btn-icon:hover { color: var(--foreground); background: transparent; transform: translateY(-50%); }
.input-group .btn-icon:active { transform: translateY(-50%); }
@media (max-width: 640px) { .input, .select { font-size: 16px; } } /* iOS zoomt sonst beim Tippen */
.hint { font-size: 13px; color: var(--muted-foreground); }
.field-error { font-size: 13px; color: var(--destructive); }

/* Schalter (shadcn Switch) als echte Checkbox */
.switch {
  appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0;
  position: relative; width: 40px; height: 22px; border-radius: 999px;
  /* aus: ink-muted halb durchsichtig, damit der Schalter auf weißem Grund sichtbar bleibt */
  background: color-mix(in srgb, var(--muted-foreground) 45%, transparent); cursor: pointer; transition: background-color 180ms var(--kurve);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 180ms var(--kurve);
}
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(18px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .switch:checked::after { background: var(--primary-foreground); } }

/* ── Karte (shadcn Card) ───────────────────────────────────────────────── */
.card {
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  min-width: 0;
}
.card-header { padding: 24px 24px 0; display: grid; gap: 4px; }
.card-header.split { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { font-size: 17px; font-weight: 560; letter-spacing: -0.01em; line-height: 1.3; }
.card-description { font-size: 14px; color: var(--muted-foreground); }
.card-content { padding: 18px 24px 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .card-header.split { flex-wrap: wrap; }
  .card-header { padding: 18px 16px 0; }
  .card-content { padding: 16px 16px 18px; }
  .card-footer { padding: 12px 16px; }
}

/* ── Tabs (shadcn Tabs) ────────────────────────────────────────────────── */
.tabs-list {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--muted); border-radius: var(--radius); max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.tabs-list::-webkit-scrollbar { display: none; }
.tabs-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 13px;
  background: transparent; color: var(--muted-foreground);
  font: inherit; font-size: 14px; font-weight: 550; white-space: nowrap; cursor: pointer;
  transition: color 150ms, background-color 150ms;
}
.tabs-trigger:hover { color: var(--foreground); }
.tabs-trigger[aria-selected="true"], .tabs-trigger.active {
  background: var(--card); color: var(--foreground); border-color: var(--border); box-shadow: var(--shadow-xs);
}
.tabs-list.full { display: flex; width: 100%; }
.tabs-list.full .tabs-trigger { flex: 1; }

/* ── Hinweis (shadcn Alert) ────────────────────────────────────────────── */
.alert {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); font-size: 14px;
}
.alert > svg.icon { margin-top: 2px; }
.alert .alert-title { font-weight: 550; }
.alert .alert-body { grid-column: 2; color: var(--muted-foreground); }
.alert .alert-actions { grid-column: 2; margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.alert-destructive { background: var(--destructive-soft); border-color: var(--destructive-border); color: var(--destructive); }
.alert-destructive .alert-body { color: var(--destructive); opacity: 0.9; }
.alert-success { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.alert-success .alert-body { color: var(--success); opacity: 0.9; }
.alert-warning { background: var(--warning-soft); border-color: var(--warning-border); color: var(--warning); }
.alert-warning .alert-body { color: var(--warning); opacity: 0.95; }
.alert-info { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.alert-info .alert-body { color: var(--foreground); }

/* ── Ladeplatzhalter (shadcn Skeleton) ─────────────────────────────────── */
.skeleton {
  display: block; border-radius: 6px; background: var(--muted);
  animation: puls 1.6s ease-in-out infinite;
}
.skeleton.line { height: 12px; margin: 6px 0; }
.skeleton.block { height: 160px; }
@keyframes puls { 50% { opacity: 0.5; } }

/* ── Trennlinie, Statuspunkt, Fortschritt ─────────────────────────────── */
.separator { height: 1px; background: var(--border); border: 0; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--muted-foreground); }
.dot.ok { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.dot.aus { background: var(--destructive); box-shadow: 0 0 0 3px var(--destructive-soft); }
.progress { height: 6px; border-radius: 99px; background: var(--chart-track); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--sky); border-radius: inherit; transition: width 500ms var(--kurve); }

/* ── Tabelle (shadcn Table) ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 500; color: var(--muted-foreground); font-size: 13px;
  height: 38px; padding: 0 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 120ms; }
.table tbody tr:hover { background: color-mix(in srgb, var(--muted) 60%, transparent); }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .r { text-align: right; }
.table .truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .table-wrap { margin: 0 -16px; padding: 0 16px; } }

/* Liste mit Zeilen (für schmale Ansichten statt Tabelle) */
.rows { display: grid; }
.rows > * { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.rows > *:last-child { border-bottom: 0; }
a.row-link { text-decoration: none; color: inherit; border-radius: 8px; transition: background-color 120ms; }
a.row-link:hover { background: var(--muted); }

/* ── Leerer Zustand ────────────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 12px; }
.empty .empty-icon { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.empty .empty-icon svg { width: 20px; height: 20px; }
.empty h3 { font-size: 16px; font-weight: 560; }
.empty p { font-size: 14px; color: var(--muted-foreground); max-width: 42ch; }

/* ── Toast (shadcn Sonner) ─────────────────────────────────────────────── */
.toaster {
  position: fixed; z-index: 100; right: 16px; bottom: 16px; left: auto;
  display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--popover); color: var(--foreground); box-shadow: var(--shadow-lg);
  font-size: 14px; animation: toast-rein 260ms var(--kurve);
}
.toast.fehler { color: var(--destructive); }
.toast.ok svg { color: var(--success); }
.toast.weg { opacity: 0; transform: translateY(6px); transition: opacity 200ms, transform 200ms; }
@keyframes toast-rein { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@media (max-width: 640px) { .toaster { left: 16px; right: 16px; width: auto; bottom: max(16px, env(safe-area-inset-bottom)); } }

/* ── Dialog (shadcn AlertDialog) über natives <dialog> ────────────────── */
dialog.dialog {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0;
  width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--foreground);
  box-shadow: var(--shadow-lg);
}
dialog.dialog::backdrop { background: rgba(8, 19, 32, 0.55); }
dialog.dialog[open] { animation: toast-rein 220ms var(--kurve); }
.dialog-body { padding: 24px; display: grid; gap: 8px; }
.dialog-body h2 { font-size: 20px; line-height: 28px; }
.dialog-body p { color: var(--muted-foreground); font-size: 14px; }
.dialog-footer { padding: 0 24px 24px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ── App-Rahmen: Kopfleiste ────────────────────────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--background) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-header-inner {
  max-width: 1080px; margin: 0 auto; height: 64px; padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.app-header .ort { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.app-header .ort .trenner { width: 1px; height: 18px; background: var(--border); }
.app-header .ort strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header .rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.app-main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; line-height: 34px; }
.page-head p { color: var(--muted-foreground); margin-top: 4px; font-size: 14px; }
@media (max-width: 640px) {
  .app-header-inner { padding: 0 16px; height: 56px; }
  .app-main { padding: 22px 16px 64px; }
  .page-head h1 { font-size: 24px; line-height: 30px; }
  .nur-breit { display: none !important; }
}
@media (min-width: 641px) { .nur-schmal { display: none !important; } }

/* Anmeldeseiten: Karte mittig */
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-top { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.auth-center { display: grid; place-items: center; padding: 12px 16px 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card-header { padding: 28px 28px 0; }
.auth-card .card-content { padding: 22px 28px 28px; }
.auth-card .card-title { font-size: 28px; line-height: 34px; letter-spacing: -0.015em; }
.auth-foot { padding: 20px; text-align: center; font-size: 13px; color: var(--muted-foreground); }
.auth-foot a { color: var(--muted-foreground); }
.auth-foot a:hover { color: var(--foreground); }
@media (max-width: 640px) {
  .auth-top { padding: 16px; }
  .auth-card .card-header { padding: 22px 20px 0; }
  .auth-card .card-content { padding: 20px 20px 22px; }
}

/* Sätze mit Werten (statt Kennzahlen-Kacheln) */
dl.facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; font-size: 14px; }
dl.facts dt, dl.facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border); }
dl.facts dt { color: var(--muted-foreground); }
dl.facts dd { text-align: right; font-weight: 550; }
dl.facts dd small { color: var(--muted-foreground); font-weight: 400; margin-left: 6px; }
dl.facts dt:last-of-type, dl.facts dd:last-of-type { border-bottom: 0; }

/* ── Diagramme ─────────────────────────────────────────────────────────── */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted-foreground); font-size: 11px; }
.chart .gridline { stroke: var(--chart-grid); stroke-width: 1; }
.chart .baseline { stroke: var(--border); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart g.col.aktiv path { opacity: 0.8; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--foreground); color: var(--background);
  font-size: 12px; line-height: 1.45; padding: 7px 10px; border-radius: 8px;
  white-space: nowrap; transform: translate(-50%, calc(-100% - 10px));
  opacity: 0; transition: opacity 0.1s;
}
.chart-tip.show { opacity: 1; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: 14px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .value { color: var(--muted-foreground); text-align: right; }
.bar-row .value b { color: var(--foreground); font-weight: 550; }
.bar-row .track { grid-column: 1 / -1; height: 8px; background: var(--chart-track); border-radius: 4px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--chart-1); border-radius: 4px; min-width: 2px; }
.bar-row.zero .fill { min-width: 0; }

/* Bon-Positionen in Geist Mono (Token receipt) */
.mono, .receipt { font-family: var(--font-mono); font-size: 14px; line-height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
