th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: #0f766e; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #f1f5f9; color: #64748b; }

/* ---------- Dark-Mode (Schalter oben im Header, gespeichert im Browser) ----------
   Ueberschreibt die Tailwind-Farbklassen im Inhaltsbereich (main), in Dialogen (.fixed.inset-0) und auf
   .dm-Containern. Header und Seitenleisten sind schon dunkel und bleiben unveraendert. */
html.dark { color-scheme: dark; }
html.dark body { background-color:#120f1c; color:#e7e2f2; }
html.dark ::-webkit-scrollbar-thumb { background:#3a2f59; }
html.dark main .bg-white,
html.dark .fixed.inset-0 .bg-white,
html.dark .dm .bg-white { background-color:#1e1830 }
html.dark main .bg-slate-50,
html.dark .fixed.inset-0 .bg-slate-50,
html.dark .dm .bg-slate-50 { background-color:#251d3a }
html.dark main .bg-slate-100,
html.dark .fixed.inset-0 .bg-slate-100,
html.dark .dm .bg-slate-100 { background-color:#2d2447 }
html.dark main .bg-slate-200,
html.dark .fixed.inset-0 .bg-slate-200,
html.dark .dm .bg-slate-200 { background-color:#3a2f59 }
html.dark main .hover\:bg-slate-50:hover,
html.dark .fixed.inset-0 .hover\:bg-slate-50:hover,
html.dark .dm .hover\:bg-slate-50:hover { background-color:#2f2649 }
html.dark main .hover\:bg-slate-100:hover,
html.dark .fixed.inset-0 .hover\:bg-slate-100:hover,
html.dark .dm .hover\:bg-slate-100:hover { background-color:#352b55 }
html.dark main .text-slate-900,
html.dark .fixed.inset-0 .text-slate-900,
html.dark .dm .text-slate-900 { color:#f5f2fb }
html.dark main .text-slate-800,
html.dark .fixed.inset-0 .text-slate-800,
html.dark .dm .text-slate-800 { color:#f5f2fb }
html.dark main .text-slate-700,
html.dark .fixed.inset-0 .text-slate-700,
html.dark .dm .text-slate-700 { color:#e7e2f2 }
html.dark main .text-slate-600,
html.dark .fixed.inset-0 .text-slate-600,
html.dark .dm .text-slate-600 { color:#d3cbe6 }
html.dark main .text-slate-500,
html.dark .fixed.inset-0 .text-slate-500,
html.dark .dm .text-slate-500 { color:#a79fc0 }
html.dark main .text-slate-400,
html.dark .fixed.inset-0 .text-slate-400,
html.dark .dm .text-slate-400 { color:#9189aa }
html.dark main .text-slate-300,
html.dark .fixed.inset-0 .text-slate-300,
html.dark .dm .text-slate-300 { color:#5f5680 }
html.dark main .hover\:text-slate-600:hover, .hover\:text-slate-700:hover, .hover\:text-slate-500:hover,
html.dark .fixed.inset-0 .hover\:text-slate-600:hover, .hover\:text-slate-700:hover, .hover\:text-slate-500:hover,
html.dark .dm .hover\:text-slate-600:hover, .hover\:text-slate-700:hover, .hover\:text-slate-500:hover { color:#e7e2f2 }
html.dark main .border-slate-100,
html.dark .fixed.inset-0 .border-slate-100,
html.dark .dm .border-slate-100 { border-color:#2b2242 }
html.dark main .border-slate-200,
html.dark .fixed.inset-0 .border-slate-200,
html.dark .dm .border-slate-200 { border-color:#3a2f59 }
html.dark main .border-slate-300,
html.dark .fixed.inset-0 .border-slate-300,
html.dark .dm .border-slate-300 { border-color:#4d4072 }
html.dark main .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark .fixed.inset-0 .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark .dm .divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color:#2b2242 }
html.dark main .hover\:border-slate-300:hover,
html.dark .fixed.inset-0 .hover\:border-slate-300:hover,
html.dark .dm .hover\:border-slate-300:hover { border-color:#7a6fa3 }
html.dark main .decoration-slate-300,
html.dark .fixed.inset-0 .decoration-slate-300,
html.dark .dm .decoration-slate-300 { text-decoration-color:#7a6fa3 }
html.dark main .text-emerald-400,
html.dark .fixed.inset-0 .text-emerald-400,
html.dark .dm .text-emerald-400 { color:#34d399 }
html.dark main .text-emerald-500,
html.dark .fixed.inset-0 .text-emerald-500,
html.dark .dm .text-emerald-500 { color:#34d399 }
html.dark main .text-emerald-600,
html.dark .fixed.inset-0 .text-emerald-600,
html.dark .dm .text-emerald-600 { color:#34d399 }
html.dark main .text-emerald-700,
html.dark .fixed.inset-0 .text-emerald-700,
html.dark .dm .text-emerald-700 { color:#34d399 }
html.dark main .text-emerald-800,
html.dark .fixed.inset-0 .text-emerald-800,
html.dark .dm .text-emerald-800 { color:#6ee7b7 }
html.dark main .text-red-400,
html.dark .fixed.inset-0 .text-red-400,
html.dark .dm .text-red-400 { color:#f87171 }
html.dark main .text-red-500,
html.dark .fixed.inset-0 .text-red-500,
html.dark .dm .text-red-500 { color:#f87171 }
html.dark main .text-red-600,
html.dark .fixed.inset-0 .text-red-600,
html.dark .dm .text-red-600 { color:#f87171 }
html.dark main .text-red-700,
html.dark .fixed.inset-0 .text-red-700,
html.dark .dm .text-red-700 { color:#fca5a5 }
html.dark main .text-red-800,
html.dark .fixed.inset-0 .text-red-800,
html.dark .dm .text-red-800 { color:#fca5a5 }
html.dark main .text-amber-400,
html.dark .fixed.inset-0 .text-amber-400,
html.dark .dm .text-amber-400 { color:#fbbf24 }
html.dark main .text-amber-600,
html.dark .fixed.inset-0 .text-amber-600,
html.dark .dm .text-amber-600 { color:#fbbf24 }
html.dark main .text-amber-700,
html.dark .fixed.inset-0 .text-amber-700,
html.dark .dm .text-amber-700 { color:#fbbf24 }
html.dark main .text-amber-900,
html.dark .fixed.inset-0 .text-amber-900,
html.dark .dm .text-amber-900 { color:#fde68a }
html.dark main .text-sky-700,
html.dark .fixed.inset-0 .text-sky-700,
html.dark .dm .text-sky-700 { color:#38bdf8 }
html.dark main .text-indigo-600,
html.dark .fixed.inset-0 .text-indigo-600,
html.dark .dm .text-indigo-600 { color:#a5b4fc }
html.dark main .text-indigo-700,
html.dark .fixed.inset-0 .text-indigo-700,
html.dark .dm .text-indigo-700 { color:#a5b4fc }
html.dark main .text-violet-700,
html.dark .fixed.inset-0 .text-violet-700,
html.dark .dm .text-violet-700 { color:#c4b5fd }
html.dark main .text-orange-400,
html.dark .fixed.inset-0 .text-orange-400,
html.dark .dm .text-orange-400 { color:#fb923c }
html.dark main .text-orange-500,
html.dark .fixed.inset-0 .text-orange-500,
html.dark .dm .text-orange-500 { color:#fb923c }
html.dark main .text-orange-600,
html.dark .fixed.inset-0 .text-orange-600,
html.dark .dm .text-orange-600 { color:#fb923c }
html.dark main .text-orange-700,
html.dark .fixed.inset-0 .text-orange-700,
html.dark .dm .text-orange-700 { color:#fdba74 }
html.dark main .hover\:text-red-600:hover, .hover\:text-red-700:hover,
html.dark .fixed.inset-0 .hover\:text-red-600:hover, .hover\:text-red-700:hover,
html.dark .dm .hover\:text-red-600:hover, .hover\:text-red-700:hover { color:#fca5a5 }
html.dark main .hover\:text-amber-700:hover,
html.dark .fixed.inset-0 .hover\:text-amber-700:hover,
html.dark .dm .hover\:text-amber-700:hover { color:#fbbf24 }
html.dark main .bg-emerald-50,
html.dark .fixed.inset-0 .bg-emerald-50,
html.dark .dm .bg-emerald-50 { background-color:rgba(16,185,129,.16) }
html.dark main .bg-red-50,
html.dark .fixed.inset-0 .bg-red-50,
html.dark .dm .bg-red-50 { background-color:rgba(239,68,68,.16) }
html.dark main .bg-amber-50,
html.dark .fixed.inset-0 .bg-amber-50,
html.dark .dm .bg-amber-50 { background-color:rgba(245,158,11,.16) }
html.dark main .bg-sky-50,
html.dark .fixed.inset-0 .bg-sky-50,
html.dark .dm .bg-sky-50 { background-color:rgba(14,165,233,.16) }
html.dark main .bg-sky-100,
html.dark .fixed.inset-0 .bg-sky-100,
html.dark .dm .bg-sky-100 { background-color:rgba(14,165,233,.22) }
html.dark main .bg-indigo-50,
html.dark .fixed.inset-0 .bg-indigo-50,
html.dark .dm .bg-indigo-50 { background-color:rgba(99,102,241,.2) }
html.dark main .bg-indigo-100,
html.dark .fixed.inset-0 .bg-indigo-100,
html.dark .dm .bg-indigo-100 { background-color:rgba(99,102,241,.28) }
html.dark main .bg-violet-50,
html.dark .fixed.inset-0 .bg-violet-50,
html.dark .dm .bg-violet-50 { background-color:rgba(139,92,246,.2) }
html.dark main .bg-orange-100,
html.dark .fixed.inset-0 .bg-orange-100,
html.dark .dm .bg-orange-100 { background-color:rgba(249,115,22,.24) }
html.dark main .bg-red-50\/50,
html.dark .fixed.inset-0 .bg-red-50\/50,
html.dark .dm .bg-red-50\/50 { background-color:rgba(239,68,68,.09) }
html.dark main .hover\:bg-red-50:hover,
html.dark .fixed.inset-0 .hover\:bg-red-50:hover,
html.dark .dm .hover\:bg-red-50:hover { background-color:rgba(239,68,68,.26) }
html.dark main .hover\:bg-amber-50:hover,
html.dark .fixed.inset-0 .hover\:bg-amber-50:hover,
html.dark .dm .hover\:bg-amber-50:hover { background-color:rgba(245,158,11,.26) }
html.dark main .hover\:bg-amber-100:hover,
html.dark .fixed.inset-0 .hover\:bg-amber-100:hover,
html.dark .dm .hover\:bg-amber-100:hover { background-color:rgba(245,158,11,.32) }
html.dark main .hover\:bg-sky-50:hover,
html.dark .fixed.inset-0 .hover\:bg-sky-50:hover,
html.dark .dm .hover\:bg-sky-50:hover { background-color:rgba(14,165,233,.26) }
html.dark main .hover\:bg-sky-200:hover,
html.dark .fixed.inset-0 .hover\:bg-sky-200:hover,
html.dark .dm .hover\:bg-sky-200:hover { background-color:rgba(14,165,233,.34) }
html.dark main .hover\:bg-emerald-50:hover,
html.dark .fixed.inset-0 .hover\:bg-emerald-50:hover,
html.dark .dm .hover\:bg-emerald-50:hover { background-color:rgba(16,185,129,.26) }
html.dark main .border-emerald-100,
html.dark .fixed.inset-0 .border-emerald-100,
html.dark .dm .border-emerald-100 { border-color:rgba(16,185,129,.35) }
html.dark main .border-emerald-200,
html.dark .fixed.inset-0 .border-emerald-200,
html.dark .dm .border-emerald-200 { border-color:rgba(16,185,129,.4) }
html.dark main .border-emerald-300,
html.dark .fixed.inset-0 .border-emerald-300,
html.dark .dm .border-emerald-300 { border-color:rgba(16,185,129,.55) }
html.dark main .border-amber-200,
html.dark .fixed.inset-0 .border-amber-200,
html.dark .dm .border-amber-200 { border-color:rgba(245,158,11,.4) }
html.dark main .border-amber-300,
html.dark .fixed.inset-0 .border-amber-300,
html.dark .dm .border-amber-300 { border-color:rgba(245,158,11,.55) }
html.dark main .border-sky-300,
html.dark .fixed.inset-0 .border-sky-300,
html.dark .dm .border-sky-300 { border-color:rgba(14,165,233,.55) }
html.dark main .border-red-100,
html.dark .fixed.inset-0 .border-red-100,
html.dark .dm .border-red-100 { border-color:rgba(239,68,68,.35) }
html.dark main .border-red-200,
html.dark .fixed.inset-0 .border-red-200,
html.dark .dm .border-red-200 { border-color:rgba(239,68,68,.4) }
html.dark main .border-red-300,
html.dark .fixed.inset-0 .border-red-300,
html.dark .dm .border-red-300 { border-color:rgba(239,68,68,.55) }
html.dark main input:not([type=checkbox]):not([type=radio]):not([type=range]),
html.dark .fixed.inset-0 input:not([type=checkbox]):not([type=radio]):not([type=range]),
html.dark .dm input:not([type=checkbox]):not([type=radio]):not([type=range]) { background-color:#15101f;color:#e7e2f2;border-color:#4d4072 }
html.dark main select:not([type=checkbox]):not([type=radio]):not([type=range]),
html.dark .fixed.inset-0 select:not([type=checkbox]):not([type=radio]):not([type=range]),
html.dark .dm select:not([type=checkbox]):not([type=radio]):not([type=range]) { background-color:#15101f;color:#e7e2f2;border-color:#4d4072 }
html.dark main textarea:not([type=checkbox]):not([type=radio]):not([type=range]),
html.dark .fixed.inset-0 textarea:not([type=checkbox]):not([type=radio]):not([type=range]),
html.dark .dm textarea:not([type=checkbox]):not([type=radio]):not([type=range]) { background-color:#15101f;color:#e7e2f2;border-color:#4d4072 }
html.dark main input::placeholder, textarea::placeholder,
html.dark .fixed.inset-0 input::placeholder, textarea::placeholder,
html.dark .dm input::placeholder, textarea::placeholder { color:#7a6fa3 }
html.dark main pre, code,
html.dark .fixed.inset-0 pre, code,
html.dark .dm pre, code { color:#e7e2f2 }
html.dark main .badge-active,
html.dark .fixed.inset-0 .badge-active,
html.dark .dm .badge-active { background:rgba(16,185,129,.2);color:#6ee7b7 }
html.dark main .badge-inactive,
html.dark .fixed.inset-0 .badge-inactive,
html.dark .dm .badge-inactive { background:#2d2447;color:#9d95b8 }
html.dark main a:not([class*='text-']):not([class*='bg-']),
html.dark .fixed.inset-0 a:not([class*='text-']):not([class*='bg-']),
html.dark .dm a:not([class*='text-']):not([class*='bg-']) { color:#b9a0f2 }
html.dark aside.left-0 { box-shadow: inset -1px 0 0 #1e1830; }
html.dark aside.right-0 { box-shadow: inset 1px 0 0 #1e1830; }

/* ---- Dark-Mode: Logo-Lila (#553d79) als Markenfarbe ---- */
html.dark body {
  background: radial-gradient(ellipse 70% 45% at 12% 0%, rgba(85,61,121,.55), transparent 70%),
              radial-gradient(ellipse 55% 40% at 98% 0%, rgba(27,119,158,.22), transparent 70%),
              #120f1c fixed;
  background-attachment: fixed;
}
html.dark header.bg-slate-900, html.dark aside.bg-slate-900 { background-color:#19132a; }
html.dark header.border-slate-800 { border-color:#3a2c5c; }
html.dark header .hover\:bg-slate-800:hover, html.dark aside .hover\:bg-slate-800:hover { background-color:#2c2147; }
html.dark aside.left-0 { box-shadow: inset -1px 0 0 #2f2547; }
html.dark aside.right-0 { box-shadow: inset 1px 0 0 #2f2547; }
html.dark main .bg-emerald-600, html.dark .fixed.inset-0 .bg-emerald-600, html.dark .dm .bg-emerald-600 { background-color:#553d79; }
html.dark main .hover\:bg-emerald-700:hover, html.dark .fixed.inset-0 .hover\:bg-emerald-700:hover, html.dark .dm .hover\:bg-emerald-700:hover { background-color:#6b4d96; }
html.dark main .bg-slate-900, html.dark .fixed.inset-0 .bg-slate-900, html.dark .dm .bg-slate-900 { background-color:#553d79; }
html.dark main .hover\:bg-slate-800:hover, html.dark .fixed.inset-0 .hover\:bg-slate-800:hover, html.dark .dm .hover\:bg-slate-800:hover { background-color:#6b4d96; }
html.dark main input:focus, html.dark main select:focus, html.dark main textarea:focus { outline-color:#8b6bc0; border-color:#8b6bc0; }
html.dark ::selection { background:#553d79; color:#fff; }
html.dark ::-webkit-scrollbar-thumb { background:#3a2f59; }

/* ---- Wortmarke "onlyGrowthCRM" (nach dem Logo: only = Sans, Growth = blaue Schreibschrift, CRM = gesperrte Versalien) ---- */
.og-logo { display:inline-flex; align-items:baseline; gap:.05em; line-height:1; white-space:nowrap; font-size:20px; }
.og-logo.og-lg { font-size:30px; }
.og-only { font-family:"Montserrat", system-ui, sans-serif; font-weight:500; letter-spacing:.01em; }
.og-growth { font-family:"Yellowtail", "Brush Script MT", cursive; font-size:1.5em; color:#2a9fe0; margin-left:.02em;
  transform:translateY(.06em); }
.og-crm { font-family:"Montserrat", system-ui, sans-serif; font-weight:600; font-size:.5em; letter-spacing:.22em; margin-left:.7em; opacity:.8; }
html.dark .og-growth { color:#4db3f0; text-shadow:0 0 14px rgba(77,179,240,.55); }
