/* ═══════════════════════════════════════════════════════════════
   dxBinder: Design des eingeloggten Domix.Dev-Bereichs (Dashboard)

   Vorlage ist das Dashboard unter domix.dev/dashboard (TailAdmin-
   Optik): neutrales Anthrazit, Outfit als Schrift, flache Karten mit
   feiner Linie, 8px-Knoepfe und -Felder, 16px-Karten. Der Akzent ist
   dort Orange (#ff8423); hier ist es durchgehend Blau.

   Diese Datei laedt NACH site-dxbinder.css (Kopie von site.css mit
   umgefaerbten Akzenten) und schreibt nur das Aussehen um. Das
   Seitengeruest (Sidebar, Kopfleiste) steht in dxbinder-shell.css.

   Aufbau:
     1. Farben und Masse (Tokens)
     2. Grundlage: Seite, Schrift, Rollbalken
     3. Kopfleiste der Anmeldeseiten (alte Topbar)
     4. Flaechen: Karten, Kacheln, Statistik
     5. Tabellen
     6. Modale Fenster
     7. Knoepfe
     8. Formularfelder
     9. Kleinteile: Reiter, Pillen, Meldungen
    10. Reste des alten Farbschemas

   Die Token-Namen bleiben die alten, damit jede bestehende Regel in
   site.css und in den Seiten sie weiter findet. Nur die Werte sind neu.
   ═══════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────────
   1. Farben und Masse
   ─────────────────────────────────────────────────────────────── */

:root {
  /* Grundflaechen (Dashboard: --domix-bg / surface / surface-2 / surface-3) */
  --bg: #0c1117;
  --page-bg: #0c1117;
  --surface: #121417;
  --surface-2: #181b1f;
  --surface-3: #1f2328;

  /* Content-Karten wie im Dashboard: dark:bg-white/3 auf dem Seitengrund,
     dazu die feine Linie --border. Bewusst durchscheinend statt einer
     festen Flaeche; Menues und Dialoge bleiben deckend (--surface). */
  --card: rgba(255, 255, 255, 0.03);
  --card-inner: rgba(255, 255, 255, 0.03);

  /* Aufgesetzte Schleier: neutrales Weiss, wie white/[0.03] im Dashboard. */
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);

  /* Schrift */
  --text: #f4f4f2;
  --muted: #92979d;
  --muted-2: #7a8088;

  /* Linien (Dashboard: --domix-border / --domix-border-strong) */
  --border: #272b30;
  --border-2: #363b42;

  /* Marke: Blau statt Orange. 500 = Akzent, 600 = Flaeche fuer weisse
     Schrift (5.2:1), 400/300 = Akzent als Schrift auf dunklem Grund. */
  --brand-1: #3b82f6;
  --brand-2: #2563eb;
  --brand-3: #60a5fa;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-fill: #2563eb;
  --brand-fill-hover: #1d4ed8;
  --brand-soft: rgba(59, 130, 246, 0.12);
  --brand-faint: rgba(59, 130, 246, 0.07);
  --on-brand: #ffffff;
  --ring: rgba(59, 130, 246, 0.30);

  /* Mehrere Seiten schreiben var(--primary, <Farbe>). */
  --primary: #3b82f6;

  /* Zustaende (Dashboard: success / warning / danger) */
  --live: #3fb950;
  --live-soft: rgba(63, 185, 80, 0.13);
  --warn: #d29922;
  --bad: #f85149;

  /* Licht und Schatten: tief, aber nie leuchtend */
  --glow-1: rgba(59, 130, 246, 0.10);
  --glow-2: rgba(59, 130, 246, 0.06);
  --shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 32px 64px -20px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);

  /* Masse: Karten 16px (rounded-2xl), Knoepfe und Felder 8px (rounded-lg). */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;

  /* Schrift: Outfit wie der Dashboard-Rahmen, Geist Mono fuer Zahlen. */
  --font-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* site.css und mehrere Seiten setzen Labels (Tabellenkoepfe, Eyebrows,
     Changelog-Meta) in var(--font-mono). Im Dashboard sind das Outfit,
     deshalb zeigt --font-mono hier auf Outfit. Echten Code setzt der Block
     "Schrift" in Abschnitt 2 auf --font-code. */
  --font-mono: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-code: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

[data-theme="light"] {
  --bg: #fbfaf9;
  --page-bg: #fbfaf9;
  --surface: #ffffff;
  --surface-2: #f6f5f3;
  --surface-3: #eeece8;

  --card: #ffffff;
  --card-inner: #f6f5f3;

  --panel: rgba(22, 24, 27, 0.025);
  --panel-2: rgba(22, 24, 27, 0.05);

  --text: #16181b;
  --muted: #5f646b;
  --muted-2: #6b7078;

  --border: #e4e1dc;
  --border-2: #d3cfc8;

  --brand-1: #2563eb;
  --brand-2: #1d4ed8;
  --brand-3: #3b82f6;
  --brand-300: #93c5fd;
  --brand-400: #3b82f6;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-fill: #2563eb;
  --brand-fill-hover: #1d4ed8;
  --brand-soft: rgba(37, 99, 235, 0.09);
  --brand-faint: rgba(37, 99, 235, 0.05);
  --on-brand: #ffffff;
  --ring: rgba(37, 99, 235, 0.25);
  --primary: #2563eb;

  --live: #1a7f37;
  --live-soft: rgba(26, 127, 55, 0.12);
  --warn: #a16207;
  --bad: #c0362c;

  --glow-1: rgba(37, 99, 235, 0.08);
  --glow-2: rgba(37, 99, 235, 0.04);
  --shadow: 0 4px 16px -4px rgba(16, 18, 22, 0.10), 0 1px 3px rgba(16, 18, 22, 0.05);
  --shadow-card: 0 1px 2px rgba(16, 18, 22, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(16, 18, 22, 0.16), 0 2px 8px rgba(16, 18, 22, 0.06);
}


/* ───────────────────────────────────────────────────────────────
   2. Grundlage
   ─────────────────────────────────────────────────────────────── */

html { background: var(--bg); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
}

/* Schrift: ueberall Outfit wie im Dashboard. site.css benennt Sora und
   Manrope noch fest an der alten Navigation, Formularfelder erben die
   Schrift von Haus aus nicht. Nur echter Code bleibt Monospace. */
button, input, select, textarea { font-family: inherit; }

.nav a,
.nav-dd-trigger,
.nav-dd-item,
.nav-dd-submenu-trigger,
.nav-dd-label,
.footer-copy,
.eyebrow { font-family: var(--font-body); }

.mono, .dd-mono, code, pre, kbd, samp { font-family: var(--font-code); }

/* Das Raster ueber der Seite gehoert zur alten Hauptseite; das Dashboard
   ist flach. */
body::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1, h2 { line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--brand-soft); }

:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
}

/* site.css setzt einen eigenen Fokusring mit festem Blauviolett. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
  box-shadow: none;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border: 3px solid var(--bg);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }


/* ───────────────────────────────────────────────────────────────
   3. Alte Kopfleiste (nur noch Anmelde- und Gastseiten)

   Eingeloggt ersetzt die Sidebar samt Kopfleiste aus dxbinder-shell.css
   diese Leiste vollstaendig. Sie bleibt fuer /login und /forgot, wo es
   noch keine Navigation gibt.
   ─────────────────────────────────────────────────────────────── */

.topbar {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background 200ms ease, border-color 200ms ease, transform 220ms ease;
}

html.topbar-scrolled .topbar,
[data-theme="light"] .topbar,
[data-theme="light"].topbar-scrolled .topbar {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--border);
}

.nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: background 160ms ease, color 160ms ease;
}

.nav a:hover {
  background: var(--panel-2);
  color: var(--text);
  border-color: transparent;
}

.nav a.is-active,
.nav a[aria-current="page"] {
  background: var(--brand-faint);
  color: var(--brand-400);
  border-color: transparent;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Bereichsname neben der Marke als kleines Etikett (Dashboard: text-xs
   uppercase). */
.brand-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}


/* ───────────────────────────────────────────────────────────────
   4. Flaechen
   ─────────────────────────────────────────────────────────────── */

/* Das grosse Panel, in dem fast jede Seite steckt: Karte mit feiner
   Linie, wie die Karten im Dashboard. */
.sh-main {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: none;
  box-shadow: var(--shadow-card);
}

/* Die Lichtkante an der Oberkante gehoert zur alten Optik. */
.sh-main::before { display: none; }

[data-theme="light"] .sh-main {
  background: var(--card);
  box-shadow: var(--shadow-card);
}

/* Kacheln und Statistikkarten liegen immer IM Panel und sitzen deshalb
   eine Stufe hoeher. */
.tile,
.sh-stat-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-inner);
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease;
}

/* Das Dashboard hebt Karten nicht an, es faerbt nur die Linie. */
a.tile:hover,
.tile[role="button"]:hover,
.tile[onclick]:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--brand-1) 45%, var(--border));
  box-shadow: none;
}

.sh-stat-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sh-stat-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.sh-stat-icon {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.sh-stat-icon.is-green { border-color: color-mix(in srgb, var(--live) 32%, transparent); color: var(--live); }
.sh-stat-icon.is-amber { border-color: color-mix(in srgb, var(--warn) 32%, transparent); color: var(--warn); }
.sh-stat-icon.is-red   { border-color: color-mix(in srgb, var(--bad) 32%, transparent);  color: var(--bad); }

.sh-admin-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.sh-admin-sub { color: var(--muted); }


/* ───────────────────────────────────────────────────────────────
   5. Tabellen
   ─────────────────────────────────────────────────────────────── */

/* Randlos: die Tabelle sitzt immer schon in einem gerahmten Panel. */
.sh-table-wrap {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-color: var(--border-2) transparent;
}

.sh-table { font-size: 13px; }

.sh-table thead th {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  /* Deckend, weil der Kopf klebt. */
  background: var(--surface-2);
}

[data-theme="light"] .sh-table thead th { background: var(--surface-2); }

.sh-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .sh-table tbody td { border-bottom-color: var(--border); }

.sh-table tbody tr {
  transition: background 140ms ease, box-shadow 140ms ease;
}

.sh-table tbody tr:hover {
  background: var(--brand-faint);
  box-shadow: inset 2px 0 0 var(--brand-1);
}

[data-theme="light"] .sh-table tbody tr:hover {
  background: var(--brand-faint);
}


/* ───────────────────────────────────────────────────────────────
   6. Modale Fenster
   ─────────────────────────────────────────────────────────────── */

.sh-modal-backdrop {
  background: rgba(7, 10, 14, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

[data-theme="light"] .sh-modal-backdrop {
  background: rgba(22, 24, 27, 0.38);
}

.sh-modal-dialog {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.sh-modal-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.sh-modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.sh-modal-body { padding: 22px; }

.sh-modal-foot {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.sh-modal-x {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sh-modal-x:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface-2);
}


/* ───────────────────────────────────────────────────────────────
   7. Knoepfe

   Dashboard: rounded-lg, text-sm font-medium. Hauptknopf gefuellt mit
   der Marke (hier Blau, weisse Schrift), Hover tiefer statt heller.
   ─────────────────────────────────────────────────────────────── */

.btn {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: none;
  background: var(--surface-2);
  border-color: var(--border-2);
}

.btn:active { transform: none; }

.btn-primary {
  background: var(--brand-fill);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.btn-primary:hover {
  background: var(--brand-fill-hover);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover { background: var(--surface-2); }

.btn-sm { padding: 7px 13px; font-size: 12.5px; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  transform: none;
  pointer-events: none;
}

.sh-iconbtn {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.sh-iconbtn:hover {
  background: var(--brand-faint);
  border-color: color-mix(in srgb, var(--brand-1) 40%, var(--border));
  color: var(--brand-400);
  box-shadow: none;
}

.sh-iconbtn--danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 26%, transparent); }

.sh-iconbtn--danger:hover {
  background: color-mix(in srgb, var(--bad) 10%, transparent);
  border-color: color-mix(in srgb, var(--bad) 40%, transparent);
  color: var(--bad);
  box-shadow: none;
}


/* ───────────────────────────────────────────────────────────────
   8. Formularfelder

   Dashboard: rounded-lg, Rand grau, beim Fokus Rand brand-300 und ein
   3px-Ring in brand-500/10.
   ─────────────────────────────────────────────────────────────── */

.sh-field span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.sh-field input,
.sh-field select,
.sh-field textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sh-field select,
.sh-field select option {
  background: var(--surface-2);
  color: var(--text);
}

.sh-field input:focus,
.sh-field select:focus,
.sh-field textarea:focus {
  outline: none;
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 14%, transparent);
}

[data-theme="light"] .sh-field input:focus,
[data-theme="light"] .sh-field select:focus,
[data-theme="light"] .sh-field textarea:focus {
  border-color: var(--brand-3);
}

.sh-field input::placeholder,
.sh-field textarea::placeholder { color: var(--muted-2); }


/* ───────────────────────────────────────────────────────────────
   9. Kleinteile
   ─────────────────────────────────────────────────────────────── */

.sh-tab,
.sh-tab-small {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sh-tab.is-active,
.sh-tab-small.is-active {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand-1) 30%, transparent);
  color: var(--brand-400);
}

[data-theme="light"] .sh-tab.is-active,
[data-theme="light"] .sh-tab-small.is-active { color: var(--brand-600); }

.sh-status {
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

.sh-status.is-active   { color: var(--live); border-color: color-mix(in srgb, var(--live) 30%, transparent); background: var(--live-soft); }
.sh-status.is-inactive { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: color-mix(in srgb, var(--warn) 11%, transparent); }

.sh-toast {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.sh-toast-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sh-toast.is-success .sh-toast-icon { color: var(--live); }
.sh-toast.is-error   .sh-toast-icon { color: var(--bad); }

.sh-user-row {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}


/* ───────────────────────────────────────────────────────────────
   10. Reste des alten Farbschemas

   Diese Stellen in site.css tragen ihre Farbe fest im Code statt ueber
   ein Token (meist blaugraue Verlaeufe).
   ─────────────────────────────────────────────────────────────── */

select,
select option {
  background-color: var(--surface-2);
  color: var(--text);
}

[data-theme="light"] select,
[data-theme="light"] select option {
  background-color: var(--surface);
  color: var(--text);
}

.nav-dd-menu {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .nav-dd-menu {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

.nav-dd-menu::before,
[data-theme="light"] .nav-dd-menu::before {
  background: var(--surface);
  border-left-color: var(--border);
  border-top-color: var(--border);
}

.sh-sidebar {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: none;
}

[data-theme="light"] .sh-sidebar { background: var(--surface); }

/* Anmeldekasten. */
.login-box {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.logs-per-page-select {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}


/* ───────────────────────────────────────────────────────────────
   11. Kennzahlen als Metrikkarten

   Wie die Karten im Dashboard (TailAdmin): oben das Symbol in einem
   48px-Kaestchen, darunter die Beschriftung klein und gedaempft, darunter
   die Zahl gross. Nur das Kachelraster der Statistikseiten (.sh-pane
   .grid); andere .tile (Meldungen, Einstellungen) bleiben unveraendert.
   ─────────────────────────────────────────────────────────────── */

.sh-pane .grid { gap: 16px; }

.sh-pane .grid > .tile {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card-inner);
}

.sh-pane .grid > .tile h3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--muted);
}

.sh-pane .grid > .tile h3 i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  border: 0;
  background: var(--panel-2);
  color: var(--text);
  font-size: 20px;
  opacity: 0.9;
}

.sh-pane .grid > .tile p {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.sh-pane .grid > .tile p .sh-muted {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

/* Gesamtverdienst: gleiche Sprache, mit blauer Kante als Hervorhebung. */
.sh-total-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-1);
  border-radius: var(--radius-md);
  background: var(--card-inner);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.sh-total-label {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.sh-total-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}


/* ───────────────────────────────────────────────────────────────
   12. Statistik-Leiste (.sh-admin-stats) der Verwaltungsseiten

   site.css baut sie als flache Leiste: kein Rahmen, nur Trennlinien, und
   die erste und letzte Karte ohne Innenabstand. Als Karten des Dashboards
   (Linie, 3-Prozent-Flaeche, Abstand dazwischen) braucht jede Karte ihren
   eigenen Innenabstand. Die Selektoren stehen auch mit :first-child und
   :last-child da, weil site.css diese mit hoeherer Spezifitaet setzt.
   ─────────────────────────────────────────────────────────────── */

.sh-admin-stats {
  gap: 16px;
  border: 0;
  margin: 0 0 24px;
}

.sh-stat-card,
.sh-stat-card:first-child,
.sh-stat-card:last-child {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-inner);
}

.sh-stat-title {
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.sh-stat-value {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.sh-stat-icon {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 18px;
}

.sh-stat-icon.is-green { border: 0; background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live); }
.sh-stat-icon.is-amber { border: 0; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.sh-stat-icon.is-red   { border: 0; background: color-mix(in srgb, var(--bad) 14%, transparent);  color: var(--bad); }


/* ───────────────────────────────────────────────────────────────
   13. Schriftstaerken und -groessen

   Outfit wirkt bei gleicher Pixelgroesse deutlich kraeftiger als die
   alte Schrift. Im Dashboard sind Ueberschriften 600, nicht 700-800.
   ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4,
.sh-admin-title,
.sh-modal-title,
.sh-stats-title,
.tile h3 { font-weight: 600; }

strong, b { font-weight: 600; }

.sh-admin-title {
  font-size: 19px;
  letter-spacing: -0.015em;
}

.sh-admin-sub { font-size: 12.5px; }
