/* ── Inter, lokal gehostet (DSGVO-konform, kein externer Google-Request) ────── */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src:url('../fonts/inter-latin-300-normal.woff2') format('woff2'),
      url('../fonts/inter-latin-300-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../fonts/inter-latin-400-normal.woff2') format('woff2'),
      url('../fonts/inter-latin-400-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('../fonts/inter-latin-500-normal.woff2') format('woff2'),
      url('../fonts/inter-latin-500-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('../fonts/inter-latin-600-normal.woff2') format('woff2'),
      url('../fonts/inter-latin-600-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('../fonts/inter-latin-700-normal.woff2') format('woff2'),
      url('../fonts/inter-latin-700-normal.woff') format('woff'); }

/* ============================================================
   Kasimir – Aurora Design System
   Ersetzt app.css vollständig
   ============================================================ */

/* (Plus Jakarta Sans entfernt – wurde nirgends verwendet) */

/* ── CSS-Variablen ─────────────────────────────────────────── */
:root {
  /* Aurora Kernfarben */
  --aurora-accent:  #5b5ef4;
  --aurora-accent2: #a855f7;
  --aurora-cyan:    #06b6d4;
  --aurora-green:   #10b981;
  --aurora-red:     #ef4444;
  --aurora-yellow:  #f59e0b;

  /* Kompatibilität mit bestehenden inline-styles */
  --accent:        #5b5ef4;
  --accent-light:  rgba(91,94,244,0.08);
  --accent-text:   #3730a3;
  --bg:            #f4f6ff;
  --surface:       #ffffff;
  --border:        rgba(91,94,244,0.1);
  --text:          #0f0f1a;
  --text-2:        #4a5568;
  --text-3:        #a0aec0;
  --danger:        #ef4444;
  --danger-light:  rgba(239,68,68,0.08);
  --warning:       #f59e0b;
  --warning-light: rgba(245,158,11,0.08);
  --info:          #5b5ef4;
  --info-light:    rgba(91,94,244,0.08);
  --success:       #10b981;
  --radius:        12px;
  --shadow:        0 2px 16px rgba(91,94,244,0.07);
  --sidebar-width: 236px;

  /* ── Typo-Skala (Stufe 1) ─────────────────────────────────
     Zentrale Schriftgrößen. Genutzt über Utility-Klassen
     (.fs-caption etc.) oder direkt via var(--fs-…).
     Schrittweise lösen die Inline-font-size-Angaben hierauf ab. */
  --fs-micro:    11px;  /* sehr nachrangige Labels, Badges */
  --fs-caption:  12px;  /* Metadaten, Zeitstempel, Hilfetexte */
  --fs-body:     13px;  /* Sekundär-Fließtext, Tabellenzellen */
  --fs-value:    14px;  /* Standard-Werte, Profil-Stammdaten */
  --fs-base:     15px;  /* Basis-Fließtext */
  --fs-lead:     16px;  /* hervorgehobener Fließtext */
  --fs-h3:       18px;  /* kleine Überschriften */
  --fs-h2:       22px;  /* Abschnittsüberschriften */
  --fs-h1:       28px;  /* Seitentitel */
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafbff;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typo-Utility-Klassen (Stufe 1) ────────────────────────
   Schrittweiser Ersatz für verstreute Inline-font-size. */
.fs-micro   { font-size: var(--fs-micro); }
.fs-caption { font-size: var(--fs-caption); }
.fs-body    { font-size: var(--fs-body); }
.fs-value   { font-size: var(--fs-value); }
.fs-base    { font-size: var(--fs-base); }
.fs-lead    { font-size: var(--fs-lead); }

a { color: inherit; text-decoration: none; }

/* ── Hintergrund-Orbs (fixed, hinter allem) ────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 90% -10%, rgba(91,94,244,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at -10% 90%, rgba(6,182,212,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(168,85,247,0.06) 0%, transparent 60%),
    #fafbff;
  pointer-events: none;
}

/* ── Layout ─────────────────────────────────────────────────── */
#layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(91,94,244,0.1);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px 14px;
  gap: 2px;
}

/* Scrollbar Styling */
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(91,94,244,0.2); border-radius: 4px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(91,94,244,0.08);
  text-decoration: none;
  transition: opacity 0.15s;
}
.sidebar-brand:hover { opacity: 0.8; }
.sidebar-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--aurora-accent), var(--aurora-accent2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px rgba(91,94,244,0.3);
  flex-shrink: 0;
}
.sidebar-brand h1 {
  font-size: 16px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
  line-height: 1.1;
}
.sidebar-brand p {
  font-size: 10px; color: var(--text-3);
  margin-top: 1px; font-weight: 400;
}

.nav-section {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #b0bcd4;
  padding: 12px 10px 4px; display: block;
  flex-shrink: 0;
}

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: #718096; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  margin-bottom: 1px; flex-shrink: 0;
}
.nav-item svg, .nav-item [data-lucide] {
  width: 16px; height: 16px; flex-shrink: 0;
}
.nav-item:hover { background: rgba(91,94,244,0.06); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(91,94,244,0.1), rgba(168,85,247,0.07));
  color: var(--aurora-accent); font-weight: 600;
}

.nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 600;
  background: rgba(91,94,244,0.1); color: var(--aurora-accent);
  padding: 1px 7px; border-radius: 8px;
}

/* Accelerator-Toggle */
.nav-acc-toggle {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  background: rgba(139,92,246,0.1); color: #8b5cf6;
  cursor: pointer; transition: all 0.15s;
  margin-bottom: 1px; flex-shrink: 0;
}
.nav-acc-toggle svg, .nav-acc-toggle [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; }
.nav-acc-toggle.active { background: rgba(91,94,244,0.12); color: var(--aurora-accent); font-weight: 600; }
.nav-acc-arrow { margin-left: auto; transition: transform 0.2s; display: flex; }
.nav-acc-arrow [data-lucide] { width: 14px; height: 14px; }

.nav-sub-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px 7px 34px; border-radius: 10px;
  font-size: 12.5px; color: #a0aec0; font-weight: 500;
  cursor: pointer; transition: all 0.15s; margin-bottom: 1px; flex-shrink: 0;
}
.nav-sub-item svg, .nav-sub-item [data-lucide] { width: 14px; height: 14px; flex-shrink: 0; }
.nav-sub-item:hover { background: rgba(91,94,244,0.05); color: var(--text); }
.nav-sub-item.active { color: var(--aurora-accent); font-weight: 600; }

#acc-submenu { overflow: hidden; transition: max-height 0.25s ease; flex-shrink: 0; }

.sidebar-user {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(91,94,244,0.08);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--aurora-accent), var(--aurora-accent2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.user-info p   { font-size: 13px; font-weight: 600; color: var(--text); }
.user-info span { font-size: 11px; color: var(--text-3); }
.logout-btn {
  margin-left: auto; color: var(--text-3);
  display: flex; align-items: center; padding: 4px;
  border-radius: 6px; transition: all 0.15s;
}
.logout-btn:hover { background: rgba(239,68,68,0.08); color: var(--danger); }
.logout-btn [data-lucide] { width: 15px; height: 15px; }

/* ── Main Content ─────────────────────────────────────────── */
#main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

#content {
  padding: 36px 40px;
  max-width: 1650px;
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.page-header h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text);
}
.page-header p { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.hdr-actions {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; align-items: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; font-family: inherit; transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn svg, .btn [data-lucide] { width: 14px; height: 14px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--aurora-accent), var(--aurora-accent2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,94,244,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(91,94,244,0.4); transform: translateY(-1px); color: #fff; }

.btn-secondary {
  background: rgba(255,255,255,0.85);
  color: var(--text);
  border: 1px solid rgba(91,94,244,0.15);
}
.btn-secondary:hover { background: rgba(91,94,244,0.06); border-color: rgba(91,94,244,0.3); }

.btn-danger {
  background: rgba(239,68,68,0.08);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}
.btn-danger:hover { background: rgba(239,68,68,0.15); }

.btn-ghost {
  background: transparent; color: var(--text-3);
  padding: 7px 12px; border: 1px solid transparent;
}
.btn-ghost:hover { background: rgba(91,94,244,0.05); color: var(--text-2); border-color: rgba(91,94,244,0.1); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-body { padding: 20px; }
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(91,94,244,0.07);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--text); }

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.stat-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.9);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(91,94,244,0.1); }
.stat-label {
  font-size: 11px; color: var(--text-3);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.stat-value {
  font-size: 28px; font-weight: 800; letter-spacing: -0.04em;
  margin-top: 6px; color: var(--text);
}
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* Aurora stat cards (pilot-style) */
.a-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.a-stat {
  background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9); border-radius: 16px;
  padding: 20px 22px; box-shadow: var(--shadow); transition: all 0.2s;
}
.a-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(91,94,244,0.1); }
.a-stat-icon {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.a-stat-icon [data-lucide] { width: 18px; height: 18px; }
.a-si-1 { background: linear-gradient(135deg,rgba(91,94,244,0.15),rgba(91,94,244,0.05)); color: var(--aurora-accent); }
.a-si-2 { background: linear-gradient(135deg,rgba(6,182,212,0.15),rgba(6,182,212,0.05)); color: #0891b2; }
.a-si-3 { background: linear-gradient(135deg,rgba(168,85,247,0.15),rgba(168,85,247,0.05)); color: #9333ea; }
.a-si-4 { background: linear-gradient(135deg,rgba(16,185,129,0.15),rgba(16,185,129,0.05)); color: var(--aurora-green); }
.a-stat-val { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.a-stat-label { font-size: 12px; color: var(--text-3); margin-top: 5px; font-weight: 500; }
.a-stat-delta { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; background: rgba(16,185,129,0.1); color: #059669; padding: 2px 8px; border-radius: 6px; }

/* ── Table ────────────────────────────────────────────────── */
.table-wrap   { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.a-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead tr { border-bottom: 1px solid rgba(91,94,244,0.08); }
th {
  text-align: left; font-size: 11px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.07em; padding: 10px 14px;
  white-space: nowrap; background: transparent;
}
th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; transition: color 0.15s; }
th a:hover, th.sorted a { color: var(--aurora-accent); }
td {
  padding: 12px 14px; font-size: var(--fs-value);
  border-bottom: 1px solid rgba(91,94,244,0.05);
  vertical-align: middle; color: var(--text);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(91,94,244,0.025); }
.tr-link { cursor: pointer; transition: background 0.12s; }

/* Aurora table panel */
.a-panel {
  background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px;
}
.a-panel-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid rgba(91,94,244,0.07);
  flex-wrap: wrap;
}
.a-panel-title { font-size: 14px; font-weight: 700; color: var(--text); }
.a-table-footer {
  padding: 11px 20px; border-top: 1px solid rgba(91,94,244,0.06);
  font-size: 12px; color: var(--text-3); font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.a-table-wrap { overflow-x: auto; }
table.a-table { width: 100%; border-collapse: collapse; }
table.a-table thead tr { border-bottom: 1px solid rgba(91,94,244,0.07); }
table.a-table th { background: transparent; padding: 10px 14px; }
table.a-table td { padding: 12px 14px; border-bottom: 1px solid rgba(91,94,244,0.05); }
table.a-table tr:last-child td { border-bottom: none; }
table.a-table tbody tr:hover td { background: rgba(91,94,244,0.025); }
table.a-table th:first-child, table.a-table td:first-child { padding-left: 20px; }
table.a-table th:last-child,  table.a-table td:last-child  { padding-right: 20px; }
.a-td-name  { display: flex; align-items: center; gap: 11px; }
.a-td-av {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--aurora-accent);
  background: linear-gradient(135deg,rgba(91,94,244,0.12),rgba(168,85,247,0.08));
  border: 1px solid rgba(91,94,244,0.1);
}
.a-td-main  { font-weight: 600; color: var(--text); font-size: 14px; }
.a-td-sub   { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.a-td-text  { color: var(--text-2); font-weight: 500; }
.a-td-muted { color: var(--text-3); font-weight: 500; }
.a-td-mono  { font-size: 12px; color: var(--text-3); font-family: monospace; }
.a-td-stop  { cursor: default; }
.a-row-actions { display: flex; gap: 6px; align-items: center; }
.a-bulk-bar {
  display: none; align-items: center; gap: 10px; padding: 10px 20px;
  border-bottom: 1px solid rgba(91,94,244,0.07); background: rgba(91,94,244,0.03);
}
.a-bulk-count { font-size: 13px; color: var(--aurora-accent); font-weight: 600; }

/* ── Filter / Pill / Search ───────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px; padding: 12px 16px;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px; backdrop-filter: blur(8px);
}
.filter-bar input[type=search], .filter-bar select {
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(91,94,244,0.15);
  background: rgba(255,255,255,0.8);
  font-family: inherit; font-size: 13px; color: var(--text);
  outline: none;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: rgba(91,94,244,0.4); }

.a-filter-pills  { display: flex; gap: 6px; flex-wrap: wrap; }
.a-pill {
  padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid rgba(91,94,244,0.15); background: transparent;
  color: var(--text-3); cursor: pointer; font-family: inherit;
  transition: all 0.15s; white-space: nowrap; text-decoration: none;
}
.a-pill:hover  { border-color: rgba(91,94,244,0.3); color: var(--aurora-accent); }
.a-pill.active { background: rgba(91,94,244,0.1); border-color: rgba(91,94,244,0.25); color: var(--aurora-accent); }

.a-search-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(91,94,244,0.12);
  border-radius: 10px; padding: 7px 14px;
}
.a-search-box [data-lucide] { width: 15px; height: 15px; color: var(--text-3); flex-shrink: 0; }
.a-search-box input {
  background: none; border: none; outline: none;
  font-size: 13px; color: var(--text-2); font-family: inherit; width: 180px;
}
.a-search-box input::placeholder { color: var(--text-3); }

.a-select {
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(91,94,244,0.15);
  background: rgba(255,255,255,0.8);
  color: var(--text-2); font-size: 12.5px; font-weight: 500;
  font-family: inherit; cursor: pointer; outline: none;
}
.a-select:focus { border-color: rgba(91,94,244,0.35); }

.a-filter-extended {
  padding: 12px 20px; border-bottom: 1px solid rgba(91,94,244,0.07);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  background: rgba(91,94,244,0.015);
}
.a-spacer { flex: 1; }

/* Button variants for table rows */
.a-btn-edit {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 8px;
  border: 1px solid rgba(91,94,244,0.15);
  background: rgba(255,255,255,0.85);
  color: var(--text-3); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: all 0.15s; white-space: nowrap;
}
.a-btn-edit:hover { border-color: rgba(91,94,244,0.3); color: var(--aurora-accent); }
.a-btn-edit [data-lucide] { width: 13px; height: 13px; }

.a-btn-row-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 9px; border-radius: 8px;
  border: 1px solid rgba(91,94,244,0.12);
  background: rgba(255,255,255,0.85);
  color: var(--text-3); cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.a-btn-row-danger:hover { border-color: rgba(239,68,68,0.3); color: var(--danger); background: rgba(239,68,68,0.04); }
.a-btn-row-danger [data-lucide] { width: 13px; height: 13px; }

.a-batch-tag {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 7px;
  background: rgba(6,182,212,0.08); color: #0891b2; display: inline-block;
}
.a-batch-tag.old { background: rgba(160,174,192,0.1); color: var(--text-3); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge-green  { background: rgba(16,185,129,0.1);  color: #059669; }
.badge-blue   { background: rgba(91,94,244,0.1);   color: var(--aurora-accent); }
.badge-gray   { background: rgba(160,174,192,0.12); color: var(--text-3); }
.badge-red    { background: rgba(239,68,68,0.1);   color: var(--danger); }
.badge-yellow { background: rgba(245,158,11,0.1);  color: var(--warning); }
.badge-purple { background: rgba(168,85,247,0.1);  color: #9333ea; }
.a-badge      { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.a-badge-dot  { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.a-badge-green  { background: rgba(16,185,129,0.1);  color: #059669; }
.a-badge-blue   { background: rgba(91,94,244,0.1);   color: var(--aurora-accent); }
.a-badge-gray   { background: rgba(160,174,192,0.12); color: var(--text-3); }
.a-badge-red    { background: rgba(239,68,68,0.1);   color: var(--danger); }
.a-badge-yellow { background: rgba(245,158,11,0.1);  color: var(--warning); }

/* ── Forms ────────────────────────────────────────────────── */
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-group  { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label.form-label { font-size: 12px; font-weight: 600; color: var(--text-2); }

input[type=text], input[type=email], input[type=url], input[type=number],
input[type=password], input[type=search], input[type=date], input[type=time],
select, textarea {
  font-family: inherit; font-size: 13px;
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid rgba(91,94,244,0.15);
  background: rgba(255,255,255,0.85);
  color: var(--text); outline: none;
  transition: border 0.15s; width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(91,94,244,0.45);
  box-shadow: 0 0 0 3px rgba(91,94,244,0.08);
}
textarea { resize: vertical; min-height: 80px; }
input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--aurora-accent); }
input[type=file] { font-size: 12px; cursor: pointer; padding: 6px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row label { font-size: 13px; color: var(--text); cursor: pointer; }
.form-section {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3);
  padding-top: 16px; margin-top: 16px;
  border-top: 1px solid rgba(91,94,244,0.08); margin-bottom: 12px;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(91,94,244,0.1);
  margin-bottom: 24px; overflow: hidden;
}
.tab {
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s; white-space: nowrap; text-decoration: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--aurora-accent); border-bottom-color: var(--aurora-accent); font-weight: 600; }
.tab-pipeline { background: transparent; color: #9333ea; border: none; font-family: inherit; }
.tab-pipeline:hover { color: #7e22ce; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 12px 18px; border-radius: 12px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: #059669; }
.alert-error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.2);  color: var(--danger); }
.alert-info    { background: rgba(91,94,244,0.07);  border: 1px solid rgba(91,94,244,0.2);  color: var(--aurora-accent); }

.a-alert-success {
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
  border-radius: 12px; padding: 12px 18px; color: #059669;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.a-alert-success [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; }

/* ── History ──────────────────────────────────────────────── */
.hist-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(91,94,244,0.06);
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  padding: 60px 20px; text-align: center;
  color: var(--text-3); font-size: 14px; font-weight: 500;
}

/* ── Quick-Action-Kacheln (Dashboard) ─────────────────────── */
.quick-actions {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
  margin-bottom: 20px;
}
.qa-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px;
  padding: 20px 12px; border-radius: 14px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: all 0.15s; text-align: center;
  border: 1px solid transparent;
}
.qa-card:hover { transform: translateY(-2px); }
.qa-card [data-lucide] { width: 22px; height: 22px; }

/* ── Entity Header (Detail-Seiten) ────────────────────────── */
.entity-header {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.entity-logo {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(91,94,244,0.1), rgba(168,85,247,0.07));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--aurora-accent);
  flex-shrink: 0; overflow: hidden; border: 1px solid rgba(91,94,244,0.12);
}
.entity-logo img { width: 100%; height: 100%; object-fit: cover; }
.entity-meta { flex: 1; min-width: 0; }
.entity-meta h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.entity-meta-row {
  display: flex; gap: 10px; align-items: center;
  margin-top: 8px; flex-wrap: wrap;
}
.entity-meta-row a { color: var(--aurora-accent); font-size: 13px; }
.entity-meta-row a:hover { opacity: 0.8; }

/* ── Detail Grid (2-spaltig, Label oben / Wert unten) ──────── */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px;
}
.detail-item { display: flex; flex-direction: column; gap: 3px; }
.detail-item .detail-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--aurora-accent); opacity: 0.75;
  display: block;
}
.detail-item .detail-value {
  font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4;
}
.detail-item a { color: var(--aurora-accent); }
.detail-item a:hover { opacity: 0.8; text-decoration: underline; }

/* ── File Row ─────────────────────────────────────────────── */
.file-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(91,94,244,0.07);
}
.file-row:last-child { border-bottom: none; }
.file-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; }

/* ── General link colors in detail areas ──────────────────── */
.card a:not(.btn):not(.tab) { color: var(--aurora-accent); }
.card a:not(.btn):not(.tab):hover { opacity: 0.8; }

/* ── Fix select/input width in filter bars ────────────────── */
.filter-bar select,
.filter-bar input[type=search],
.filter-bar input[type=text],
.a-panel-toolbar select,
.a-panel-toolbar input[type=search] {
  width: auto !important;
}
.a-select { width: auto; }

/* ── tools-submenu (same as acc-submenu) ──────────────────── */
#tools-submenu { overflow: hidden; transition: max-height 0.25s ease; flex-shrink: 0; }
body.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
.login-card {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9); border-radius: 20px;
  padding: 40px; width: 100%; max-width: 400px;
  box-shadow: 0 8px 40px rgba(91,94,244,0.12);
}
.login-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
}
.login-logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--aurora-accent), var(--aurora-accent2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 16px rgba(91,94,244,0.3);
}
.login-logo-name  { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.login-logo-sub   { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.login-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.login-sub   { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.login-form  { display: flex; flex-direction: column; gap: 16px; }
.login-submit {
  width: 100%; padding: 11px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--aurora-accent), var(--aurora-accent2));
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; box-shadow: 0 4px 14px rgba(91,94,244,0.3);
  transition: all 0.18s;
}
.login-submit:hover { box-shadow: 0 6px 20px rgba(91,94,244,0.4); transform: translateY(-1px); }
.login-link { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 8px; }
.login-link a { color: var(--aurora-accent); font-weight: 600; }
.login-error {
  padding: 10px 14px; border-radius: 9px;
  background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.2);
  color: var(--danger); font-size: 13px;
}

/* ── Tablet & Responsive ──────────────────────────────────── */

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 200;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91,94,244,0.15);
  box-shadow: 0 2px 12px rgba(91,94,244,0.1);
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--aurora-accent);
}
.sidebar-toggle [data-lucide] { width: 18px; height: 18px; }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 90;
  backdrop-filter: blur(2px);
}

@media (max-width: 900px) {
  .sidebar-toggle { display: flex; }

  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  #sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }

  #main { margin-left: 0; }
  #content { padding: 20px 16px; padding-top: 64px; }

  .stats-grid, .a-stats, .quick-actions {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-header { flex-direction: column; align-items: flex-start; }
  .hdr-actions { width: 100%; }
  .a-panel-toolbar .a-spacer { display: none; }
  .tabs { overflow: hidden; flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .stats-grid, .a-stats, .quick-actions {
    grid-template-columns: 1fr !important;
  }
}



/* ── Pipeline: Kanban-Overlay ──────────────────────────────── */
#kanban-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 15, 30, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 32px 24px 48px;
  /* vertikale Zentrierung wenn Inhalt kleiner als Viewport */
  display: none;
}
#kanban-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
}
/* flex-Container für vertikale Zentrierung */
#kanban-overlay-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 64px);
  width: 100%;
}
.ko-wrap {
  max-width: 1610px;
  width: 100%;
  margin: 0 auto;
}
.ko-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ko-header-left .ko-sup {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: 4px;
}
.ko-header-left h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.ko-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ko-count {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.ko-close-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.ko-close-btn:hover { background: rgba(255,255,255,.22); }

/* Board-Zeile */
.ko-board {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 10px;
}
.ko-board.ko-ovf-l { box-shadow: inset 26px 0 16px -16px rgba(15,15,40,.16); }
.ko-board.ko-ovf-r { box-shadow: inset -26px 0 16px -16px rgba(15,15,40,.16); }
.ko-board.ko-ovf-l.ko-ovf-r {
  box-shadow: inset 26px 0 16px -16px rgba(15,15,40,.16),
              inset -26px 0 16px -16px rgba(15,15,40,.16);
}
.ko-board::-webkit-scrollbar { height: 8px; }
.ko-board::-webkit-scrollbar-thumb { background: rgba(91,94,244,.25); border-radius: 4px; }
.ko-board::-webkit-scrollbar-track { background: transparent; }

/* Spalten */
.ko-col {
  flex: 1 0 160px;
  min-width: 160px;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91,94,244,.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(91,94,244,.07);
}
.ko-col-rejected { opacity: .55; }
.ko-col-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* feste Höhe damit alle Spalten-Header gleich hoch sind */
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(91,94,244,.08);
  background: linear-gradient(135deg, rgba(91,94,244,.10), rgba(168,85,247,.06));
  flex-shrink: 0;
}
.ko-col-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--aurora-accent, #5b5ef4);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ko-col-count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--aurora-accent, #5b5ef4), var(--aurora-accent2, #a855f7));
  border-radius: 20px;
  padding: 2px 9px;
  min-width: 22px;
  text-align: center;
}
/* Mail-Button im Spalten-Header */
.ko-col-mail {
  display: inline-flex;
  align-items: center;
  color: var(--aurora-accent, #5b5ef4);
  text-decoration: none;
  opacity: .55;
  transition: opacity .15s;
  line-height: 1;
}
.ko-col-mail svg { width: 17px; height: 17px; }
.ko-col-mail:hover { opacity: 1; }

.ko-cards {
  min-height: 240px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .15s;
}
.ko-cards.ko-dragover {
  background: rgba(91,94,244,.07);
  border-radius: 8px;
}

/* Karten – ca. 30% höher durch mehr Padding */
.a-board-card {
  background: #fff;
  border: 1px solid rgba(91,94,244,.1);
  border-radius: 10px;
  padding: 14px 14px 12px;
  min-height: 0;
  cursor: grab;
  transition: box-shadow .15s, border-color .15s;
  user-select: none;
  box-shadow: 0 1px 4px rgba(91,94,244,.06);
}
.a-board-card:active { cursor: grabbing; }
.a-board-card:hover {
  box-shadow: 0 4px 16px rgba(91,94,244,.14);
  border-color: rgba(91,94,244,.25);
}
.a-board-card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text, #0f0f1a);
  min-width: 0;
}
.a-board-card-name a {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a-board-card-name a:hover { color: var(--aurora-accent, #5b5ef4); }
/* Aufklapp-Pfeil als eigene Zeile unter dem Namen */
.ko-card-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 2px 0;
  border-radius: 4px;
  color: var(--text-3, #a0aec0);
  cursor: pointer;
  user-select: none;
  transition: color .12s, background .12s;
}
.a-board-card:hover .ko-card-toggle {
  color: var(--aurora-accent, #5b5ef4);
  background: rgba(91,94,244,.05);
}
.ko-card-chevron {
  font-size: 12px;
  line-height: 1;
  user-select: none;
}
/* Mail-Button auf der Karte */
.ko-card-mail {
  display: inline-flex;
  align-items: center;
  color: var(--text-3, #a0aec0);
  text-decoration: none;
  flex-shrink: 0;
  transition: color .15s;
  margin-top: 1px;
}
.ko-card-mail svg { width: 17px; height: 17px; }
.ko-card-mail:hover { color: var(--aurora-accent, #5b5ef4); }

/* Card Meta-Zeilen */
.ko-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(91,94,244,.07);
}
.ko-card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-2, #4a5568);
  line-height: 1.3;
}

/* ── Pipeline: Accelerator-Kachel im Startup-Profil ──────────── */
.accel-tile {
  background: linear-gradient(135deg, rgba(91,94,244,.10), rgba(168,85,247,.06));
  border: 1px solid rgba(91,94,244,.15);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(91,94,244,.08);
}
.accel-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: var(--aurora-accent, #5b5ef4);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(91,94,244,.1);
  background: rgba(91,94,244,.05);
}
.accel-tile-body { padding: 20px; }
.accel-stages { display: flex; flex-wrap: wrap; gap: 8px; }
.accel-stage-btn {
  background: rgba(91,94,244,.07);
  border: 1px solid rgba(91,94,244,.15);
  color: var(--text-2, #4a5568);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.accel-stage-btn:hover { background: rgba(91,94,244,.14); color: var(--aurora-accent); border-color: rgba(91,94,244,.3); }
.accel-stage-btn.active {
  background: var(--aurora-accent, #5b5ef4);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(91,94,244,.3);
}
.accel-file-btn {
  background: rgba(91,94,244,.07);
  border: 1px solid rgba(91,94,244,.15);
  color: var(--aurora-accent, #5b5ef4);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.accel-file-btn:hover { background: rgba(91,94,244,.14); }


/* ============================================================
   Light Theme – body.theme-light
   HubSpot-inspiriertes klares Design
   ============================================================ */

/* ── Grundfarben & Hintergrund ───────────────────────────── */
body.theme-light {
  background: #f5f8fa;
  color: #0f172a;
}

body.theme-light::before {
  background: #f5f8fa;
}

/* ── Typografie global ───────────────────────────────────── */
body.theme-light,
body.theme-light * {
  letter-spacing: -0.01em;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4 {
  color: #0f172a;
  font-weight: 600;
}

/* ── Sidebar ─────────────────────────────────────────────── */
body.theme-light #sidebar {
  background: #0f172a;
  border-right: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 2px 0 24px rgba(0,0,0,0.22);
}

body.theme-light #sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

body.theme-light .sidebar-brand { border-bottom-color: rgba(255,255,255,0.08); }
body.theme-light .sidebar-brand h1 { color: #f8fafc; font-weight: 700; }
body.theme-light .sidebar-brand p  { color: #94a3b8; }

body.theme-light .nav-section { color: #475569; letter-spacing: 0.08em; }

body.theme-light .nav-item { color: #94a3b8; font-weight: 500; }
body.theme-light .nav-item:hover { background: #1e293b; color: #fff; }
body.theme-light .nav-item.active {
  background: rgba(91,94,244,0.15);
  color: #a5b4fc;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--aurora-accent);
}

body.theme-light #sidebar .nav-badge { background: rgba(91,94,244,0.25); color: #a5b4fc; }

body.theme-light .nav-acc-toggle { background: transparent; color: #94a3b8; }
body.theme-light .nav-acc-toggle:hover { background: #1e293b; color: #fff; }
body.theme-light .nav-acc-toggle.active {
  background: rgba(91,94,244,0.15);
  color: #a5b4fc;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--aurora-accent);
}
body.theme-light .nav-sub-item { color: #64748b; }
body.theme-light .nav-sub-item:hover { background: #1e293b; color: #fff; }
body.theme-light .nav-sub-item.active { color: #a5b4fc; font-weight: 600; }
body.theme-light .sidebar-user { border-top-color: rgba(255,255,255,0.08); }
body.theme-light #sidebar .user-info p    { color: #f8fafc; }
body.theme-light #sidebar .user-info span { color: #64748b; }
body.theme-light #sidebar .logout-btn     { color: #475569; }
body.theme-light #sidebar .logout-btn:hover { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ── Main ────────────────────────────────────────────────── */
body.theme-light #main { background: #f5f8fa; }
body.theme-light #content { background: #f5f8fa; }

/* ── Drei-Spalten-Layout ─────────────────────────────────── */
body.theme-light .sd-body {
  gap: 12px;
}

body.theme-light .sd-left {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .sd-main {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 16px;
}

body.theme-light .sd-sidebar {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ── Stammdaten Labels & Werte ───────────────────────────── */
body.theme-light .sd-sb-label {
  font-size: var(--fs-caption);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #99aabb;
  margin-bottom: 1px;
  line-height: 1.4;
}

body.theme-light .sd-sb-val {
  font-size: var(--fs-value);
  font-weight: 400;
  color: #0f172a;
  line-height: 1.4;
}

body.theme-light .sd-sb-sub {
  font-size: var(--fs-caption);
  font-weight: 400;
  color: #99aabb;
  line-height: 1.4;
  margin-top: 1px;
}

body.theme-light .sd-sb-divider {
  border-top-color: #e5e8eb;
}

/* Linke Spalte: Felder (in .sd-left-section) */
body.theme-light .sd-left-section {
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}

body.theme-light .sd-left-section .sd-sb-label {
  font-size: var(--fs-caption);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #99aabb;
  margin-bottom: 1px;
  line-height: 1.4;
}

body.theme-light .sd-left-section .sd-sb-val {
  font-size: var(--fs-value);
  font-weight: 400;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
}

body.theme-light .sd-left-section .sd-sb-sub {
  font-size: var(--fs-caption);
  font-weight: 400;
  color: #99aabb;
  line-height: 1.4;
  margin-top: 1px;
  margin-bottom: 0;
}

/* Rechte Sidebar: Sektionen */
body.theme-light .sd-sb-section {
  border-bottom-color: #e5e8eb;
  padding: 14px 16px;
}

body.theme-light .sd-sb-section .sd-sb-label {
  font-size: var(--fs-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #99aabb;
  margin-bottom: 4px;
  line-height: 1.4;
}

body.theme-light .sd-sb-section .sd-sb-val {
  font-size: var(--fs-value);
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
}

body.theme-light .sd-sb-section .sd-sb-sub {
  font-size: var(--fs-caption);
  font-weight: 400;
  color: #7c8fa6;
  line-height: 1.4;
  margin-top: 2px;
}
/* ── Tabs ────────────────────────────────────────────────── */
body.theme-light .tabs {
  border-bottom-color: #e5e8eb;
  margin-bottom: 16px;
}

body.theme-light .tab {
  font-size: 13px;
  color: #516f90;
  font-weight: 500;
  padding: 10px 14px;
}

body.theme-light .tab:hover { color: #0f172a; }

body.theme-light .tab.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
  font-weight: 600;
}

/* ── Tabellen ────────────────────────────────────────────── */
body.theme-light .ct-table {
  border: 1px solid #e5e8eb;
  border-radius: 8px;
}

body.theme-light .ct-table th {
  background: #f5f8fa;
  color: #7c8fa6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom-color: #e5e8eb;
  padding: 9px 14px;
}

body.theme-light .ct-table td {
  color: #0f172a;
  font-size: 13px;
  border-bottom-color: #f0f3f7;
  padding: 10px 14px;
}

body.theme-light .ct-table tbody tr:hover td {
  background: #f5f8fa;
}

body.theme-light .ct-role {
  background: #eef1f8;
  color: #3d5a8a;
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 500;
}

/* ── Buttons ─────────────────────────────────────────────── */
body.theme-light .btn-primary {
  background: #534AB7;
  border-color: #534AB7;
  color: #fff;
  box-shadow: none;
}
body.theme-light .btn-primary:hover {
  background: #443ca0;
  box-shadow: none;
  transform: none;
}

body.theme-light .btn-secondary {
  background: #ffffff;
  border: 1px solid #c8d3df;
  color: #0f172a;
  box-shadow: none;
}
body.theme-light .btn-secondary:hover {
  background: #f5f8fa;
  border-color: #99aabb;
}

body.theme-light .btn-danger {
  background: transparent;
  border: 1px solid #f0b4b4;
  color: #c0392b;
}
body.theme-light .btn-danger:hover {
  background: #fef2f2;
}

body.theme-light .btn-ghost {
  color: #516f90;
  border-color: transparent;
}
body.theme-light .btn-ghost:hover {
  background: #f5f8fa;
  color: #0f172a;
}

/* ── Badges ──────────────────────────────────────────────── */
body.theme-light .badge-green  { background: #e5f5e5; color: #1a7a1a; }
body.theme-light .badge-blue   { background: #e0edf9; color: #1a6099; }
body.theme-light .badge-gray   { background: #eef1f5; color: #516f90; }
body.theme-light .badge-red    { background: #fdecea; color: #c0392b; }
body.theme-light .badge-yellow { background: #fef9e3; color: #8a6400; }

/* ── Form Cards ──────────────────────────────────────────── */
body.theme-light .ct-form-card {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  box-shadow: none;
}

/* ── Form Inputs ─────────────────────────────────────────── */
body.theme-light input[type="text"],
body.theme-light input[type="email"],
body.theme-light input[type="number"],
body.theme-light input[type="date"],
body.theme-light input[type="url"],
body.theme-light input[type="password"],
body.theme-light select,
body.theme-light textarea,
body.theme-light .form-control {
  background: #ffffff;
  border: 1px solid #c8d3df;
  color: #0f172a;
  border-radius: 6px;
}

body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus,
body.theme-light .form-control:focus {
  border-color: #534AB7;
  box-shadow: 0 0 0 3px rgba(83,74,183,0.1);
  outline: none;
}

body.theme-light .form-label {
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
}

/* ── Alerts ──────────────────────────────────────────────── */
body.theme-light .alert,
body.theme-light .alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
  border-radius: 6px;
}
body.theme-light .alert-error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ── Page Header / Breadcrumb ────────────────────────────── */
body.theme-light .sd-breadcrumb { color: #7c8fa6; }
body.theme-light .sd-breadcrumb a { color: #7c8fa6; }
body.theme-light .sd-breadcrumb a:hover { color: #0f172a; }
body.theme-light .sd-breadcrumb strong { color: #0f172a; font-weight: 600; }

/* ── Icon Buttons ────────────────────────────────────────── */
body.theme-light .sd-icon-btn {
  background: #ffffff;
  border-color: #c8d3df;
  color: #516f90;
}
body.theme-light .sd-icon-btn:hover {
  border-color: #534AB7;
  color: #534AB7;
  background: #f5f3ff;
}

/* ── Mentor Avatar ───────────────────────────────────────── */
body.theme-light .sd-mentor-avatar {
  background: #eef1f8;
  border-color: #c8d3df;
  color: #3d5a8a;
}

/* ── Datei-Zeilen ────────────────────────────────────────── */
body.theme-light .sd-file-row {
  border-bottom-color: #f0f3f7;
}
body.theme-light .sd-file-name { color: #0f172a; }
body.theme-light .sd-file-desc { color: #99aabb; }

/* ── Section-Header ──────────────────────────────────────── */
body.theme-light .ct-section-title { color: #0f172a; font-weight: 600; }

/* ── Header Card ─────────────────────────────────────────── */
body.theme-light .sd-header-card {
  background: #ffffff;
  border-color: #e5e8eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}



/* ── Name & Sub in linker Spalte ────────────────────────── */
body.theme-light .sd-name-row {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

body.theme-light .sd-sub {
  font-size: 12px;
  font-weight: 400;
  color: #7c8fa6;
  line-height: 1.4;
}
/* ============================================================
   Light Theme – Primär-Buttons: Aurora-Lila wiederherstellen
   ============================================================ */

body.theme-light .btn-primary {
  background: linear-gradient(135deg, #5b5ef4, #a855f7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,94,244,0.3);
}

body.theme-light .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(91,94,244,0.4);
  transform: translateY(-1px);
}


/* ============================================================
   Light Theme – Tab-Sprung fix & Button-Größen
   ============================================================ */

/* Tabs: kein Layout-Sprung durch font-weight-Wechsel */
body.theme-light .tab {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  padding: 11px 16px;
  min-width: max-content;
}

body.theme-light .tab.active {
  font-size: 14px;
  font-weight: 600;
  /* letter-spacing kompensiert Breitenänderung durch font-weight */
  letter-spacing: -0.02em;
}

/* Buttons oben rechts: einheitliche Höhe und Größe */
body.theme-light .sd-actions .btn,
body.theme-light .sd-actions .btn-sm,
body.theme-light .sd-actions button,
body.theme-light .sd-actions a {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 34px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  box-sizing: border-box;
}

