/* ══════════════════════════════════════════════════════════════════════════
   PROWERB REDEMPTION SYSTEM · MOTHERSHIP COCKPIT
   Design Tokens + Component Library
   Brand: Prowerb CI (Rot #ee171d, Dark #231f20, Oswald + Montserrat)
   Theme: Dark-Default (Operator-Tool Style à la Stripe/Linear)
   ══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --prowerb-red:        #ee171d;
  --prowerb-red-soft:   rgba(238, 23, 29, 0.12);
  --prowerb-red-hover:  #d31419;
  --prowerb-dark:       #231f20;

  /* Cream-Light theme palette (warm-cream, Pastell-tinted) */
  --bg:                 #fafaf7;
  --bg-elev-1:          #f4f1ec;
  --bg-elev-2:          #ede9e2;
  --bg-elev-3:          #e3ddd3;
  --bg-elev-modal:      #f4f1ec;
  --border:             rgba(35, 31, 32, 0.10);
  --border-hi:          rgba(35, 31, 32, 0.20);
  --border-strong:      rgba(35, 31, 32, 0.36);

  /* Text on cream */
  --text:               #231f20;
  --text-muted:         rgba(35, 31, 32, 0.62);
  --text-dim:           rgba(35, 31, 32, 0.42);

  /* States */
  --success:            #22c55e;
  --success-soft:       rgba(34, 197, 94, 0.12);
  --warning:            #f59e0b;
  --warning-soft:       rgba(245, 158, 11, 0.12);
  --danger:             #ef4444;
  --danger-soft:        rgba(239, 68, 68, 0.12);
  --info:               #3b82f6;
  --info-soft:          rgba(59, 130, 246, 0.12);

  /* Typography */
  --font-display:       'Oswald', 'Bahnschrift', 'DIN Condensed', 'Impact', sans-serif;
  --font-body:          'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:          'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Spacing (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows (cream-soft) */
  --shadow-sm: 0 1px 2px rgba(35, 31, 32, 0.06);
  --shadow:    0 4px 16px rgba(35, 31, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(35, 31, 32, 0.12);

  /* Transitions */
  --t-fast: 120ms ease;
  --t:      200ms ease;
  --t-slow: 300ms ease;

  /* On-Dark surfaces (Login Brand-Pane Anthrazit, Voll-Rot-Statement-Bars) */
  --on-dark:        #fafaf7;
  --on-dark-hi:     color-mix(in srgb, #fafaf7 86%, transparent);
  --on-dark-soft:   color-mix(in srgb, #fafaf7 62%, transparent);
  --on-dark-muted:  color-mix(in srgb, #fafaf7 38%, transparent);
  --on-dark-line:   color-mix(in srgb, #fafaf7 14%, transparent);

  /* On-Brand surfaces (Text auf Brand-Rot, Avatar, Wizard-done) */
  --on-brand:        #fafaf7;
  --danger-hover:    #dc2626;
  --danger-soft-hi:  color-mix(in srgb, var(--danger) 40%, transparent);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--prowerb-red); color: var(--on-dark); }

/* Globale :focus-visible-Outlines (A11y, Tastatur-Nutzer) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--prowerb-red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Typography ─────────────────────────────────────────────────────────── */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; line-height: 1.1; }
.mono    { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.02em; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Layout: Topbar ─────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar__brand { display: flex; align-items: center; gap: 14px; }
.topbar__brand img { height: 28px; width: auto; }
.topbar__brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.topbar__nav { display: flex; align-items: center; gap: 4px; }
.topbar__nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--t);
}
.topbar__nav a:hover { color: var(--text); background: var(--bg-elev-1); }
.topbar__nav a.is-active { color: var(--text); background: var(--bg-elev-2); }
.topbar__user { display: flex; align-items: center; gap: 12px; }
.topbar__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--prowerb-red);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-brand); font-weight: 600; font-size: 12px;
  font-family: var(--font-display);
}

/* ── Layout: Main ───────────────────────────────────────────────────────── */
main { max-width: 1280px; margin: 0 auto; padding: var(--space-10) var(--space-8) var(--space-16); }
.page-head { margin-bottom: var(--space-8); }
.page-head h1 { margin-bottom: var(--space-2); }
.page-head__lead { color: var(--text-muted); font-size: 15px; max-width: 680px; line-height: 1.6; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }

.section { margin-bottom: var(--space-12); }
.section-head { margin-bottom: var(--space-6); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.section-head h2 { font-size: 1.25rem; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card--elevated { background: var(--bg-elev-2); }
.card--clickable { cursor: pointer; transition: var(--t); }
.card--clickable:hover { border-color: var(--border-hi); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── KPI Grid ───────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.kpi {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.kpi__label { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-2); }
.kpi__value { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; font-weight: 600; }
.kpi__delta { font-size: 12px; color: var(--text-muted); margin-top: var(--space-2); }
.kpi--accent .kpi__value { color: var(--prowerb-red); }
.kpi--success .kpi__value { color: var(--success); }
.kpi--warning .kpi__value { color: var(--warning); }
.kpi--danger  .kpi__value { color: var(--danger); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--t);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary { background: var(--prowerb-red); color: var(--on-brand); }
.btn--primary:hover:not(:disabled) { background: var(--prowerb-red-hover); }

.btn--secondary { background: var(--bg-elev-2); color: var(--text); border-color: var(--border); }
.btn--secondary:hover:not(:disabled) { background: var(--bg-elev-3); border-color: var(--border-hi); }

.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover:not(:disabled) { color: var(--text); background: var(--bg-elev-1); }

.btn--danger { background: var(--danger); color: var(--on-brand); }
.btn--danger:hover:not(:disabled) { background: var(--danger-hover); }

.btn--sm { padding: 8px 14px; font-size: 12px; min-height: 36px; }
.btn--lg { padding: 14px 24px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text-muted);
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { color: var(--success); border-color: rgba(34,197,94,0.3); background: var(--success-soft); }
.badge--warning { color: var(--warning); border-color: rgba(245,158,11,0.3); background: var(--warning-soft); }
.badge--danger  { color: var(--danger);  border-color: rgba(239,68,68,0.3);  background: var(--danger-soft); }
.badge--info    { color: var(--info);    border-color: rgba(59,130,246,0.3); background: var(--info-soft); }
.badge--neutral { color: var(--text-muted); }

/* ── Table ──────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th, table.data td {
  text-align: left;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
}
table.data th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--bg-elev-2);
}
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: var(--t-fast); }
table.data tbody tr:hover { background: var(--bg-elev-2); }
table.data tbody tr.is-clickable { cursor: pointer; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-5); }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 14px;
  font-size: 14px;
  transition: var(--t);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--prowerb-red);
  background: var(--bg-elev-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field__hint { font-size: 12px; color: var(--text-dim); }
.field__error { font-size: 12px; color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.color-picker { display: flex; gap: 8px; align-items: center; }
.color-picker input[type="color"] { width: 48px; height: 36px; padding: 0; border-radius: var(--radius-sm); cursor: pointer; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}
.tabs button {
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--t);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.tabs button:hover { color: var(--text); }
.tabs button.is-active { color: var(--text); border-bottom-color: var(--prowerb-red); }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-6);
}
.modal {
  background: var(--bg-elev-modal);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h2 { margin-bottom: var(--space-3); }
.modal__lead { color: var(--text-muted); margin-bottom: var(--space-6); }
.modal__actions { display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ── Wizard ─────────────────────────────────────────────────────────────── */
.wizard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-10);
  max-width: 1100px;
  margin: 0 auto;
}
.wizard-steps { padding-top: var(--space-2); }
.wizard-step {
  display: flex; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 4px;
  position: relative;
}
.wizard-step.is-active { background: var(--bg-elev-1); }
.wizard-step__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  flex-shrink: 0;
}
.wizard-step.is-done .wizard-step__num { background: var(--prowerb-red); border-color: var(--prowerb-red); color: var(--on-brand); }
.wizard-step.is-active .wizard-step__num { border-color: var(--prowerb-red); color: var(--prowerb-red); }
.wizard-step__body { flex: 1; }
.wizard-step__title { font-weight: 600; font-size: 13px; }
.wizard-step__hint { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.wizard-content {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.wizard-actions { display: flex; gap: var(--space-3); justify-content: space-between; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }

/* ── Activity / Audit Stream ────────────────────────────────────────────── */
.activity { display: flex; flex-direction: column; gap: 0; }
.activity__item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: var(--space-4);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.activity__item:last-child { border-bottom: none; }
.activity__time { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); padding-top: 2px; }
.activity__action { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.activity__detail { font-size: 12px; color: var(--text-muted); }

/* (Empty-State-Komponente .empty-state am Ende des Files, neue Industrial-Manifest-Variante) */

/* ── Loading ────────────────────────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--prowerb-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.spinner--lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-page {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Status / Health Dot ────────────────────────────────────────────────── */
.health-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.health-dot--ok       { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.health-dot--warning  { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.health-dot--critical { background: var(--danger);  box-shadow: 0 0 0 4px var(--danger-soft); animation: pulse 1.6s ease-in-out infinite; }
.health-dot--unknown  { background: var(--text-dim); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── Login (Public Page) · Industrial-Manifest Dark-Variante ────────────── */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-shell__brand-pane {
  background: var(--prowerb-dark);
  padding: var(--space-12) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  border-right: 1px solid color-mix(in srgb, var(--prowerb-red) 22%, transparent);
}
.login-shell__brand-pane::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--prowerb-red);
}
.login-shell__brand-pane > * { position: relative; z-index: 2; }
.login-shell__logo img { height: 40px; }
.login-shell__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prowerb-red);
  margin: 0 0 var(--space-6);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--prowerb-red);
  display: inline-block;
}
.login-shell__claim {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  font-weight: 600;
  max-width: 540px;
  color: var(--on-dark);
}
.login-shell__claim .accent {
  color: var(--prowerb-red);
}
.login-shell__claim-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-top: var(--space-6);
  max-width: 480px;
  line-height: 1.7;
}
.login-shell__footer {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding-top: var(--space-8);
  border-top: 1px solid var(--on-dark-line);
}

.login-shell__form-pane {
  padding: var(--space-12) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form { max-width: 380px; width: 100%; margin: 0 auto; }
.login-form h2 { font-size: 2rem; margin-bottom: var(--space-2); }
.login-form__lead { color: var(--text-muted); margin-bottom: var(--space-8); }

@media (max-width: 880px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-shell__brand-pane { padding: var(--space-8); min-height: 280px; }
  .wizard { grid-template-columns: 1fr; }
}

/* ── Tenant Drilldown ───────────────────────────────────────────────────── */
.tenant-header {
  display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-6) 0 var(--space-8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
}
.tenant-header__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--prowerb-red-soft);
  color: var(--prowerb-red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  flex-shrink: 0;
}
.tenant-header__body { flex: 1; }
.tenant-header__brand { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; }
.tenant-header__meta {
  display: flex; gap: var(--space-4);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 4px;
}
.tenant-header__actions { display: flex; gap: var(--space-2); }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.row { display: flex; gap: var(--space-4); align-items: center; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: var(--space-4); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev-3);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  z-index: 200;
  max-width: 380px;
  animation: slide-in 200ms ease;
}
#toast.is-success { border-color: rgba(34,197,94,0.4); }
#toast.is-error   { border-color: rgba(239,68,68,0.4); }
@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Code/JSON view ─────────────────────────────────────────────────────── */
pre.code-view {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   INDUSTRIAL MANIFEST · Cockpit-Refresh · Sprint nach DESIGN.md
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Page-Title Display (oversize Display-Headline für Page-Heads) ─────── */
.page-head--display {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-8);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: end;
}
@media (max-width: 720px) {
  .page-head--display { grid-template-columns: 1fr; }
}
.page-head--display .page-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prowerb-red);
  margin-bottom: var(--space-3);
  display: block;
}
.page-head--display h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.page-head--display .page-head__lead {
  margin-top: var(--space-4);
  max-width: 640px;
}
.page-head--display .page-head__actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

/* ── KPI-Strip (kompakter Number-Strip im Admin-Hub statt KPI-Grid) ────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-bottom: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev-1);
}
.kpi-strip__item {
  padding: var(--space-5) var(--space-6);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.kpi-strip__item:last-child { border-right: none; }
@media (max-width: 720px) {
  .kpi-strip__item { border-right: none; border-bottom: 1px solid var(--border); }
  .kpi-strip__item:last-child { border-bottom: none; }
}
.kpi-strip__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.kpi-strip__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.kpi-strip__value.is-accent { color: var(--prowerb-red); }
.kpi-strip__value.is-warning { color: var(--warning); }
.kpi-strip__value.is-success { color: var(--success); }
.kpi-strip__detail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ── Section-Eyebrow (Mono-Kicker über Section-Heads) ──────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prowerb-red);
  margin-bottom: var(--space-3);
  display: block;
}

/* ── Empty-State Pattern (statt blanke leere Sections) ─────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--bg-elev-1);
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius);
}
.empty-state__icon {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
  line-height: 1;
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 var(--space-2);
}
.empty-state__lead {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 0 var(--space-6);
}

/* ── Active + Focus polish auf Buttons + Inputs ────────────────────────── */
.btn:active:not(:disabled) {
  transform: scale(0.985);
}
.btn:focus-visible {
  outline: 2px solid var(--prowerb-red);
  outline-offset: 3px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--prowerb-red);
  box-shadow: 0 0 0 3px var(--prowerb-red-soft);
}

/* Reduced-Motion: keine scale-Animation auf Click */
@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled) {
    transform: none;
  }
  .card--clickable:hover {
    transform: none;
  }
}

/* ── Tenant-Detail Industrial-Manifest-Refresh ───────────────────────── */
.tenant-page-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--space-4);
}

/* Quick-Actions: ersetzt das alte card--clickable-Grid */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev-1);
}
@media (max-width: 720px) {
  .quick-actions { grid-template-columns: 1fr; }
}
.quick-action {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: background var(--t);
  min-height: 92px;
  font-family: inherit;
}
.quick-action:nth-child(2n) { border-right: none; }
.quick-action:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 720px) {
  .quick-action { border-right: none; }
  .quick-action:not(:last-child) { border-bottom: 1px solid var(--border); }
  .quick-action:nth-last-child(-n+2):not(:last-child) { border-bottom: 1px solid var(--border); }
}
.quick-action:hover { background: var(--bg-elev-2); }
.quick-action:focus-visible {
  outline: 2px solid var(--prowerb-red);
  outline-offset: -2px;
  background: var(--bg-elev-2);
}
.quick-action__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--prowerb-red);
  line-height: 1;
}
.quick-action__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.quick-action__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.05;
}
.quick-action__detail {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Activity-Stream (statt nested card.activity) */
.activity-stream {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  padding: var(--space-2) var(--space-6);
}
.activity-stream:has(.empty-state:not([hidden])) {
  background: transparent;
  border: none;
  padding: 0;
}

/* ── Mobile Cockpit-Anpassungen ─────────────────────────────────────── */
@media (max-width: 720px) {
  main { padding: var(--space-6) var(--space-4) var(--space-12); }
  .topbar { padding: 12px 16px; gap: var(--space-3); flex-wrap: wrap; }
  .topbar__brand img { height: 24px; }
  .topbar__brand-tag { display: none; }
  .topbar__nav { gap: 0; flex-wrap: wrap; order: 3; flex-basis: 100%; padding-top: var(--space-2); border-top: 1px solid var(--border); margin-top: var(--space-2); }
  .topbar__nav a { padding: 8px 10px; font-size: 12px; min-height: 36px; display: flex; align-items: center; }
  .topbar__user { gap: var(--space-2); }
  .topbar__user .btn { padding: 8px 12px; font-size: 12px; min-height: 36px; }
}
@media (max-width: 480px) {
  main { padding: var(--space-5) var(--space-3) var(--space-10); }
  .topbar__nav a { padding: 6px 8px; font-size: 11px; }
  .page-head--display h1 { font-size: 1.8rem; }
  .tenant-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .tenant-header__actions { flex-wrap: wrap; width: 100%; }
}

/* Login Mobile-Stack */
@media (max-width: 880px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-shell__brand-pane { padding: var(--space-8) var(--space-6); min-height: auto; }
  .login-shell__claim { font-size: clamp(2rem, 8vw, 3rem); }
  .login-shell__form-pane { padding: var(--space-8) var(--space-6); }
  .login-shell__footer { gap: var(--space-4); flex-wrap: wrap; }
}
