/* ============================================================================
   Teammate Core — SIMO CI / Liquid-Glass Design System (Mockup)
   Source of truth for colours: ~/.simosphere/config/simo.yaml -> ci:
     primary (Teal) #5EBFBF | dark #1A1A1A | accent (Blau) #2605F3
   Fonts: Inter (body), Uni Neue -> Inter fallback (headings)
   Phase 1 mockup — no build tools. Dark default + clean Light mode.
   a11y: text/background contrast >= 4.5:1 (AA), focus-visible rings.
   ============================================================================ */

/* DORA/DSGVO: kein externer Client-Request (kein CDN, keine Drittanbieter).
   Der --font-Stack ('Inter', system-ui, ...) dient als Fallback — der frueher
   hier eingebundene Google-Fonts-@import wurde bewusst entfernt. */

:root {
  /* Brand */
  --teal: #5EBFBF;
  --teal-600: #45a5a5;
  --teal-300: #8fd6d6;
  --accent: #2605F3;
  --accent-bright: #4a3bff;

  /* Status (a11y-safe, not brand-derived) */
  --ok: #3fbf7f;
  --warn: #e0a83a;
  --crit: #e5564b;
  --info: #5aa9e6;

  /* Dark theme (default) */
  --bg: #1A1A1A;
  --bg-2: #141414;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(94, 191, 191, 0.28);
  --text: #f2f4f4;
  --text-dim: #aab2b2;
  --text-faint: #93a0a0;  /* a11y AA: ~4.7:1 auf Glass-Card (#1A1A1A); vorher #7a8585 ~4.0:1 fuer hint/note */
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);

  /* Elevation-Skala (v2.5) — abgestufte Tiefe statt eines einzigen Schattens */
  --elev-1: 0 1px 2px rgba(0,0,0,0.30), 0 2px 8px rgba(0,0,0,0.22);
  --elev-2: 0 6px 18px rgba(0,0,0,0.34), 0 2px 6px rgba(0,0,0,0.22);
  --elev-3: 0 18px 48px rgba(0,0,0,0.46), 0 4px 12px rgba(0,0,0,0.30);
  --glow-teal: 0 0 0 1px rgba(94,191,191,0.20), 0 8px 30px rgba(94,191,191,0.12);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --line: 1px solid var(--glass-border);
  --hairline: linear-gradient(90deg, transparent, var(--glass-border-strong), transparent);
  --blur: blur(14px) saturate(135%);
  --blur-strong: blur(22px) saturate(160%);

  /* Abstands-Skala (v2.5) — konsistente 4px-Basis */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --gap: 20px;
  --maxw: 1480px;

  /* Motion-Tokens (v2.5) — einheitliche Easing/Dauer, reduced-motion-aware */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: .14s; --dur-2: .24s; --dur-3: .4s;

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

[data-theme="light"] {
  --elev-1: 0 1px 2px rgba(40,60,60,0.10), 0 2px 8px rgba(40,60,60,0.08);
  --elev-2: 0 6px 18px rgba(40,60,60,0.12), 0 2px 6px rgba(40,60,60,0.08);
  --elev-3: 0 18px 44px rgba(40,60,60,0.18), 0 4px 12px rgba(40,60,60,0.10);
  --glow-teal: 0 0 0 1px rgba(33,112,112,0.18), 0 8px 30px rgba(94,191,191,0.16);
}

[data-theme="light"] {
  --bg: #eef2f2;
  --bg-2: #e4eaea;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(20, 30, 30, 0.10);
  --glass-border-strong: rgba(38, 5, 243, 0.22);
  --text: #15201f;
  --text-dim: #45524f;
  --text-faint: #5f6b67;  /* a11y AA: ~5.3:1 auf hellem BG (vorher #6a7672 ~4.0:1) */
  --shadow: 0 12px 36px rgba(40, 60, 60, 0.16);
}

/* a11y: Teal #5EBFBF erreicht auf hellem BG nur ~1.92:1 — dunkleres Teal fuer
   Links im Light-Mode (#217070 >=4.5:1 AA auf Seiten-BG #eef2f2).
   Dark-Mode bleibt unveraendert. */
[data-theme="light"] a { color: #217070; }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(94, 191, 191, 0.14), transparent 60%),
    radial-gradient(900px 560px at 98% 0%, rgba(38, 5, 243, 0.16), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-300); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Layout shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-right: var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 4px 8px 18px; text-decoration: none; color: inherit;
}
.brand:hover { text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.brand-sub { font-size: 11px; color: var(--text-faint); font-weight: 500; padding-left: 2px; }

.nav-group-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-faint); padding: 14px 10px 6px; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; transition: all .14s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: linear-gradient(100deg, rgba(94,191,191,0.16), rgba(38,5,243,0.10));
  color: var(--text); border-color: var(--glass-border-strong);
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item .badge { margin-left: auto; }

.main { padding: 24px 30px 60px; max-width: var(--maxw); width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.page-sub { color: var(--text-dim); font-size: 13px; margin: 3px 0 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search {
  display: flex; align-items: center; gap: 8px; min-width: 220px;
  background: var(--surface); border: var(--line); border-radius: var(--radius-pill);
  padding: 8px 14px; color: var(--text-dim); font-size: 13px;
}
.search input { background: none; border: 0; color: var(--text); outline: none; width: 100%; font-family: inherit; }

.btn {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: var(--line); background: var(--surface-2); color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; transition: all .14s ease;
}
.btn:hover { border-color: var(--glass-border-strong); }
.btn-primary {
  background: linear-gradient(100deg, var(--teal), var(--accent));
  color: #fff; border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-icon { padding: 9px; border-radius: 11px; }
.btn svg { width: 16px; height: 16px; }

.theme-toggle { cursor: pointer; }

/* ---------- Glass cards ---------- */
.card {
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.card-title .muted { color: var(--text-faint); font-weight: 500; }
.card-head .right { margin-left: auto; font-size: 12px; color: var(--text-dim); }

.grid { display: grid; gap: var(--gap); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* ---------- KPI stat ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .kpi-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: var(--line); margin-bottom: 6px;
}
.stat .kpi-icon svg { width: 20px; height: 20px; }
.stat-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stat-delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--crit); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill);
  border: 1px solid transparent; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pill-ok   { background: rgba(63,191,127,0.14);  color: #6fe0a8; border-color: rgba(63,191,127,0.30); }
.pill-warn { background: rgba(224,168,58,0.14);  color: #f1ca72; border-color: rgba(224,168,58,0.32); }
.pill-crit { background: rgba(229,86,75,0.15);   color: #ff8c84; border-color: rgba(229,86,75,0.34); }
.pill-info { background: rgba(90,169,230,0.14);  color: #8cc6f3; border-color: rgba(90,169,230,0.30); }
.pill-teal { background: rgba(94,191,191,0.14);  color: var(--teal-300); border-color: rgba(94,191,191,0.32); }
.pill-accent { background: rgba(38,5,243,0.16);  color: #9a8cff; border-color: rgba(38,5,243,0.40); }
.pill-neutral { background: var(--surface-2); color: var(--text-dim); border-color: var(--glass-border); }
[data-theme="light"] .pill-ok { color: #1a6f46; }   /* a11y AA: leicht abgedunkelt (vorher #1d7d4f grenzwertig) */
[data-theme="light"] .pill-warn { color: #8a6516; }
[data-theme="light"] .pill-crit { color: #b3382e; }
[data-theme="light"] .pill-info { color: #2c6ca0; }
[data-theme="light"] .pill-accent { color: #2605F3; }
[data-theme="light"] .pill-teal { color: #1f6d6d; }  /* a11y AA: ~4.6:1 auf Pill-Tint (vorher #2a8585 ~3.6:1) */

.bdg { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; }

/* ---------- Pillars (compliance) ---------- */
.pillar { display: flex; flex-direction: column; gap: 14px; }
.pillar-top { display: flex; align-items: flex-start; gap: 12px; }
.pillar-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.pillar-ic svg { width: 22px; height: 22px; }
.ic-ai   { background: rgba(38,5,243,0.16);  color: #9a8cff; }
.ic-dora { background: rgba(90,169,230,0.16); color: #8cc6f3; }
.ic-dsg  { background: rgba(94,191,191,0.16); color: var(--teal-300); }
.ic-iso  { background: rgba(63,191,127,0.16); color: #6fe0a8; }
.pillar-name { font-weight: 700; font-size: 14px; }
.pillar-meta { font-size: 11.5px; color: var(--text-faint); }
.pillar-score { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-left: auto; }

.bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--accent)); }
.bar.warn > i { background: var(--warn); }
.bar.crit > i { background: var(--crit); }
.bar.ok > i { background: var(--ok); }

.ctrl-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ctrl-row .num { color: var(--text-faint); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-faint); font-weight: 700; padding: 10px 12px;
  border-bottom: var(--line); position: sticky; top: 0;
}
tbody td { padding: 11px 12px; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--text-dim); }
.hash { color: var(--teal-300); }
.cell-strong { font-weight: 600; }

/* ---------- Timeline / activity ---------- */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
.tl-item:last-child { border-bottom: 0; }
.tl-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: var(--line); }
.tl-ic svg { width: 15px; height: 15px; }
.tl-body { flex: 1; min-width: 0; }
.tl-title { font-size: 13px; font-weight: 600; }
.tl-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.tl-time { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }

/* ---------- Audit-trail explorer specifics ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.chip {
  font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: var(--radius-pill);
  border: var(--line); background: var(--surface); color: var(--text-dim); cursor: pointer; transition: all .14s;
}
.chip:hover { border-color: var(--glass-border-strong); color: var(--text); }
.chip.active { background: linear-gradient(100deg, rgba(94,191,191,0.16), rgba(38,5,243,0.10)); color: var(--text); border-color: var(--glass-border-strong); }

.chain-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); font-weight: 600; }
.chain-ok svg { width: 14px; height: 14px; }

.detail-panel {
  background: var(--surface-2); border: var(--line); border-radius: var(--radius-sm);
  padding: 16px; font-size: 12.5px;
}
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; }
.kv dt { color: var(--text-faint); font-weight: 600; }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }

/* ---------- Health gauge ---------- */
.gauge { display: flex; align-items: center; gap: 16px; }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--teal) calc(var(--p)*1%), var(--surface-2) 0); display: grid; place-items: center; }
.ring::after { content: ""; position: absolute; }
.ring .ring-in { width: 70px; height: 70px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.ring .ring-val { font-size: 22px; font-weight: 800; }

/* ---------- Footer note ---------- */
.note {
  margin-top: 26px; font-size: 11.5px; color: var(--text-faint);
  border-top: var(--line); padding-top: 14px; line-height: 1.6;
}

/* ---------- Mobile menu button ---------- */
.menu-btn { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .span-3 { grid-column: span 2; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 40; width: 248px; left: 0; top: 0;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
  .main { padding: 18px 16px 50px; }
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .page-title { font-size: 19px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============================================================================
   Cockpit-Erweiterungen (server-side rendered) — additiv, ohne Token-Aenderung.
   ============================================================================ */

/* Skip-Link (a11y, WCAG 2.4.1) — sichtbar bei Tastatur-Fokus */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 13px;
}
.skip-link:focus { left: 12px; color: #fff; }

/* Empty-State ("noch keine Daten") */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 18px; text-align: center; color: var(--text-faint);
}
.empty svg { width: 30px; height: 30px; opacity: .7; }
.empty .empty-title { font-weight: 600; font-size: 13.5px; color: var(--text-dim); }
.empty .empty-sub { font-size: 12px; max-width: 360px; line-height: 1.5; }

/* Sensitive-Lock-Banner (Stufe-3-Gate-Hinweis) */
.lock-banner {
  display: flex; align-items: center; gap: 12px;
  background: rgba(229,86,75,0.10); border: 1px solid rgba(229,86,75,0.30);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px;
  color: var(--text);
}
.lock-banner svg { width: 20px; height: 20px; flex: none; color: var(--crit); }

/* Filter-/Sub-Navigation für Detail-Views (HTMX-Targets) */
[aria-busy="true"] { opacity: .6; transition: opacity .15s ease; }
.htmx-indicator { opacity: 0; }
.htmx-request .htmx-indicator { opacity: 1; }

/* Detailzeile aktiv (Audit-Explorer, server-getriggert) */
tbody tr.row-active { background: var(--surface-2); }

/* Frist-Countdown-Betonung */
.deadline-soon { color: var(--warn); font-weight: 600; }
.deadline-crit { color: var(--crit); font-weight: 600; }

/* ---------------------------------------------------------------------------
   Multi-Tenant: Tenant-Switcher (Topbar) + Onboarding-Formular + Aktionen.
   Additiv, ausschliesslich Brand-Tokens (Teal/Accent/Inter) — keine neuen
   Farb-Konstanten ausserhalb der CI.
   --------------------------------------------------------------------------- */

/* Tenant-Switcher in der Topbar (nur Stufe 1, Multi-Tenant) */
.tenant-switcher { display: flex; align-items: center; gap: 8px; }
.tenant-switcher-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-faint); font-weight: 700;
}
.tenant-select-wrap {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: var(--line);
  border-radius: var(--radius-pill); padding: 6px 12px;
}
.tenant-select-wrap svg { width: 15px; height: 15px; color: var(--teal-300); flex: none; }
.tenant-select-wrap select {
  background: none; border: 0; color: var(--text); font-family: inherit;
  font-size: 13px; font-weight: 600; outline: none; cursor: pointer;
  max-width: 200px;
}
.tenant-select-wrap select option { background: var(--bg-2); color: var(--text); }

/* Onboarding-Formular (Tenant anlegen) */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.field-label .req { color: var(--accent); margin-left: 2px; }
.field-hint { font-size: 11.5px; color: var(--text-faint); margin: 0; line-height: 1.45; }
.input {
  font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--surface-2); border: var(--line);
  border-radius: var(--radius-sm); padding: 10px 13px; width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.input::placeholder { color: var(--text-faint); }
.input:focus {
  outline: none; border-color: var(--glass-border-strong);
  box-shadow: 0 0 0 3px rgba(94,191,191,0.16);
}
.input:invalid:not(:placeholder-shown) { border-color: rgba(229,86,75,0.45); }
select.input { cursor: pointer; }

/* Mandanten-Aktionen in der Register-Tabelle */
.tenant-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-sm svg { width: 13px; height: 13px; }
.tenant-action-hint { font-size: 11px; color: var(--text-faint); }
/* Inline-POST-Form (Lifecycle-Buttons) ohne eigenen Block-Flow. */
.inline-action { display: inline; margin: 0; }
/* Destruktive Aktion (Stilllegen) — CI-Statusfarbe --crit, dezent gefuellt. */
.btn-danger {
  border-color: rgba(229,86,75,0.45);
  color: var(--crit);
}
.btn-danger:hover { background: rgba(229,86,75,0.12); border-color: var(--crit); }

@media (max-width: 860px) {
  .tenant-switcher-label { display: none; }
  .tenant-select-wrap select { max-width: 130px; }
  .tenant-action-hint { display: none; }
}

/* ============================================================================
   SIMOSphere AI — Control Center (Live-Kacheln, Ampeln, Logo, Pulse).
   Additiv, ausschliesslich CI-Tokens (Teal/Accent/Dark) + a11y-Statusfarben.
   ============================================================================ */

/* --- Offizielles Logo (theme-abhaengig per CSS umgeschaltet) --- */
.ss-logo { display: inline-flex; align-items: center; }
.ss-logo-img {
  display: block; height: 34px; width: auto; max-width: 100%;
}
.ss-logo-compact .ss-logo-img { height: 30px; }
/* Default (dunkles Theme): dunkle Logo-Variante (weisse Wortmarke). */
.ss-logo-light { display: none; }
.ss-logo-dark { display: block; }
/* Helles Theme: helle Logo-Variante (schwarze Wortmarke). */
[data-theme="light"] .ss-logo-dark { display: none; }
[data-theme="light"] .ss-logo-light { display: block; }

/* --- Screenreader-only Label (a11y) --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Web-Chat --- */
.chat-card { display: flex; flex-direction: column; }
.chat-log {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 320px; max-height: 56vh; overflow-y: auto;
  padding: 14px 4px 14px 2px; margin-top: 8px;
}
.chat-row { display: flex; }
.chat-row-in { justify-content: flex-start; }
.chat-row-out { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.chat-bubble-in {
  background: var(--surface-2); border: var(--line);
  color: var(--text); border-bottom-left-radius: 4px;
}
.chat-bubble-out {
  background: var(--teal); color: #06262a; font-weight: 500;
  border-bottom-right-radius: 4px;
}
[data-theme="light"] .chat-bubble-out { color: #06262a; }
.chat-bubble-error { border-color: var(--crit); color: var(--crit); }
.chat-typing {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; color: var(--text-faint); font-size: 12px;
}
.chat-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  animation: chatBlink 1.2s infinite both;
}
.chat-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-dot:nth-child(3) { animation-delay: 0.4s; }
.chat-typing-label { margin-left: 4px; }
@keyframes chatBlink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-dot { animation: none; } }
.chat-form {
  display: flex; align-items: flex-end; gap: 10px;
  margin-top: 10px; padding-top: 12px; border-top: var(--line);
}
.chat-input {
  flex: 1; resize: none; min-height: 42px; max-height: 160px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: var(--line); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 14px; line-height: 1.4;
}
.chat-input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.chat-send { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .chat-send-label { display: none; } }

/* --- Live-Banner + Pulse-Indikator --- */
.cc-live-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.cc-pulse {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--ok); box-shadow: 0 0 0 0 rgba(63, 191, 127, 0.6);
  animation: ccPulse 1.8s ease-out infinite;
}
@keyframes ccPulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(63, 191, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0); }
}
@media (prefers-reduced-motion: reduce) { .cc-pulse { animation: none; } }

/* --- Kachel-Grid + Tile --- */
.cc-grid { margin-top: 4px; }
.cc-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; position: relative; }
.cc-tile-head { display: flex; align-items: center; gap: 8px; }
.cc-tile-title { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.cc-tile-badge { margin-left: auto; font-size: 10px; }
.cc-tile-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; word-break: break-word; }
.cc-tile-detail { font-size: 12px; color: var(--text-dim); }
.cc-tile-help { font-size: 11px; color: var(--text-faint); line-height: 1.45; }
.cc-tile-updated { font-size: 10.5px; color: var(--text-faint); margin-top: auto; padding-top: 6px; }

/* Ampel-Dot je Status */
.cc-amp { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cc-amp-ok { background: var(--ok); }
.cc-amp-warn { background: var(--warn); }
.cc-amp-crit { background: var(--crit); }
.cc-amp-info { background: var(--text-faint); }

/* Linker Status-Akzent am Kachelrand */
.cc-tile.cc-ok   { border-left: 3px solid var(--ok); }
.cc-tile.cc-warn { border-left: 3px solid var(--warn); }
.cc-tile.cc-crit { border-left: 3px solid var(--crit); }
.cc-tile.cc-info { border-left: 3px solid var(--glass-border); }

/* --- Routing-Ketten --- */
.cc-chains { display: flex; flex-direction: column; gap: 8px; }
.cc-chain {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--surface-2); border: var(--line);
  border-radius: var(--radius-sm);
}
.cc-chain-name {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700; color: var(--teal-300); min-width: 84px;
}
.cc-chain-val { font-size: 12.5px; }

/* --- Live-Log-Tail --- */
.cc-log {
  background: var(--bg-2); border: var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 0; max-height: 320px; overflow: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px;
  line-height: 1.55; color: var(--text-dim); white-space: pre-wrap; word-break: break-word;
}

/* =====================================================================
   Evolution-Programm UI — Command-Palette · Spotlight · Hilfe · Level
   (additiv, SIMO-CI, same-origin, prefers-reduced-motion respektiert)
   ===================================================================== */

/* --- Erfahrungs-Ebenen-Umschalter (Topbar) --- */
.cc-level-switch { display: inline-flex; align-items: center; gap: 6px; }
.cc-level-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); font-weight: 700;
}
.cc-level-switch select {
  background: var(--bg-2); color: var(--text); border: var(--line);
  border-radius: var(--radius-sm); padding: 5px 8px; font-size: 12.5px;
}
.cc-level-switch select:focus { outline: 2px solid var(--teal); }

/* --- Command-Palette-Overlay --- */
.cc-palette {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
}
.cc-palette[hidden] { display: none; }
.cc-palette-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.cc-palette-box {
  position: relative; margin-top: 12vh; width: min(92vw, 40rem);
  background: var(--bg-2); border: var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.5); padding: 14px; z-index: 1;
}
.cc-palette-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  font-size: 15px; color: var(--text);
  background: var(--bg); border: var(--line); border-radius: var(--radius-sm);
}
.cc-palette-input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.cc-palette-results {
  list-style: none; margin: 12px 0 0; padding: 0;
  max-height: 50vh; overflow: auto;
}
.cc-palette-item {
  padding: 9px 12px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13.5px; color: var(--text-dim);
}
.cc-palette-item:hover, .cc-palette-item.active {
  background: rgba(94,191,191,.14); color: var(--text);
}
.cc-palette-hint {
  margin: 10px 2px 0; font-size: 11px; color: var(--text-dim);
}

/* --- Spotlight (Advisor + Onboarding) --- */
.cc-spotlight-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.45); pointer-events: none;
}
.cc-spotlight-backdrop[hidden] { display: none; }
.cc-spotlight-target {
  position: relative; z-index: 901;
  outline: 3px solid var(--teal); outline-offset: 3px;
  border-radius: var(--radius-sm);
  animation: cc-pulse 1.6s ease-in-out infinite;
}
@keyframes cc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,191,191,.55); }
  50%      { box-shadow: 0 0 0 8px rgba(94,191,191,0); }
}
.cc-spotlight-tip, .cc-explain.cc-spotlight-tip {
  position: fixed; z-index: 950; left: 50%; bottom: 6vh;
  transform: translateX(-50%); width: min(92vw, 24rem);
}
@media (prefers-reduced-motion: reduce) {
  .cc-spotlight-target { animation: none; }
}

/* --- Explain-/Tooltip-/Advisor-Karte --- */
.cc-explain {
  background: var(--bg-2); border: var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.45); padding: 16px;
}
.cc-explain-title { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.cc-explain-hint { margin: 0 0 12px; font-size: 13px; color: var(--text-dim); }
.cc-explain-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cc-advisor { display: flex; flex-direction: column; gap: 10px; }
.cc-advisor-badge {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); font-weight: 700;
}

/* --- Kontextuelle Hilfe --- */
.cc-help-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(94,191,191,.18); color: var(--teal-300);
  font-size: 11px; font-weight: 700; text-decoration: none;
  vertical-align: middle; cursor: help;
}
.cc-help-dot:hover { background: rgba(94,191,191,.30); }
.cc-help-pop {
  position: fixed; z-index: 950; right: 4vw; top: 9vh;
  width: min(92vw, 24rem); max-height: 70vh; overflow: auto;
}
.cc-help-close {
  position: absolute; top: 8px; right: 10px; border: 0; background: transparent;
  color: var(--text-dim); font-size: 20px; line-height: 1; cursor: pointer;
}
.cc-help-inline {
  background: var(--bg-2); border: var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 10px 0; font-size: 13px; color: var(--text-dim);
}
.cc-help-title { margin: 0 0 6px; font-size: 13px; color: var(--text); }
.cc-help-body p { margin: 0 0 8px; }
.cc-graphic { margin: 10px 0 0; }
.cc-graphic img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ============================================================================
   v2.5 ELEVATION LAYER — Control-Center-Relaunch.
   Additiv, selektor-erhaltend (kaskadiert zuletzt). Hebt Tiefe, Typografie,
   Navigation, Karten, Tabellen, Formulare, Motion & Responsive auf ein neues
   Niveau — ausschliesslich SIMO-CI-Tokens (Teal/Accent/Inter), kein CDN,
   AA-Kontraste + prefers-reduced-motion respektiert.
   ============================================================================ */

/* ---------- Typografie-Feinschliff (fluide Groessen) ---------- */
body { letter-spacing: -0.005em; }
.page-title {
  font-size: clamp(20px, 1.1rem + 0.6vw, 26px);
  background: linear-gradient(120deg, var(--text), var(--text-dim));
  -webkit-background-clip: text; background-clip: text;
}
.card-title, .pillar-name, .tl-title { letter-spacing: -0.01em; }

/* ---------- App-Shell: weichere Tiefe ---------- */
.app { position: relative; }

/* ---------- Sidebar: edlere Navigation ---------- */
.sidebar {
  -webkit-backdrop-filter: var(--blur-strong);
  backdrop-filter: var(--blur-strong);
  padding: 22px 14px;
  gap: 3px;
}
.brand { padding-bottom: 20px; margin-bottom: 6px; position: relative; }
.brand::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 1px;
  background: var(--hairline);
}
.nav-group-label { padding: 16px 12px 6px; opacity: .9; }
.nav-item {
  position: relative; padding: 9px 12px;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
.nav-item:hover { transform: translateX(2px); }
.nav-item.active::before {
  content: ""; position: absolute; left: -1px; top: 18%; bottom: 18%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), var(--accent));
}
.nav-item svg { transition: transform var(--dur-1) var(--ease); }
.nav-item:hover svg { transform: scale(1.08); }

/* ---------- Topbar: klebend + Glas-Hairline ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  margin: -24px -30px 22px; padding: 16px 30px;
  background: linear-gradient(180deg, var(--bg) 30%, transparent);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--hairline);
}
.page-sub { color: var(--text-faint); }

/* ---------- Buttons: Lift + Druckpunkt ---------- */
.btn {
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--elev-1); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: var(--glow-teal); }
.btn-primary:hover { box-shadow: var(--glow-teal), var(--elev-2); }

/* ---------- Such-/Eingabefelder ---------- */
.search { transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.search:focus-within { border-color: var(--glass-border-strong); box-shadow: 0 0 0 3px rgba(94,191,191,0.14); }

/* ---------- Karten: Hairline-Akzent, Hover-Lift, sanfter Auftritt ---------- */
.card {
  position: relative;
  box-shadow: var(--elev-2);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--hairline); opacity: .6; pointer-events: none;
}
.card:hover { box-shadow: var(--elev-3); border-color: var(--glass-border-strong); }
.cc-tile:hover { transform: translateY(-3px); }
.cc-tile { transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }

/* KPI-Wert mit Brand-Verlauf */
.stat-value, .cc-tile-value {
  background: linear-gradient(120deg, var(--text), var(--teal-300));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Tabellen: ruhigerer Kopf, weiches Zebra ---------- */
thead th {
  background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  z-index: 1;
}
tbody tr { transition: background var(--dur-1) var(--ease); }
tbody tr:nth-child(even) td { background: rgba(255,255,255,0.012); }
[data-theme="light"] tbody tr:nth-child(even) td { background: rgba(20,30,30,0.02); }

/* ---------- Pills: zarter Innenglanz ---------- */
.pill { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---------- Chat-Bubbles: Tiefe ---------- */
.chat-bubble { box-shadow: var(--elev-1); }
.chat-bubble-out { box-shadow: var(--glow-teal); }

/* ---------- Fortschrittsbalken: animierter Glanz ---------- */
.bar > i { position: relative; overflow: hidden; transition: width var(--dur-3) var(--ease-out); }

/* ---------- Command-Palette / Overlays: stärkerer Glasrahmen ---------- */
.cc-palette-box { box-shadow: var(--elev-3); -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong); background: var(--surface-2); }
.cc-palette-backdrop { backdrop-filter: blur(3px); }

/* ---------- Custom Scrollbars (same-origin, dezent) ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--surface-2); border-radius: var(--radius-pill);
  border: 2px solid transparent; background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--glass-border-strong); background-clip: padding-box; }

/* ---------- Textauswahl in Brand-Teal ---------- */
::selection { background: rgba(94,191,191,0.28); color: var(--text); }

/* ---------- Sanfter Karten-Auftritt (gestaffelt) ---------- */
@keyframes ccRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.main > .grid > .card,
.main > .card { animation: ccRise var(--dur-3) var(--ease-out) both; }
.main > .grid > .card:nth-child(2) { animation-delay: .04s; }
.main > .grid > .card:nth-child(3) { animation-delay: .08s; }
.main > .grid > .card:nth-child(4) { animation-delay: .12s; }
.main > .grid > .card:nth-child(5) { animation-delay: .16s; }
.main > .grid > .card:nth-child(6) { animation-delay: .20s; }

/* ---------- Feinerer Fokus-Ring ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(94,191,191,0.16); }

/* ---------- Mobile-Scrim für die Sidebar-Schublade ---------- */
.sidebar-scrim { display: none; }
@media (max-width: 860px) {
  .sidebar-scrim {
    position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease);
  }
  .sidebar.open ~ .sidebar-scrim,
  body.menu-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .sidebar { box-shadow: var(--elev-3); }
  .topbar { margin: -18px -16px 18px; padding: 14px 16px; }
}

/* ---------- Tablet-Breakpoint: schmalere Navigation ---------- */
@media (min-width: 861px) and (max-width: 1100px) {
  .app { grid-template-columns: 212px 1fr; }
  .main { padding: 22px 22px 56px; }
}

/* ---------- Großbild: zentrierter Inhalt ---------- */
@media (min-width: 1700px) {
  .main { margin: 0 auto; }
}

/* ============================================================================
   Mission Control — konsolidiertes Dashboard (v2.6).
   Links Realtime-Überwachung (Poll-Region), rechts fester Rail mit Agenten-Chat
   + Quick-Parameter. Nur CI-Tokens, additiv.
   ============================================================================ */
.mc {
  display: grid; grid-template-columns: minmax(0, 1fr) 364px;
  gap: var(--gap); align-items: start;
}
.mc-main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.mc-rail {
  display: flex; flex-direction: column; gap: var(--gap);
  position: sticky; top: 86px;
}
.mc-banner { margin-bottom: var(--gap); }
.mc-banner-right { margin-left: auto; color: var(--text-faint); font-size: 12px; font-weight: 600; }

/* Chat-Dock im Rail */
.mc-chat { display: flex; flex-direction: column; }
.mc-chat-log { min-height: 260px; max-height: 44vh; margin-top: 4px; }

/* Quick-Parameter-Navigator */
.mc-param-nav { display: flex; flex-direction: column; gap: 4px; }
.mc-param-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  color: var(--text-dim); transition: background var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}
.mc-param-item:hover {
  background: var(--surface-2); color: var(--text);
  border-color: var(--glass-border-strong); transform: translateX(2px);
}
.mc-param-ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: var(--line); flex: none; color: var(--teal-300);
}
.mc-param-ic svg { width: 17px; height: 17px; }
.mc-param-text { display: flex; flex-direction: column; min-width: 0; }
.mc-param-label { font-size: 13px; font-weight: 600; color: var(--text); }
.mc-param-desc { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-param-arrow { margin-left: auto; color: var(--text-faint); font-weight: 700; }
.mc-param-locked { opacity: .65; }
.mc-param-locked .badge { margin-left: auto; }

/* Rail unter den Inhalt klappen, sobald es eng wird */
@media (max-width: 1180px) {
  .mc { grid-template-columns: 1fr; }
  .mc-rail { position: static; }
  .mc-chat-log { max-height: 38vh; }
}

/* ---------- Schmales Mobil (<=600px): Overflow-Härtung (Playwright F2) ----------
   Behebt horizontalen Overflow bei ~390px: Suchfeld darf schrumpfen, Topbar-
   Aktionen umbrechen, kv-Listen einspaltig, Monospace/Hashes brechen um, breite
   Tabellen scrollen innerhalb ihrer Karte statt die Seite zu sprengen. */
@media (max-width: 600px) {
  .search { min-width: 0; flex: 1 1 auto; }
  .topbar-actions { flex-wrap: wrap; gap: 8px; row-gap: 8px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .kv dd { margin-bottom: 2px; }
  .mono, .hash, .cell-strong { overflow-wrap: anywhere; word-break: break-word; }
  /* Breite Tabellen/Inhalte horizontal IN der Karte scrollen lassen, nicht die
     Seite. Tische ohne .table-wrap-Hülle werden so ebenfalls eingefangen. */
  .card { overflow-x: auto; }
  table { font-size: 12px; }
  thead th, tbody td { padding-left: 9px; padding-right: 9px; }
  .page-title { font-size: 18px; }
  .chat-bubble { max-width: 88%; }
}

/* ---------- KPI-Sparkline (Inline-SVG, dependency-frei) ---------- */
/* Dezente Trendlinie unter dem Großwert. Rein dekorativ (aria-hidden im Macro);
   Farbe via Token, damit Dark + [data-theme="light"] automatisch passen. */
.stat-spark {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 6px;
  color: var(--teal);
  overflow: visible;
}

/* ---------- Monospace Live-Metrik-Leiste (NeuralDesk-Muster) ---------- */
.cc-metricbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  padding: 9px 14px;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}
.cc-mb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  white-space: nowrap;
  border-left: 1px solid var(--glass-border);
}
.cc-mb-item:first-child { padding-left: 0; border-left: 0; }
.cc-mb-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}
.cc-mb-live { font-weight: 700; color: var(--ok); }
.cc-mb-live .cc-pulse { width: 8px; height: 8px; }
@media (max-width: 560px) {
  .cc-mb-item { padding: 0 9px; }
}

/* ---------- Reduced-Motion: alle v2.5-Bewegungen aus ---------- */
@media (prefers-reduced-motion: reduce) {
  .main > .grid > .card, .main > .card { animation: none; }
  .nav-item:hover, .card:hover, .cc-tile:hover, .btn:hover { transform: none; }
}
