/* darkmode-v1 (25.09.2026): Dunkelmodus der voiceOne-App - Grundlage.
   Greift AUSSCHLIESSLICH, wenn der Nutzer "Dunkel" gewaehlt hat
   (html[data-bs-theme="dark"], gesetzt von index_v2.html/app.js/profile.js).
   Nie automatisch nach Geraete-Einstellung - Michaels Vorgabe.
   Reihenfolge: 1 Grundfarben, 2 Bootstrap-Hilfsklassen, 3 Fremdbausteine.
   Die flaechendeckende Farbschicht folgt darunter (automatisch erzeugt). */

/* ---------- 1. Grundfarben ---------- */
html[data-bs-theme="dark"] {
    color-scheme: dark;
    --dm-grund: #12161c;
    --dm-leiste: #161b22;
    --dm-karte: #1b2129;
    --dm-karte-hoch: #232a34;
    --dm-rand: #2c3440;
    --dm-text: #e3e8ee;
    --dm-text-2: #aab5c2;
    --dm-text-3: #808c9b;
    --dm-link: #7fb3d9;

    --bs-body-bg: var(--dm-grund);
    --bs-body-bg-rgb: 18, 22, 28;
    --bs-body-color: var(--dm-text);
    --bs-body-color-rgb: 227, 232, 238;
    --bs-emphasis-color: #ffffff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(227, 232, 238, 0.72);
    --bs-tertiary-color: rgba(227, 232, 238, 0.5);
    --bs-secondary-bg: var(--dm-karte-hoch);
    --bs-secondary-bg-rgb: 35, 42, 52;
    --bs-tertiary-bg: #181e26;
    --bs-tertiary-bg-rgb: 24, 30, 38;
    --bs-border-color: var(--dm-rand);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.1);
    --bs-heading-color: var(--dm-text);
    --bs-link-color: var(--dm-link);
    --bs-link-color-rgb: 127, 179, 217;
    --bs-link-hover-color: #a9cde8;
    --bs-link-hover-color-rgb: 169, 205, 232;

    /* Grundwerte aus styles.css :root */
    --text-color: var(--dm-text-2);
    --background-color: var(--dm-grund);
    --card-background: rgba(27, 33, 41, 0.96);
    --glass-background: rgba(255, 255, 255, 0.04);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);

    background-color: var(--dm-grund);
}
html[data-bs-theme="dark"] body { background-color: var(--dm-grund); color: var(--dm-text); }

/* v2-Designsystem (index_v2.html ~Z.1759): die Grundfarben tragen den Grossteil der Oberflaeche */
html[data-bs-theme="dark"] .v2-layout {
    --v2-surface: var(--dm-grund);
    --v2-surface-low: var(--dm-leiste);
    --v2-surface-high: var(--dm-karte-hoch);
    --v2-surface-card: var(--dm-karte);
    --v2-text: var(--dm-text);
    --v2-text-secondary: var(--dm-text-2);
    --v2-text-muted: var(--dm-text-3);
    --v2-outline: rgba(255, 255, 255, 0.08);
    --v2-shadow: 0px 12px 32px rgba(0, 0, 0, 0.35);
}
/* Markenblau als SCHRIFT auf dunklen Karten nur 2,8:1 lesbar. #3881b3 ist derselbe Farbton,
   haelt als Schrift 3,8:1 auf Karten und traegt weisse Knopfschrift mit 4,2:1.
   mediOne (physio-edition) hat eine eigene Primaerfarbe und bleibt unberuehrt. */
html[data-bs-theme="dark"]:not(.physio-edition) .v2-layout { --v2-primary: #3881b3; }
/* Tarifseite (styles.css .vo-pr setzt die --pr-* auf dem eigenen Element) */
html[data-bs-theme="dark"] .vo-pr,
html[data-bs-theme="dark"] {
    --pr-ink: var(--dm-text);
    --pr-body: var(--dm-text-2);
    --pr-muted: var(--dm-text-3);
    --pr-line: var(--dm-rand);
    --pr-brand-soft: #1a2835;
    --pr-ok-soft: #13291f;
}

/* ---------- 2. Bootstrap-Hilfsklassen, die in Bootstrap 5.3 NICHT mitkippen ----------
   bg-light/bg-white/text-dark sind feste Farben. Ohne diese Regeln entsteht weisse
   Schrift auf weissem Grund. Abzeichen auf farbigem Grund (bg-warning text-dark)
   behalten ihre dunkle Schrift. */
html[data-bs-theme="dark"] .bg-white { background-color: var(--dm-karte) !important; }
html[data-bs-theme="dark"] .bg-light { background-color: var(--dm-karte-hoch) !important; }
html[data-bs-theme="dark"] .bg-body { background-color: var(--dm-grund) !important; }
html[data-bs-theme="dark"] .text-dark:not([class*="bg-warning"]):not([class*="bg-info"]):not([class*="bg-yellow"]):not(.badge.bg-light),
html[data-bs-theme="dark"] .text-black:not([class*="bg-warning"]):not([class*="bg-info"]),
html[data-bs-theme="dark"] .text-body { color: var(--dm-text) !important; }
html[data-bs-theme="dark"] .badge.bg-light.text-dark { background-color: var(--dm-karte-hoch) !important; color: var(--dm-text) !important; }
html[data-bs-theme="dark"] .text-muted { color: var(--dm-text-3) !important; }
html[data-bs-theme="dark"] .text-secondary { color: var(--dm-text-2) !important; }
html[data-bs-theme="dark"] .border-light { border-color: var(--dm-rand) !important; }
html[data-bs-theme="dark"] .btn-light {
    --bs-btn-bg: var(--dm-karte-hoch); --bs-btn-border-color: var(--dm-rand); --bs-btn-color: var(--dm-text);
    --bs-btn-hover-bg: #2b3440; --bs-btn-hover-border-color: #36404d; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #323c49; --bs-btn-active-color: #fff;
}
html[data-bs-theme="dark"] .btn-outline-dark { --bs-btn-color: var(--dm-text); --bs-btn-border-color: #4a5563; --bs-btn-hover-bg: var(--dm-karte-hoch); --bs-btn-hover-color: #fff; }
html[data-bs-theme="dark"] .btn-dark { --bs-btn-bg: #3a4450; --bs-btn-border-color: #3a4450; --bs-btn-hover-bg: #465261; }
html[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--dm-text); --bs-table-border-color: var(--dm-rand);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03); --bs-table-hover-bg: rgba(255, 255, 255, 0.05); --bs-table-hover-color: var(--dm-text); }
html[data-bs-theme="dark"] .table-light { --bs-table-bg: var(--dm-karte-hoch); --bs-table-color: var(--dm-text); --bs-table-border-color: var(--dm-rand); }
html[data-bs-theme="dark"] .table > thead, html[data-bs-theme="dark"] .table > :not(caption) > * > * { border-color: var(--dm-rand); }
html[data-bs-theme="dark"] .alert-light { --bs-alert-bg: var(--dm-karte-hoch); --bs-alert-color: var(--dm-text); --bs-alert-border-color: var(--dm-rand); }
html[data-bs-theme="dark"] .card { --bs-card-bg: var(--dm-karte); --bs-card-cap-bg: var(--dm-karte-hoch); --bs-card-border-color: var(--dm-rand); --bs-card-color: var(--dm-text); }
html[data-bs-theme="dark"] .modal { --bs-modal-bg: var(--dm-karte); --bs-modal-color: var(--dm-text); --bs-modal-border-color: var(--dm-rand);
    --bs-modal-header-border-color: var(--dm-rand); --bs-modal-footer-border-color: var(--dm-rand); }
html[data-bs-theme="dark"] .dropdown-menu { --bs-dropdown-bg: var(--dm-karte-hoch); --bs-dropdown-color: var(--dm-text); --bs-dropdown-border-color: var(--dm-rand);
    --bs-dropdown-link-color: var(--dm-text); --bs-dropdown-link-hover-bg: #2b3440; --bs-dropdown-link-hover-color: #fff; }
html[data-bs-theme="dark"] .list-group { --bs-list-group-bg: var(--dm-karte); --bs-list-group-color: var(--dm-text); --bs-list-group-border-color: var(--dm-rand);
    --bs-list-group-action-hover-bg: var(--dm-karte-hoch); --bs-list-group-action-hover-color: #fff; }
html[data-bs-theme="dark"] .form-control, html[data-bs-theme="dark"] .form-select {
    background-color: #151a21; color: var(--dm-text); border-color: #36404c; }
html[data-bs-theme="dark"] .form-control::placeholder { color: #6f7b8a; }
html[data-bs-theme="dark"] .form-control:disabled, html[data-bs-theme="dark"] .form-control[readonly] { background-color: #1d232c; }
html[data-bs-theme="dark"] .input-group-text { background-color: var(--dm-karte-hoch); color: var(--dm-text-2); border-color: #36404c; }
html[data-bs-theme="dark"] .nav-tabs { --bs-nav-tabs-link-active-bg: var(--dm-karte); --bs-nav-tabs-link-active-color: var(--dm-text);
    --bs-nav-tabs-border-color: var(--dm-rand); --bs-nav-tabs-link-active-border-color: var(--dm-rand) var(--dm-rand) var(--dm-karte); }
html[data-bs-theme="dark"] .pagination { --bs-pagination-bg: var(--dm-karte); --bs-pagination-color: var(--dm-link); --bs-pagination-border-color: var(--dm-rand);
    --bs-pagination-hover-bg: var(--dm-karte-hoch); --bs-pagination-disabled-bg: var(--dm-karte); }
html[data-bs-theme="dark"] .offcanvas { --bs-offcanvas-bg: var(--dm-karte); --bs-offcanvas-color: var(--dm-text); }
html[data-bs-theme="dark"] .popover { --bs-popover-bg: var(--dm-karte-hoch); --bs-popover-body-color: var(--dm-text); --bs-popover-header-bg: #2b3440; --bs-popover-border-color: var(--dm-rand); }
html[data-bs-theme="dark"] hr { color: var(--dm-rand); opacity: 1; }
html[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ---------- 3. Fremdbausteine ---------- */
/* FullCalendar 5 */
html[data-bs-theme="dark"] .fc {
    --fc-page-bg-color: var(--dm-karte);
    --fc-neutral-bg-color: rgba(255, 255, 255, 0.04);
    --fc-neutral-text-color: var(--dm-text-2);
    --fc-border-color: var(--dm-rand);
    --fc-today-bg-color: rgba(127, 179, 217, 0.10);
    --fc-list-event-hover-bg-color: rgba(255, 255, 255, 0.05);
    --fc-highlight-color: rgba(127, 179, 217, 0.18);
    --fc-non-business-color: rgba(0, 0, 0, 0.18);
    color: var(--dm-text);
}
html[data-bs-theme="dark"] .fc .fc-col-header-cell-cushion,
html[data-bs-theme="dark"] .fc .fc-daygrid-day-number,
html[data-bs-theme="dark"] .fc .fc-timegrid-slot-label-cushion,
html[data-bs-theme="dark"] .fc .fc-list-day-text,
html[data-bs-theme="dark"] .fc .fc-list-day-side-text { color: var(--dm-text-2); }
/* bootstrap-datepicker */
html[data-bs-theme="dark"] .datepicker.dropdown-menu { background-color: var(--dm-karte-hoch); color: var(--dm-text); border-color: var(--dm-rand); }
html[data-bs-theme="dark"] .datepicker table tr td.day:hover,
html[data-bs-theme="dark"] .datepicker table tr td.focused,
html[data-bs-theme="dark"] .datepicker .datepicker-switch:hover,
html[data-bs-theme="dark"] .datepicker .prev:hover,
html[data-bs-theme="dark"] .datepicker .next:hover { background: #2b3440; }
html[data-bs-theme="dark"] .datepicker table tr td.old,
html[data-bs-theme="dark"] .datepicker table tr td.new { color: #5f6b7a; }
/* shepherd (Einfuehrungstour) */
html[data-bs-theme="dark"] .shepherd-element { background: var(--dm-karte-hoch); color: var(--dm-text); }
html[data-bs-theme="dark"] .shepherd-text { color: var(--dm-text); }
html[data-bs-theme="dark"] .shepherd-has-title .shepherd-content .shepherd-header { background: #2b3440; }
html[data-bs-theme="dark"] .shepherd-title { color: #fff; }
html[data-bs-theme="dark"] .shepherd-arrow:before { background: var(--dm-karte-hoch) !important; }
html[data-bs-theme="dark"] .shepherd-cancel-icon { color: var(--dm-text-2); }

/* Bilder, Logos, Videos und Diagramm-Leinwaende bleiben unangetastet (keine Invertierung).
   Transparente Logos mit dunkler Schrift bekommen einen hellen Traeger, damit sie lesbar bleiben. */
html[data-bs-theme="dark"] .v2-sidebar-logo img { background: transparent; }

/* Druck und PDFs bleiben hell */
@media print {
    html[data-bs-theme="dark"], html[data-bs-theme="dark"] body { background: #fff !important; color: #000 !important; }
}

/* darkmode-v1: AUTOMATISCH ERZEUGT aus den Stylesheets der App (generator.py).
   Nicht von Hand bearbeiten - neu erzeugen. Greift nur bei html[data-bs-theme="dark"]. */

/* ---- Quelle: styles.css (342 Regeln) ---- */
html[data-bs-theme="dark"] .form-check-input:checked { background-color: #98b8cc; border-color: #98b8cc; }
html[data-bs-theme="dark"] body { background: #1b2028; color: #a3adb5; }
html[data-bs-theme="dark"] body::before { background: radial-gradient(circle at 20% 80%, rgba(108, 117, 125, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(79, 89, 98, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(134, 142, 150, 0.1) 0%, transparent 40%); }
html[data-bs-theme="dark"] .login-screen { background: #1f242b; }
html[data-bs-theme="dark"] .login-screen2 { background: #1f242b; }
html[data-bs-theme="dark"] .login-box { background: #1f242b; }
html[data-bs-theme="dark"] .login-box h2 { color: #d4d4d4; }
html[data-bs-theme="dark"] .login-box .form-label { color: #b7b7b7; }
html[data-bs-theme="dark"] .login-box .form-control { border: 2px solid #242a31; }
html[data-bs-theme="dark"] .login-box .form-control:focus { border-color: #98b8cc; }
html[data-bs-theme="dark"] .login-box a { color: #a8a8a8; }
html[data-bs-theme="dark"] .login-box a:hover { color: #d4e157; }
html[data-bs-theme="dark"] .password-toggle-btn { background: none; border: none; color: #a8a8a8; }
html[data-bs-theme="dark"] .password-toggle-btn:hover { color: #d4e157; }
html[data-bs-theme="dark"] .sidebar { background: linear-gradient(180deg, #1d2630 0%, #202b39 100%); border-right: 1px solid rgba(255, 255, 255, 0.08); }
html[data-bs-theme="dark"] .sidebar2 { background: linear-gradient(180deg, #1d2630 0%, #202b39 100%); border-right: 1px solid rgba(255, 255, 255, 0.1); }
html[data-bs-theme="dark"] .physio-edition .sidebar2,
html[data-bs-theme="dark"] .physio-edition nav.sidebar2,
html[data-bs-theme="dark"] .physio-edition #mainSidebar { background: #1f242b !important; border-right: 1px solid rgba(46, 139, 87, 0.15) !important; }
html[data-bs-theme="dark"] .sidebar .nav-link { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.03); }
html[data-bs-theme="dark"] .sidebar2 .nav-link { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.03); }
html[data-bs-theme="dark"] .sidebar .nav-link:hover { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); }
html[data-bs-theme="dark"] .sidebar .nav-link.active { background: rgba(152, 184, 204, 0.15) !important; color: #d8d8d8 !important; border-left: 3px solid #98b8cc !important; }
html[data-bs-theme="dark"] .sidebar .nav-link.active i { color: #d8d8d8 !important; }
html[data-bs-theme="dark"] .sidebar2 .nav-link:hover { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); }
html[data-bs-theme="dark"] .sidebar2 .nav-link.active { background: rgba(152, 184, 204, 0.15) !important; color: #d8d8d8 !important; border-left: 3px solid #98b8cc !important; }
html[data-bs-theme="dark"] .sidebar2 .nav-link.active i { color: #d8d8d8 !important; }
html[data-bs-theme="dark"] .card { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%) !important; border: 1px solid #2a313a !important; }
html[data-bs-theme="dark"] .card::before { background: linear-gradient(
        135deg,
        rgba(31, 36, 43, 0.1) 0%,
        rgba(31, 36, 43, 0) 100%
    ); }
html[data-bs-theme="dark"] .card-body { background: linear-gradient(135deg, #1f242b 0%, rgba(152, 184, 204, 0.05) 100%); }
html[data-bs-theme="dark"] .table { background: rgba(31, 36, 43, 0.5); }
html[data-bs-theme="dark"] .table thead th { background: rgba(255, 255, 255, 0.1); border-bottom: none; }
html[data-bs-theme="dark"] #callChart,
html[data-bs-theme="dark"] #contactChart { background: rgba(31, 36, 43, 0.5); }
html[data-bs-theme="dark"] .toast.success { background-color: #d4e157; color: #333333; }
html[data-bs-theme="dark"] .toast.error { background-color: #ff5252; color: #ffffff; }
html[data-bs-theme="dark"] .nav-link { color: #a3adb5; }
html[data-bs-theme="dark"] .nav-link:hover { background-color: #171b20; }
html[data-bs-theme="dark"] .nav-link.active { background-color: rgba(152, 184, 204, 0.15) !important; color: #d8d8d8 !important; border-left: 3px solid #98b8cc; }
html[data-bs-theme="dark"] .user-info { border-top: 1px solid rgba(255, 255, 255, 0.1); }
html[data-bs-theme="dark"] .user-info .display-name { color: #a3adb5; }
html[data-bs-theme="dark"] .user-info .user-details { color: #a3adb5; }
html[data-bs-theme="dark"] #dashboardStats .card-title { color: #a3adb5; border-bottom: 2px solid #2e2e2e; }
html[data-bs-theme="dark"] .stat-item:hover { background: rgba(255, 255, 255, 0.02); }
html[data-bs-theme="dark"] .stat-label { color: #a3adb5; }
html[data-bs-theme="dark"] .stat-value { color: #d8d8d8; }
@media (max-width: 768px) { html[data-bs-theme="dark"] .toggle-sidebar { background: #1f242b; border: none; } }
html[data-bs-theme="dark"] #contactsTableBody tr:hover { background-color: #171b20; }
html[data-bs-theme="dark"] .timeline-item { border-left: 2px solid #252c32; }
html[data-bs-theme="dark"] .timeline-item:before { background: #007bff; border: 2px solid #1c2126; }
html[data-bs-theme="dark"] .timeline-date { color: #959ca3; }
html[data-bs-theme="dark"] .timeline-content { background: #171b20; }
html[data-bs-theme="dark"] .timeline-content h6 { color: #b5bbc1; }
html[data-bs-theme="dark"] .timeline-content p { color: #959ca3; }
html[data-bs-theme="dark"] .fc { background-color: rgba(31, 36, 43, 0.95); }
html[data-bs-theme="dark"] .fc .fc-button { background-color: #2e2e2e; border-color: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .fc .fc-button:hover { background-color: #1a1a1a; border-color: #1a1a1a; }
html[data-bs-theme="dark"] .fc .fc-button-primary:not(:disabled).fc-button-active,
html[data-bs-theme="dark"] .fc .fc-button-primary:not(:disabled):active { background-color: #4a4a4a; border-color: #4a4a4a; }
html[data-bs-theme="dark"] .fc-daygrid-event { background-color: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .fc-timegrid-event { background-color: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .fc-day-today { background-color: rgba(255, 255, 255, 0.1) !important; }
html[data-bs-theme="dark"] .fc-day-past { background-color: #161a1f; }
html[data-bs-theme="dark"] .fc td { border-color: #242a31; }
html[data-bs-theme="dark"] .edit-button { background-color: #1a1a1a; border-color: #1a1a1a; color: #ffffff; }
html[data-bs-theme="dark"] .delete-button { background-color: #f86c75; border-color: #ff5963; color: #ffffff; }
html[data-bs-theme="dark"] .multicall-row:hover { background-color: rgba(255, 255, 255, 0.03); }
html[data-bs-theme="dark"] .table tbody tr:hover { background-color: rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] .btn-primary { background-color: #2e2e2e; border-color: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .btn-primary:hover { background-color: #1a1a1a !important; border-color: #1a1a1a !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-custom:hover,
html[data-bs-theme="dark"] .btn-custom:active,
html[data-bs-theme="dark"] .btn-custom:focus { background-color: #98b8cc !important; border-color: #98b8cc !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn.btn-outline-primary:hover,
html[data-bs-theme="dark"] .btn.btn-outline-primary:active,
html[data-bs-theme="dark"] .btn.btn-outline-primary:focus { background-color: #98b8cc !important; border-color: #98b8cc !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-custom-lead-status { background-color: #98b8cc !important; color: #f1f4f8 !important; border-color: #98b8cc !important; }
html[data-bs-theme="dark"] .btn-custom-lead-status:hover { background-color: #7fa0b3 !important; border-color: #7fa0b3 !important; }
html[data-bs-theme="dark"] .form-control { border: 1px solid #2c333c; }
html[data-bs-theme="dark"] .form-control:focus { border-color: #98b8cc; }
html[data-bs-theme="dark"] .selected-contact { background-color: #21272d !important; }
html[data-bs-theme="dark"] tr[data-contact-id]:hover { background-color: #171b20; }
html[data-bs-theme="dark"] .status-controls { background-color: #171b20; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .status-controls .form-label { color: #b5bbc1; }
html[data-bs-theme="dark"] .status-controls .form-select:disabled { background-color: #171b20; }
html[data-bs-theme="dark"] .navbar-toggler { background: #1f242b; border: none; }
@media (max-width: 768px) { html[data-bs-theme="dark"] .sidebar { background: #1f242b; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .sidebar-header { border-bottom: 1px solid #2a3138; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .sidebar-footer { border-top: 1px solid #2a3138; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .nav-link:active { background-color: rgba(255, 255, 255, 0.05); } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .sidebar-overlay { background: rgba(0, 0, 0, 0.5); } }
html[data-bs-theme="dark"] .call-popup { background: #1f242b; }
html[data-bs-theme="dark"] .call-popup h3 { color: #d4d4d4; }
html[data-bs-theme="dark"] .call-controls { background-color: #171b20; }
html[data-bs-theme="dark"] .btn-audio:hover { background-color: #1a1a1a !important; border-color: #1a1a1a !important; }
html[data-bs-theme="dark"] .btn-delete { background-color: #dc3545; border-color: #dc3545; color: #ffffff; }
html[data-bs-theme="dark"] .btn-delete:hover { background-color: #c82333; border-color: #bd2130; }
html[data-bs-theme="dark"] .contacts-page .table { background-color: #1f242b; }
html[data-bs-theme="dark"] .contacts-page .table th { border-top: none; background-color: #171b20; color: #b5bbc1; }
html[data-bs-theme="dark"] .contacts-page .form-control,
html[data-bs-theme="dark"] .contacts-page .form-select { border-color: #2a3138; }
html[data-bs-theme="dark"] .contacts-page .form-control:focus,
html[data-bs-theme="dark"] .contacts-page .form-select:focus { border-color: #98b8cc; }
html[data-bs-theme="dark"] .badge.bg-info { background-color: #6b7280 !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .badge.bg-warning { background-color: #5c6471 !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .badge.bg-primary { background-color: #2e2e2e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .badge.bg-secondary { background-color: #94a3b8 !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .badge.bg-success { background-color: #4b5563 !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .badge.bg-danger { background-color: #374151 !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .bg-warning { background-color: #5c6471 !important; }
html[data-bs-theme="dark"] .text-info { color: #9298a4 !important; }
html[data-bs-theme="dark"] .text-primary { color: #d8d8d8 !important; }
html[data-bs-theme="dark"] .text-success { color: #abb3bf !important; }
html[data-bs-theme="dark"] .text-danger { color: #bac3d0 !important; }
html[data-bs-theme="dark"] .kanban-header.bg-warning { background-color: #5c6471 !important; }
html[data-bs-theme="dark"] .search-bar input { border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .search-bar .search-icon { color: #959ca3; }
html[data-bs-theme="dark"] .clear-search { background: none; border: none; color: #959ca3; }
html[data-bs-theme="dark"] .contact-count { color: #959ca3; }
html[data-bs-theme="dark"] .contacts-table { background: #1f242b; }
html[data-bs-theme="dark"] .contacts-table th { background: #171b20; border-bottom: 2px solid #2a3138; color: #b5bbc1; }
html[data-bs-theme="dark"] .badge-primary { background-color: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .badge-success { background-color: #4b5563; color: #ffffff; }
html[data-bs-theme="dark"] .badge-warning { background-color: #5c6471; color: #ffffff; }
html[data-bs-theme="dark"] .badge-info { background-color: #6b7280; color: #ffffff; }
html[data-bs-theme="dark"] .badge-secondary { background-color: #94a3b8; color: #ffffff; }
html[data-bs-theme="dark"] .btn-success { background-color: #3e3e3e; border-color: #3e3e3e; color: #ffffff; }
html[data-bs-theme="dark"] .btn-success:hover { background-color: #8bc34a; border-color: #8bc34a; }
html[data-bs-theme="dark"] table.contacts-table .email-text { color: #a8a8a8; }
html[data-bs-theme="dark"] .bulk-actions .card-body { background: linear-gradient(135deg, #1f242b 0%, rgba(152, 184, 204, 0.05) 100%); }
html[data-bs-theme="dark"] .note-item { background-color: #1f242b; border-left: 4px solid #0d6efd; }
html[data-bs-theme="dark"] .note-item p { color: #d4d4d4; }
html[data-bs-theme="dark"] .note-item small { color: #959ca3; }
html[data-bs-theme="dark"] .note-item .delete-note:hover { background-color: #dc3545; color: #ffffff; }
html[data-bs-theme="dark"] #notesContainer { background-color: #171b20; }
html[data-bs-theme="dark"] #notesContainer::-webkit-scrollbar-track { background: #1d2228; }
html[data-bs-theme="dark"] #notesContainer::-webkit-scrollbar-thumb { background: #414d5a; }
html[data-bs-theme="dark"] #notesContainer::-webkit-scrollbar-thumb:hover { background: #546374; }
html[data-bs-theme="dark"] .chat-container { background: #1f242b; }
html[data-bs-theme="dark"] .chat-messages { border: 1px solid #2c333c; background-color: #1f242b; }
html[data-bs-theme="dark"] .chat-controls { background-color: #171b20; border: 1px solid #2c333c; border-top: none; }
html[data-bs-theme="dark"] .user-message { background-color: #152632; }
html[data-bs-theme="dark"] .ai-message { background-color: #1a1f24; }
html[data-bs-theme="dark"] .messages-container { background: #171b20; }
html[data-bs-theme="dark"] .message-content { background-color: #171b20; }
html[data-bs-theme="dark"] .message.user .message-content { background: #007bff; color: #ffffff; }
html[data-bs-theme="dark"] .chat-input-container { border-top: 1px solid #2a3138; }
html[data-bs-theme="dark"] .audio-message .transcription { color: #959ca3; }
html[data-bs-theme="dark"] .disabled-card { background-color: #171b20; }
html[data-bs-theme="dark"] .coming-soon-badge { background-color: #6c757d; color: #ffffff; }
html[data-bs-theme="dark"] #profileLink:hover { color: #007bff !important; }
html[data-bs-theme="dark"] #profileBox .card-header { background-color: #171b20; border-bottom: 1px solid #2a3138; }
html[data-bs-theme="dark"] #profileBox .form-control:disabled { background-color: #21272d; }
html[data-bs-theme="dark"] .subscription-banner { background-color: #171b20; border: 1px solid #252c32; }
html[data-bs-theme="dark"] .subscription-banner:hover { background-color: #21272d; }
html[data-bs-theme="dark"] .subscription-message { color: #b5bbc1; }
html[data-bs-theme="dark"] .subscription-badge.active { background-color: #28a745; color: #ffffff; }
html[data-bs-theme="dark"] .subscription-badge.inactive { background-color: #dc3545; color: #ffffff; }
html[data-bs-theme="dark"] .payment-modal-content { background-color: #1f242b; }
html[data-bs-theme="dark"] #card-element { border: 1px solid #2c333c; }
html[data-bs-theme="dark"] .payment-submit-button { background-color: #2196f3; color: #ffffff; border: none; }
html[data-bs-theme="dark"] .payment-submit-button:disabled { background-color: #39434f; }
html[data-bs-theme="dark"] .subscription-page h1 { color: #d4d4d4; }
html[data-bs-theme="dark"] .plan-card { background: #1f242b; border: 1px solid #242a31; }
html[data-bs-theme="dark"] .plan-card.featured { border: 2px solid #4caf50; }
html[data-bs-theme="dark"] .featured-badge { background: #4caf50; color: #ffffff; }
html[data-bs-theme="dark"] .plan-card h2 { color: #d4d4d4; }
html[data-bs-theme="dark"] .price { color: #d4d4d4; }
html[data-bs-theme="dark"] .price span { color: #a8a8a8; }
html[data-bs-theme="dark"] .vat-note { color: #a8a8a8; }
html[data-bs-theme="dark"] .features li { color: #a8a8a8; border-bottom: 1px solid #242a31; }
html[data-bs-theme="dark"] .subscribe-button { background: #4caf50; color: #ffffff; border: none; }
html[data-bs-theme="dark"] .subscribe-button:hover { background: #45a049; }
html[data-bs-theme="dark"] .billing-option { color: #a8a8a8; }
html[data-bs-theme="dark"] .billing-option.active { color: #d4d4d4; }
html[data-bs-theme="dark"] .discount { background: #4caf50; color: #ffffff; }
html[data-bs-theme="dark"] .slider { background-color: #39434f; }
html[data-bs-theme="dark"] .slider:before { background-color: #1f242b; }
html[data-bs-theme="dark"] input:checked + .slider { background: #4caf50; }
html[data-bs-theme="dark"] .subscription-header { border-bottom: 1px solid #242a31; background: #1f242b; }
html[data-bs-theme="dark"] .back-button { border: 1px solid #2a313a; background: #1f242b; color: #d4d4d4; }
html[data-bs-theme="dark"] .back-button:hover { background: #1a1f24; }
html[data-bs-theme="dark"] .section-title { color: #d4d4d4; }
html[data-bs-theme="dark"] .section-description { color: #a8a8a8; }
html[data-bs-theme="dark"] .setup-fee { color: #d4d4d4; }
html[data-bs-theme="dark"] .addon-plans .plan-card { background: #1f242b; }
html[data-bs-theme="dark"] .addon-plans .plan-card h2 { color: #d4d4d4; }
html[data-bs-theme="dark"] .addon-plans .description { color: #a8a8a8; }
html[data-bs-theme="dark"] .status-active { background-color: #28a745; color: #ffffff; }
html[data-bs-theme="dark"] .status-trial { background-color: #17a2b8; color: #ffffff; }
html[data-bs-theme="dark"] .status-canceled { background-color: #dc3545; color: #ffffff; }
html[data-bs-theme="dark"] .status-inactive { background-color: #6c757d; color: #ffffff; }
html[data-bs-theme="dark"] .sidebar-toggle { border: none; color: #ffffff; }
html[data-bs-theme="dark"] .sidebar.collapsed .sidebar-toggle,
html[data-bs-theme="dark"] .sidebar2.collapsed .sidebar-toggle { background: rgba(31, 36, 43, 0.1); }
html[data-bs-theme="dark"] .sidebar.collapsed .sidebar-toggle:hover,
html[data-bs-theme="dark"] .sidebar2.collapsed .sidebar-toggle:hover { background: rgba(31, 36, 43, 0.2); }
html[data-bs-theme="dark"] #callSummariesContainer .btn-audio,
html[data-bs-theme="dark"] #callSummariesContainer .btn-success,
html[data-bs-theme="dark"] #callSummariesContainer .play-audio,
html[data-bs-theme="dark"] #callSummariesContainer button.play-audio,
html[data-bs-theme="dark"] #callSummariesContainer button.btn-audio { background-color: #2e2e2e !important; border-color: #2e2e2e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] #callSummariesContainer .btn-audio:hover,
html[data-bs-theme="dark"] #callSummariesContainer .btn-success:hover,
html[data-bs-theme="dark"] #callSummariesContainer .play-audio:hover,
html[data-bs-theme="dark"] #callSummariesContainer button.play-audio:hover,
html[data-bs-theme="dark"] #callSummariesContainer button.btn-audio:hover { background-color: #1a1a1a !important; border-color: #1a1a1a !important; }
html[data-bs-theme="dark"] .call-summary-table td.actions-col .audio-controls-container { background-color: #171b20 !important; }
html[data-bs-theme="dark"] .chat-message.assistant .chat-bubble { background-color: rgba(31, 36, 43, 0.15); }
html[data-bs-theme="dark"] .chat-message.user .chat-bubble { color: rgba(255, 255, 255, 0.8); }
html[data-bs-theme="dark"] .chat-message.assistant .chat-avatar { background: #3e3e3e; color: #ffffff; }
html[data-bs-theme="dark"] .chat-message.user .chat-avatar { background: #2e2e2e; color: rgba(255, 255, 255, 0.8); }
html[data-bs-theme="dark"] #chatBox { background: #171b20; }
html[data-bs-theme="dark"] .timestamp { color: #a8a8a8; }
html[data-bs-theme="dark"] #tasksContainer .task-item { border-bottom: 1px solid #242a31; }
html[data-bs-theme="dark"] #tasksContainer .task-item small { color: #a8a8a8; }
html[data-bs-theme="dark"] .featured-badge { color: #ffffff; }
html[data-bs-theme="dark"] .features li { color: #a8a8a8; }
html[data-bs-theme="dark"] .features li:before { color: #d8d8d8; }
html[data-bs-theme="dark"] .description { color: #a8a8a8; }
html[data-bs-theme="dark"] .navbar-toggler i { color: #a3adb5; }
html[data-bs-theme="dark"] .subdomain-management-card { background: #1f242b; }
html[data-bs-theme="dark"] .subdomain-management-card .card-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; border-bottom: none; }
html[data-bs-theme="dark"] .subdomain-status { background: #171b20; border-left: 4px solid #28a745; }
html[data-bs-theme="dark"] .subdomain-url strong { color: #b5bbc1; }
html[data-bs-theme="dark"] .subdomain-config-section .input-group-text { background: #21272d; border-color: #313941; color: #959ca3; }
html[data-bs-theme="dark"] .subdomain-config-section .form-control:focus { border-color: #98b8cc; }
html[data-bs-theme="dark"] .feature-card { background: #171b20; }
html[data-bs-theme="dark"] .feature-card:hover { border-color: #667eea; }
html[data-bs-theme="dark"] .feature-card h6 { color: #b5bbc1; }
html[data-bs-theme="dark"] .feature-card p { color: #959ca3; }
html[data-bs-theme="dark"] .dns-instructions-section .alert { border: none; background: #152b32; border-left: 4px solid #17a2b8; }
html[data-bs-theme="dark"] .dns-instructions-section code { background: #1f242b; color: #b5bbc1; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .preview-card { background: #171b20; border: 2px dashed #2a3138; }
html[data-bs-theme="dark"] .preview-browser { background: #1f242b; }
html[data-bs-theme="dark"] .browser-bar { background: #1d2325; border-bottom: 1px solid #2a313a; }
html[data-bs-theme="dark"] .address-bar { background: #1f242b; color: #b5bbc1; border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .preview-content { background: #1f242b; }
html[data-bs-theme="dark"] .preview-content p { color: #959ca3; }
html[data-bs-theme="dark"] .domain-loading::after { border: 2px solid #21272e; border-top: 2px solid #667eea; }
html[data-bs-theme="dark"] .fc-timegrid-slot-label { color: #a8a8a8 !important; }
html[data-bs-theme="dark"] .fc-day-today { background-color: rgba(255, 255, 255, 0.05) !important; }
html[data-bs-theme="dark"] .fc-timegrid-event { border: 1px solid rgba(255, 255, 255, 0.2) !important; }
html[data-bs-theme="dark"] .user-row.inactive-user { background-color: rgba(255, 213, 79, 0.1) !important; border-left: 4px solid #ffd54f; }
html[data-bs-theme="dark"] .user-row.inactive-user:hover { background-color: rgba(255, 213, 79, 0.2) !important; }
html[data-bs-theme="dark"] .user-status-indicator.inactive { background-color: #ffd54f; }
html[data-bs-theme="dark"] .btn-primary { background-color: #2e2e2e !important; border-color: #2e2e2e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-primary:hover { background-color: #1a1a1a !important; border-color: #1a1a1a !important; }
html[data-bs-theme="dark"] .btn-secondary { background-color: #4e4e4e !important; border-color: #4e4e4e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-secondary:hover { background-color: #3e3e3e !important; border-color: #3e3e3e !important; }
html[data-bs-theme="dark"] .btn-success { background-color: #3e3e3e !important; border-color: #3e3e3e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-success:hover { background-color: #2e2e2e !important; border-color: #2e2e2e !important; }
html[data-bs-theme="dark"] .btn-warning { background-color: #5e5e5e !important; border-color: #5e5e5e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-warning:hover { background-color: #4e4e4e !important; border-color: #4e4e4e !important; }
html[data-bs-theme="dark"] .btn-danger { background-color: #4a4a4a !important; border-color: #4a4a4a !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-danger:hover { background-color: #3a3a3a !important; border-color: #3a3a3a !important; }
html[data-bs-theme="dark"] .btn-info { background-color: #3e3e3e !important; border-color: #3e3e3e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-info:hover { background-color: #2e2e2e !important; border-color: #2e2e2e !important; }
html[data-bs-theme="dark"] .btn.btn-audio:hover,
html[data-bs-theme="dark"] .btn.play-audio:hover,
html[data-bs-theme="dark"] button.btn-audio:hover,
html[data-bs-theme="dark"] button.play-audio:hover { background-color: #1a1a1a !important; border-color: #1a1a1a !important; }
html[data-bs-theme="dark"] .btn.mark-processed:hover,
html[data-bs-theme="dark"] button.mark-processed:hover { background-color: #1a1a1a !important; border-color: #1a1a1a !important; }
html[data-bs-theme="dark"] .btn.create-task:hover,
html[data-bs-theme="dark"] button.create-task:hover { background-color: #2e2e2e !important; border-color: #2e2e2e !important; }
html[data-bs-theme="dark"] .btn.forward-email:hover,
html[data-bs-theme="dark"] button.forward-email:hover { background-color: #1a1a1a !important; border-color: #1a1a1a !important; }
html[data-bs-theme="dark"] .btn.create-ticket:hover,
html[data-bs-theme="dark"] button.create-ticket:hover { background-color: #4e4e4e !important; border-color: #4e4e4e !important; }
html[data-bs-theme="dark"] .btn.delete-summary:hover,
html[data-bs-theme="dark"] button.delete-summary:hover { background-color: #3a3a3a !important; border-color: #3a3a3a !important; }
html[data-bs-theme="dark"] .btn-outline-primary { color: #d8d8d8 !important; border-color: #2e2e2e !important; background-color: transparent !important; }
html[data-bs-theme="dark"] .btn-outline-primary:hover,
html[data-bs-theme="dark"] .btn-outline-primary.active { background-color: #2e2e2e !important; border-color: #2e2e2e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-outline-secondary { color: #bdbdbd !important; border-color: #4e4e4e !important; background-color: transparent !important; }
html[data-bs-theme="dark"] .btn-outline-secondary:hover,
html[data-bs-theme="dark"] .btn-outline-secondary.active { background-color: #4e4e4e !important; border-color: #4e4e4e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] a:hover:not(.btn):not(.nav-link) { color: #98b8cc !important; }
html[data-bs-theme="dark"] .nav-tabs .nav-link.active,
html[data-bs-theme="dark"] .nav-pills .nav-link.active { background-color: rgba(152, 184, 204, 0.1) !important; border-bottom: 3px solid #98b8cc !important; color: #98b8cc !important; }
html[data-bs-theme="dark"] .page-link { color: #d8d8d8; }
html[data-bs-theme="dark"] .page-link:hover { color: #ffffff !important; background-color: #6c757d !important; border-color: #6c757d !important; }
html[data-bs-theme="dark"] .page-item.active .page-link { background-color: #98b8cc !important; border-color: #98b8cc !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .form-check-input[type="radio"]:checked,
html[data-bs-theme="dark"] .form-check-input[type="checkbox"]:checked { background-color: #98b8cc !important; border-color: #98b8cc !important; }
html[data-bs-theme="dark"] .list-group-item.active { background-color: rgba(152, 184, 204, 0.1) !important; border-left: 3px solid #98b8cc !important; color: #98b8cc !important; }
html[data-bs-theme="dark"] .breadcrumb-item.active { color: #98b8cc !important; }
html[data-bs-theme="dark"] .table-hover tbody tr:hover { background-color: rgba(152, 184, 204, 0.05) !important; }
html[data-bs-theme="dark"] .table tbody tr.selected { background-color: rgba(152, 184, 204, 0.1) !important; border-left: 3px solid #98b8cc; }
html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #98b8cc !important; }
html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus { background-color: rgba(152, 184, 204, 0.1) !important; color: #98b8cc !important; }
html[data-bs-theme="dark"] .dropdown-item.active { background-color: #98b8cc !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .card-header.accent { background: linear-gradient(135deg, #98b8cc 0%, rgba(152, 184, 204, 0.7) 100%); color: #ffffff; }
html[data-bs-theme="dark"] .badge-accent,
html[data-bs-theme="dark"] .bg-accent { background-color: #98b8cc !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .alert-accent { background-color: rgba(152, 184, 204, 0.1); border-color: #98b8cc; color: #d8d8d8; }
html[data-bs-theme="dark"] .btn-accent { background-color: #98b8cc !important; border-color: #98b8cc !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-accent:hover { background-color: #7da3b8 !important; border-color: #7da3b8 !important; }
html[data-bs-theme="dark"] .card.bg-primary { background: linear-gradient(135deg, #1f242b 0%, #252930 100%) !important; border: 1px solid #31363e !important; }
html[data-bs-theme="dark"] .card.bg-primary .card-title,
html[data-bs-theme="dark"] .card.bg-primary .card-text { color: #bac3d0 !important; }
html[data-bs-theme="dark"] .card.bg-danger { background: linear-gradient(135deg, #1f242b 0%, #1b1e24 100%) !important; border: 1px solid #31363e !important; }
html[data-bs-theme="dark"] .card.bg-danger .card-title,
html[data-bs-theme="dark"] .card.bg-danger .card-text { color: #bac3d0 !important; }
html[data-bs-theme="dark"] .card.bg-success { background: linear-gradient(135deg, #1f242b 0%, #252930 100%) !important; border: 1px solid #31363e !important; }
html[data-bs-theme="dark"] .card.bg-success .card-title,
html[data-bs-theme="dark"] .card.bg-success .card-text { color: #bac3d0 !important; }
html[data-bs-theme="dark"] .card.bg-warning { background: linear-gradient(135deg, #1f242b 0%, #151b20 100%) !important; border: 1px solid #31363e !important; }
html[data-bs-theme="dark"] .card.bg-warning .card-title,
html[data-bs-theme="dark"] .card.bg-warning .card-text { color: #bac3d0 !important; }
html[data-bs-theme="dark"] .card.bg-info { background: linear-gradient(135deg, #1f242b 0%, #1b1e24 100%) !important; border: 1px solid #31363e !important; }
html[data-bs-theme="dark"] .card.bg-info .card-title,
html[data-bs-theme="dark"] .card.bg-info .card-text { color: #bac3d0 !important; }
html[data-bs-theme="dark"] .delete-task:hover { background-color: #3a3a3a !important; border-color: #3a3a3a !important; }
html[data-bs-theme="dark"] .provider-card:hover { border-color: #2e2e2e; }
html[data-bs-theme="dark"] .provider-card.selected { border-color: #2e2e2e; background: linear-gradient(135deg,
        rgba(79, 70, 229, 0.1) 0%,
        rgba(79, 70, 229, 0.05) 100%); }
html[data-bs-theme="dark"] .softphone-container { background: #1f242b; }
html[data-bs-theme="dark"] .softphone-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; }
html[data-bs-theme="dark"] .status-indicator { background: #39434f; }
html[data-bs-theme="dark"] .call-display { border-bottom: 1px solid #282c34; }
html[data-bs-theme="dark"] .call-number { color: #d0d9e5; }
html[data-bs-theme="dark"] .call-status { color: #9298a4; }
html[data-bs-theme="dark"] .dialpad input { border: 2px solid #282c34; background: #151b20; }
html[data-bs-theme="dark"] .dialpad-btn { background: #1b1e24; border: 1px solid #31363e; }
html[data-bs-theme="dark"] .dialpad-btn:hover { background: #252930; }
html[data-bs-theme="dark"] .dialpad-btn:active { background: #343a42; }
html[data-bs-theme="dark"] .call-controls { border-top: 1px solid #282c34; }
html[data-bs-theme="dark"] .btn-call { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border: none; color: #ffffff; }
html[data-bs-theme="dark"] .btn-control { background: #1f242b; border: 2px solid #282c34; color: #9298a4; }
html[data-bs-theme="dark"] .btn-control:hover:not(:disabled) { background: #1b1e24; border-color: #9ca3af; }
html[data-bs-theme="dark"] .btn-control.active { background: #3b82f6; border-color: #3b82f6; color: #ffffff; }
html[data-bs-theme="dark"] iframe { background: linear-gradient(135deg, #1f242b 0%, #171b20 50%, #21272d 100%) !important; }
html[data-bs-theme="dark"] iframe[title*="Video-Chat"],
html[data-bs-theme="dark"] iframe[src*="conversation"],
html[data-bs-theme="dark"] iframe[src*="video"] { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 50%, #1f252b 100%) !important; }
html[data-bs-theme="dark"].voiceone-auth.auth-register .login-container { background: #1f242b; }
html[data-bs-theme="dark"].voiceone-auth.auth-register .auth-hero { background: linear-gradient(155deg,#2e6b94 0%,#1b466a 60%,#15395a 100%); color: #ffffff; }
html[data-bs-theme="dark"].voiceone-auth .auth-hero-brand { color: #ffffff; }
html[data-bs-theme="dark"].voiceone-auth .auth-hero-brand span { color: #7fd1ae; }
html[data-bs-theme="dark"].voiceone-auth .auth-hero-title { color: #ffffff; }
html[data-bs-theme="dark"].voiceone-auth .auth-hero-sub { color: rgba(255, 255, 255, 0.85); }
html[data-bs-theme="dark"].voiceone-auth .auth-hero-list li { color: #ffffff; }
html[data-bs-theme="dark"].voiceone-auth .auth-hero-list li i { color: #7fd1ae; }
html[data-bs-theme="dark"].voiceone-auth .auth-hero-badges span { background: rgba(31, 36, 43, 0.14); border: 1px solid rgba(28, 33, 38, 0.22); color: #ffffff; }
html[data-bs-theme="dark"] .current-subscription-card { background: #1f242b; border: 1px solid #272b33; }
html[data-bs-theme="dark"] .current-subscription-card .cs-title { color: #d4dae9; }
html[data-bs-theme="dark"] .current-subscription-card .cs-sub { color: #9298a4; }
html[data-bs-theme="dark"] .current-subscription-card .cs-badge.active { background: #153423; color: #93e0b6; }
html[data-bs-theme="dark"] .current-subscription-card .cs-badge.trial { background: #131d2e; color: #6192d1; }
html[data-bs-theme="dark"] .current-subscription-card .cs-badge.canceled { background: #2d1212; color: #d26f64; }
html[data-bs-theme="dark"] .current-subscription-card .cs-badge.inactive { background: #1d2025; color: #7b8190; }
html[data-bs-theme="dark"] .current-subscription-card .cs-plan-name { color: #dee4f1; }
html[data-bs-theme="dark"] .current-subscription-card .cs-plan-price { color: #bac3d0; }
html[data-bs-theme="dark"] .current-subscription-card .cs-plan-price .cs-per { color: #9aa0aa; }
html[data-bs-theme="dark"] .current-subscription-card .cs-endnote { color: #dabf7f; }
html[data-bs-theme="dark"] .vo-pr-pill { color: #bcecde; border: 1px solid #27523e; }
html[data-bs-theme="dark"] .vo-pr-billing { background: #19212b; }
html[data-bs-theme="dark"] .vo-pr .vo-pr-cycle.is-active { background: #1f242b; }
html[data-bs-theme="dark"] .vo-pr-card { background: #1f242b; }
html[data-bs-theme="dark"] .vo-pr-card:hover { border-color: #27323f; }
html[data-bs-theme="dark"] .vo-pr-flag { color: #ffffff; }
html[data-bs-theme="dark"] .vo-pr .vo-pr-cta { color: #ffffff; }
html[data-bs-theme="dark"] .vo-pr .vo-pr-cta:hover { color: #ffffff; }
html[data-bs-theme="dark"] .vo-pr .vo-pr-cta-quiet { background: #1f242b; border: 1.5px solid #243848; }
html[data-bs-theme="dark"] .vo-pr-list { border-top: 1px solid #202630; }
html[data-bs-theme="dark"] .vo-pr-enterprise { background: #1f242b; }
html[data-bs-theme="dark"] .vo-pr .vo-pr-ent-btn { border: 1.5px solid #243848; background: #1f242b; }
html[data-bs-theme="dark"] .vo-pr-faq details { background: #1f242b; }
html[data-bs-theme="dark"] .vo-pr-faq details[open] summary { border-bottom: 1px solid #202630; }
html[data-bs-theme="dark"] .vo-pr .vo-pr-yearnote { background: #2f2713; color: #e5d1a4; border: 1px solid #4d4225; }
html[data-bs-theme="dark"] #registerBox .auth-reg-sub { color: #93a0af; }
html[data-bs-theme="dark"] #registerBox .auth-reg-steps { background: #101c28; border: 1px solid rgba(46, 107, 148, 0.12); }
html[data-bs-theme="dark"] #registerBox .auth-reg-steps-title { color: #81b5d8; }
html[data-bs-theme="dark"] #registerBox .auth-reg-steps li { color: #93a0af; }
html[data-bs-theme="dark"] #registerBox .auth-reg-steps li span { background: #2e6b94; color: #ffffff; }
html[data-bs-theme="dark"].voiceone-auth .auth-hero-proof { color: rgba(255, 255, 255, 0.72); border-top: 1px solid rgba(28, 33, 38, 0.18); }
html[data-bs-theme="dark"] .btn-google-auth { background: #1f242b; color: #c6c9cc; border: 1px solid #2c333c; }
html[data-bs-theme="dark"] .btn-google-auth:hover { background: #151e35; }
html[data-bs-theme="dark"] .social-auth-divider::before,
html[data-bs-theme="dark"] .social-auth-divider::after { background: #1e2835; }
html[data-bs-theme="dark"] .cal-team-avatar { background: linear-gradient(135deg, var(--bs-primary, #0d6efd), #6ea8fe); color: #ffffff; }
html[data-bs-theme="dark"] .cal-team-rulenr { background: var(--bs-primary, #0d6efd); color: #ffffff; }

/* ---- Quelle: css/mobile-menu.css (9 Regeln) ---- */
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-menu-container { background-color: #1f242b; } }
html[data-bs-theme="dark"] .mobile-nav-link { color: #a8a8a8; }
html[data-bs-theme="dark"] .mobile-nav-link.active { color: #2196f3; }
html[data-bs-theme="dark"] .mobile-menu-expanded { background-color: #1f242b; }
html[data-bs-theme="dark"] .mobile-submenu-item { border-bottom: 1px solid #242a31; }
html[data-bs-theme="dark"] .mobile-submenu-link { color: #d4d4d4; }
html[data-bs-theme="dark"] .mobile-submenu-icon { color: #2196f3; }
html[data-bs-theme="dark"] .more-button::after { background-color: #2196f3; }
html[data-bs-theme="dark"] .mobile-nav-item.active .mobile-nav-link { color: #2196f3; }

/* ---- Quelle: css/mobile-contacts-new.css (31 Regeln) ---- */
@media (max-width: 768px) { html[data-bs-theme="dark"] .search-filters { background: #1f242b; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-contact-card { background: #1f242b; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-contact-header:hover { background-color: rgba(255, 255, 255, 0.02); } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-contact-name { color: #d4d4d4; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-contact-company { color: #a8a8a8; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-contact-details { color: #888888; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-contact-detail-item i { color: #aaaaaa; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-lead-badge { color: #ffffff !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-lead-badge.bg-secondary { background-color: #6c757d !important; color: #ffffff !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-lead-badge.bg-info { background-color: #17a2b8 !important; color: #ffffff !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-lead-badge.bg-primary { background-color: #007bff !important; color: #ffffff !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-lead-badge.bg-success { background-color: #28a745 !important; color: #ffffff !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-lead-badge.bg-danger { background-color: #dc3545 !important; color: #ffffff !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-delete-btn { background: #dc3545; border: none; color: #ffffff; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-contact-card.selected { background: #152632; border-left: 3px solid #2196f3; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-no-contacts { color: #999999; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-no-contacts i { color: #dddddd; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container { background: #171b20; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container .btn { background-color: #1f242b !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container .btn-primary { background-color: #1f242b !important; color: #d4d4d4 !important; border-color: #2a313a !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container .btn-success { background-color: #1f242b !important; color: #d4d4d4 !important; border-color: #2a313a !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container .btn-success i { color: #77d78d !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container .btn-warning { background-color: #1f242b !important; color: #d4d4d4 !important; border-color: #2a313a !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container .btn-secondary { background-color: #1f242b !important; color: #d4d4d4 !important; border-color: #2a313a !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container .btn-secondary i { color: #959ca3 !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .contact-actions-container .btn:active { background-color: #1e2329 !important; border-color: #007bff !important; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-bulk-actions { background: #1f242b; border-top: 1px solid #2a313a; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-bulk-count { color: #a8a8a8; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-pagination-btn { background: #1f242b; border: 1px solid #2c333c; color: #a8a8a8; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-pagination-btn:not(:disabled):active { background: #1e2329; } }
@media (max-width: 768px) { html[data-bs-theme="dark"] .mobile-pagination-info { color: #a8a8a8; } }

/* ---- Quelle: css/voice-control.css (16 Regeln) ---- */
html[data-bs-theme="dark"] .voice-mic-button { background: #1f242b; border: 2px solid #2a313a; }
html[data-bs-theme="dark"] .voice-mic-button:hover { border-color: #2196f3; }
html[data-bs-theme="dark"] .voice-mic-button.listening i { color: #ffffff; }
html[data-bs-theme="dark"] .voice-input-panel { background: #1f242b; }
html[data-bs-theme="dark"] .voice-input-header { border-bottom: 1px solid #2a313a; }
html[data-bs-theme="dark"] .voice-status-icon { color: #2196f3; }
html[data-bs-theme="dark"] .voice-close-btn { background: none; border: none; color: #a8a8a8; }
html[data-bs-theme="dark"] .voice-close-btn:hover { color: #d4d4d4; }
html[data-bs-theme="dark"] .voice-command-input { border: 2px solid #2a313a; }
html[data-bs-theme="dark"] .voice-command-input:focus { outline: none; border-color: #2196f3; }
html[data-bs-theme="dark"] .voice-suggestion-item { color: #a8a8a8; }
html[data-bs-theme="dark"] .voice-suggestion-item:hover { background: #1a1f24; color: #d4d4d4; }
html[data-bs-theme="dark"] .voice-suggestion-item i { color: #2196f3; }
html[data-bs-theme="dark"] .voice-suggestion-item small { color: #999999; }
html[data-bs-theme="dark"] .voice-input-footer { border-top: 1px solid #2a313a; }
html[data-bs-theme="dark"] .voice-loading { color: #a8a8a8; }

/* ---- Quelle: css/ticketSystem.css (63 Regeln) ---- */
html[data-bs-theme="dark"] .ticket-description { color: #d4d4d4; }
html[data-bs-theme="dark"] .ticket-description a { color: #d8d8d8; }
html[data-bs-theme="dark"] .ticket-description a:hover { color: #e9e9e9; }
html[data-bs-theme="dark"] .ticket-description blockquote { border-left: 4px solid #2a3138; color: #959ca3; }
html[data-bs-theme="dark"] .customer-search-results { background: #1f242b; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .search-result-item { border-bottom: 1px solid #232930; }
html[data-bs-theme="dark"] .search-result-item:hover { background-color: #171b20; }
html[data-bs-theme="dark"] .customer-name { color: #dce0e3; }
html[data-bs-theme="dark"] .customer-meta { color: #959ca3; }
html[data-bs-theme="dark"] .search-loading { color: #a8a8a8; }
html[data-bs-theme="dark"] .no-results { color: #999999; }
html[data-bs-theme="dark"] .selected-customer { background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%); color: #ffffff; }
html[data-bs-theme="dark"] .selected-customer span { color: #ffffff; }
html[data-bs-theme="dark"] .selected-customer button { background: rgba(31, 36, 43, 0.2); border: 1px solid rgba(28, 33, 38, 0.3); color: #ffffff; }
html[data-bs-theme="dark"] .selected-customer button:hover { background: rgba(31, 36, 43, 0.3); }
html[data-bs-theme="dark"] #createTicketModal .modal-header { background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%) !important; border-bottom: 2px solid rgba(28, 33, 38, 0.2); }
html[data-bs-theme="dark"] #createTicketModal .modal-title { color: #ffffff !important; }
html[data-bs-theme="dark"] #createTicketModal .form-label { color: #b5bbc1; }
html[data-bs-theme="dark"] #createTicketModal .form-control,
html[data-bs-theme="dark"] #createTicketModal .form-select { border: 1px solid #313941; }
html[data-bs-theme="dark"] #createTicketModal .form-control:focus,
html[data-bs-theme="dark"] #createTicketModal .form-select:focus { border-color: #2e2e2e; }
html[data-bs-theme="dark"] #createTicketModal .input-group-text { background-color: #171b20; border: 1px solid #313941; color: #959ca3; }
html[data-bs-theme="dark"] .stat-card { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .stat-card.alert { background: linear-gradient(135deg, #5c6471 0%, #6b7280 100%); border: 1px solid #4b5563; }
html[data-bs-theme="dark"] .stat-card.alert .stat-value,
html[data-bs-theme="dark"] .stat-card.alert .stat-label { color: #ffffff !important; }
html[data-bs-theme="dark"] .stat-label { color: #abb3bf; }
html[data-bs-theme="dark"] .dashboard-section { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .dashboard-section h3 { color: #d8d8d8; }
html[data-bs-theme="dark"] .ticket-list { background: #1f242b; }
html[data-bs-theme="dark"] .ticket-list-item { border-bottom: 1px solid #2a313a; }
html[data-bs-theme="dark"] .ticket-list-item:hover { background: rgba(255, 255, 255, 0.03); }
html[data-bs-theme="dark"] .ticket-number { color: #a7b0c0; }
html[data-bs-theme="dark"] .ticket-subject { color: #c2cad9; }
html[data-bs-theme="dark"] .priority-low { background: #1b232a; color: #93a0af; }
html[data-bs-theme="dark"] .priority-normal { background: #1c2631; color: #a5b2c4; }
html[data-bs-theme="dark"] .priority-high { background: #322415; color: #e2bf9a; }
html[data-bs-theme="dark"] .priority-critical { background: #2e1316; color: #d87782; }
html[data-bs-theme="dark"] .priority-urgent { background: #2e1316; color: #d87782; }
html[data-bs-theme="dark"] .status-open { background: #13242f; color: #92bace; }
html[data-bs-theme="dark"] .status-in_progress { background: #142331; color: #81b5d8; }
html[data-bs-theme="dark"] .status-pending { background: #191430; color: #978dbf; }
html[data-bs-theme="dark"] .status-resolved { background: #163629; color: #9ee3cb; }
html[data-bs-theme="dark"] .status-closed { background: #1b232a; color: #8d97a5; }
html[data-bs-theme="dark"] .tk-marke-frist { background: #2e1316; color: #d87782; }
html[data-bs-theme="dark"] .ticket-detail { background: #1f242b; }
html[data-bs-theme="dark"] .ticket-detail-header { border-bottom: 2px solid #1f2b3c; }
html[data-bs-theme="dark"] .info-section { background: #101d26; }
html[data-bs-theme="dark"] .info-section h3 { color: #c2cad9; }
html[data-bs-theme="dark"] .info-row span { color: #c2cad9; }
html[data-bs-theme="dark"] .ticket-description { background: #101d26; }
html[data-bs-theme="dark"] .ticket-description h3 { color: #c2cad9; }
html[data-bs-theme="dark"] .timeline-item { border-left: 2px solid #1f2b3c; }
html[data-bs-theme="dark"] .timeline-item.internal { background: #443c1c; }
html[data-bs-theme="dark"] .timeline-icon { background: #1f242b; border: 2px solid #4299e1; color: #4299e1; }
html[data-bs-theme="dark"] .timeline-author { color: #c2cad9; }
html[data-bs-theme="dark"] .timeline-body { color: #a7b0c0; }
html[data-bs-theme="dark"] .add-comment-section { background: #101d26; }
html[data-bs-theme="dark"] .add-comment-section h3 { color: #c2cad9; }
html[data-bs-theme="dark"] .loading-overlay { background: rgba(31, 36, 43, 0.9); color: #4299e1; }
html[data-bs-theme="dark"] .ticket-nav { background: linear-gradient(180deg, #1f242b 0%, #171b20 100%); border-bottom: 2px solid #2a313a; }
html[data-bs-theme="dark"] .ticket-nav-item { color: #9298a4; }
html[data-bs-theme="dark"] .ticket-nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #d8d8d8; }
html[data-bs-theme="dark"] .ticket-nav-item.active { background: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .modal-title { color: #ffffff !important; }

/* ---- Quelle: css/erp.css (20 Regeln) ---- */
html[data-bs-theme="dark"] #contact-search-results { background-color: #1f242b !important; }
html[data-bs-theme="dark"] .product-search-item:hover { background-color: #171b20 !important; }
html[data-bs-theme="dark"] [data-theme="dark"] .product-search-results { background-color: #2d2d2d !important; border-color: #444444 !important; }
html[data-bs-theme="dark"] [data-theme="dark"] .product-search-item:hover { background-color: #3d3d3d !important; }
html[data-bs-theme="dark"] [data-theme="dark"] .product-search-item { border-bottom-color: #444444 !important; }
html[data-bs-theme="dark"] .module-card-item { border: 1px solid rgba(255, 255, 255, 0.1); }
html[data-bs-theme="dark"] .module-card-item:hover { border-color: #98b8cc; }
html[data-bs-theme="dark"] #inventory-summary .card.bg-warning h3,
html[data-bs-theme="dark"] #inventory-summary .card.bg-warning small,
html[data-bs-theme="dark"] #dunning-summary .card.bg-warning h3,
html[data-bs-theme="dark"] #dunning-summary .card.bg-warning small { color: #dce0e3 !important; }
html[data-bs-theme="dark"] #inventory-summary .card.bg-warning,
html[data-bs-theme="dark"] #dunning-summary .card.bg-warning { color: #dce0e3 !important; }
html[data-bs-theme="dark"] .erp-container > .d-flex h4 { color: #d4d4d4; }
html[data-bs-theme="dark"] #inventory-table th,
html[data-bs-theme="dark"] #dunning-table th { color: #a8a8a8; border-bottom: 2px solid #2a3138; }
html[data-bs-theme="dark"] [data-theme="dark"] .module-card-item { border-color: rgba(28, 33, 38, 0.1); background: #2d2d2d; }
html[data-bs-theme="dark"] [data-theme="dark"] .module-card-item:hover { border-color: #98b8cc; }
html[data-bs-theme="dark"] [data-theme="dark"] #inventory-table th,
html[data-bs-theme="dark"] [data-theme="dark"] #dunning-table th { color: #aaaaaa; border-bottom-color: #444444; }
html[data-bs-theme="dark"] .badge.bg-info { background-color: #0dcaf0 !important; color: #000000; }
html[data-bs-theme="dark"] .badge.bg-warning { background-color: #ffc107 !important; color: #000000; }
html[data-bs-theme="dark"] .card { border: 1px solid rgba(255, 255, 255, 0.1); }
html[data-bs-theme="dark"] .card-header { background-color: #171b20; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
html[data-bs-theme="dark"] [data-theme="dark"] .card { background-color: #2d2d2d; border-color: rgba(28, 33, 38, 0.1); }
html[data-bs-theme="dark"] [data-theme="dark"] .card-header { background-color: #333333; border-bottom-color: rgba(28, 33, 38, 0.1); }

/* ---- Quelle: css/accounting.css (100 Regeln) ---- */
html[data-bs-theme="dark"] .acc-head h2 { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-period { background: var(--v2-surface-card, #1f242b); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-period button { background: transparent; color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-period button:hover:not(:disabled) { background: var(--v2-surface-low, #19232d); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-period .acc-period-label { color: var(--v2-text, #d4dce9); border-left: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); border-right: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-select,
html[data-bs-theme="dark"] .acc-input { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-select:focus,
html[data-bs-theme="dark"] .acc-input:focus { outline: none; border-color: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .acc-btn { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-btn:hover { background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-btn-primary { background: var(--v2-primary, #2e6b94); border-color: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .acc-btn-primary:hover { background: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .acc-btn-ghost { background: transparent; border-color: transparent; color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-btn-ghost:hover { background: var(--v2-surface-low, #19232d); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-btn-danger { color: var(--v2-danger, #d94452); border-color: rgba(217, 68, 82, 0.3); }
html[data-bs-theme="dark"] .acc-btn-danger:hover { background: rgba(217, 68, 82, 0.08); }
html[data-bs-theme="dark"] .acc-card { background: var(--v2-surface-card, #1f242b); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-card-head { border-bottom: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-card-head h3 { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-kpi { background: var(--v2-surface-card, #1f242b); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-kpi::before { background: var(--acc-kpi-color, var(--v2-primary, #2e6b94)); }
html[data-bs-theme="dark"] .acc-kpi-icon { background: color-mix(in srgb, var(--acc-kpi-color, var(--v2-primary, #2e6b94)) 12%, transparent); color: var(--acc-kpi-color, var(--v2-primary, #81b5d8)); }
html[data-bs-theme="dark"] .acc-kpi-value { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-kpi-value.is-negative { color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .acc-kpi-value.is-positive { color: var(--v2-success, #7ad8b9); }
html[data-bs-theme="dark"] .acc-table thead th { background: var(--v2-surface-low, #19232d); color: var(--v2-text-secondary, #93a0af); border-bottom: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-table tbody td { border-bottom: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-table tbody tr:hover td { background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-table tr.is-storno td { color: var(--v2-text-muted, #8a97a8); }
html[data-bs-theme="dark"] .acc-acct { background: var(--v2-surface-low, #19232d); color: var(--v2-text-secondary, #93a0af); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-acct.is-debit { color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .acc-acct.is-credit { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-pill-success { background: rgba(45, 157, 120, 0.12); color: var(--v2-success, #7ad8b9); }
html[data-bs-theme="dark"] .acc-pill-info { background: rgba(46, 107, 148, 0.12); color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .acc-pill-warn { background: rgba(214, 158, 46, 0.15); color: #dbb884; }
html[data-bs-theme="dark"] .acc-pill-danger { background: rgba(217, 68, 82, 0.12); color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .acc-pill-muted { background: var(--v2-surface-high, #202935); color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-table-foot { background: var(--v2-surface-low, #19232d); border-top: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-table-foot .strong { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-task { background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-task:hover { border-color: var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-task-title { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-task.is-danger { background: rgba(217, 68, 82, 0.08); }
html[data-bs-theme="dark"] .acc-task.is-danger i { color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .acc-task.is-warn { background: rgba(214, 158, 46, 0.1); }
html[data-bs-theme="dark"] .acc-task.is-warn i { color: #dbb884; }
html[data-bs-theme="dark"] .acc-task.is-info { background: rgba(46, 107, 148, 0.08); }
html[data-bs-theme="dark"] .acc-task.is-info i { color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .acc-empty-title,
html[data-bs-theme="dark"] .acc-error-title { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-skeleton { background: linear-gradient(90deg, var(--v2-surface-low, #19232d) 25%,
                var(--v2-surface-high, #202935) 37%, var(--v2-surface-low, #19232d) 63%); }
html[data-bs-theme="dark"] .acc-bwa-row td:first-child { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-bwa-row.is-subtotal td { color: var(--v2-text, #d4dce9); background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-hint { color: var(--v2-text-muted, #8a97a8); background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-notice { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] .acc-notice-title { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-notice.is-info { border-left-color: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .acc-notice.is-info > i { color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .acc-notice.is-warn { border-left-color: #d69e2e; }
html[data-bs-theme="dark"] .acc-notice.is-warn > i { color: #dbb884; }
html[data-bs-theme="dark"] .acc-notice.is-danger { border-left-color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .acc-notice.is-danger > i { color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .acc-seg { background: var(--v2-surface-low, #19232d); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-seg button { background: transparent; color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-seg button:hover { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-seg button.is-active { background: var(--v2-surface-card, #1f242b); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-seg .acc-seg-count { background: var(--v2-surface-high, #202935); color: var(--v2-text-muted, #8a97a8); }
html[data-bs-theme="dark"] .acc-seg button.is-active .acc-seg-count { background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-toolbar { border-bottom: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-iconbtn { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-iconbtn:hover { background: var(--v2-surface-low, #19232d); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-iconbtn.is-primary:hover { color: var(--v2-primary, #81b5d8); border-color: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .acc-iconbtn.is-danger:hover { color: var(--v2-danger, #d94452); border-color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .acc-amount-in { color: var(--v2-success, #7ad8b9); }
html[data-bs-theme="dark"] .acc-amount-out { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-modal { background: var(--v2-surface-card, #1f242b); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-modal-head { border-bottom: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-modal-head h3 { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-modal-foot { border-top: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-field label { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-drop { border: 1.5px dashed var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-drop:hover,
html[data-bs-theme="dark"] .acc-drop.is-over { border-color: var(--v2-primary, #2e6b94); background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] .acc-drop-title { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-toast { background: var(--v2-surface-card, #1f242b); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); border-left: 3px solid var(--v2-primary, #2e6b94); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-toast.is-success { border-left-color: var(--v2-success, #2d9d78); }
html[data-bs-theme="dark"] .acc-toast.is-success > i { color: var(--v2-success, #7ad8b9); }
html[data-bs-theme="dark"] .acc-toast.is-error { border-left-color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .acc-toast.is-error > i { color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .acc-toast.is-info > i { color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .acc-table.has-sticky-actions th:last-child,
html[data-bs-theme="dark"] .acc-table.has-sticky-actions td:last-child { background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] .acc-table.has-sticky-actions thead th:last-child { background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-table.has-sticky-actions tbody tr:hover td:last-child { background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-readonly { background: var(--v2-surface-low, #19232d); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-check { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-toolbar.acc-toolbar-standalone { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] .acc-table tr.acc-row-total td { background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .acc-checklist li { border-bottom: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .acc-checklist i.is-ok { color: var(--v2-success, #7ad8b9); }
html[data-bs-theme="dark"] .acc-checklist i.is-off { color: var(--v2-text-muted, #8a97a8); }
html[data-bs-theme="dark"] .acc-checklist-label { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .acc-checklist-value { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .acc-export-card .acc-kpi-label { color: var(--v2-text, #d4dce9); }

/* ---- Quelle: css/aiteam.css (37 Regeln) ---- */
html[data-bs-theme="dark"] .aiv-kpi { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] button.aiv-kpi:hover { border-color: var(--aiv-akzent, var(--v2-primary, #2e6b94)); }
html[data-bs-theme="dark"] .aiv-kpi.is-an { border-color: var(--aiv-akzent, var(--v2-primary, #2e6b94)); }
html[data-bs-theme="dark"] .aiv-kpi-wert { color: var(--aiv-akzent, var(--v2-text, #d4dce9)); }
html[data-bs-theme="dark"] .aiv-kpi-lab { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .aiv-chip { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .aiv-chip:hover { border-color: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .aiv-chip.is-an { background: var(--v2-primary, #2e6b94); border-color: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .aiv-suche { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .aiv-suche:focus { outline: none; border-color: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .aiv-tag { background: var(--v2-surface, #131b26); border-bottom: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .aiv-tag-name { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .aiv-strang::before { background: var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .aiv-zeile + .aiv-zeile { border-top: 1px solid rgba(94, 109, 127, 0.08); }
html[data-bs-theme="dark"] .aiv-wer { color: var(--v2-text-secondary, #93a0af); background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .aiv-was { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .aiv-marke { color: var(--aiv-akzent, var(--v2-text-secondary, #5e6d7f)); background: color-mix(in srgb, var(--aiv-akzent, #8a97a8) 12%, #1f242b); }
html[data-bs-theme="dark"] .aiv-erg { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .aiv-mehr { background: none; border: none; color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .aiv-woche { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] .aiv-woche-kopf h6 { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .aiv-satz { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .aiv-mit + .aiv-mit { border-top: 1px solid rgba(94, 109, 127, 0.08); }
html[data-bs-theme="dark"] .aiv-mit-name { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .aiv-balken { background: var(--v2-surface-low, #19232d); }
html[data-bs-theme="dark"] .aiv-legende { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .aiv-taggruppe > summary { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .aiv-taggruppe > summary:hover { border-color: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .aiv-bericht { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); border-left: 3px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] .aiv-bericht-wer { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .aiv-abschnitt-kopf { color: var(--aiv-akzent, var(--v2-text-secondary, #93a0af)); }
html[data-bs-theme="dark"] .aiv-abschnitt ul { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .aiv-fuehrung { background: var(--v2-surface-low, #19232d); }
@media (max-width: 575.98px) { html[data-bs-theme="dark"] #aiTeamRoot table.table:has(> tbody > tr > td:first-child:nth-last-child(2)) > tbody > tr { border-bottom: 1px solid rgba(255, 255, 255, 0.08); } }
html[data-bs-theme="dark"] #aiTeamRoot .aiv-vs-gruppe { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] #aiTeamRoot .aiv-vs-zeile { border-top: 1px solid rgba(94, 109, 127, 0.1); }
html[data-bs-theme="dark"] #aiTeamRoot .aiv-vs-name { color: var(--v2-text, #d4dce9); }

/* ---- Quelle: css/pbx-dashboard.css (41 Regeln) ---- */
html[data-bs-theme="dark"] .extensions-container { background: linear-gradient(135deg, #1f242b 0%, #131b26 50%, #21272d 100%); border: 1px solid rgba(28, 33, 38, 0.8); }
html[data-bs-theme="dark"] .extensions-container::before { background: radial-gradient(circle, rgba(31, 36, 43, 0.3) 0%, transparent 70%); }
html[data-bs-theme="dark"] .extensions-container h4 { color: #c2cad9; }
html[data-bs-theme="dark"] .extensions-container .btn-primary { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); color: #ffffff; border: none; }
html[data-bs-theme="dark"] .extensions-container .btn-primary:hover { background: #171b20; }
html[data-bs-theme="dark"] .extension-card { background: #1f242b; border: 1px solid rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] .extension-header { border-bottom: 2px solid #21282e; }
html[data-bs-theme="dark"] .extension-name { color: #c2cad9; }
html[data-bs-theme="dark"] .extension-type { background: linear-gradient(135deg, rgba(102, 126, 234, 0.0824), rgba(118, 75, 162, 0.0824)); color: #667eea; }
html[data-bs-theme="dark"] .btn-icon { border: 2px solid #1f2b3c; background: #1f242b; color: #a7b0c0; }
html[data-bs-theme="dark"] .btn-icon:hover { border-color: #667eea; color: #667eea; }
html[data-bs-theme="dark"] .extensions-grid:empty::after { color: #ffffff; }
html[data-bs-theme="dark"] .chart-container { background: #1f242b; }
html[data-bs-theme="dark"] .stats-summary-cards .card { border: none; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; }
html[data-bs-theme="dark"] .date-range-selector input[type="date"] { border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .live-calls-container { background: linear-gradient(135deg, #1f242b 0%, #171b20 50%, #21272d 100%); border: 1px solid rgba(28, 33, 38, 0.8); }
html[data-bs-theme="dark"] .live-calls-header h4 { color: #c2cad9; }
html[data-bs-theme="dark"] .call-card { background: #1f242b; border: 1px solid rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] .caller-number { color: #c2cad9; }
html[data-bs-theme="dark"] .call-direction { background: linear-gradient(135deg, #15222f, #1d2837); color: #a7b0c0; }
html[data-bs-theme="dark"] .call-actions .btn-icon { border: 2px solid #1f2b3c; background: #1f242b; color: #a7b0c0; }
html[data-bs-theme="dark"] .call-actions .btn-icon:hover { background: linear-gradient(135deg, #4a5568, #2d3748); color: #ffffff; border-color: transparent; }
html[data-bs-theme="dark"] .trunks-container { background: linear-gradient(135deg, #1f242b 0%, #131a20 50%, #1b2126 100%); border: 1px solid rgba(28, 33, 38, 0.8); }
html[data-bs-theme="dark"] .trunks-container::before { background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%); }
html[data-bs-theme="dark"] .trunks-header h4 { color: #c2cad9; }
html[data-bs-theme="dark"] .trunk-item { background: #1f242b; border: 1px solid rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] .trunk-name { color: #c2cad9; }
html[data-bs-theme="dark"] .trunk-details span { background: linear-gradient(135deg, #15222f, #1d2837); color: #a7b0c0; }
html[data-bs-theme="dark"] .trunk-actions .btn-icon { border: 2px solid #1f2b3c; background: #1f242b; color: #a7b0c0; }
html[data-bs-theme="dark"] .trunk-actions .btn-icon:hover { border-color: #667eea; color: #667eea; }
html[data-bs-theme="dark"] .trunk-actions .btn-icon.danger:hover { border-color: #f56565; color: #f56565; }
html[data-bs-theme="dark"] .statistics-container { background: linear-gradient(135deg, #1f242b 0%, #101d26 50%, #15222f 100%); border: 1px solid rgba(28, 33, 38, 0.8); }
html[data-bs-theme="dark"] .stats-header h4 { color: #c2cad9; }
html[data-bs-theme="dark"] .stats-period-selector { background: #1f242b; }
html[data-bs-theme="dark"] .stats-period-selector button.active { background: linear-gradient(135deg, #4a5568, #2d3748); color: #ffffff; }
html[data-bs-theme="dark"] .stat-card { background: #1f242b; border: 1px solid rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] .stat-card::after { background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), transparent); }
html[data-bs-theme="dark"] .stat-value { color: #c2cad9; }
html[data-bs-theme="dark"] .chart-card { background: #1f242b; border: 1px solid rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] .chart-title { color: #c2cad9; }
html[data-bs-theme="dark"] .add-button { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); color: #ffffff; border: none; }

/* ---- Quelle: css/physio-theme.css (16 Regeln) ---- */
html[data-bs-theme="dark"] .physio-edition .sidebar,
html[data-bs-theme="dark"] .physio-edition .sidebar2,
html[data-bs-theme="dark"] .physio-edition nav.sidebar,
html[data-bs-theme="dark"] .physio-edition nav.sidebar2,
html[data-bs-theme="dark"] .physio-edition nav#mainSidebar,
html[data-bs-theme="dark"] nav.sidebar2.physio-sidebar { background: #1f242b !important; border-right: 1px solid rgba(46, 139, 87, 0.15) !important; }
html[data-bs-theme="dark"] .physio-edition .sidebar2 .nav-link,
html[data-bs-theme="dark"] .physio-edition .sidebar .nav-link,
html[data-bs-theme="dark"] .physio-edition #mainSidebar .nav-link { color: #e9e9e9 !important; }
html[data-bs-theme="dark"] .physio-edition .sidebar2 .nav-link:hover,
html[data-bs-theme="dark"] .physio-edition .sidebar .nav-link:hover,
html[data-bs-theme="dark"] .physio-edition #mainSidebar .nav-link:hover { color: #ffffff !important; background: rgba(46, 139, 87, 0.1) !important; }
html[data-bs-theme="dark"] .physio-edition .sidebar2 .nav-link i,
html[data-bs-theme="dark"] .physio-edition .sidebar .nav-link i,
html[data-bs-theme="dark"] .physio-edition #mainSidebar .nav-link i { color: #e9e9e9 !important; }
html[data-bs-theme="dark"] .physio-edition .sidebar-toggle,
html[data-bs-theme="dark"] .physio-edition .sidebar2 .sidebar-toggle { color: #e9e9e9 !important; background: transparent !important; border: none !important; }
html[data-bs-theme="dark"] .physio-edition .sidebar-toggle:hover { color: #ffffff !important; }
html[data-bs-theme="dark"] .physio-edition .nav-link.active,
html[data-bs-theme="dark"] .physio-edition .sidebar .nav-link.active,
html[data-bs-theme="dark"] .physio-edition .sidebar2 .nav-link.active,
html[data-bs-theme="dark"] .physio-edition #mainSidebar .nav-link.active { background: rgba(46, 139, 87, 0.12) !important; }
html[data-bs-theme="dark"] .physio-edition-badge { color: #ffffff; }
html[data-bs-theme="dark"] .physio-edition .prescription-badge { color: #ffffff; }
html[data-bs-theme="dark"] .physio-edition .appointment-krankengymnastik { background-color: #2e8b57 !important; color: #ffffff; }
html[data-bs-theme="dark"] .physio-edition .appointment-manuelle-therapie { background-color: #3cb371 !important; color: #ffffff; }
html[data-bs-theme="dark"] .physio-edition .appointment-lymphdrainage { background-color: #20b2aa !important; color: #ffffff; }
html[data-bs-theme="dark"] .physio-edition .appointment-massage { background-color: #48d1cc !important; color: #ffffff; }
html[data-bs-theme="dark"] .physio-edition .appointment-waermetherapie { background-color: #ff8c00 !important; color: #ffffff; }
html[data-bs-theme="dark"] .physio-edition .appointment-kaeltetherapie { background-color: #4682b4 !important; color: #ffffff; }
html[data-bs-theme="dark"] .physio-edition .appointment-elektrotherapie { background-color: #9370db !important; color: #ffffff; }

/* ---- Quelle: css/toast.css (5 Regeln) ---- */
html[data-bs-theme="dark"] .toast { color: #ffffff; }
html[data-bs-theme="dark"] .toast-info { background-color: #2196f3; }
html[data-bs-theme="dark"] .toast-success { background-color: #4caf50; }
html[data-bs-theme="dark"] .toast-warning { background-color: #ffc107; color: #333333; }
html[data-bs-theme="dark"] .toast-error { background-color: #f44336; }

/* ---- Quelle: index_v2.html (164 Regeln) ---- */
html[data-bs-theme="dark"] .pwa-install-button { background-color: #2196f3; color: #ffffff; border: none; }
html[data-bs-theme="dark"] .pwa-install-button:hover { background-color: #1976d2; }
html[data-bs-theme="dark"] .ios-install-banner { background-color: #1f242b; }
html[data-bs-theme="dark"] .install-instructions-btn { background-color: #2196f3; color: #ffffff; border: none; }
html[data-bs-theme="dark"] .video-button .fas.fa-video { color: #61bed1 !important; }
html[data-bs-theme="dark"] .video-button:hover .fas.fa-video { color: #ffffff !important; }
html[data-bs-theme="dark"] .btn-outline-info:hover .fas.fa-video { color: #ffffff !important; }
html[data-bs-theme="dark"] .nav-group-header { background: rgba(31, 36, 43, 0.05); }
html[data-bs-theme="dark"] .nav-group-header:hover { background: rgba(31, 36, 43, 0.1); }
html[data-bs-theme="dark"] .nav-group-items { background: rgba(255, 255, 255, 0.1); }
html[data-bs-theme="dark"] .nav-group-items .nav-link:hover { background: rgba(31, 36, 43, 0.1); }
html[data-bs-theme="dark"] .nav-group-items .nav-link.active { background: rgba(33, 150, 243, 0.2); border-left: 3px solid #2196f3; }
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-ai-link { background: rgba(91, 155, 127, 0.06) !important; }
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-ai-link.active { background: rgba(91, 155, 127, 0.12) !important; }
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-card:hover,
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-list-item:hover,
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-row:hover,
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-nav-item:hover,
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-tab:hover { background: rgba(91, 155, 127, 0.06) !important; }
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-row.active,
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-list-item.active,
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-tab.active { background: rgba(91, 155, 127, 0.04) !important; }
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-gradient-btn,
html[data-bs-theme="dark"].physio-edition body .v2-layout .v2-primary-gradient,
html[data-bs-theme="dark"].physio-edition body .v2-layout [style*="linear-gradient(135deg, #2E6B94"] { background: linear-gradient(135deg, #5b9b7f, #87bca3) !important; }
html[data-bs-theme="dark"].physio-edition body .v2-layout [style*="rgba(46,107,148"] { background-color: rgba(91, 155, 127, 0.1) !important; }
html[data-bs-theme="dark"].physio-edition body .v2-layout [style*="color:#2E6B94"],
html[data-bs-theme="dark"].physio-edition body .v2-layout [style*="color: #2E6B94"] { color: #7eb49c !important; }
html[data-bs-theme="dark"].physio-edition body .v2-layout [style*="color:#5B8FB9"],
html[data-bs-theme="dark"].physio-edition body .v2-layout [style*="color: #5B8FB9"] { color: #87bca3 !important; }
html[data-bs-theme="dark"] .subscription-plan { border: 1px solid #2c333c; background: #1f242b; }
html[data-bs-theme="dark"] .subscription-plan h3 { color: #d4d4d4; }
html[data-bs-theme="dark"] .price { color: #2196f3; }
html[data-bs-theme="dark"] .period { color: #a8a8a8; }
html[data-bs-theme="dark"] .subscribe-button { background: #2196f3; color: #ffffff; border: none; }
html[data-bs-theme="dark"] .subscribe-button:hover { background: #1976d2; }
html[data-bs-theme="dark"] .modal { background: rgba(0, 0, 0, 0.5); }
html[data-bs-theme="dark"] .modal-content { background: #1f242b; }
html[data-bs-theme="dark"] #success-message { color: #71c174; }
html[data-bs-theme="dark"] #subscription-status { background: #152632; }
html[data-bs-theme="dark"] .subscription-trial { background-color: #ff9800 !important; color: #ffffff; }
html[data-bs-theme="dark"] .subscription-active { background-color: #4caf50 !important; color: #ffffff; }
html[data-bs-theme="dark"] .subscription-expired { background-color: #f44336 !important; color: #ffffff; }
html[data-bs-theme="dark"] .subscription-banner { background: linear-gradient(90deg, #171b20 0%, rgba(23, 27, 32, 0.95) 100%); border-bottom: 1px solid #2a3138; }
html[data-bs-theme="dark"] body.auth-boot #authBootSpinner { background: #141922; }
html[data-bs-theme="dark"] #authBootSpinner .abs-ring { border: 4px solid #262e3e; border-top-color: #4f6ef7; }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card { background: var(--v2-surface-card, #1f242b); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card-title { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card-badge.is-none { background: rgba(94, 109, 127, 0.1); color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card-badge.is-active { background: rgba(45, 157, 120, 0.12); color: var(--v2-success, #7ad8b9); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card-badge.is-ending { background: rgba(217, 68, 82, 0.1); color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card-sub { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card-btn.is-primary { background: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card-btn.is-quiet { background: transparent; color: var(--v2-text-secondary, #93a0af); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card-btn.is-quiet:hover { background: var(--v2-surface-low, #19232d); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.has-trial.is-warn { background: #271d10; border-color: rgba(217, 131, 36, 0.34); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.has-trial.is-danger,
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.has-trial.is-over { background: #250f12; border-color: rgba(217, 68, 82, 0.34); }
html[data-bs-theme="dark"] .v2-layout .v2-trial-info:hover { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .v2-layout .v2-trial-row:hover { background: rgba(94, 109, 127, 0.07); }
html[data-bs-theme="dark"] .v2-layout .v2-trial-row:focus-visible { outline: 2px solid var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .v2-layout .v2-trial-ring { background: conic-gradient(
                var(--v2-trial-color, var(--v2-primary, #2e6b94)) calc(var(--v2-trial-pct) * 1%),
                rgba(94, 109, 127, 0.16) 0
            ); }
html[data-bs-theme="dark"] .v2-layout .v2-trial-ring .v2-trial-ring-val { background: var(--v2-surface-card, #1f242b); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.is-warn .v2-trial-ring .v2-trial-ring-val { color: #dcb286; }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.is-danger .v2-trial-ring .v2-trial-ring-val,
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.is-over .v2-trial-ring .v2-trial-ring-val { color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .v2-layout .v2-trial-main { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .v2-layout .v2-trial-sub { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.is-warn .v2-plan-card-btn.is-primary { background: #d98324; }
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.is-danger .v2-plan-card-btn.is-primary,
html[data-bs-theme="dark"] .v2-layout .v2-plan-card.is-over .v2-plan-card-btn.is-primary { background: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .v2-trial-pop { background: #1f242b; border: 1px solid rgba(94, 109, 127, 0.14); }
html[data-bs-theme="dark"] .v2-trial-pop-x:hover { color: #d4dce9; }
html[data-bs-theme="dark"] .v2-trial-pop-big b { color: #d4dce9; }
html[data-bs-theme="dark"] .v2-trial-pop-big span { color: #93a0af; }
html[data-bs-theme="dark"] .v2-trial-pop.is-warn .v2-trial-pop-big b { color: #dcb286; }
html[data-bs-theme="dark"] .v2-trial-pop.is-danger .v2-trial-pop-big b,
html[data-bs-theme="dark"] .v2-trial-pop.is-over .v2-trial-pop-big b { color: #d94452; }
html[data-bs-theme="dark"] .v2-trial-pop-bar { background: #19212b; }
html[data-bs-theme="dark"] .v2-trial-pop-bar i { background: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .v2-trial-pop.is-warn .v2-trial-pop-bar i { background: #d98324; }
html[data-bs-theme="dark"] .v2-trial-pop.is-danger .v2-trial-pop-bar i,
html[data-bs-theme="dark"] .v2-trial-pop.is-over .v2-trial-pop-bar i { background: #d94452; }
html[data-bs-theme="dark"] .v2-trial-pop-used { color: #93a0af; }
html[data-bs-theme="dark"] .v2-trial-pop-note { color: #93a0af; }
html[data-bs-theme="dark"] .v2-trial-pop-btn { background: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .v2-trial-pop.is-warn .v2-trial-pop-btn { background: #d98324; }
html[data-bs-theme="dark"] .v2-trial-pop.is-danger .v2-trial-pop-btn,
html[data-bs-theme="dark"] .v2-trial-pop.is-over .v2-trial-pop-btn { background: #d94452; }
html[data-bs-theme="dark"] .v2-layout .v2-nav-scroll .nav-link.active,
html[data-bs-theme="dark"] .v2-layout .v2-nav-group .nav-link.active { background: transparent !important; }
html[data-bs-theme="dark"] .v2-layout .v2-ai-link { background: rgba(46, 107, 148, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout .v2-ai-link.active { background: rgba(46, 107, 148, 0.12) !important; }
html[data-bs-theme="dark"] .v2-layout .v2-user-avatar { color: #ffffff; }
html[data-bs-theme="dark"] .v2-layout .btn-primary { border: none !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .btn-secondary:hover { background: var(--v2-surface-container-high, #2a323d) !important; }
html[data-bs-theme="dark"] .v2-layout .btn-success { border: none !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .btn-danger { border: none !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .btn-danger:hover { background: #c13040 !important; }
html[data-bs-theme="dark"] .v2-layout .btn-outline-primary:hover { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .btn-check:checked + .btn-outline-primary { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .btn-warning { background: #d4920a !important; border: none !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .input-group .form-control { background: #1f242b !important; }
html[data-bs-theme="dark"] .v2-layout .bg-warning { background: #d4920a !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .nav-tabs .nav-link.active { background: transparent !important; }
html[data-bs-theme="dark"] .v2-layout .nav-pills .nav-link.active { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .alert-info { background: rgba(46, 107, 148, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout .alert-success { background: rgba(45, 157, 120, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout .alert-danger { background: rgba(217, 68, 82, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout .alert-warning { background: rgba(212, 146, 10, 0.06) !important; color: #d5b36d !important; }
html[data-bs-theme="dark"] .v2-layout .list-group-item.active { background: rgba(46, 107, 148, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout .pagination .page-item.active .page-link { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .modal-title { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .modal-footer { border-top: 1px solid rgba(94, 109, 127, 0.12) !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .card.border-primary *,
html[data-bs-theme="dark"] .v2-layout #erp-content .card.bg-primary *,
html[data-bs-theme="dark"] .v2-layout #erp-content .card.bg-success *,
html[data-bs-theme="dark"] .v2-layout #erp-content .card.bg-warning *,
html[data-bs-theme="dark"] .v2-layout #erp-content .card.bg-info *,
html[data-bs-theme="dark"] .v2-layout #erp-content .card.bg-secondary *,
html[data-bs-theme="dark"] .v2-layout #erp-content .card.bg-danger *,
html[data-bs-theme="dark"] .v2-layout #erp-content .card.border-primary .text-primary,
html[data-bs-theme="dark"] .v2-layout #erp-content .card.border-primary .text-muted,
html[data-bs-theme="dark"] .v2-layout #erp-content .card .text-white { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-primary:hover { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-info:hover { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-warning { border: 1px solid #b87600 !important; color: #dcbd86 !important; background: transparent !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-warning:hover,
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-warning:focus { background: #b87600 !important; color: #ffffff !important; border-color: #b87600 !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-danger:hover,
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-danger:focus { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-success:hover,
html[data-bs-theme="dark"] .v2-layout #erp-content .btn-outline-success:focus { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .table > tbody > tr.table-success,
html[data-bs-theme="dark"] .v2-layout #erp-content .table > tbody > tr.table-success > * { background-color: #112b1e !important; color: inherit !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .table > tbody > tr.table-warning,
html[data-bs-theme="dark"] .v2-layout #erp-content .table > tbody > tr.table-warning > * { background-color: #2b2212 !important; color: inherit !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .table > tbody > tr.table-danger,
html[data-bs-theme="dark"] .v2-layout #erp-content .table > tbody > tr.table-danger > * { background-color: #281013 !important; color: inherit !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .table-hover > tbody > tr.table-success:hover > * { background-color: #163324 !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .table-hover > tbody > tr.table-warning:hover > * { background-color: #3c2f19 !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .table-hover > tbody > tr.table-danger:hover > * { background-color: #331519 !important; }
html[data-bs-theme="dark"] .v2-layout #inventory-summary .card *,
html[data-bs-theme="dark"] .v2-layout #dunning-summary .card * { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .card-footer.bg-warning,
html[data-bs-theme="dark"] .v2-layout #erp-content .card-footer[class*="bg-warning"] { background: rgba(46, 107, 148, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout #erp-content .card-footer.bg-success,
html[data-bs-theme="dark"] .v2-layout #erp-content .card-footer[class*="bg-success"] { background: rgba(45, 157, 120, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout .filter-button,
html[data-bs-theme="dark"] .v2-layout #filterButton { border: none !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #callSummariesContainer.table-view .processed-call { background-color: rgba(45, 157, 120, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout #callSummariesContainer.table-view .processed-call:hover { background-color: rgba(45, 157, 120, 0.1) !important; }
html[data-bs-theme="dark"] .v2-layout #callSummariesContainer .btn-audio:hover { background-color: #258a65 !important; border-color: #258a65 !important; }
html[data-bs-theme="dark"] .v2-more-menu { background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] .v2-more-menu .v2-menu-item:hover { background: var(--v2-surface, #1a1f24); color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .v2-more-menu .v2-menu-item.v2-menu-danger:hover { background: rgba(217, 68, 82, 0.06); color: var(--v2-danger, #d94452); }
html[data-bs-theme="dark"] .v2-layout .deal-card:hover { border-color: transparent !important; }
html[data-bs-theme="dark"] .v2-layout .kanban-column-content.drag-over { background: rgba(46, 107, 148, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout .kanban-dropzone.drag-over { background: rgba(46, 107, 148, 0.06) !important; }
html[data-bs-theme="dark"] .v2-layout #kanbanView .btn-outline-primary:hover,
html[data-bs-theme="dark"] .v2-layout #kanbanView .btn-check:checked + .btn-outline-primary { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .ticket-nav-item.active { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .fc .fc-button-primary.fc-button-active,
html[data-bs-theme="dark"] .v2-layout .fc .fc-button-primary:not(:disabled).fc-button-active { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .fc .fc-today-button { color: #ffffff !important; border: none !important; }
html[data-bs-theme="dark"] .v2-layout .fc .fc-day-today { background: rgba(46, 107, 148, 0.04) !important; }
html[data-bs-theme="dark"] .v2-layout #miniCalendar .fc .fc-day-today .fc-daygrid-day-number { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .contact-actions-container .btn-primary,
html[data-bs-theme="dark"] .v2-layout .contact-actions-container .btn-success,
html[data-bs-theme="dark"] .v2-layout .contact-actions-container .btn-warning,
html[data-bs-theme="dark"] .v2-layout .contact-actions-container .btn-secondary { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #contactDetailContainer #deleteButton:hover { background: rgba(217, 68, 82, 0.08) !important; }
html[data-bs-theme="dark"] .v2-layout #contactDetailContainer .btn-outline-primary:hover { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout #contactDetailContainer .btn-success { border: none !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .agent-card .btn-outline-primary { color: #ffffff !important; border: none !important; }
html[data-bs-theme="dark"] .v2-layout .v2-welcome-card { background: var(--v2-bg-soft, #181c21); border: 1px solid var(--v2-border, #282e37); }
html[data-bs-theme="dark"] .v2-layout .v2-welcome-card:hover { border-color: var(--v2-accent, #2e6b94); background: var(--v2-bg, #1f242b); }
html[data-bs-theme="dark"] .v2-layout .v2-welcome-card .v2-wc-title { color: var(--v2-text, #e8e8eb); }
html[data-bs-theme="dark"] .v2-layout .v2-welcome-card .v2-wc-desc { color: var(--v2-text-secondary, #97979f); }
html[data-bs-theme="dark"] .v2-layout .v2-welcome-hint { color: var(--v2-text-secondary, #97979f); }
html[data-bs-theme="dark"] .v2-layout .v2-msg-bubble { color: #ffffff; }
html[data-bs-theme="dark"] .v2-layout .v2-quick-action.v2-accent { color: #ffffff; }
html[data-bs-theme="dark"] .v2-layout .v2-mic-btn.v2-mic-active { color: #ffffff !important; }
html[data-bs-theme="dark"] .v2-layout .v2-send-btn { border: none; color: #ffffff; }
html[data-bs-theme="dark"] .v2-layout .v2-msg-attachments .v2-msg-pdf { background: rgba(31, 36, 43, 0.08); }
html[data-bs-theme="dark"] .v2-layout .v2-card-badge.green { background: rgba(45, 157, 120, 0.08); }
html[data-bs-theme="dark"] .v2-layout .v2-card-badge.orange { background: rgba(212, 146, 10, 0.08); color: #d5b36d; }
html[data-bs-theme="dark"] .v2-layout .v2-contact-photo { background: linear-gradient(135deg, #2c3b4f, #1d2837); }
html[data-bs-theme="dark"] .v2-layout .v2-contact-badge { background: rgba(46, 107, 148, 0.08); }
html[data-bs-theme="dark"] .v2-layout .v2-contact-actions .v2-btn-call { border: none; color: #ffffff; }
html[data-bs-theme="dark"] .v2-layout .v2-contact-actions .v2-btn-chat { color: #ffffff; border: none; }
html[data-bs-theme="dark"] .v2-layout .toc-list a:hover { color: var(--v2-primary-dark, #9fc7e3) !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal-header { background: linear-gradient(135deg, #2e6b94, #5b8fb9) !important; border-bottom: none !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal-title { color: #ffffff !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal-footer { background: transparent !important; border-top: 1px solid rgba(94, 109, 127, 0.12) !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal-footer .btn-primary,
html[data-bs-theme="dark"] body:has(.v2-layout) .modal-footer .btn-success { background: linear-gradient(135deg, #2e6b94, #5b8fb9) !important; border: none !important; color: #ffffff !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal-footer .btn-secondary { background: #202935 !important; border: none !important; color: #93a0af !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal-footer .btn-danger:hover { background: rgba(217, 68, 82, 0.08) !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal .form-control,
html[data-bs-theme="dark"] body:has(.v2-layout) .modal .form-select { background: #131b26 !important; border: none !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal .form-control:focus,
html[data-bs-theme="dark"] body:has(.v2-layout) .modal .form-select:focus { background: #1f242b !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal .form-label { color: #93a0af !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal .card-header { background: transparent !important; border-bottom: 1px solid rgba(94, 109, 127, 0.12) !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal .table thead th { background: #131b26 !important; border-bottom: 1px solid rgba(94, 109, 127, 0.12) !important; color: #8a97a8 !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal .table td { border-color: rgba(94, 109, 127, 0.12) !important; }
html[data-bs-theme="dark"] body:has(.v2-layout) .modal-backdrop { background: rgba(26, 35, 50, 0.4) !important; }

/* ---- Quelle: modules/adminFunnel.js (24 Regeln) ---- */
html[data-bs-theme="dark"] .af-header h1 { color: #cdd6e5; }
html[data-bs-theme="dark"] .af-header .af-subtitle { color: #8996aa; }
html[data-bs-theme="dark"] .af-range-btn { border: 1px solid #1f2b3c; background: #1f242b; color: #a6b2c3; }
html[data-bs-theme="dark"] .af-range-btn:hover { background: #131f2b; }
html[data-bs-theme="dark"] .af-range-btn.is-active { background: #6366f1; color: #ffffff; border-color: #6366f1; }
html[data-bs-theme="dark"] .af-card { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .af-card h3 { color: #cdd6e5; }
html[data-bs-theme="dark"] .af-card .af-card-sub { color: #8996aa; }
html[data-bs-theme="dark"] .af-error { background: #281010; color: #d67373; }
html[data-bs-theme="dark"] .af-funnel-label { color: #a6b2c3; }
html[data-bs-theme="dark"] .af-funnel-bar-wrap { background: #131f2b; }
html[data-bs-theme="dark"] .af-funnel-bar { color: #ffffff; }
html[data-bs-theme="dark"] .af-funnel-pct { color: #8996aa; }
html[data-bs-theme="dark"] .af-drop.is-good { color: #85dca5; }
html[data-bs-theme="dark"] .af-table th { color: #8996aa; border-bottom: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .af-table td { border-bottom: 1px solid #192734; }
html[data-bs-theme="dark"] .af-table tr:hover td { background: #101b25; }
html[data-bs-theme="dark"] .af-pct-pill.high { background: #173822; color: #aee7c4; }
html[data-bs-theme="dark"] .af-pct-pill.mid { background: #443c1c; color: #e0b296; }
html[data-bs-theme="dark"] .af-pct-pill.low { background: #321515; color: #dd8888; }
html[data-bs-theme="dark"] .af-pct-pill.zero { background: #131f2b; color: #8996aa; }
html[data-bs-theme="dark"] .af-cohort-row { border-bottom: 1px solid #192734; }
html[data-bs-theme="dark"] .af-cohort-label { color: #a6b2c3; }
html[data-bs-theme="dark"] .af-cohort-delta.up { color: #85dca5; }

/* ---- Quelle: modules/ads-alerts.js (5 Regeln) ---- */
html[data-bs-theme="dark"] .ads-alerts-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .ads-alerts-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .stat-box { background: #171b20; }
html[data-bs-theme="dark"] .alerts-table,
html[data-bs-theme="dark"] .alert-history { background: #1f242b; }
html[data-bs-theme="dark"] .alert-item { border-left: 3px solid #ffc107; background: #292211; }

/* ---- Quelle: modules/ads-automation.js (8 Regeln) ---- */
html[data-bs-theme="dark"] .ads-automation-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .ads-automation-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .automation-card { border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .ai-analysis-section .card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; }
html[data-bs-theme="dark"] .ai-analysis-section .card-body { background: rgba(31, 36, 43, 0.95); color: #d4d4d4; }
html[data-bs-theme="dark"] .automation-section,
html[data-bs-theme="dark"] .history-section,
html[data-bs-theme="dark"] .insights-section { background: #1f242b; }
html[data-bs-theme="dark"] .insight-card { background: #171b20; border-left: 4px solid #28a745; }
html[data-bs-theme="dark"] .form-check-input:checked { background-color: #28a745; border-color: #28a745; }

/* ---- Quelle: modules/ads-bulk.js (6 Regeln) ---- */
html[data-bs-theme="dark"] .ads-bulk-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .ads-bulk-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .bulk-action-selector { background: #171b20; }
html[data-bs-theme="dark"] .selection-area { background: #1f242b; }
html[data-bs-theme="dark"] .action-parameters { background: #171b20; }
html[data-bs-theme="dark"] .history-section { background: #1f242b; }

/* ---- Quelle: modules/ads-campaign-creator.js (7 Regeln) ---- */
html[data-bs-theme="dark"] .step:not(:last-child)::after { background: #2a3037; }
html[data-bs-theme="dark"] .step.active::after { background: #0d6efd; }
html[data-bs-theme="dark"] .step-icon { background: #2a3037; color: #ffffff; }
html[data-bs-theme="dark"] .step.active .step-icon { background: #0d6efd; }
html[data-bs-theme="dark"] .step-title { color: #959ca3; }
html[data-bs-theme="dark"] .step.active .step-title { color: #0d6efd; }
html[data-bs-theme="dark"] .recommendation-item { border-left: 4px solid #0d6efd; background: #171b20; }

/* ---- Quelle: modules/ads-campaigns.js (7 Regeln) ---- */
html[data-bs-theme="dark"] .ads-campaigns-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .ads-campaigns-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .filter-section { background: #171b20; }
html[data-bs-theme="dark"] .summary-card { background: #1f242b; }
html[data-bs-theme="dark"] .campaigns-table { background: #1f242b; }
html[data-bs-theme="dark"] .status-badge.active { background: #1d4627; color: #b8eac3; }
html[data-bs-theme="dark"] .status-badge.paused { background: #3f361a; color: #e5d4a5; }

/* ---- Quelle: modules/ads-dashboard.js (4 Regeln) ---- */
html[data-bs-theme="dark"] .ads-dashboard-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .ads-dashboard-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .account-selector { background: #1f242b; }
html[data-bs-theme="dark"] .campaign-table { background: #1f242b; }

/* ---- Quelle: modules/ads-keywords.js (4 Regeln) ---- */
html[data-bs-theme="dark"] .ads-keywords-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .ads-keywords-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .keywords-table { background: #1f242b; }
html[data-bs-theme="dark"] th { background-color: #171b20; }

/* ---- Quelle: modules/ads-reports.js (5 Regeln) ---- */
html[data-bs-theme="dark"] .ads-reports-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .ads-reports-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .report-table { background: #1f242b; }
html[data-bs-theme="dark"] .stat-card { background: #171b20; }
html[data-bs-theme="dark"] .summary-section { background: #1f242b; }

/* ---- Quelle: modules/agentSoftphone.js (78 Regeln) ---- */
html[data-bs-theme="dark"] .asp-brand-icon { color: #ffffff; }
html[data-bs-theme="dark"] .asp-nav-item.is-active { background: transparent !important; }
html[data-bs-theme="dark"] .asp-nav-item.is-disabled:hover { background: transparent !important; }
html[data-bs-theme="dark"] .asp-pill.is-active { background: rgba(45, 157, 120, 0.12); }
html[data-bs-theme="dark"] .asp-dial-input:focus { background: #1f242b; }
html[data-bs-theme="dark"] .asp-call-btn { color: #ffffff; border: none; }
html[data-bs-theme="dark"] .asp-switch-slider::before { background: #1f242b; }
html[data-bs-theme="dark"] .asp-field input:focus,
html[data-bs-theme="dark"] .asp-field select:focus { background: #1f242b; }
html[data-bs-theme="dark"] .asp-btn-primary { color: #ffffff; border: none; }
html[data-bs-theme="dark"] .asp-toast { color: #ffffff; }
html[data-bs-theme="dark"] .asp-ring-card { background: #1f242b; }
html[data-bs-theme="dark"] .asp-ring-pulse { background: linear-gradient(135deg, #2e6b94, #5b8fb9); color: #ffffff; }
html[data-bs-theme="dark"] .asp-ring-caller { color: #d4dce9; }
html[data-bs-theme="dark"] .asp-ring-restzeit { background: rgba(100, 116, 139, 0.12); color: #a6b2c3; }
html[data-bs-theme="dark"] .asp-ring-restzeit.is-knapp { background: rgba(220, 38, 38, 0.12); color: #d67373; }
html[data-bs-theme="dark"] .asp-ring-accept { background: #2d9d78; color: #ffffff; }
html[data-bs-theme="dark"] .asp-ring-accept:hover { background: #27896a; }
html[data-bs-theme="dark"] .asp-ring-decline { background: #d94452; color: #ffffff; }
html[data-bs-theme="dark"] .asp-ring-decline:hover { background: #be3744; }
html[data-bs-theme="dark"] .asp-incall-bar { background: #1a2332; color: #ffffff; }
html[data-bs-theme="dark"] .asp-incall-label { color: rgba(255, 255, 255, 0.55); }
html[data-bs-theme="dark"] .asp-incall-hangup { background: #d94452; color: #ffffff; border: none; }
html[data-bs-theme="dark"] .asp-incall-hangup:hover { background: #be3744; }
html[data-bs-theme="dark"] .asp-coaching-panel { background: var(--v2-surface, #131b26); border: 1px solid var(--v2-border, #222f3d); }
html[data-bs-theme="dark"] .asp-coaching-header { border-bottom: 1px solid var(--v2-border, #222f3d); color: #60a5fa; }
html[data-bs-theme="dark"] .asp-coaching-close { background: none; border: none; color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .asp-coaching-close:hover { color: #ffffff; }
html[data-bs-theme="dark"] .asp-coaching-welcome { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .asp-coaching-transcript { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .asp-coaching-transcript strong { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .asp-history-item { border-top: 1px solid rgba(94, 109, 127, 0.06); }
html[data-bs-theme="dark"] .asp-history-item.is-inbound .asp-history-icon { background: rgba(45, 157, 120, 0.12); }
html[data-bs-theme="dark"] .asp-history-item.is-outbound .asp-history-icon { background: rgba(46, 107, 148, 0.12); }
html[data-bs-theme="dark"] .asp-history-item.is-missed .asp-history-icon { background: rgba(217, 68, 82, 0.12); }
html[data-bs-theme="dark"] .asp-history-callback:hover { color: #ffffff; }
html[data-bs-theme="dark"] .asp-field input[type="range"]::-webkit-slider-thumb { border: 2px solid #1c2126; }
html[data-bs-theme="dark"] .asp-field input[type="range"]::-moz-range-thumb { border: 2px solid #1c2126; }
html[data-bs-theme="dark"] .asp-incall-controls { border-left: 1px solid rgba(28, 33, 38, 0.1); border-right: 1px solid rgba(28, 33, 38, 0.1); }
html[data-bs-theme="dark"] .asp-incall-ctrl { background: transparent; color: rgba(255, 255, 255, 0.85); border: none; }
html[data-bs-theme="dark"] .asp-incall-ctrl:hover { background: rgba(31, 36, 43, 0.1); color: #ffffff; }
html[data-bs-theme="dark"] .asp-incall-ctrl.is-active { background: rgba(217, 68, 82, 0.85); color: #ffffff; }
html[data-bs-theme="dark"] .asp-dtmf-display { background: rgba(31, 36, 43, 0.08); color: #ffffff; }
html[data-bs-theme="dark"] .asp-dtmf-key { background: rgba(31, 36, 43, 0.08); color: #ffffff; border: none; }
html[data-bs-theme="dark"] .asp-dtmf-key:hover { background: rgba(31, 36, 43, 0.16); }
html[data-bs-theme="dark"] .asp-dtmf-key:active { background: rgba(46, 107, 148, 0.6); }
html[data-bs-theme="dark"] .asp-modal-card { background: #1f242b; }
html[data-bs-theme="dark"] .asp-modal-header h3 { color: #d4dce9; }
html[data-bs-theme="dark"] .asp-modal-close { background: transparent; border: none; color: #93a0af; }
html[data-bs-theme="dark"] .asp-modal-close:hover { background: #19232d; }
html[data-bs-theme="dark"] .asp-modal-tabs { border-bottom: 1px solid #1d2935; }
html[data-bs-theme="dark"] .asp-modal-tab { background: transparent; border: none; color: #93a0af; }
html[data-bs-theme="dark"] .asp-modal-tab:hover { color: #d4dce9; }
html[data-bs-theme="dark"] .asp-modal-tab.is-active { color: #81b5d8; border-bottom-color: #2e6b94; }
html[data-bs-theme="dark"] .asp-modal-tabpane label { color: #d4dce9; }
html[data-bs-theme="dark"] .asp-modal-tabpane input,
html[data-bs-theme="dark"] .asp-modal-tabpane select { background: #19232d; border: 1px solid rgba(94, 109, 127, 0.12); color: #d4dce9; outline: none; }
html[data-bs-theme="dark"] .asp-modal-tabpane input:focus,
html[data-bs-theme="dark"] .asp-modal-tabpane select:focus { background: #1f242b; border-color: #2e6b94; }
html[data-bs-theme="dark"] .asp-modal-footer { border-top: 1px solid #1d2935; }
html[data-bs-theme="dark"] .asp-btn-secondary { background: #19232d; color: #93a0af; border: none; }
html[data-bs-theme="dark"] .asp-btn-secondary:hover { background: #202935; }
html[data-bs-theme="dark"] .asp-btn-secondary.is-playing { background: rgba(217, 68, 82, 0.1); }
html[data-bs-theme="dark"] .asp-btn-secondary.is-playing:hover { background: rgba(217, 68, 82, 0.18); }
html[data-bs-theme="dark"] .asp-offline-banner { background: rgba(217, 68, 82, 0.08); border: 1px solid rgba(217, 68, 82, 0.3); color: #dd8891; }
html[data-bs-theme="dark"] .asp-offline-retry { color: #ffffff; border: none; }
html[data-bs-theme="dark"] .asp-offline-retry:hover { background: #be3744; }
html[data-bs-theme="dark"] .asp-video-panel { background: #0f1720; color: #ffffff; }
html[data-bs-theme="dark"] .asp-video-header { background: rgba(31, 36, 43, 0.04); border-bottom: 1px solid rgba(28, 33, 38, 0.06); }
html[data-bs-theme="dark"] .asp-video-header i { color: #5b8fb9; }
html[data-bs-theme="dark"] .asp-video-close { background: transparent; border: none; color: rgba(255, 255, 255, 0.6); }
html[data-bs-theme="dark"] .asp-video-close:hover { background: rgba(31, 36, 43, 0.08); color: #ffffff; }
html[data-bs-theme="dark"] .asp-video-status-title { color: #ffffff; }
html[data-bs-theme="dark"] .asp-video-status-sub { color: rgba(255, 255, 255, 0.58); }
html[data-bs-theme="dark"] .asp-video-spinner { border: 2px solid rgba(28, 33, 38, 0.15); border-top-color: #5b8fb9; }
html[data-bs-theme="dark"] .asp-video-stream-wrap { background: #000000; }
html[data-bs-theme="dark"] .asp-video-stream { background: #000000; }
html[data-bs-theme="dark"] .asp-video-local { border: 2px solid rgba(28, 33, 38, 0.9); background: #1a2332; }
html[data-bs-theme="dark"] .asp-video-meta { background: rgba(31, 36, 43, 0.03); border-top: 1px solid rgba(28, 33, 38, 0.06); color: rgba(255, 255, 255, 0.55); }
html[data-bs-theme="dark"] .asp-video-panel[data-state="live"] .asp-video-meta { color: rgba(255, 255, 255, 0.85); }
html[data-bs-theme="dark"] .asp-incall-ctrl[data-action="video-request"].is-active { color: #ffffff !important; }

/* ---- Quelle: modules/agentsDetail-v2fix.js (75 Regeln) ---- */
html[data-bs-theme="dark"] .flow-node-active .flow-node-card { border-color: #198754 !important; background: rgba(25, 135, 84, 0.12) !important; }
html[data-bs-theme="dark"] .flow-node-active .flow-node-card::after { background: #198754; color: #ffffff; }
html[data-bs-theme="dark"] .flow-arrow-label { background: var(--bs-body-bg, #1f242b); border: 1px solid rgba(99, 102, 241, 0.35); color: var(--bs-primary, #6366f1); }
html[data-bs-theme="dark"] .flow-remove-x { border: 1px solid rgba(255, 255, 255, 0.12); background: #1f242b; color: #9ca3af; }
html[data-bs-theme="dark"] .flow-remove-x:hover { background: #dc3545; color: #ffffff; border-color: #dc3545; }
html[data-bs-theme="dark"] #flowEditorCard .fe-state { border: 1px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] #flowEditorCard .fe-start-badge { background: #198754; color: #ffffff; }
html[data-bs-theme="dark"] #flowEditorCard .fe-label { color: #a6b2c3; }
html[data-bs-theme="dark"] #flowEditorCard .fe-graph-wrap { border: 1px solid #282c34; background: #151c35; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node { background: #1f242b; border: 1px solid #202742; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node:hover { border-color: #6366f1; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node.start { background: #112a19; border-color: #198754; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-num { background: #6366f1; color: #ffffff; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-start { background: #198754; color: #ffffff; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-key { color: #a6b2c3; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-title { color: #cdd6e5; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-meta { color: #8996aa; }
html[data-bs-theme="dark"] #flowEditorCard .fe-sel-form { border: 1px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] .chat-message .cm-body { color: #d0d9e5; }
html[data-bs-theme="dark"] .chat-message.user-message .cm-sender { color: #649bd2; }
html[data-bs-theme="dark"] .chat-message.agent-message .cm-sender,
html[data-bs-theme="dark"] .chat-message.assistant-message .cm-sender,
html[data-bs-theme="dark"] .chat-message.success-message .cm-sender { color: #95d898; }
html[data-bs-theme="dark"] .chat-message.system-message .cm-sender { color: #d19462; }
html[data-bs-theme="dark"] .flow-chat-overlay { background: rgba(31, 36, 43, 0.97); border: 1px solid #1d243c; }
html[data-bs-theme="dark"] .flow-chat-ovl-head { background: linear-gradient(135deg,rgba(99, 102, 241, 0.1),rgba(99, 102, 241, 0.02)); border-bottom: 1px solid rgba(99, 102, 241, 0.15); color: #a6b2c3; }
html[data-bs-theme="dark"] .flow-chat-ovl-actions button:hover { background: rgba(255, 255, 255, 0.07); color: #b7c3d4; }
html[data-bs-theme="dark"] .flow-chat-overlay .team-chat-messages { border: none; background: #1f242b; color: #eeeeee; }
html[data-bs-theme="dark"] .team-chat-messages::-webkit-scrollbar-thumb { background: #252e4a; border: 2px solid #1c2126; }
html[data-bs-theme="dark"] #flowEditorCard .fe-graph-wrap { border: 1px solid #282c34; background: #101b25; background-image: linear-gradient(#1a2233 1px,transparent 1px),linear-gradient(90deg,#1a2233 1px,transparent 1px); }
html[data-bs-theme="dark"] #flowEditorCard .fe-zoom-bar { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] #flowEditorCard .fe-zoom-bar button { border: none; background: transparent; color: #a6b2c3; }
html[data-bs-theme="dark"] #flowEditorCard .fe-zoom-bar button:hover { background: #11172a; color: #4f46e5; }
html[data-bs-theme="dark"] #flowEditorCard .fe-zoom-val { color: #8996aa; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-head { border-bottom: 1px solid #192734; background: #152035; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node.start .fe-node-head { background: #112a19; border-bottom-color: #1c3b27; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-prompt { color: #8996aa; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-foot { border-top: 1px solid #192734; color: #8996aa; background: #151c35; }
html[data-bs-theme="dark"] .fe-modal-backdrop { background: rgba(15, 23, 42, 0.5); }
html[data-bs-theme="dark"] .fe-modal { background: #1f242b; }
html[data-bs-theme="dark"] .fe-modal-head { border-bottom: 1px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] .fe-modal .fe-sec-h { color: #6366f1; border-bottom: 1px solid #191f33; }
html[data-bs-theme="dark"] .fe-modal .fe-toolbox { border: 1px solid #282c34; background: #101b25; }
html[data-bs-theme="dark"] #flowEditorCard .fe-port { background: #1f242b; border: 2px solid #6366f1; }
html[data-bs-theme="dark"] #flowEditorCard .fe-port:hover { background: #6366f1; }
html[data-bs-theme="dark"] #flowEditorCard .fe-edge-ctrl { background: #1f242b; border: 1px solid #293647; color: #94a3b8; }
html[data-bs-theme="dark"] #flowEditorCard .fe-edge-ctrl:hover { border-color: #dc3545; color: #dc3545; background: #260f0f; }
html[data-bs-theme="dark"] #flowEditorCard .fe-edge-lbl { color: #d89377; background: #2b2011; border: 1px solid #4d3a25; }
html[data-bs-theme="dark"] .fe-modal details.fe-acc { border: 1px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] .fe-modal .fe-acc-count { background: #11172a; color: #4f46e5; }
html[data-bs-theme="dark"] .fe-modal .fe-modal-foot-actions { border-top: 1px solid #191f33; }
html[data-bs-theme="dark"] body { background: #171b20; }
html[data-bs-theme="dark"] .box { background: #1f242b; }
html[data-bs-theme="dark"] .spinner { border: 4px solid #252c32; border-top: 4px solid #0d6efd; }
html[data-bs-theme="dark"] h1 { color: #dce0e3; }
html[data-bs-theme="dark"] p { color: #959ca3; }
html[data-bs-theme="dark"] body { color: #dce0e3; background: #171b20; }
html[data-bs-theme="dark"] .page { background: #1f242b; }
html[data-bs-theme="dark"] .no-print button { background: #0d6efd; color: #ffffff; border: none; }
html[data-bs-theme="dark"] header.report-head .brand { color: #959ca3; }
html[data-bs-theme="dark"] header.report-head .meta { color: #959ca3; }
html[data-bs-theme="dark"] .score-card { color: #ffffff; }
html[data-bs-theme="dark"] .subs { background: #171b20; }
html[data-bs-theme="dark"] .cleanup-note { background: #1a3940; color: #bce4ec; border-left: 3px solid #0dcaf0; }
html[data-bs-theme="dark"] section h2 { border-bottom: 1px solid #252c32; }
html[data-bs-theme="dark"] .rec-item { border-bottom: 1px solid #21282e; }
html[data-bs-theme="dark"] .rec-detail { color: #b5bbc1; }
html[data-bs-theme="dark"] .badge-mini { background: #21272d; color: #b5bbc1; }
html[data-bs-theme="dark"] .muted { color: #959ca3; }
html[data-bs-theme="dark"] footer.report-foot { border-top: 1px solid #2a3138; color: #959ca3; }
html[data-bs-theme="dark"] .template-card { border: 2px solid #2a3138; }
html[data-bs-theme="dark"] .template-card:hover { border-color: #007bff !important; }
html[data-bs-theme="dark"] .template-card.selected { border-color: #007bff !important; background: linear-gradient(135deg, rgba(0, 123, 255, 0.08) 0%, rgba(0, 123, 255, 0.12) 100%) !important; }
html[data-bs-theme="dark"] .template-card.selected::before { border-color: transparent #007bff transparent transparent; }
html[data-bs-theme="dark"] .template-card.selected::after { color: #ffffff; }
html[data-bs-theme="dark"] .template-card.selected .fa-2x { color: #007bff !important; }
html[data-bs-theme="dark"] .template-card.selected .card-title { color: #007bff !important; }

/* ---- Quelle: modules/agentsDetail.js (16 Regeln) ---- */
html[data-bs-theme="dark"] .flow-chip { background: rgba(108, 117, 125, 0.12); color: var(--bs-secondary,#959ca3); }
html[data-bs-theme="dark"] .flow-chip-flow { background: rgba(99, 102, 241, 0.15); color: #4f46e5; }
html[data-bs-theme="dark"] .flow-chip-tool { background: rgba(13, 202, 240, 0.15); color: #86cedc; }
html[data-bs-theme="dark"] .flow-chip-wissen { background: rgba(25, 135, 84, 0.13); color: #a5e5c7; }
html[data-bs-theme="dark"] .flow-chip-tel { background: rgba(255, 193, 7, 0.2); color: #e1cf98; }
html[data-bs-theme="dark"] .flow-chip-aus { background: rgba(220, 53, 69, 0.13); color: #d56f79; }
html[data-bs-theme="dark"] .flow-hoverkarte { background: var(--bs-body-bg,#1f242b); border: 1px solid rgba(99, 102, 241, 0.3); }
html[data-bs-theme="dark"] .flow-hoverkarte .hk-titel { color: var(--bs-body-color,#dce0e3); }
html[data-bs-theme="dark"] .flow-hoverkarte .hk-rolle { color: var(--bs-secondary,#959ca3); }
html[data-bs-theme="dark"] .flow-hoverkarte .hk-zeile { border-top: 1px solid rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] .flow-hoverkarte .hk-k { color: var(--bs-secondary,#959ca3); }
html[data-bs-theme="dark"] .flow-hoverkarte .hk-fuss { border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--bs-secondary,#959ca3); }
html[data-bs-theme="dark"] #flowEditorCard .fe-node.isend { border-color: #293647; }
html[data-bs-theme="dark"] #flowEditorCard .fe-node-end { color: #8996aa; }
html[data-bs-theme="dark"] #flowEditorCard .fe-legend { color: #8996aa; }
html[data-bs-theme="dark"] #flowEditorCard .fe-edge-ctrl.has-when::after { background: #fb923c; border: 1px solid #1c2126; }

/* ---- Quelle: modules/aiTeam.js (9 Regeln) ---- */
html[data-bs-theme="dark"] ' + '.vo-orgb li::before,
html[data-bs-theme="dark"] .vo-orgb li::after { border-top: 2px solid #2d343c; }
html[data-bs-theme="dark"] ' + '.vo-orgb li::after { border-left: 2px solid #2d343c; }
html[data-bs-theme="dark"] ' + '.vo-orgb li:last-child::before { border-right: 2px solid #2d343c; }
html[data-bs-theme="dark"] ' + '.vo-orgkasten { background: #1f242b; }
html[data-bs-theme="dark"] ' + '.vo-orgrolle { color: #959ca3; }
html[data-bs-theme="dark"] ' + '.vo-orgfuss { color: #959ca3; border-top: 1px solid #21282e; }
html[data-bs-theme="dark"] ' + '.vo-orgzahl { background: #1b232a; color: #b5bbc1; }
html[data-bs-theme="dark"] ' + '.vo-orgzahn:hover { color: #0d6efd; }
html[data-bs-theme="dark"] ' + '.vo-orgich { background: #171028; border-color: #291f40; }

/* ---- Quelle: modules/analytics.js (29 Regeln) ---- */
html[data-bs-theme="dark"] .dash-header-left h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .dash-header-left p { color: #a3adb5; }
html[data-bs-theme="dark"] .dash-date-filter { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .dash-date-filter button { border: none; background: transparent; color: #a3adb5; }
html[data-bs-theme="dark"] .dash-date-filter button.active { background: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .dash-date-filter button:hover:not(.active) { background: #101b25; color: #d8d8d8; }
html[data-bs-theme="dark"] .dash-btn-icon { border: 1px solid #1f2b3c; background: #1f242b; color: #a3adb5; }
html[data-bs-theme="dark"] .dash-btn-icon:hover { background: #101b25; color: #d8d8d8; }
html[data-bs-theme="dark"] .hero-card { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .hero-card.accent .hero-icon { background: #13242f; color: #7a9db5; }
html[data-bs-theme="dark"] .hero-card.green .hero-icon { background: #1a402d; color: #7bd9b9; }
html[data-bs-theme="dark"] .hero-card.orange .hero-icon { background: #443c1c; color: #f59e0b; }
html[data-bs-theme="dark"] .hero-card.purple .hero-icon { background: #18132e; color: #8b5cf6; }
html[data-bs-theme="dark"] .hero-card.vo .hero-icon { background: #152834; color: #61aed1; }
html[data-bs-theme="dark"] .hero-trend.up { background: #1a402d; color: #7bd9b9; }
html[data-bs-theme="dark"] .hero-trend.down { background: #321515; color: #ef4444; }
html[data-bs-theme="dark"] .hero-trend.neutral { background: #101b25; color: #94a3b8; }
html[data-bs-theme="dark"] .hero-value { color: #d8d8d8; }
html[data-bs-theme="dark"] .hero-label { color: #a3adb5; }
html[data-bs-theme="dark"] .dv2-chart-card { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .dv2-panel { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .dv2-badge-accent { background: #13242f; color: #7a9db5; }
html[data-bs-theme="dark"] .dv2-badge-green { background: #1a402d; color: #7bd9b9; }
html[data-bs-theme="dark"] .dv2-badge-orange { background: #443c1c; color: #f59e0b; }
html[data-bs-theme="dark"] .top-table th { color: #94a3b8; border-bottom: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .top-table td { border-bottom: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .top-table tr:hover td { background: #101b25; }
html[data-bs-theme="dark"] .caller-avatar { background: #13242f; color: #7a9db5; }
html[data-bs-theme="dark"] .recognition-bar { background: #1d2837; }

/* ---- Quelle: modules/calendar.js (61 Regeln) ---- */
html[data-bs-theme="dark"] .cal-v2 .cal-heading h1 { color: #d0d9e5; }
html[data-bs-theme="dark"] .cal-v2 .cal-context { color: #9298a4; }
html[data-bs-theme="dark"] .cal-v2 .cal-filterbar { background: #1f242b; border: 1px solid #202833; }
html[data-bs-theme="dark"] .cal-v2 .cal-pill { border: 1px solid #282c34; background: #1f242b; color: #bac3d0; }
html[data-bs-theme="dark"] .cal-v2 .cal-pill.active { color: #ffffff; }
html[data-bs-theme="dark"] .cal-v2 .cal-manage-btn { border: 1px solid #282c34; background: #151b20; color: #abb3bf; }
html[data-bs-theme="dark"] .cal-v2 .cal-manage-panel { background: #1f242b; border: 1px solid #202833; }
html[data-bs-theme="dark"] .cal-v2 .cal-manage-hint { color: #9298a4; }
html[data-bs-theme="dark"] .cal-v2 .cal-manage-panel .list-group-item { border-bottom: 1px solid #21252c; }
html[data-bs-theme="dark"] .cal-v2 .cal-board { background: #1f242b; border: 1px solid #202833; }
html[data-bs-theme="dark"] .cal-v2 .cal-legend { color: #abb3bf; }
html[data-bs-theme="dark"] .cal-v2 .fc .fc-col-header-cell { background: #131a20; }
html[data-bs-theme="dark"] .cal-v2 .fc .fc-col-header-cell-cushion { color: #bac3d0; }
html[data-bs-theme="dark"] .cal-v2 .fc .fc-timegrid-col.fc-day-today { background: rgba(255, 255, 255, 0.012) !important; }
html[data-bs-theme="dark"] .cal-v2 .fc-theme-standard td,
html[data-bs-theme="dark"] .cal-v2 .fc-theme-standard th { border-color: #202932; }
html[data-bs-theme="dark"] .cal-v2 .fc .fc-toolbar-title { color: #bac3d0; }
html[data-bs-theme="dark"] .cal-v2 .fc .fc-button { background: #1f242b; border-color: #282c34; color: #abb3bf; }
html[data-bs-theme="dark"] .cal-v2 .fc .fc-button:hover { background: #151b20; border-color: #31363e; color: #dee4f1; }
html[data-bs-theme="dark"] .cal-v2 .fc .fc-button-primary:not(:disabled).fc-button-active,
html[data-bs-theme="dark"] .cal-v2 .fc .fc-button-primary:not(:disabled):active { color: #ffffff; }
html[data-bs-theme="dark"] .cal-v2 .cal-ev { color: #ffffff; }
html[data-bs-theme="dark"] .cal-v2 .cal-ev-title { color: #ffffff; }
html[data-bs-theme="dark"] .cal-v2 .cal-ev-sub { color: rgba(255, 255, 255, 0.85); }
html[data-bs-theme="dark"] .cal-v2 .calendar-actions .btn { border: 1px solid #282c34; }
html[data-bs-theme="dark"] .cal-v2 .calendar-actions .btn-secondary { background: #1f242b !important; color: #bac3d0 !important; border-color: #282c34 !important; }
html[data-bs-theme="dark"] .cal-v2 .calendar-actions .btn-secondary:hover { background: #151b20 !important; }
html[data-bs-theme="dark"] .cal-v2 .calendar-actions .btn-primary { color: #ffffff !important; }
html[data-bs-theme="dark"] .calendar-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .calendar-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .fc { background-color: #1f242b; }
html[data-bs-theme="dark"] .pausezeit-item { background-color: #171b20; border-left: 3px solid #6c757d; }
html[data-bs-theme="dark"] .pausezeit-item:hover { background-color: #21272d; }
html[data-bs-theme="dark"] .fc-button-primary { background-color: #2e2e2e !important; border-color: #2e2e2e !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .fc-button-primary:hover { background-color: #1a1a1a !important; border-color: #1a1a1a !important; }
html[data-bs-theme="dark"] .fc-timegrid-slot { border-bottom: 1px solid #2a313a !important; }
html[data-bs-theme="dark"] .calendar-scroll-container::-webkit-scrollbar-track { background: #1e2329; }
html[data-bs-theme="dark"] .calendar-scroll-container::-webkit-scrollbar-thumb { background-color: #b3bf4b; border: 2px solid #232930; }
html[data-bs-theme="dark"] .calendar-header { color: #ffffff; }
html[data-bs-theme="dark"] .cal-ne .ne-topbar h1 { color: #d0d9e5; }
html[data-bs-theme="dark"] .cal-ne .ne-topbar .ne-sub { color: #9298a4; }
html[data-bs-theme="dark"] .cal-ne .ne-mode { background: #1f242b; border: 2px solid #282c34; }
html[data-bs-theme="dark"] .cal-ne .ne-mode-title { color: #d0d9e5; }
html[data-bs-theme="dark"] .cal-ne .ne-mode-sub { color: #9298a4; }
html[data-bs-theme="dark"] .cal-ne .card { border: 1px solid #282c34; }
html[data-bs-theme="dark"] .cal-ne .card-header { background: #1f242b; border-bottom: 1px solid #24272d; color: #d0d9e5; }
html[data-bs-theme="dark"] .cal-ne .ne-fieldlabel { color: #9298a4; }
html[data-bs-theme="dark"] .cal-ne .ne-pill { border: 1px solid #2e343b; background: #1f242b; color: #bac3d0; }
html[data-bs-theme="dark"] .cal-ne .ne-pill.active { color: #ffffff; }
html[data-bs-theme="dark"] .cal-ne .ne-patternnote { color: #9298a4; }
html[data-bs-theme="dark"] .cal-ne .ne-callist { border: 1px solid #282c34; }
html[data-bs-theme="dark"] .cal-ne .ne-preview-table th { color: #9298a4; border-bottom: 1px solid #242931; }
html[data-bs-theme="dark"] .cal-ne .ne-preview-table td { border-bottom: 1px solid #21252c; }
html[data-bs-theme="dark"] .cal-ne .ne-badge-free { background: #153424; color: #9de3c0; }
html[data-bs-theme="dark"] .cal-ne .ne-badge-busy { background: #2d1212; color: #d77b75; }
html[data-bs-theme="dark"] .cal-ne .ne-badge-unknown { background: #1b2126; color: #9298a4; }
html[data-bs-theme="dark"] .cal-ne .ne-hint { color: #9298a4; border-top: 1px solid #24272d; }
html[data-bs-theme="dark"] .cal-ne .ne-footer { border-top: 1px solid #24272d; }
html[data-bs-theme="dark"] .cal-ne .ne-footer .ne-footer-note { color: #9298a4; }
html[data-bs-theme="dark"] .cal-ne .ne-stat { background: #1f242b; border: 1px solid #282c34; }
html[data-bs-theme="dark"] .cal-ne .ne-stat-label { color: #9298a4; }
html[data-bs-theme="dark"] .cal-ne .ne-stat-value { color: #d0d9e5; }
html[data-bs-theme="dark"] .cal-ne .ne-stat-sub { color: #9298a4; }

/* ---- Quelle: modules/callAnalysis.js (6 Regeln) ---- */
html[data-bs-theme="dark"] .markdown-content th,
html[data-bs-theme="dark"] .markdown-content td { border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .markdown-content th { background-color: #171b20; }
html[data-bs-theme="dark"] .markdown-content tr:nth-child(even) { background-color: #1c2127; }
html[data-bs-theme="dark"] .metric-card { background-color: #171b20; }
html[data-bs-theme="dark"] .metric-card h6 { color: #b5bbc1; }
html[data-bs-theme="dark"] .metric-subtitle { color: #959ca3; }

/* ---- Quelle: modules/callDetail.js (31 Regeln) ---- */
html[data-bs-theme="dark"] .cd-iconbtn { border: 1px solid #27303a; background: #1f242b; color: #adb7c0; }
html[data-bs-theme="dark"] .cd-iconbtn:hover { background: #171e25; }
html[data-bs-theme="dark"] .cd-title { color: #d4dce5; }
html[data-bs-theme="dark"] .cd-card { background: #1f242b; border: 1px solid #242d35; }
html[data-bs-theme="dark"] .cd-card-head { border-bottom: 1px solid #202932; color: #c9d1da; }
html[data-bs-theme="dark"] .cd-badge { color: #adb7c0; background: #172029; }
html[data-bs-theme="dark"] .cd-msg-unknown .cd-avatar { background: #394450; }
html[data-bs-theme="dark"] .cd-avatar { color: #ffffff; }
html[data-bs-theme="dark"] .cd-bubble { color: #ccd5df; }
html[data-bs-theme="dark"] .cd-msg-agent .cd-bubble { background: #153323; }
html[data-bs-theme="dark"] .cd-msg-user .cd-bubble { background: #1b2126; }
html[data-bs-theme="dark"] .cd-msg-unknown .cd-bubble { background: #181c20; color: #9ea7b2; }
html[data-bs-theme="dark"] .cd-tool { background: #282410; border: 1px dashed #494126; color: #bbb4a4; }
html[data-bs-theme="dark"] .cd-tool-bits { color: #a49e8e; }
html[data-bs-theme="dark"] .cd-tool-fail { background: #2a1111; border-color: #462222; color: #c77a7a; }
html[data-bs-theme="dark"] .cd-kv { border-bottom: 1px solid #20272e; }
html[data-bs-theme="dark"] .cd-v { color: #d4dce5; }
html[data-bs-theme="dark"] .cd-summary-text { color: #bbc4ce; }
html[data-bs-theme="dark"] .cd-line { border-bottom: 1px solid #20272e; }
html[data-bs-theme="dark"] .cd-line-main { color: #bbc4ce; }
html[data-bs-theme="dark"] .cd-pill { background: #152d20; color: #95d7bb; }
html[data-bs-theme="dark"] .cd-pill-fail { background: #2b1212; color: #c7716f; }
html[data-bs-theme="dark"] .cd-num { background: #2f9e6e; color: #ffffff; }
html[data-bs-theme="dark"] .cd-appt-fail .cd-num { background: #394450; }
html[data-bs-theme="dark"] .cd-gap { color: #bbc4ce; }
html[data-bs-theme="dark"] .cd-tool-unk { background: #171b23; border-color: #282f38; color: #929aa4; }
html[data-bs-theme="dark"] .cd-tool-rej { background: #2b2212; border-color: #4e4126; color: #debf8d; }
html[data-bs-theme="dark"] .cd-tool-rej-txt { color: #d7b677; }
html[data-bs-theme="dark"] .cd-summary-note { border-top: 1px dashed #272f36; color: #8a95a1; }
html[data-bs-theme="dark"] .cd-cut { color: #cdb48a; background: #322c15; }
html[data-bs-theme="dark"] .cd-kv-long .cd-v { color: #bbc4ce; }

/* ---- Quelle: modules/callSummary.js (32 Regeln) ---- */
html[data-bs-theme="dark"] #callSummariesContainer.table-view .call-summary-table th,
html[data-bs-theme="dark"] #callSummariesContainer.table-view .call-summary-table td { border-top: 1px solid #2a3138; }
html[data-bs-theme="dark"] #callSummariesContainer.table-view .call-summary-table thead th { border-bottom: 2px solid #2a3138; background-color: #171b20; }
html[data-bs-theme="dark"] #callSummariesContainer.table-view .call-summary-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] #callSummariesContainer.table-view .processed-call:hover { background-color: rgba(0, 200, 0, 0.2) !important; }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .call-summary-card { background-color: #1f242b; border: 1px solid #2a3138; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .call-summary-card .card-header { background-color: #171b20; border-bottom: 1px solid #2a3138; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .call-summary-card .card-date { color: #959ca3; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .call-summary-card .card-summary-text { color: #c9ced3; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .call-summary-card .card-footer { background-color: #171b20; border-top: 1px solid #2a3138; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .call-summary-card .card-indicators { color: #959ca3; } }
html[data-bs-theme="dark"] #callSummariesContainer .btn-audio { background-color: #28a745 !important; border-color: #28a745 !important; color: #ffffff !important; }
html[data-bs-theme="dark"] #callSummariesContainer .btn-audio:hover { background-color: #218838 !important; border-color: #1e7e34 !important; }
html[data-bs-theme="dark"] .audio-controls-container { background-color: #171b20; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .audio-control-btn { border: 1px solid #6c757d !important; background-color: #6c757d !important; color: #ffffff !important; }
html[data-bs-theme="dark"] .audio-time-display { color: #b5bbc1; }
html[data-bs-theme="dark"] .caller-thread-row { background: #1f242b; border: 1px solid #2a3138; border-left: 4px solid #6c757d; }
html[data-bs-theme="dark"] .caller-thread-row:hover { background-color: rgba(0, 123, 255, 0.04); }
html[data-bs-theme="dark"] .caller-thread-row .thread-name { color: #dce0e3; }
html[data-bs-theme="dark"] .caller-thread-row .thread-phone { color: #959ca3; }
html[data-bs-theme="dark"] .caller-thread-row .badge-count { background-color: #21272d; color: #b5bbc1; }
html[data-bs-theme="dark"] .caller-thread-row.has-unprocessed .badge-count { background-color: #3d2919; color: #dba983; }
html[data-bs-theme="dark"] .caller-thread-row.thread-urgent .badge-count { background-color: #3d191c; color: #e0939a; }
html[data-bs-theme="dark"] .caller-thread-row .badge-repeat { background-color: #dc3545; color: #ffffff; }
html[data-bs-theme="dark"] .caller-thread-row .thread-last { color: #959ca3; }
html[data-bs-theme="dark"] .caller-thread-row .thread-snippet { color: #b5bbc1; }
html[data-bs-theme="dark"] .caller-thread-detail { border-top: 1px dashed #2a3138; }
html[data-bs-theme="dark"] .caller-thread-detail .thread-call-item { background: #171b20; }
html[data-bs-theme="dark"] .caller-thread-detail .thread-call-item:hover { background: #11192a; }
html[data-bs-theme="dark"] .caller-thread-detail .thread-call-item.processed { background: #1d4627; }
html[data-bs-theme="dark"] .caller-thread-detail .call-row-date { color: #959ca3; }
html[data-bs-theme="dark"] .caller-thread-detail .call-row-snippet { color: #b5bbc1; }
html[data-bs-theme="dark"] .tool-entry-header:hover { background: #20394d !important; }

/* ---- Quelle: modules/cancelReason.js (15 Regeln) ---- */
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-box { background: #1f242b; color: #d0d9e5; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-title { color: #dee4f1; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-sub { color: #abb3bf; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-opts { border: 1px solid #282c34; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-opt:hover { background: #1b1e24; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-lbl { color: #bac3d0; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-text { border: 1px solid #31363e; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-text:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-note { color: #d67373; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-btn-ghost { background: #1f242b; border-color: #31363e; color: #bac3d0; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-btn-ghost:hover { background: #151b20; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-btn-danger { background: #dc2626; color: #ffffff; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-btn-danger:hover:not(:disabled) { background: #b91c1c; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-btn-danger:disabled { background: #5b2525; }
html[data-bs-theme="dark"] #cancelReasonOverlay .cr-hint { color: #9298a4; }

/* ---- Quelle: modules/contactDetail.js (15 Regeln) ---- */
html[data-bs-theme="dark"] .cd-chip { color: #959ca3; }
html[data-bs-theme="dark"] .cd-sec:not(:first-child) { border-top: 1px solid #202632; }
html[data-bs-theme="dark"] .cd-save { background: #1f242b; border-top: 1px solid #202632; }
html[data-bs-theme="dark"] .cd-more { background: none; color: #619cd1; }
html[data-bs-theme="dark"] .bc-panel { border: 1px solid #252f3c; background: linear-gradient(180deg,#152035 0%,#121d28 100%); }
html[data-bs-theme="dark"] .bc-title { color: #bbcada; }
html[data-bs-theme="dark"] .bc-tool { border: 1px solid #26313c; background: #1f242b; color: #a5b1c2; }
html[data-bs-theme="dark"] .bc-tool:hover { border-color: #34404f; }
html[data-bs-theme="dark"] .bc-tool.on { color: #ffffff; border-color: transparent; }
html[data-bs-theme="dark"] .bc-tool.on .bc-dot { background: #1f242b !important; }
html[data-bs-theme="dark"] .bc-card { background: #1f242b; border: 1px solid #212c38; }
html[data-bs-theme="dark"] .bc-card:hover { border-color: #2a3a4c; }
html[data-bs-theme="dark"] .bc-card.bc-has { border-color: #2b3d52; }
html[data-bs-theme="dark"] .bc-card.bc-has .bc-label { color: #a7b8cd; }
html[data-bs-theme="dark"] .bc-legend span { color: #95a2b2; }

/* ---- Quelle: modules/contacts cache.js (4 Regeln) ---- */
html[data-bs-theme="dark"] .pagination .page-link { color: #959ca3; background-color: #1f242b; border-color: #2a3138; }
html[data-bs-theme="dark"] .pagination .page-link:hover { color: #b5bbc1; background-color: #21272d; border-color: #2a3138; }
html[data-bs-theme="dark"] .pagination .page-item.active .page-link { color: #ffffff; background-color: #6c757d; border-color: #6c757d; }
html[data-bs-theme="dark"] .pagination .page-item.disabled .page-link { color: #adb5bd; background-color: #1f242b; border-color: #2a3138; }

/* ---- Quelle: modules/contacts-mobile.js (6 Regeln) ---- */
html[data-bs-theme="dark"] .mobile-contact-card { background: #1f242b; }
html[data-bs-theme="dark"] .mobile-contact-name { color: #bbcada; }
html[data-bs-theme="dark"] .mobile-contact-info { color: #a8a8a8; }
html[data-bs-theme="dark"] .mobile-contact-phone:active { color: #89b1dd; }
html[data-bs-theme="dark"] .mobile-contacts-counter { color: #a8a8a8; background: #171b20; }
html[data-bs-theme="dark"] .mobile-search-box { background: #1f242b; }

/* ---- Quelle: modules/contacts.js (3 Regeln) ---- */
html[data-bs-theme="dark"] .contact-avatar { color: #ffffff; }
html[data-bs-theme="dark"] .loading-overlay { background-color: rgba(31, 36, 43, 0.8); }
html[data-bs-theme="dark"] .spinner-container { background-color: #1f242b; }

/* ---- Quelle: modules/deals.js (21 Regeln) ---- */
html[data-bs-theme="dark"] .deals-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .deals-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .kanban-column { background: #171b20; }
html[data-bs-theme="dark"] .kanban-column-header { background: #1f242b; }
html[data-bs-theme="dark"] .kanban-column-header .badge { background: #2e2e2e !important; color: #ffffff; }
html[data-bs-theme="dark"] .kanban-column-extra { background: #2f2713; border: 1px dashed #e0c07a; }
html[data-bs-theme="dark"] .deal-card { background: #1f242b; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .deal-card:hover { border-color: #98b8cc; }
html[data-bs-theme="dark"] .deal-title { color: #d8d8d8; }
html[data-bs-theme="dark"] .delete-deal:hover { background: rgba(220, 53, 69, 0.1); }
html[data-bs-theme="dark"] .deal-info i { color: #959ca3; }
html[data-bs-theme="dark"] .deal-value { color: #d8d8d8; border-top: 1px solid #232930; }
html[data-bs-theme="dark"] .stats-card { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .stats-card h5 { color: #959ca3; }
html[data-bs-theme="dark"] .stats-card p { color: #d8d8d8; }
html[data-bs-theme="dark"] .search-results { background: #1f242b; border: 1px solid #2c333c; }
html[data-bs-theme="dark"] .search-result { border-bottom: 1px solid #242a31; }
html[data-bs-theme="dark"] .search-result:hover { background: #171b20; }
html[data-bs-theme="dark"] .input-group .form-control:focus { border-right: 1px solid #2b3e5a; }
html[data-bs-theme="dark"] .input-group .input-group-text { background-color: #171b20; color: #959ca3; }
html[data-bs-theme="dark"] .no-results { color: #a8a8a8; }

/* ---- Quelle: modules/domainManagement.js (3 Regeln) ---- */
html[data-bs-theme="dark"] .domain-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .domain-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .sidebar-toggle i.fa-bars,
html[data-bs-theme="dark"] .sidebar2 .sidebar-toggle i.fa-bars,
html[data-bs-theme="dark"] .fa-bars { color: #d4d4d4 !important; }

/* ---- Quelle: modules/emailAiAgent.js (2 Regeln) ---- */
html[data-bs-theme="dark"] .emailaiagent-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .emailaiagent-header h1 { color: #d8d8d8; }

/* ---- Quelle: modules/employees.js (2 Regeln) ---- */
html[data-bs-theme="dark"] .employees-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .employees-header h1 { color: #d8d8d8; }

/* ---- Quelle: modules/erp.js (21 Regeln) ---- */
html[data-bs-theme="dark"] .zs-karte { background: var(--v2-surface-card, #1f242b); border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .zs-karte::before { background: var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .zs-karte.is-laeuft::before { background: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .zs-karte.is-pause::before { background: #b45309; }
html[data-bs-theme="dark"] .zs-karte.is-laeuft .zs-punkt { background: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .zs-karte.is-pause .zs-punkt { background: #b45309; }
html[data-bs-theme="dark"] .zs-zustand { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .zs-zeit { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .zs-zeit .zs-sek { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .zs-karte.is-leer .zs-zeit { color: var(--v2-text-muted, #8a97a8); }
html[data-bs-theme="dark"] .zs-minute { background: var(--v2-surface-high, #202935); }
html[data-bs-theme="dark"] .zs-minute > span { background: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .zs-karte.is-pause .zs-minute > span { background: #b45309; }
html[data-bs-theme="dark"] .zs-meter { border-top: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .zs-meter-spur { background: var(--v2-surface-high, #202935); }
html[data-bs-theme="dark"] .zs-meter-spur > span { background: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .zs-meter-spur.is-ueber > span { background: #b45309; }
html[data-bs-theme="dark"] .zs-meter-text { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .v2-layout #erp-content .zs-karte .form-select,
html[data-bs-theme="dark"] .v2-layout #erp-content .zs-karte .form-control,
html[data-bs-theme="dark"] .zs-karte .form-select,
html[data-bs-theme="dark"] .zs-karte .form-control { border: 1px solid rgba(94, 109, 127, 0.28) !important; background-color: var(--v2-surface-card, #1f242b) !important; color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .v2-layout #erp-content .zs-karte .form-select:focus,
html[data-bs-theme="dark"] .v2-layout #erp-content .zs-karte .form-control:focus,
html[data-bs-theme="dark"] .zs-karte .form-select:focus,
html[data-bs-theme="dark"] .zs-karte .form-control:focus { border-color: var(--v2-primary, #2e6b94) !important; }
html[data-bs-theme="dark"] .zs-verwerfen:hover,
html[data-bs-theme="dark"] .zs-verwerfen:focus-visible { color: var(--v2-danger, #d94452) !important; }

/* ---- Quelle: modules/geminiSupportButton.js (21 Regeln) ---- */
html[data-bs-theme="dark"] .support-call-overlay { background: #1f242b; }
html[data-bs-theme="dark"] .call-header { border-bottom: 1px solid #2a313a; }
html[data-bs-theme="dark"] .call-status { color: #a8a8a8; }
html[data-bs-theme="dark"] .transcript-container::-webkit-scrollbar-track { background: #1d2228; }
html[data-bs-theme="dark"] .transcript-container::-webkit-scrollbar-thumb { background: #888888; }
html[data-bs-theme="dark"] .transcript-container::-webkit-scrollbar-thumb:hover { background: #555555; }
html[data-bs-theme="dark"] .transcript-message.user { background: #152632; }
html[data-bs-theme="dark"] .transcript-message.model { background: #1a1f24; }
html[data-bs-theme="dark"] .text-input-container { background: #171b20; border: 1px solid #2c333c; }
html[data-bs-theme="dark"] .text-input { border: 1px solid #2c333c; outline: none; }
html[data-bs-theme="dark"] .text-input:focus { border-color: #4285f4; }
html[data-bs-theme="dark"] .text-send-btn { border: none; background: #4285f4; color: #ffffff; }
html[data-bs-theme="dark"] .text-send-btn:hover { background: #357ae8; }
html[data-bs-theme="dark"] .text-send-btn:disabled { background: #39434f; }
html[data-bs-theme="dark"] .safari-notice { color: #a8a8a8; background: #3f361a; }
html[data-bs-theme="dark"] .hangup-btn { background: #ea4335; color: #ffffff; }
html[data-bs-theme="dark"] .hangup-btn:hover { background: #c5221f; }
html[data-bs-theme="dark"] .screen-share-btn { background: #4285f4; color: #ffffff; }
html[data-bs-theme="dark"] .screen-share-btn:hover { background: #3367d6; }
html[data-bs-theme="dark"] .screen-share-btn.active { background: #10b981; }
html[data-bs-theme="dark"] .screen-share-btn.active:hover { background: #059669; }

/* ---- Quelle: modules/heygenAvatars.js (15 Regeln) ---- */
html[data-bs-theme="dark"] .heygen-avatar-card { border: 2px solid var(--border-color, #2a313a); background: var(--card-bg, #1f242b); }
html[data-bs-theme="dark"] .heygen-avatar-card:hover { border-color: #2e2e2e; }
html[data-bs-theme="dark"] .heygen-avatar-card.selected { border-color: #2e2e2e; background: var(--primary-light, #13212f); }
html[data-bs-theme="dark"] .heygen-avatar-thumbnail { background: #1a1f24; }
html[data-bs-theme="dark"] .heygen-avatar-thumbnail .video-badge { background: rgba(0, 0, 0, 0.7); color: #ffffff; }
html[data-bs-theme="dark"] .heygen-avatar-info .avatar-gender { color: #a8a8a8; }
html[data-bs-theme="dark"] .heygen-modal { background: rgba(0, 0, 0, 0.5); }
html[data-bs-theme="dark"] .heygen-modal-content { background: var(--card-bg, #1f242b); }
html[data-bs-theme="dark"] .heygen-modal-header { border-bottom: 1px solid var(--border-color, #2a313a); }
html[data-bs-theme="dark"] .heygen-modal-close { background: none; border: none; color: #a8a8a8; }
html[data-bs-theme="dark"] .heygen-modal-filters { border-bottom: 1px solid var(--border-color, #2a313a); }
html[data-bs-theme="dark"] .heygen-modal-filters input,
html[data-bs-theme="dark"] .heygen-modal-filters select { border: 1px solid var(--border-color, #2a313a); }
html[data-bs-theme="dark"] .heygen-modal-voice { border-top: 1px solid var(--border-color, #2a313a); }
html[data-bs-theme="dark"] .heygen-modal-voice select { border: 1px solid var(--border-color, #2a313a); }
html[data-bs-theme="dark"] .heygen-modal-footer { border-top: 1px solid var(--border-color, #2a313a); }

/* ---- Quelle: modules/instant-avatar.js (4 Regeln) ---- */
html[data-bs-theme="dark"] .avatar-container.active { background: linear-gradient(135deg, #4caf50 0%, #45a049 100%); }
html[data-bs-theme="dark"] .avatar-container.listening { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }
html[data-bs-theme="dark"] .avatar-container.speaking { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
html[data-bs-theme="dark"] .avatar-container.listening .mic-indicator { background: rgba(31, 36, 43, 0.3); }

/* ---- Quelle: modules/kontoLoeschung.js (21 Regeln) ---- */
html[data-bs-theme="dark"] .kl-zone { border: 1px solid #411f1f; background: #260f0f; }
html[data-bs-theme="dark"] .kl-zone h3 { color: #dd8888; }
html[data-bs-theme="dark"] .kl-zone p { color: #abb3bf; }
html[data-bs-theme="dark"] .kl-btn-danger { background: #dc2626; color: #ffffff; }
html[data-bs-theme="dark"] .kl-btn-danger:hover:not(:disabled) { background: #b91c1c; }
html[data-bs-theme="dark"] .kl-btn-danger:disabled { background: #5b2525; }
html[data-bs-theme="dark"] .kl-btn-ghost { background: #1f242b; border-color: #31363e; color: #bac3d0; }
html[data-bs-theme="dark"] .kl-btn-ghost:hover { background: #151b20; }
html[data-bs-theme="dark"] .kl-btn-ok { background: #047857; color: #ffffff; }
html[data-bs-theme="dark"] .kl-btn-ok:hover { background: #065f46; }
html[data-bs-theme="dark"] .kl-warnung { border: 1px solid #fbbf24; background: #2c2712; }
html[data-bs-theme="dark"] .kl-warnung b { color: #e0b296; }
html[data-bs-theme="dark"] #klOverlay { background: rgba(15, 23, 42, 0.55); }
html[data-bs-theme="dark"] #klOverlay .kl-box { background: #1f242b; color: #d0d9e5; }
html[data-bs-theme="dark"] #klOverlay .kl-title { color: #dd8888; }
html[data-bs-theme="dark"] #klOverlay .kl-sub { color: #abb3bf; }
html[data-bs-theme="dark"] #klOverlay .kl-liste { border: 1px solid #282c34; }
html[data-bs-theme="dark"] #klOverlay .kl-lbl { color: #bac3d0; }
html[data-bs-theme="dark"] #klOverlay .kl-input { border: 1px solid #31363e; }
html[data-bs-theme="dark"] #klOverlay .kl-input:focus { outline: 2px solid #dc2626; border-color: #dc2626; }
html[data-bs-theme="dark"] #klOverlay .kl-note { color: #d67373; }

/* ---- Quelle: modules/menuSort.js (6 Regeln) ---- */
html[data-bs-theme="dark"] .menu-edit-toolbar button:hover { background: rgba(31, 36, 43, 0.06); color: #ffffff; }
html[data-bs-theme="dark"] .menu-edit-toolbar button.active { color: #71c174; }
html[data-bs-theme="dark"] body.menu-edit-mode .menu-edit-block-group { border: 1px dashed rgba(28, 33, 38, 0.12); }
html[data-bs-theme="dark"] body.menu-edit-mode .nav-link:hover { background: rgba(31, 36, 43, 0.04); }
html[data-bs-theme="dark"] .menu-edit-ghost { background: rgba(76, 175, 80, 0.15) !important; }
html[data-bs-theme="dark"] .menu-edit-chosen { background: rgba(76, 175, 80, 0.08) !important; }

/* ---- Quelle: modules/moduleLoader.js (6 Regeln) ---- */
html[data-bs-theme="dark"] .gastro-edition-badge { background: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .sidebar,
html[data-bs-theme="dark"] .sidebar2 { background: #1f242b !important; border-right: 1px solid rgba(46, 139, 87, 0.15) !important; }
html[data-bs-theme="dark"] .sidebar2 .nav-link,
html[data-bs-theme="dark"] .sidebar .nav-link { color: #e9e9e9 !important; }
html[data-bs-theme="dark"] .sidebar2 .nav-link:hover,
html[data-bs-theme="dark"] .sidebar .nav-link:hover { color: #ffffff !important; background: rgba(46, 139, 87, 0.08) !important; }
html[data-bs-theme="dark"] .sidebar2 .nav-link.active,
html[data-bs-theme="dark"] .sidebar .nav-link.active { background: rgba(46, 139, 87, 0.12) !important; }
html[data-bs-theme="dark"] .card { border-color: #2a313a; }

/* ---- Quelle: modules/multiCall.js (14 Regeln) ---- */
html[data-bs-theme="dark"] .multicall-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .multicall-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .multicall-container.table-view .multicall-table th,
html[data-bs-theme="dark"] .multicall-container.table-view .multicall-table td { border-top: 1px solid #2a3138; }
html[data-bs-theme="dark"] .multicall-container.table-view .multicall-table thead th { background-color: #171b20; border-bottom: 2px solid #2a3138; }
html[data-bs-theme="dark"] .multicall-container.table-view .multicall-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.05); }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .multicall-card { background-color: #1f242b; border: 1px solid #2a3138; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .multicall-card .card-header { background-color: #171b20; border-bottom: 1px solid #2a3138; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .multicall-card .card-date { color: #959ca3; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .multicall-card .card-section strong { color: #b5bbc1; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .multicall-card .card-section span { color: #c9ced3; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .multicall-card .card-footer { background-color: #171b20; border-top: 1px solid #2a3138; } }
html[data-bs-theme="dark"] .text-wrap::-webkit-scrollbar-track { background: #1d2228; }
html[data-bs-theme="dark"] .text-wrap::-webkit-scrollbar-thumb { background: #888888; }
html[data-bs-theme="dark"] .text-wrap::-webkit-scrollbar-thumb:hover { background: #555555; }

/* ---- Quelle: modules/notificationService.js (3 Regeln) ---- */
html[data-bs-theme="dark"] .notification-content { background: #1f242b; border-left: 4px solid #007bff; }
html[data-bs-theme="dark"] .notification-title { color: #d4d4d4; }
html[data-bs-theme="dark"] .notification-message { color: #a8a8a8; }

/* ---- Quelle: modules/nummerSeite.js (4 Regeln) ---- */
html[data-bs-theme="dark"] #nummerSeite .ns-sub { color: #959ca3; }
html[data-bs-theme="dark"] #nummerSeite .ns-karte { background: #1f242b; border: 1px solid #252c32; }
html[data-bs-theme="dark"] #nummerSeite .ns-karte h2 { color: #b5bbc1; }
html[data-bs-theme="dark"] #nummerSeite .ns-karte .ns-erklaerung { color: #959ca3; }

/* ---- Quelle: modules/onboardingWizard.js (48 Regeln) ---- */
html[data-bs-theme="dark"] .onboarding-wizard-container { background: #1f242b; }
html[data-bs-theme="dark"] .wizard-progress-step .step-dot { background: rgba(31, 36, 43, 0.5); }
html[data-bs-theme="dark"] .wizard-progress-step.active .step-dot { background: #1f242b; }
html[data-bs-theme="dark"] .wizard-progress-step.completed .step-dot { background: #4caf50; }
html[data-bs-theme="dark"] .wizard-progress-step .step-label { color: #ffffff; }
html[data-bs-theme="dark"] .wizard-step h2 { color: #d4d4d4; }
html[data-bs-theme="dark"] .wizard-subtitle { color: #a8a8a8; }
html[data-bs-theme="dark"] .industry-loading { color: #a8a8a8; }
html[data-bs-theme="dark"] .industry-card { border: 2px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] .industry-card:hover { border-color: var(--industry-color, #2e6b94); }
html[data-bs-theme="dark"] .industry-card.is-selected { border-color: var(--industry-color, #2e6b94); background: color-mix(in srgb, var(--industry-color, #2e6b94) 8%, #1f242b); }
html[data-bs-theme="dark"] .industry-icon { background: color-mix(in srgb, var(--industry-color, #2e6b94) 14%, #1f242b); color: var(--industry-color, #81b5d8); }
html[data-bs-theme="dark"] .industry-label { color: #d0d9e5; }
html[data-bs-theme="dark"] .industry-tagline { color: #9298a4; }
html[data-bs-theme="dark"] .test-icon { background: linear-gradient(135deg, #2e6b94 0%, #5b8fb9 100%); }
html[data-bs-theme="dark"] .test-icon i { color: #ffffff; }
html[data-bs-theme="dark"] .test-card { background: linear-gradient(135deg, #12202b, #152734); }
html[data-bs-theme="dark"] .test-card-tag { color: #81b5d8; }
html[data-bs-theme="dark"] .test-card-title { color: #d4dce9; }
html[data-bs-theme="dark"] .test-card-meta { color: #9298a4; }
html[data-bs-theme="dark"] .phone-cta-card { border: 2px solid #2e6b94; background: linear-gradient(135deg, #152734, #12202b); }
html[data-bs-theme="dark"] .phone-cta-icon { background: #2e6b94; color: #ffffff; }
html[data-bs-theme="dark"] .phone-cta-title { color: #d0d9e5; }
html[data-bs-theme="dark"] .phone-cta-desc { color: #abb3bf; }
html[data-bs-theme="dark"] .wizard-tip { background: #2c2712; border-left: 4px solid #f59e0b; color: #e5bda6; }
html[data-bs-theme="dark"] .wizard-tip i { color: #d4a46c; }
html[data-bs-theme="dark"] .wizard-actions { border-top: 1px solid #242a31; }
html[data-bs-theme="dark"] .wizard-actions .btn-primary { background: linear-gradient(135deg, #3e3e3e 0%, #1e1e1e 100%); border: none; color: #ffffff; }
html[data-bs-theme="dark"] .wizard-actions .btn-primary:hover { background: linear-gradient(135deg, #4e4e4e 0%, #2e2e2e 100%); }
html[data-bs-theme="dark"] .wizard-call-panel { background: linear-gradient(135deg, #1f242b 0%, #12202b 100%); border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .wcp-pulse { background: linear-gradient(135deg, #2e6b94, #5b8fb9); color: #ffffff; }
html[data-bs-theme="dark"] .wcp-pulse.is-speaking { background: linear-gradient(135deg, #10b981, #34d399); }
html[data-bs-theme="dark"] .wcp-status { color: #8996aa; }
html[data-bs-theme="dark"] .wcp-status.is-active { color: #81b5d8; }
html[data-bs-theme="dark"] .wcp-timer { color: #cdd6e5; }
html[data-bs-theme="dark"] .wcp-error { background: #281010; color: #d67373; border: 1px solid #411f1f; }
html[data-bs-theme="dark"] .wcp-actions #wcpMute.is-muted { background: #281010; border-color: #411f1f; color: #d67373; }
html[data-bs-theme="dark"] .wiz-sample { background: #101b25; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .wiz-sample.is-playing { border-color: var(--v2-primary, #2e6b94); background: #11202b; }
html[data-bs-theme="dark"] .wiz-sample-btn { border: none; background: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .wiz-sample-txt b { color: #cdd6e5; }
html[data-bs-theme="dark"] .wiz-sample-txt small { color: #8996aa; }
html[data-bs-theme="dark"] .wiz-openers-head { color: #8996aa; }
html[data-bs-theme="dark"] .wiz-opener { border: 1px solid #1f2b3c; background: #1f242b; color: #b7c3d4; }
html[data-bs-theme="dark"] .wiz-opener:hover { border-color: var(--v2-primary, #2e6b94); color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .wiz-opener.is-picked { border-color: var(--v2-primary, #2e6b94); background: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .wcp-opener { color: #cdd6e5; background: #1f242b; border: 1px dashed #293647; }
html[data-bs-theme="dark"] .wiz-skip-quiet:hover { color: #8996aa !important; }

/* ---- Quelle: modules/pages.js (6 Regeln) ---- */
html[data-bs-theme="dark"] .callanalysis-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .callanalysis-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .automation-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .automation-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .contacts-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .contacts-header h1 { color: #d8d8d8; }

/* ---- Quelle: modules/pbxDashboard.js (22 Regeln) ---- */
html[data-bs-theme="dark"] .tasks-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .tasks-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .call-item { background: #1f242b; border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .call-item:hover { background: #171b20; }
html[data-bs-theme="dark"] .call-duration { color: #959ca3; }
html[data-bs-theme="dark"] .btn-icon { border: 1px solid #2a3138; background: #1f242b; }
html[data-bs-theme="dark"] .btn-icon:hover { background: #171b20; border-color: #6c757d; }
html[data-bs-theme="dark"] .btn-icon.danger:hover { background: #dc3545; color: #ffffff !important; border-color: #dc3545; }
html[data-bs-theme="dark"] .btn-icon.danger:hover i,
html[data-bs-theme="dark"] .btn-icon.danger:hover svg { color: #ffffff !important; }
html[data-bs-theme="dark"] .trunk-item { background: #1f242b; border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .trunk-item:hover { background: #171b20; }
html[data-bs-theme="dark"] .trunk-provider { color: #959ca3; }
html[data-bs-theme="dark"] .trunk-details { color: #959ca3; }
html[data-bs-theme="dark"] .ring-group-card,
html[data-bs-theme="dark"] .queue-card { border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .ring-group-card:hover,
html[data-bs-theme="dark"] .queue-card:hover { background: #171b20; }
html[data-bs-theme="dark"] .ivr-menu-item { background: #1f242b; border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .ivr-menu-item:hover { background: #171b20; }
html[data-bs-theme="dark"] .ivr-language { color: #959ca3; }
html[data-bs-theme="dark"] .ivr-details { color: #959ca3; }
html[data-bs-theme="dark"] .extension-card { background: #1f242b; border: 1px solid #2a313a; }
html[data-bs-theme="dark"] .extension-card:hover { background: #171b20; }
html[data-bs-theme="dark"] .extension-type { color: #959ca3; }

/* ---- Quelle: modules/permissions.js (36 Regeln) ---- */
html[data-bs-theme="dark"] .permissions-page { color: #dbe2f2; }
html[data-bs-theme="dark"] .permissions-page .subtle { color: #8996aa; }
html[data-bs-theme="dark"] .perm-tab-nav { border-bottom: 1px solid #282c34; }
html[data-bs-theme="dark"] .perm-tab-nav .nav-link { border: none; color: #8996aa; }
html[data-bs-theme="dark"] .perm-tab-nav .nav-link.active { color: #2563eb; border-bottom: 2px solid #2563eb; background: transparent; }
html[data-bs-theme="dark"] .perm-section { background: #1f242b; border: 1px solid #282c34; }
html[data-bs-theme="dark"] .perm-section h5 { color: #dbe2f2; }
html[data-bs-theme="dark"] .perm-group { border: 1px solid #1f2b3c; background: #1f242b; }
html[data-bs-theme="dark"] .perm-group:hover { border-color: #293647; }
html[data-bs-theme="dark"] .perm-group.is-disabled { background: #101b25; }
html[data-bs-theme="dark"] .perm-group-header { background: linear-gradient(180deg, #131a20 0%, #151c26 100%); border-bottom: 1px solid #282c34; }
html[data-bs-theme="dark"] .perm-group-header .group-label { color: #dbe2f2; }
html[data-bs-theme="dark"] .perm-group-header .group-label .bi { color: #a6b2c3; }
html[data-bs-theme="dark"] .perm-group-header .group-toggle-wrap .toggle-label { color: #8996aa; }
html[data-bs-theme="dark"] .perm-switch .perm-switch-track { background: #2b3a4b; }
html[data-bs-theme="dark"] .perm-switch .perm-switch-track::after { background: #1f242b; }
html[data-bs-theme="dark"] .perm-switch input:checked + .perm-switch-track { background: #2563eb; }
html[data-bs-theme="dark"] .perm-switch.is-disabled .perm-switch-track { background: #1d2837; }
html[data-bs-theme="dark"] .perm-switch .perm-switch-label { color: #cdd6e5; }
html[data-bs-theme="dark"] .perm-layer-info { background: #111c2a; border: 1px solid #213145; color: #90a5df; }
html[data-bs-theme="dark"] .perm-account-off { color: #e0b296; background: #443c1c; }
html[data-bs-theme="dark"] .perm-user-list { border: 1px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] .perm-user-list .list-group-item:hover { background: #101b25; }
html[data-bs-theme="dark"] .perm-user-list .list-group-item.active { background: #111c2a; color: inherit; border-color: #282c34; border-left: 3px solid #2563eb; }
html[data-bs-theme="dark"] .perm-user-list .user-email { color: #9298a4; }
html[data-bs-theme="dark"] .perm-user-list .role-admin { background: #321515; color: #dd8888; }
html[data-bs-theme="dark"] .perm-user-list .role-reseller { background: #443c1c; color: #e0b296; }
html[data-bs-theme="dark"] .perm-user-list .role-user { background: #162437; color: #788ed8; }
html[data-bs-theme="dark"] .perm-user-list .role-employee { background: #1d2837; color: #a6b2c3; }
html[data-bs-theme="dark"] .perm-save-bar { background: #1f242b; border-top: 1px solid #282c34; }
html[data-bs-theme="dark"] .perm-tag { background: #11172a; color: #4338ca; }
html[data-bs-theme="dark"] .perm-tag.warn { background: #443c1c; color: #e0b296; }
html[data-bs-theme="dark"] .perm-tag.ok { background: #173822; color: #aee7c4; }
html[data-bs-theme="dark"] .agent-chip { background: #101b25; border: 1px solid #293647; }
html[data-bs-theme="dark"] .agent-chip:hover { background: #111c2a; border-color: #293e56; }
html[data-bs-theme="dark"] .agent-chip.is-checked { background: #111c2a; border-color: #2563eb; color: #788ed8; }

/* ---- Quelle: modules/personenVerzeichnis.js (5 Regeln) ---- */
html[data-bs-theme="dark"] #pv-root .pv-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] #pv-root .pv-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] #pv-root .pv-flaeche { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] #pv-root .pv-kachel { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] #pv-root .pv-kachel .pv-wert { color: #d8d8d8; }

/* ---- Quelle: modules/phoneNumbers.js (21 Regeln) ---- */
html[data-bs-theme="dark"] .phonenumbers-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .phonenumbers-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .order-section { background: linear-gradient(135deg, #111f29 0%, #152734 100%); border: 2px solid #2e6b94; }
html[data-bs-theme="dark"] .order-section::before { background: linear-gradient(90deg, #2e6b94 0%, #5b8fb9 100%); }
html[data-bs-theme="dark"] .order-section-header h5 { color: #d4dce9; }
html[data-bs-theme="dark"] .order-section-header h5 i { color: #81b5d8; }
html[data-bs-theme="dark"] .order-section-header .btn-outline-primary { color: #81b5d8; border-color: #2e6b94; }
html[data-bs-theme="dark"] .order-section-header .btn-outline-primary:hover { background: #2e6b94; border-color: #2e6b94; color: #ffffff; }
html[data-bs-theme="dark"] .available-numbers-grid { background: #1f242b; border: 1px solid #1f3240; }
html[data-bs-theme="dark"] .number-card { background: #1f242b; border: 2px solid #1f2f3c; }
html[data-bs-theme="dark"] .number-card:hover { border-color: #5b8fb9; }
html[data-bs-theme="dark"] .number-card.selected { border-color: #2e6b94; background: linear-gradient(135deg, #152734 0%, #111f29 100%); }
html[data-bs-theme="dark"] .number-card .phone-number { color: #d4dce9; }
html[data-bs-theme="dark"] .number-card .provider-info { color: #959ca3; }
html[data-bs-theme="dark"] .number-card .city-info { color: #959ca3; }
html[data-bs-theme="dark"] .order-summary { background: #1f242b; border: 2px solid #2e6b94; }
html[data-bs-theme="dark"] .order-summary h6 { color: #d4dce9; }
html[data-bs-theme="dark"] .order-summary h6 i { color: #81b5d8; }
html[data-bs-theme="dark"] .order-summary #purchaseNumberBtn { background: linear-gradient(135deg, #2e6b94 0%, #5b8fb9 100%); border: none; }
html[data-bs-theme="dark"] .order-summary #purchaseNumberBtn:disabled { background: #2e3c46; }
html[data-bs-theme="dark"] .price-tag { color: #81b5d8; }

/* ---- Quelle: modules/phoneSetupWizard.js (36 Regeln) ---- */
html[data-bs-theme="dark"] .psw-page-header h1 { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .psw-page-header h1 i { color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .psw-flow-diagram { background: linear-gradient(135deg, #13222e 0%, #111f29 100%); }
html[data-bs-theme="dark"] .psw-flow-step .psw-icon { background: #1f242b; border: 2px solid #274152; color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .psw-flow-step.is-highlight .psw-icon { background: linear-gradient(135deg, var(--v2-primary, #2e6b94), var(--v2-primary-light, #5b8fb9)); border-color: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .psw-flow-step .psw-label { color: #abb3bf; }
html[data-bs-theme="dark"] .psw-path-card { border: 2px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] .psw-path-card:hover { border-color: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .psw-path-card .psw-card-icon { background: linear-gradient(135deg, #152734, #12202b); color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .psw-path-card h5 { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .psw-path-card p { color: #9298a4; }
html[data-bs-theme="dark"] .psw-path-card .psw-card-meta { color: #abb3bf; }
html[data-bs-theme="dark"] .psw-path-card .psw-card-meta strong { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .psw-badge-rec { background: #173822; color: #aee7c4; }
html[data-bs-theme="dark"] .psw-badge-free { background: #162437; color: #788ed8; }
html[data-bs-theme="dark"] .psw-number-card { background: linear-gradient(135deg, #122d20 0%, #112a24 100%); border: 1px solid #6ee7b7; }
html[data-bs-theme="dark"] .psw-number-card .psw-number-label { color: #bcecde; }
html[data-bs-theme="dark"] .psw-number-card .psw-number-value { color: #c8efe5; }
html[data-bs-theme="dark"] .psw-number-card .psw-number-hint { color: #ade7d7; }
html[data-bs-theme="dark"] .psw-provider-tile { border: 2px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] .psw-provider-tile:hover { border-color: var(--v2-primary-light, #5b8fb9); }
html[data-bs-theme="dark"] .psw-provider-tile.is-selected { border-color: var(--v2-primary, #2e6b94); background: #152734; }
html[data-bs-theme="dark"] .psw-provider-tile .psw-provider-name { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .psw-provider-tile .psw-provider-type { color: #9298a4; }
html[data-bs-theme="dark"] .psw-step-pill { background: #152734; color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .psw-status-chip { background: #1b1e24; color: #bac3d0; }
html[data-bs-theme="dark"] .psw-status-chip.is-active { background: #173822; color: #aee7c4; }
html[data-bs-theme="dark"] .psw-num-card { background: #1f242b; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .psw-num-card:hover { border-color: #0d6efd; }
html[data-bs-theme="dark"] .psw-num-card.is-selected { border-color: #198754; background: #254637; }
html[data-bs-theme="dark"] .psw-num-card .psw-num-phone { color: #dce0e3; }
html[data-bs-theme="dark"] .psw-num-card .psw-num-meta { color: #959ca3; }
html[data-bs-theme="dark"] .psw-num-summary { background: #1f242b; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .psw-num-summary h6 { color: #b5bbc1; }
html[data-bs-theme="dark"] .psw-num-price { color: #96e0be; }
html[data-bs-theme="dark"] .psw-num-empty { color: #959ca3; background: #151b20; border: 1px dashed #31363e; }

/* ---- Quelle: modules/profile.js (8 Regeln) ---- */
html[data-bs-theme="dark"] .profile-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .profile-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] body { color: #d4d4d4; }
html[data-bs-theme="dark"] .title { color: #79a8d8; }
html[data-bs-theme="dark"] .subtitle { color: #a8a8a8; }
html[data-bs-theme="dark"] .content { color: #c5c5c5; }
html[data-bs-theme="dark"] .content strong { color: #e2e2e2; }
html[data-bs-theme="dark"] .footer { border-top: 1px solid #2c333c; color: #888888; }

/* ---- Quelle: modules/profilePrompt.js (10 Regeln) ---- */
html[data-bs-theme="dark"] .profile-prompt-card { background: linear-gradient(135deg, #46431d 0%, #fde68a 100%); border: 1px solid rgba(245, 158, 11, 0.251); }
html[data-bs-theme="dark"] .profile-prompt-card .pp-icon { background: #1f242b; color: #d4a46c; }
html[data-bs-theme="dark"] .profile-prompt-card .pp-title { color: #e5bda6; }
html[data-bs-theme="dark"] .profile-prompt-card .pp-subtitle { color: #e0b296; }
html[data-bs-theme="dark"] .profile-prompt-card .pp-fields input { border: 1px solid #fbbf24; background: #1f242b; color: #d0d9e5; outline: none; }
html[data-bs-theme="dark"] .profile-prompt-card .pp-fields input:focus { border-color: #d97706; }
html[data-bs-theme="dark"] .profile-prompt-card .pp-btn-primary { background: #d97706; color: #ffffff; }
html[data-bs-theme="dark"] .profile-prompt-card .pp-btn-primary:hover { background: #b45309; }
html[data-bs-theme="dark"] .profile-prompt-card .pp-btn-ghost { background: transparent; color: #e5bda6; }
html[data-bs-theme="dark"] .profile-prompt-card .pp-btn-ghost:hover { background: rgba(31, 36, 43, 0.467); border-color: #fbbf24; }

/* ---- Quelle: modules/realtimeNotifications.js (8 Regeln) ---- */
html[data-bs-theme="dark"] .toast-notification { background: #1f242b; }
html[data-bs-theme="dark"] .toast-icon { background: #28a745; color: #ffffff; }
html[data-bs-theme="dark"] .toast-title { color: #d4d4d4; }
html[data-bs-theme="dark"] .toast-datetime { color: #888888; }
html[data-bs-theme="dark"] .toast-message { color: #a8a8a8; }
html[data-bs-theme="dark"] .toast-summary { color: #b7b7b7; background: #171b20; border-left: 3px solid #28a745; }
html[data-bs-theme="dark"] .toast-close { background: none; border: none; color: #999999; }
html[data-bs-theme="dark"] .toast-close:hover { color: #d4d4d4; }

/* ---- Quelle: modules/restaurantMissionControl.js (40 Regeln) ---- */
html[data-bs-theme="dark"] .rmc-loc-switcher:hover { background: rgba(255, 255, 255, 0.04); }
html[data-bs-theme="dark"] .rmc-voice { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: #ade7d7; }
html[data-bs-theme="dark"] .rmc-voice:hover { background: rgba(16, 185, 129, 0.15); }
html[data-bs-theme="dark"] .rmc-voice.active { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); color: #d67373; }
html[data-bs-theme="dark"] .rmc-voice.active .rmc-voice-dot { background: #ef4444; }
html[data-bs-theme="dark"] .rmc-time-slider { background: linear-gradient(90deg, #1b1e24, #252930); }
html[data-bs-theme="dark"] .rmc-time-slider input[type="range"]::-webkit-slider-thumb { border: 3px solid #1c2126; }
html[data-bs-theme="dark"] .rmc-time-slider input[type="range"]::-moz-range-thumb { border: 3px solid #1c2126; }
html[data-bs-theme="dark"] .rmc-cmd-k kbd { background: rgba(255, 255, 255, 0.06); }
html[data-bs-theme="dark"] .rmc-iconbtn.active { color: #ffffff; }
html[data-bs-theme="dark"] .rmc-floor-canvas { background: repeating-linear-gradient(
          0deg, transparent, transparent 39px, rgba(255, 255, 255, 0.03) 39px, rgba(255, 255, 255, 0.03) 40px
        ),
        repeating-linear-gradient(
          90deg, transparent, transparent 39px, rgba(255, 255, 255, 0.03) 39px, rgba(255, 255, 255, 0.03) 40px
        ); background-color: #131a20; }
html[data-bs-theme="dark"] .rmc-table.state-soon { border-color: rgba(245, 158, 11, 0.5); background: linear-gradient(180deg, #1f242b, #2c2712); }
html[data-bs-theme="dark"] .rmc-table.state-busy { border-color: rgba(239, 68, 68, 0.5); background: linear-gradient(180deg, #1f242b, #281010); }
html[data-bs-theme="dark"] .rmc-table.state-incoming { border-color: rgba(59, 130, 246, 0.5); background: linear-gradient(180deg, #1f242b, #111c2a); }
html[data-bs-theme="dark"] .rmc-table.state-blocked { background: #1b1e24; }
html[data-bs-theme="dark"] .rmc-table-tooltip { background: #0f172a; color: #ffffff; }
html[data-bs-theme="dark"] .rmc-stream::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }
html[data-bs-theme="dark"] .rmc-event-item { background: rgba(255, 255, 255, 0.025); }
html[data-bs-theme="dark"] .rmc-upcoming-row:hover { background: rgba(255, 255, 255, 0.03); }
html[data-bs-theme="dark"] .rmc-upcoming-table { background: rgba(255, 255, 255, 0.04); }
html[data-bs-theme="dark"] .rmc-insight-icon { color: #ffffff; }
html[data-bs-theme="dark"] .rmc-stat-bar { background: rgba(255, 255, 255, 0.06); }
html[data-bs-theme="dark"] .rmc-guest-stream::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }
html[data-bs-theme="dark"] .rmc-guest-card { background: linear-gradient(135deg, #1f242b, #131a20); }
html[data-bs-theme="dark"] .rmc-guest-card.walkin { border-color: rgba(239, 68, 68, 0.35); background: linear-gradient(135deg, #281010, #1f242b); }
html[data-bs-theme="dark"] .rmc-cmdk-hint { background: rgba(255, 255, 255, 0.02); }
html[data-bs-theme="dark"] .rmc-cmdk-hint kbd { background: rgba(255, 255, 255, 0.06); }
html[data-bs-theme="dark"] .rmc-heat-banner { background: rgba(15, 23, 42, 0.85); color: #ffffff; }
html[data-bs-theme="dark"] .rmc-heat-banner .rmc-heat-scale { background: linear-gradient(90deg, #162437, #fbbf24, #ef4444); }
html[data-bs-theme="dark"] .rmc-badge { color: #ffffff; }
html[data-bs-theme="dark"] .rmc-settings-close:hover { background: rgba(255, 255, 255, 0.05); }
html[data-bs-theme="dark"] .rmc-settings-tabs { background: rgba(255, 255, 255, 0.02); }
html[data-bs-theme="dark"] .rmc-settings-tab:hover { background: rgba(146, 64, 14, 0.04); }
html[data-bs-theme="dark"] .rmc-hours-row .toggle { background: rgba(255, 255, 255, 0.15); }
html[data-bs-theme="dark"] .rmc-hours-row .toggle::after { background: #1f242b; }
html[data-bs-theme="dark"] .rmc-settings-row { background: rgba(255, 255, 255, 0.02); }
html[data-bs-theme="dark"] .rmc-voice-bubble { background: linear-gradient(135deg, #111c2a, #162437); border: 1px solid rgba(59, 130, 246, 0.3); }
html[data-bs-theme="dark"] .rmc-voice-bubble .icon { color: #ffffff; }
html[data-bs-theme="dark"] .rmc-btn { color: #ffffff; border: none; }
html[data-bs-theme="dark"] .rmc-btn:hover { background: #7c3a0d; }

/* ---- Quelle: modules/ringGroups.js (24 Regeln) ---- */
html[data-bs-theme="dark"] .ringgroups-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .ringgroups-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .ringgroups-header .subtitle { color: #959ca3; }
html[data-bs-theme="dark"] .ringgroups-container.table-view .ringgroups-table th,
html[data-bs-theme="dark"] .ringgroups-container.table-view .ringgroups-table td { border-top: 1px solid #2a3138; }
html[data-bs-theme="dark"] .ringgroups-container.table-view .ringgroups-table thead th { background-color: #171b20; border-bottom: 2px solid #2a3138; color: #b5bbc1; }
html[data-bs-theme="dark"] .ringgroups-container.table-view .ringgroups-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.04); }
html[data-bs-theme="dark"] .rg-name-cell { color: #dce0e3; }
html[data-bs-theme="dark"] .rg-name-cell .rg-name-sub { color: #959ca3; }
html[data-bs-theme="dark"] .rg-badge.strategy-ring-all { background: #152632; color: #73a1d6; }
html[data-bs-theme="dark"] .rg-badge.strategy-hunt { background: #321636; color: #bc88dc; }
html[data-bs-theme="dark"] .rg-badge.members { background: #1b2126; color: #b5bbc1; }
html[data-bs-theme="dark"] .rg-badge.enabled { background: #254637; color: #c0edd8; }
html[data-bs-theme="dark"] .rg-badge.disabled { background: #3d191c; color: #e0939a; }
html[data-bs-theme="dark"] .rg-member-chip { background: #171b20; border: 1px solid #252c32; color: #b5bbc1; }
html[data-bs-theme="dark"] .rg-member-chip i { color: #959ca3; }
html[data-bs-theme="dark"] .rg-empty { color: #959ca3; background: #1f242b; border: 2px dashed #2a3138; }
html[data-bs-theme="dark"] .rg-empty h5 { color: #b5bbc1; }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .ringgroups-card { background: #1f242b; border: 1px solid #2a3138; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .ringgroups-card .card-head { background: #171b20; border-bottom: 1px solid #2a3138; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .ringgroups-card .card-head .rg-card-title { color: #dce0e3; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .ringgroups-card .card-row .label { color: #959ca3; } }
@media (max-width: 767.98px) { html[data-bs-theme="dark"] .ringgroups-card .card-foot { background: #171b20; border-top: 1px solid #2a3138; } }
html[data-bs-theme="dark"] .rg-member-row { background: #171b20; border: 1px solid #252c32; }
html[data-bs-theme="dark"] .rg-info-banner { background: #13212f; border-left: 4px solid #0d6efd; color: #96b4e0; }

/* ---- Quelle: modules/scriptAnalysis.js (11 Regeln) ---- */
html[data-bs-theme="dark"] .script-section { background: #1f242b; border: 1px solid #252c32; }
html[data-bs-theme="dark"] .script-section h3 { color: #e9e9e9; border-bottom: 2px solid #007bff; }
html[data-bs-theme="dark"] .script-content { background: #171b20; }
html[data-bs-theme="dark"] .script-content ul li { background: #1f242b; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .objection { background: #322c15; border-left: 4px solid #ffa726; }
html[data-bs-theme="dark"] .objection strong { color: #d38d67; }
html[data-bs-theme="dark"] .objection em { color: #a9d789; }
html[data-bs-theme="dark"] .script-tips { background: #163319; border: 1px solid #2d5d2f; }
html[data-bs-theme="dark"] .script-tips h4 { color: #95d898; }
html[data-bs-theme="dark"] .script-tips ul li { background: #1f242b; }
html[data-bs-theme="dark"] .script-tips ul li:before { color: #71c174; }

/* ---- Quelle: modules/sipSettings.js (2 Regeln) ---- */
html[data-bs-theme="dark"] .telephony-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .telephony-header h1 { color: #d8d8d8; }

/* ---- Quelle: modules/softphoneFab.js (27 Regeln) ---- */
html[data-bs-theme="dark"] .vo-phone-row { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .vo-phone-row:hover { background: var(--v2-surface-high, #202935); }
html[data-bs-theme="dark"] .vo-phone-row.vo-active { background: rgba(46, 107, 148, 0.08); color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] .vo-phone-row .vo-phone-icon { background: var(--v2-surface-high, #202935); color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .vo-phone-row:hover .vo-phone-icon { background: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .vo-phone-row.vo-active .vo-phone-icon { background: #2a9d4e; color: #ffffff; }
html[data-bs-theme="dark"] .vo-phone-row .vo-status-dot { background: #536172; }
html[data-bs-theme="dark"] .vo-phone-toggle .vo-slider { background: #39434f; }
html[data-bs-theme="dark"] .vo-phone-toggle .vo-slider::before { background: #1f242b; }
html[data-bs-theme="dark"] .vo-phone-toggle input:checked + .vo-slider { background: #2a9d4e; }
html[data-bs-theme="dark"] .vo-phone-panel { background: var(--v2-surface-card, #1f242b); }
html[data-bs-theme="dark"] .vo-panel-header { border-bottom: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }
html[data-bs-theme="dark"] .vo-panel-header h3 { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .vo-panel-close:hover { background: var(--v2-surface-high, #202935); }
html[data-bs-theme="dark"] .vo-agent-select-wrap select { border: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); background: var(--v2-surface, #131b26); color: var(--v2-text, #d4dce9); outline: none; }
html[data-bs-theme="dark"] .vo-agent-select-wrap select:focus { border-color: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .vo-number-display { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .vo-number-display .vo-cursor { background: var(--v2-primary, #2e6b94); }
html[data-bs-theme="dark"] .vo-dialpad button { border: none; background: var(--v2-surface, #131b26); }
html[data-bs-theme="dark"] .vo-dialpad button:hover { background: var(--v2-surface-high, #202935); }
html[data-bs-theme="dark"] .vo-dialpad button:active { background: var(--v2-primary, #2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .vo-dialpad button .vo-digit { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .vo-dialpad button:active .vo-digit,
html[data-bs-theme="dark"] .vo-dialpad button:active .vo-sub { color: #ffffff; }
html[data-bs-theme="dark"] .vo-call-btn { border: none; color: #ffffff; }
html[data-bs-theme="dark"] .vo-call-btn-back { background: var(--v2-surface-high, #202935); color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] .vo-active-call .vo-call-number { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] .vo-active-call .vo-call-status { color: #7cd999; }

/* ---- Quelle: modules/subscription.js (9 Regeln) ---- */
html[data-bs-theme="dark"] #planWechselOverlay .pw-box { background: #1f242b; color: #d0d9e5; }
html[data-bs-theme="dark"] #planWechselOverlay .pw-title { color: #dee4f1; }
html[data-bs-theme="dark"] #planWechselOverlay .pw-sub { color: #abb3bf; }
html[data-bs-theme="dark"] #planWechselOverlay .pw-opts { border: 1px solid #282c34; }
html[data-bs-theme="dark"] #planWechselOverlay .pw-opt:hover { background: #1b1e24; }
html[data-bs-theme="dark"] #planWechselOverlay .pw-note { color: #9298a4; }
html[data-bs-theme="dark"] #planWechselOverlay .pw-err { color: #d67373; }
html[data-bs-theme="dark"] #planWechselOverlay .pw-btn { border: 1px solid #31363e; background: #1f242b; }
html[data-bs-theme="dark"] #planWechselOverlay .pw-btn-primary { background: #2563eb; border-color: #2563eb; color: #ffffff; }

/* ---- Quelle: modules/systemInterfaces.js (2 Regeln) ---- */
html[data-bs-theme="dark"] .systeminterfaces-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .systeminterfaces-header h1 { color: #d8d8d8; }

/* ---- Quelle: modules/tasks.js (3 Regeln) ---- */
html[data-bs-theme="dark"] .kanban-header { background: #1f242b; }
html[data-bs-theme="dark"] .kanban-card { background: #1f242b; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .kanban-dropzone.drag-over { background: #13212f; border-color: #0066cc; }

/* ---- Quelle: modules/tavusReplicas.js (4 Regeln) ---- */
html[data-bs-theme="dark"] .agents-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .agents-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] #tavusReplicaPreviewModal .modal-content { background: #1f242b !important; }
html[data-bs-theme="dark"] #tavusReplicaPreviewModal .modal-header { border-bottom: 1px solid #2a3138 !important; }

/* ---- Quelle: modules/tourGuide.js (9 Regeln) ---- */
html[data-bs-theme="dark"] .voiceone-tour-step { background: #1f242b; }
html[data-bs-theme="dark"] .voiceone-tour-step .shepherd-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; }
html[data-bs-theme="dark"] .voiceone-tour-step .shepherd-footer { border-top: 1px solid #282f37; }
html[data-bs-theme="dark"] .voiceone-tour-step .shepherd-button-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; color: #ffffff; }
html[data-bs-theme="dark"] .voiceone-tour-step .shepherd-button-secondary { background: #6c757d; border: none; color: #ffffff; }
html[data-bs-theme="dark"] .voiceone-tour-step .shepherd-arrow:before { background: #1f242b; }
html[data-bs-theme="dark"] .shepherd-cancel-icon { background: rgba(31, 36, 43, 0.2) !important; border: 2px solid #1c2126 !important; }
html[data-bs-theme="dark"] .shepherd-cancel-icon:hover { background: rgba(31, 36, 43, 0.3) !important; }
@media (max-width: 768px) { html[data-bs-theme="dark"] .shepherd-cancel-icon { background: rgba(31, 36, 43, 0.9) !important; } }

/* ---- Quelle: modules/tracking-dashboard.js (1 Regeln) ---- */
html[data-bs-theme="dark"] .tracking-dashboard-container { background: #1f242b; }

/* ---- Quelle: modules/tracking-manager.js (3 Regeln) ---- */
html[data-bs-theme="dark"] .nav-tabs .nav-link { color: #959ca3; }
html[data-bs-theme="dark"] .nav-tabs .nav-link.active { color: #1a73e8; }
html[data-bs-theme="dark"] .table th { color: #b5bbc1; }

/* ---- Quelle: modules/users.js (2 Regeln) ---- */
html[data-bs-theme="dark"] .users-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .users-header h1 { color: #d8d8d8; }

/* ---- Quelle: modules/verordnungen.js (26 Regeln) ---- */
html[data-bs-theme="dark"] body { color: #e2e2e2; }
html[data-bs-theme="dark"] h2 { border-bottom: 1px solid #2c333c; }
html[data-bs-theme="dark"] td,
html[data-bs-theme="dark"] th { border-bottom: 1px solid #242a31; }
html[data-bs-theme="dark"] .lbl { color: #a8a8a8; }
html[data-bs-theme="dark"] .muted { color: #a8a8a8; }
html[data-bs-theme="dark"] #verordnungen-container .vo-head__title h1 { color: #d0d9e5; }
html[data-bs-theme="dark"] #verordnungen-container .vo-head__sub { color: #9298a4; }
html[data-bs-theme="dark"] #verordnungen-container .vo-alert { background: #281010; border: 1px solid #411f1f; color: #d67373; }
html[data-bs-theme="dark"] #verordnungen-container .vo-alert a { color: #d67373; }
html[data-bs-theme="dark"] #verordnungen-container .vo-kpi { background: #1f242b; border: 1px solid #282c34; border-top: 3px solid var(--vo-c,#16a34a); }
html[data-bs-theme="dark"] #verordnungen-container .vo-kpi__lbl { color: #9298a4; }
html[data-bs-theme="dark"] #verordnungen-container .vo-kpi__val { color: #dee4f1; }
html[data-bs-theme="dark"] #verordnungen-container .vo-kpi__hint { color: #9298a4; }
html[data-bs-theme="dark"] #verordnungen-container .vo-pill { border: 1px solid #282c34; background: #1f242b; color: #bac3d0; }
html[data-bs-theme="dark"] #verordnungen-container .vo-pill:hover { background: #1b1e24; }
html[data-bs-theme="dark"] #verordnungen-container .vo-pill.is-active { background: #15803d; border-color: #15803d; color: #ffffff; }
html[data-bs-theme="dark"] #verordnungen-container .vo-card { background: #1f242b; border: 1px solid #282c34; border-left: 4px solid var(--vo-c,#16a34a); }
html[data-bs-theme="dark"] #verordnungen-container .vo-chip { color: #ffffff; }
html[data-bs-theme="dark"] #verordnungen-container .vo-card__name { color: #dee4f1; }
html[data-bs-theme="dark"] #verordnungen-container .vo-f__val { color: #bac3d0; }
html[data-bs-theme="dark"] #verordnungen-container .vo-bar { background: #1d2025; }
html[data-bs-theme="dark"] #verordnungen-container .vo-empty { color: #9298a4; }
html[data-bs-theme="dark"] #verordnungen-container .vo-search input { border: 1px solid #282c34; background: #1f242b; color: #bac3d0; }
html[data-bs-theme="dark"] #verordnungen-container .vo-search input:focus { outline: none; border-color: #15803d; }
html[data-bs-theme="dark"] #verordnungen-container .vo-search__x:hover { color: #bac3d0; background: #1b1e24; }
html[data-bs-theme="dark"] #verordnungen-container .vo-search__hint { color: #9298a4; }

/* ---- Quelle: modules/video-chat-extensions.js (1 Regeln) ---- */
html[data-bs-theme="dark"] .speaking-rings .ring { border: 2px solid rgba(28, 33, 38, 0.3); }

/* ---- Quelle: modules/videoChatDashboard.js (15 Regeln) ---- */
html[data-bs-theme="dark"] .dashboard-header { background: rgba(31, 36, 43, 0.95); }
html[data-bs-theme="dark"] .stats-card { background: #1f242b; }
html[data-bs-theme="dark"] .stats-label { color: #959ca3; }
html[data-bs-theme="dark"] .session-card { background: #1f242b; border-left: 4px solid #007bff; }
html[data-bs-theme="dark"] .session-card.active { border-left-color: #28a745; background: #15351a; }
html[data-bs-theme="dark"] .session-card.ended { border-left-color: #6c757d; background: #171b20; }
html[data-bs-theme="dark"] .session-card.error { border-left-color: #dc3545; background: #260f0f; }
html[data-bs-theme="dark"] .control-panel { background: rgba(31, 36, 43, 0.95); }
html[data-bs-theme="dark"] .recording-status.recording { background: #ff4444; color: #ffffff; }
html[data-bs-theme="dark"] .recording-status.stopped { background: #6c757d; color: #ffffff; }
html[data-bs-theme="dark"] .recording-status.processing { background: #ffc107; color: #000000; }
html[data-bs-theme="dark"] .agent-avatar { background: linear-gradient(135deg, #667eea, #764ba2); color: #ffffff; }
html[data-bs-theme="dark"] .session-timeline { background: #171b20; }
html[data-bs-theme="dark"] .timeline-icon { color: #ffffff; }
html[data-bs-theme="dark"] .refresh-panel { background: rgba(31, 36, 43, 0.95); }

/* ---- Quelle: modules/warteliste.js (27 Regeln) ---- */
html[data-bs-theme="dark"] .wl-head__title h1 { color: #d0d9e5; }
html[data-bs-theme="dark"] .wl-head__sub { color: #9298a4; }
html[data-bs-theme="dark"] .wl-kpi { background: #1f242b; border: 1px solid #282c34; border-top: 3px solid var(--wl-c,#16a34a); }
html[data-bs-theme="dark"] .wl-kpi__lbl { color: #9298a4; }
html[data-bs-theme="dark"] .wl-kpi__val { color: #dee4f1; }
html[data-bs-theme="dark"] .wl-kpi__hint { color: #9298a4; }
html[data-bs-theme="dark"] .wl-panel { background: #1f242b; border: 1px solid #282c34; }
html[data-bs-theme="dark"] .wl-panel__head { border-bottom: 1px solid #23262d; }
html[data-bs-theme="dark"] .wl-panel__title { color: #d0d9e5; }
html[data-bs-theme="dark"] .wl-panel__title i { color: #9298a4; }
html[data-bs-theme="dark"] .wl-slot { border-bottom: 1px solid #1e242b; }
html[data-bs-theme="dark"] .wl-slot__when { color: #dee4f1; }
html[data-bs-theme="dark"] .wl-slot__meta { color: #9298a4; }
html[data-bs-theme="dark"] .wl-pill { border: 1px solid #282c34; background: #1f242b; color: #bac3d0; }
html[data-bs-theme="dark"] .wl-pill:hover { background: #1b1e24; }
html[data-bs-theme="dark"] .wl-pill.is-active { background: #15803d; border-color: #15803d; color: #ffffff; }
html[data-bs-theme="dark"] .wl-table th { color: #9ca3af; border-bottom: 1px solid #23262d; }
html[data-bs-theme="dark"] .wl-table td { border-bottom: 1px solid #1e242b; color: #bac3d0; }
html[data-bs-theme="dark"] .wl-table tbody tr:hover { background: #131a20; }
html[data-bs-theme="dark"] .wl-ava { color: #ffffff; }
html[data-bs-theme="dark"] .wl-pat__name { color: #dee4f1; }
html[data-bs-theme="dark"] .wl-pat__tel:hover { color: #9de3b7; }
html[data-bs-theme="dark"] .wl-chip { color: #ffffff; }
html[data-bs-theme="dark"] .wl-empty { color: #9298a4; }
html[data-bs-theme="dark"] .wl-rowbtn:hover { background: #1b1e24; color: #bac3d0; }
html[data-bs-theme="dark"] .wl-cand { border-bottom: 1px solid #23262d; }
@media (max-width:820px) { html[data-bs-theme="dark"] .wl-table tr { border-bottom: 1px solid #23262d; } }

/* ---- Quelle: modules/workflowAutomation.js (3 Regeln) ---- */
html[data-bs-theme="dark"] .workflow-iframe { border: none; background: #1f242b; }
html[data-bs-theme="dark"] .workflow-template-card:hover { border-color: #2e2e2e; }
html[data-bs-theme="dark"] .workflow-stat-value { color: #d8d8d8; }

/* ---- Quelle: modules/workflows.js (27 Regeln) ---- */
html[data-bs-theme="dark"] .workflows-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .workflows-header h1 { color: #d8d8d8; }
html[data-bs-theme="dark"] .workflow-step { border: 1px solid #282f37; background-color: #1f242b; }
html[data-bs-theme="dark"] .workflow-step[data-type="ifThenBranch"] { border: 2px solid #fd7e14; background: linear-gradient(135deg, #291e11 0%, #3d2b19 100%); }
html[data-bs-theme="dark"] .workflow-step[data-type="startCall"] { border-left: 4px solid #198754; background: linear-gradient(135deg, #15351a 0%, #163316 100%); }
html[data-bs-theme="dark"] .workflow-step[data-type="startCall"] .step-header::before { color: #96e0be; }
html[data-bs-theme="dark"] .workflow-step[data-type="sendEmail"] { border-left: 4px solid #0d6efd; background: linear-gradient(135deg, #151e35 0%, #131c2e 100%); }
html[data-bs-theme="dark"] .workflow-step[data-type="delay"] { border-left: 4px solid #6c757d; background: linear-gradient(135deg, #161a1f 0%, #1e2329 100%); }
html[data-bs-theme="dark"] .workflow-step[data-type="delay"] .step-header::before { color: #959ca3; }
html[data-bs-theme="dark"] .workflow-step[data-type="updateContactProperty"] { border-left: 4px solid #6f42c1; background: linear-gradient(135deg, #1b1535 0%, #19122c 100%); }
html[data-bs-theme="dark"] .workflow-step[data-type="notifyManager"] { border-left: 4px solid #dc3545; background: linear-gradient(135deg, #351515 0%, #2e1313 100%); }
html[data-bs-theme="dark"] .workflow-step[data-type="multiCondition"] { border: 2px solid #ffc107; background: linear-gradient(135deg, #292211 0%, #322c15 100%); }
html[data-bs-theme="dark"] .drag-handle { border-right: 1px solid #232930; color: #aaaaaa; }
html[data-bs-theme="dark"] .workflow-step:hover .drag-handle { color: #a8a8a8; }
html[data-bs-theme="dark"] .step-header { border-bottom: 1px solid #232930; }
html[data-bs-theme="dark"] .step-header .fw-bold { color: #d4d4d4; }
html[data-bs-theme="dark"] .workflow-step label { color: #b7b7b7; }
html[data-bs-theme="dark"] .workflow-step .form-control,
html[data-bs-theme="dark"] .workflow-step .form-select { border: 1px solid #2c333c; }
html[data-bs-theme="dark"] .workflow-step .form-control:focus,
html[data-bs-theme="dark"] .workflow-step .form-select:focus { border-color: #2c435c; }
html[data-bs-theme="dark"] .workflow-step .form-control::placeholder { color: #aaaaaa; }
html[data-bs-theme="dark"] .workflow-step .alert-info { background-color: #13232f; border-color: #1f3140; color: #96bee0; }
html[data-bs-theme="dark"] .action-buttons { border-left: 1px solid #232930; }
html[data-bs-theme="dark"] .action-buttons .btn-outline-danger { color: #dc3545; border-color: #401f22; }
html[data-bs-theme="dark"] .action-buttons .btn-outline-danger:hover { background-color: #dc3545; color: #ffffff; }
html[data-bs-theme="dark"] .variable-btn::after { background: #333333; color: #ffffff; }
html[data-bs-theme="dark"] .template-input:focus { border-color: #0d6efd; }
html[data-bs-theme="dark"] .workflow-step .card-body { background-color: #1f242b; }

/* ---- Quelle: modules/zeitplanDialog.js (6 Regeln) ---- */
html[data-bs-theme="dark"] #zeitplanSeite .zp-topbar h1 { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] #zeitplanSeite .zp-topbar h1 i { color: var(--v2-primary, #81b5d8); }
html[data-bs-theme="dark"] #zeitplanSeite .zp-sub { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] #zeitplanSeite .zp-abschnitt { color: var(--v2-text, #d4dce9); }
html[data-bs-theme="dark"] #zeitplanSeite .zp-tag { color: var(--v2-text-secondary, #93a0af); }
html[data-bs-theme="dark"] #zpLeiste { background: var(--v2-surface-card, #1f242b); border-top: 1px solid var(--v2-outline, rgba(94, 109, 127, 0.12)); }

/* ---- Quelle: Dokumentation.js (12 Regeln) ---- */
html[data-bs-theme="dark"] body { background-color: #171b20; color: #b5bbc1; }
html[data-bs-theme="dark"] #documentation-container { background-color: #1f242b; }
html[data-bs-theme="dark"] #documentation-container h1 { color: #c9ced3; }
html[data-bs-theme="dark"] .doc-section { background-color: #1f242b; border: 1px solid #252c32; }
html[data-bs-theme="dark"] .doc-section h2 { color: #007bff; border-bottom: 2px solid #2a3138; }
html[data-bs-theme="dark"] .doc-section .content { color: #b5bbc1; }
html[data-bs-theme="dark"] .doc-section .content code,
html[data-bs-theme="dark"] .doc-section .content pre { background-color: #21272d; }
html[data-bs-theme="dark"] .doc-section .content strong,
html[data-bs-theme="dark"] .doc-section .content b { color: #c9ced3; }
html[data-bs-theme="dark"] .toc { background-color: #21272d; border: 1px solid #2a3138; }
html[data-bs-theme="dark"] .toc h2 { color: #b5bbc1; border-bottom: 1px solid #313941; }
html[data-bs-theme="dark"] .toc-list a:hover,
html[data-bs-theme="dark"] .toc-list a:focus { color: #89b1dd; }
html[data-bs-theme="dark"] .toc-list a.active { color: #89b1dd; border-left: 3px solid #0056b3; }

/* ---- Quelle: app.js (2 Regeln) ---- */
html[data-bs-theme="dark"] .whitelabel-header { background: linear-gradient(135deg, #1f242b 0%, #1a1f24 100%); }
html[data-bs-theme="dark"] .whitelabel-header h1 { color: #d8d8d8; }

/* ---- Quelle: calendar.js (3 Regeln) ---- */
html[data-bs-theme="dark"] .fc-day-today { background-color: rgba(212, 225, 87, 0.1) !important; }
html[data-bs-theme="dark"] .fc-button-primary { background-color: #d4e157 !important; border-color: #d4e157 !important; color: #333333 !important; }
html[data-bs-theme="dark"] .fc-button-primary:hover { background-color: #c0cd50 !important; border-color: #c0cd50 !important; }

/* ---- Quelle: dashboard.js (68 Regeln) ---- */
html[data-bs-theme="dark"] .dash-btn-icon.active { background: #98b8cc; color: #ffffff; border-color: #98b8cc; }
html[data-bs-theme="dark"] .dv2-trial-banner { background: #2f2613; border: 1px solid #645130; color: #e1c498; }
html[data-bs-theme="dark"] .dv2-trial-banner.is-over { background: #2d1214; border-color: #54282c; color: #d97c85; }
html[data-bs-theme="dark"] .dv2-trial-banner-btn { background: #1f242b; color: inherit; }
html[data-bs-theme="dark"] .dv2-trial-banner-btn:hover { background: rgba(255, 255, 255, 0.04); }
html[data-bs-theme="dark"] .dv2-welcome { background: linear-gradient(135deg,#13242f,#1f242b); border: 1px solid #223846; }
html[data-bs-theme="dark"] .dv2-welcome-x:hover { color: #d8d8d8; }
html[data-bs-theme="dark"] .dv2-welcome h3 { color: #d8d8d8; }
html[data-bs-theme="dark"] .dv2-welcome p { color: #a3adb5; }
html[data-bs-theme="dark"] .dv2-welcome-cta { background: var(--v2-primary,#2e6b94); color: #ffffff; }
html[data-bs-theme="dark"] .dv2-welcome-sec { background: none; color: var(--v2-primary,#81b5d8); }
html[data-bs-theme="dark"] .dv2-opener { background: #1f242b; border: 1px solid #213544; color: #a5b8c8; }
html[data-bs-theme="dark"] .dv2-opener:hover { border-color: #8fb4cc; background: #0f1e26; }
html[data-bs-theme="dark"] .dv2-opener.is-picked { border-color: var(--v2-primary,#2e6b94); background: #142531; color: var(--v2-primary,#81b5d8); }
html[data-bs-theme="dark"] .dv2-step { background: #1f242b; border: 1px solid #1f3340; }
html[data-bs-theme="dark"] .dv2-step.is-link:hover { border-color: #98b8cc; }
html[data-bs-theme="dark"] .dv2-step-no { background: #7a9db5; color: #ffffff; }
html[data-bs-theme="dark"] .dv2-step.is-done .dv2-step-no { background: #10b981; }
html[data-bs-theme="dark"] .dv2-step b { color: #d8d8d8; }
html[data-bs-theme="dark"] .dv2-step small { color: #a3adb5; }
html[data-bs-theme="dark"] .sub-card { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .sub-card-label { color: #a3adb5; }
html[data-bs-theme="dark"] .kpi-card { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .kpi-big-label { color: #d8d8d8; }
html[data-bs-theme="dark"] .kpi-split-item { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .kpi-split-unit { color: #a3adb5; }
html[data-bs-theme="dark"] .recognition-card { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .contacts-kpi { background: #1f242b; border: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .contacts-kpi-icon { background: #13242f; color: #7a9db5; }
html[data-bs-theme="dark"] .contacts-kpi-label { color: #a3adb5; }
html[data-bs-theme="dark"] .contacts-pct-text { color: #a3adb5; }
html[data-bs-theme="dark"] .contacts-pct-text strong { color: #7bd9b9; }
html[data-bs-theme="dark"] .chart-legend { color: #a3adb5; }
html[data-bs-theme="dark"] .donut-center-label .donut-total { color: #d8d8d8; }
html[data-bs-theme="dark"] .donut-center-label .donut-text { color: #a3adb5; }
html[data-bs-theme="dark"] .dv2-activity-item { border-bottom: 1px solid #1f2b3c; }
html[data-bs-theme="dark"] .dv2-activity-item:hover { background: #101b25; }
html[data-bs-theme="dark"] .dv2-act-icon.call { background: #13242f; color: #7a9db5; }
html[data-bs-theme="dark"] .dv2-act-icon.contact { background: #1a402d; color: #7bd9b9; }
html[data-bs-theme="dark"] .dv2-act-icon.appointment { background: #443c1c; color: #f59e0b; }
html[data-bs-theme="dark"] .dv2-act-icon.task { background: #18132e; color: #8b5cf6; }
html[data-bs-theme="dark"] .dv2-act-text p { color: #a3adb5; }
html[data-bs-theme="dark"] .timeline-item { background: #101b25; }
html[data-bs-theme="dark"] .timeline-item:hover { background: #131f2b; }
html[data-bs-theme="dark"] .timeline-item::before { background: #007bff; border: 2px solid #1c2126; }
html[data-bs-theme="dark"] .timeline-time { color: #b7c3d4; }
html[data-bs-theme="dark"] .timeline-content strong { color: #cdd6e5; }
html[data-bs-theme="dark"] .dv2-edit-bar { background: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] .dv2-edit-save { background: #98b8cc; color: #ffffff; }
html[data-bs-theme="dark"] .dv2-edit-save:hover { background: #7a9db5; }
html[data-bs-theme="dark"] .dv2-edit-cancel { background: rgba(31, 36, 43, 0.15); color: #ffffff; }
html[data-bs-theme="dark"] .dv2-edit-cancel:hover { background: rgba(31, 36, 43, 0.25); }
html[data-bs-theme="dark"] .dv2-loading-overlay { background: rgba(23, 27, 32, 0.85); }
html[data-bs-theme="dark"] .dv2-loading-spinner { color: #a3adb5; }
html[data-bs-theme="dark"] .dv2-edit-mode [data-card-id]:hover { outline: 2px dashed #98b8cc; }
html[data-bs-theme="dark"] .dv2-drag-over { outline: 2px dashed #10b981!important; background: rgba(16, 185, 129, 0.05)!important; }
html[data-bs-theme="dark"] .dv2-remove-btn { background: #ef4444; color: #ffffff; border: none; }
html[data-bs-theme="dark"] .dv2-remove-btn:hover { background: #dc2626; }
html[data-bs-theme="dark"] .dv2-live-card { background: linear-gradient(135deg,#1a1a2e 0%,#16213e 100%); color: #ffffff; }
html[data-bs-theme="dark"] .dv2-live-count { background: rgba(239, 68, 68, 0.2); color: #f87171; }
html[data-bs-theme="dark"] .dv2-live-item { background: rgba(31, 36, 43, 0.08); }
html[data-bs-theme="dark"] .dv2-live-item:hover { background: rgba(31, 36, 43, 0.12); }
html[data-bs-theme="dark"] .dv2-live-item-icon.inbound { background: rgba(16, 185, 129, 0.2); color: #34d399; }
html[data-bs-theme="dark"] .dv2-live-item-icon.outbound { background: rgba(152, 184, 204, 0.2); color: #98b8cc; }
html[data-bs-theme="dark"] .dv2-live-item-number { color: rgba(255, 255, 255, 0.5); }
html[data-bs-theme="dark"] .dv2-live-item-meta { color: rgba(255, 255, 255, 0.5); }
html[data-bs-theme="dark"] .dv2-live-dir-badge.inbound { background: rgba(16, 185, 129, 0.15); color: #34d399; }
html[data-bs-theme="dark"] .dv2-live-dir-badge.outbound { background: rgba(152, 184, 204, 0.15); color: #98b8cc; }

/* ---- Inline-Stile aus den Vorlagen (221 Muster) ---- */
html[data-bs-theme="dark"] [style*="background: #000"] { background-color: #000000 !important; }
html[data-bs-theme="dark"] [style*="background:#111"] { background-color: #111111 !important; }
html[data-bs-theme="dark"] [style*="background: #333"] { background-color: #333333 !important; }
html[data-bs-theme="dark"] [style*="background: #4CAF50"] { background-color: #4caf50 !important; }
html[data-bs-theme="dark"] [style*="background:#635BFF"] { background-color: #635bff !important; }
html[data-bs-theme="dark"] [style*="background:#6f42c122"] { background-color: rgba(111, 66, 193, 0.133) !important; }
html[data-bs-theme="dark"] [style*="background:#8B4513"] { background-color: #8b4513 !important; }
html[data-bs-theme="dark"] [style*="background:#B4322E"] { background-color: #b4322e !important; }
html[data-bs-theme="dark"] [style*="background: #F8F9FA"] { background-color: #171b20 !important; }
html[data-bs-theme="dark"] [style*="background:#adb5bd"] { background-color: #4f5962 !important; }
html[data-bs-theme="dark"] [style*="background:#dbeafe"] { background-color: #162437 !important; }
html[data-bs-theme="dark"] [style*="background:#dcfce7"] { background-color: #173822 !important; }
html[data-bs-theme="dark"] [style*="background:#e2e8f0"] { background-color: #1d2837 !important; }
html[data-bs-theme="dark"] [style*="background:#e3ecf3"] { background-color: #182a38 !important; }
html[data-bs-theme="dark"] [style*="background: #e3f2fd"],
html[data-bs-theme="dark"] [style*="background:#e3f2fd"] { background-color: #152632 !important; }
html[data-bs-theme="dark"] [style*="background:#e7f1ff"] { background-color: #131f2f !important; }
html[data-bs-theme="dark"] [style*="background:#e8f5e9"] { background-color: #163319 !important; }
html[data-bs-theme="dark"] [style*="background:#e8f6ee"] { background-color: #153422 !important; }
html[data-bs-theme="dark"] [style*="background: #e9ecef"],
html[data-bs-theme="dark"] [style*="background:#e9ecef"] { background-color: #21272d !important; }
html[data-bs-theme="dark"] [style*="background:#ecfdf5"] { background-color: #122d20 !important; }
html[data-bs-theme="dark"] [style*="background:#eef2f7"] { background-color: #15202d !important; }
html[data-bs-theme="dark"] [style*="background:#eef2ff"] { background-color: #11172a !important; }
html[data-bs-theme="dark"] [style*="background:#eef4f8"] { background-color: #13242f !important; }
html[data-bs-theme="dark"] [style*="background:#eef4ff"] { background-color: #111a2a !important; }
html[data-bs-theme="dark"] [style*="background: #f0f0f0"] { background-color: #1e2329 !important; }
html[data-bs-theme="dark"] [style*="background: #f0f2f5"],
html[data-bs-theme="dark"] [style*="background:#f0f2f5"] { background-color: #1b2028 !important; }
html[data-bs-theme="dark"] [style*="background: #f0f8ff"] { background-color: #111e29 !important; }
html[data-bs-theme="dark"] [style*="background:#f0f9f4"] { background-color: #122d1e !important; }
html[data-bs-theme="dark"] [style*="background: #f0fdf4"] { background-color: #112a19 !important; }
html[data-bs-theme="dark"] [style*="background:#f1f5f9"] { background-color: #131f2b !important; }
html[data-bs-theme="dark"] [style*="background:#f3f4f6"] { background-color: #1b1e24 !important; }
html[data-bs-theme="dark"] [style*="background:#f4f6f8"] { background-color: #171e25 !important; }
html[data-bs-theme="dark"] [style*="background: #f5f5f5"],
html[data-bs-theme="dark"] [style*="background:#f5f5f5"] { background-color: #1a1f24 !important; }
html[data-bs-theme="dark"] [style*="background:#f5f5f7"] { background-color: #1b1b22 !important; }
html[data-bs-theme="dark"] [style*="background:#f6f8fa"] { background-color: #141c24 !important; }
html[data-bs-theme="dark"] [style*="background:#f7f9fc"] { background-color: #101926 !important; }
html[data-bs-theme="dark"] [style*="background: #f8f9fa"],
html[data-bs-theme="dark"] [style*="background:#f8f9fa"] { background-color: #171b20 !important; }
html[data-bs-theme="dark"] [style*="background:#f8fafc"] { background-color: #101b25 !important; }
html[data-bs-theme="dark"] [style*="background:#f8fbfd"] { background-color: #0f1c25 !important; }
html[data-bs-theme="dark"] [style*="background:#f8fbff"] { background-color: #152335 !important; }
html[data-bs-theme="dark"] [style*="background:#faf8ff"] { background-color: #1e1535 !important; }
html[data-bs-theme="dark"] [style*="background: #fafafa"],
html[data-bs-theme="dark"] [style*="background:#fafafa"] { background-color: #161a1f !important; }
html[data-bs-theme="dark"] [style*="background:#fafbfc"] { background-color: #131a20 !important; }
html[data-bs-theme="dark"] [style*="background:#fbfcfd"] { background-color: #192531 !important; }
html[data-bs-theme="dark"] [style*="background:#fee2e2"] { background-color: #321515 !important; }
html[data-bs-theme="dark"] [style*="background:#fef2f2"] { background-color: #281010 !important; }
html[data-bs-theme="dark"] [style*="background:#fef3c7"] { background-color: #443c1c !important; }
html[data-bs-theme="dark"] [style*="background: #fefce8"] { background-color: #2f2c13 !important; }
html[data-bs-theme="dark"] [style*="background: #fff"],
html[data-bs-theme="dark"] [style*="background:#fff"] { background-color: #1f242b !important; }
html[data-bs-theme="dark"] [style*="background:#fff3cd"] { background-color: #3f361a !important; }
html[data-bs-theme="dark"] [style*="background:#fff8e1"] { background-color: #322c15 !important; }
html[data-bs-theme="dark"] [style*="background:#fff8f0"] { background-color: #291e11 !important; }
html[data-bs-theme="dark"] [style*="background:#fffbeb"] { background-color: #2c2712 !important; }
html[data-bs-theme="dark"] [style*="background: linear-gradient(135deg, #2E6B94, #5B8FB9)"] { background: linear-gradient(135deg, #2e6b94, #5b8fb9) !important; }
html[data-bs-theme="dark"] [style*="background: linear-gradient(135deg, #e8f0f6 0%, #f0f6fb 100%)"] { background: linear-gradient(135deg, #152734 0%, #12202b 100%) !important; }
html[data-bs-theme="dark"] [style*="background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%)"] { background: linear-gradient(135deg, #171b20 0%, #21272d 100%) !important; }
html[data-bs-theme="dark"] [style*="background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%)"] { background: linear-gradient(135deg, #1f242b 0%, #1e2329 100%) !important; }
html[data-bs-theme="dark"] [style*="background:linear-gradient(135deg, rgba(99,102,241,0.03), rgba(139,92,246,0.05))"] { background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.05)) !important; }
html[data-bs-theme="dark"] [style*="background:linear-gradient(135deg,#1A4D8C,#667eea)"] { background: linear-gradient(135deg,#1a4d8c,#667eea) !important; }
html[data-bs-theme="dark"] [style*="background:linear-gradient(135deg,#ecfdf5 0%,#f0fdfa 100%)"] { background: linear-gradient(135deg,#122d20 0%,#112a24 100%) !important; }
html[data-bs-theme="dark"] [style*="background: linear-gradient(135deg,#fff7ed 0%, #fef2f2 100%)"] { background: linear-gradient(135deg,#2b2011 0%, #281010 100%) !important; }
html[data-bs-theme="dark"] [style*="background:linear-gradient(135deg,#ffffff 0%,#f5f5f5 100%)"] { background: linear-gradient(135deg,#1f242b 0%,#1a1f24 100%) !important; }
html[data-bs-theme="dark"] [style*="background:linear-gradient(135deg,rgba(99,102,241,0.06),rgba(99,102,241,0.02))"] { background: linear-gradient(135deg,rgba(99, 102, 241, 0.06),rgba(99, 102, 241, 0.02)) !important; }
html[data-bs-theme="dark"] [style*="background:linear-gradient(135deg,rgba(99,102,241,0.08),rgba(99,102,241,0.02))"] { background: linear-gradient(135deg,rgba(99, 102, 241, 0.08),rgba(99, 102, 241, 0.02)) !important; }
html[data-bs-theme="dark"] [style*="background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%)"] { background: linear-gradient(180deg, #1f242b 0%, #171b20 50%, #21272d 100%) !important; }
html[data-bs-theme="dark"] [style*="background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%)"] { background: radial-gradient(circle at 30% 20%, rgba(31, 36, 43, 0.1) 0%, transparent 50%) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(0,0,0,.4)"] { background-color: rgba(0, 0, 0, 0.4) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(0,0,0,.5)"] { background-color: rgba(0, 0, 0, 0.5) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(0,0,0,0.02)"] { background-color: rgba(255, 255, 255, 0.02) !important; }
html[data-bs-theme="dark"] [style*="background: rgba(0,0,0,0.05)"] { background-color: rgba(255, 255, 255, 0.05) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(0,0,0,0.06)"] { background-color: rgba(255, 255, 255, 0.06) !important; }
html[data-bs-theme="dark"] [style*="background: rgba(0,0,0,0.5)"] { background-color: rgba(0, 0, 0, 0.5) !important; }
html[data-bs-theme="dark"] [style*="background: rgba(0,0,0,0.8)"] { background-color: rgba(0, 0, 0, 0.8) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(139,92,246,0.1)"] { background-color: rgba(139, 92, 246, 0.1) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(15,20,28,.55)"] { background-color: rgba(15, 20, 28, 0.55) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(245,158,11,0.1)"] { background-color: rgba(245, 158, 11, 0.1) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(25,135,84,0.08)"] { background-color: rgba(25, 135, 84, 0.08) !important; }
html[data-bs-theme="dark"] [style*="background: rgba(255,255,255,0.1)"] { background-color: rgba(31, 36, 43, 0.1) !important; }
html[data-bs-theme="dark"] [style*="background: rgba(255,255,255,0.2)"] { background-color: rgba(31, 36, 43, 0.2) !important; }
html[data-bs-theme="dark"] [style*="background: rgba(255,255,255,0.3)"] { background-color: rgba(31, 36, 43, 0.3) !important; }
html[data-bs-theme="dark"] [style*="background: rgba(255,255,255,0.9)"] { background-color: rgba(31, 36, 43, 0.9) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(45,157,120,0.1)"] { background-color: rgba(45, 157, 120, 0.1) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(46,107,148,0.08)"] { background-color: rgba(46, 107, 148, 0.08) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(46,107,148,0.1)"] { background-color: rgba(46, 107, 148, 0.1) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(91,155,127,.05)"] { background-color: rgba(91, 155, 127, 0.05) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(99,102,241,0.08)"] { background-color: rgba(99, 102, 241, 0.08) !important; }
html[data-bs-theme="dark"] [style*="background:rgba(99,102,241,0.12)"] { background-color: rgba(99, 102, 241, 0.12) !important; }
html[data-bs-theme="dark"] [style*="background:var(--bg-subtle,#f6f8fa)"] { background-color: #141c24 !important; }
html[data-bs-theme="dark"] [style*="background:var(--bs-body-bg,#fff)"] { background-color: #1f242b !important; }
html[data-bs-theme="dark"] [style*="background: white"] { background-color: #1f242b !important; }
html[data-bs-theme="dark"] [style*="background: white !important"] { background-color: #1f242b !important; }
html[data-bs-theme="dark"] [style*="background-color: #DC3545"] { background-color: #dc3545 !important; }
html[data-bs-theme="dark"] [style*="background-color: #d1ecf1"] { background-color: #1c3f46 !important; }
html[data-bs-theme="dark"] [style*="background-color: #d4edda"] { background-color: #1d4627 !important; }
html[data-bs-theme="dark"] [style*="background-color: #e8f4f8"] { background-color: #152b32 !important; }
html[data-bs-theme="dark"] [style*="background-color: #f0f0f0"] { background-color: #1e2329 !important; }
html[data-bs-theme="dark"] [style*="background-color: #f0f8ff"] { background-color: #111e29 !important; }
html[data-bs-theme="dark"] [style*="background-color: #f8f9fa"] { background-color: #171b20 !important; }
html[data-bs-theme="dark"] [style*="background-color: #f9f9f9"] { background-color: #171b20 !important; }
html[data-bs-theme="dark"] [style*="background-color: #fff3cd"] { background-color: #3f361a !important; }
html[data-bs-theme="dark"] [style*="background-color: #ffffff !important"] { background-color: #1f242b !important; }
html[data-bs-theme="dark"] [style*="border:1px dashed #aaa"] { border: 1px dashed #aaaaaa !important; }
html[data-bs-theme="dark"] [style*="border:1px dashed #d3d9df"] { border: 1px dashed #2e363f !important; }
html[data-bs-theme="dark"] [style*="border:1px dashed rgba(99,102,241,0.4)"] { border: 1px dashed rgba(99, 102, 241, 0.4) !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #a7f3d0"] { border: 1px solid #27523e !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #b6d4fe"] { border: 1px solid #233248 !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #b7e4c7"] { border: 1px solid #275236 !important; }
html[data-bs-theme="dark"] [style*="border: 1px solid #c3e6cb"] { border: 1px solid #254c2e !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #cbd5e1"] { border: 1px solid #293647 !important; }
html[data-bs-theme="dark"] [style*="border: 1px solid #ccc"] { border: 1px solid #333c47 !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #cddbff"] { border: 1px solid #1e283f !important; }
html[data-bs-theme="dark"] [style*="border: 1px solid #ddd"],
html[data-bs-theme="dark"] [style*="border:1px solid #ddd"] { border: 1px solid #2c333c !important; }
html[data-bs-theme="dark"] [style*="border: 1px solid #dee2e6"],
html[data-bs-theme="dark"] [style*="border:1px solid #dee2e6"] { border: 1px solid #2a3138 !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #dfe6ec"] { border: 1px solid #23303b !important; }
html[data-bs-theme="dark"] [style*="border: 1px solid #e0e0e0"] { border: 1px solid #2a313a !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #e2e8f0"] { border: 1px solid #1f2b3c !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #e3e6ec"] { border: 1px solid #252b37 !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #e7defb"] { border: 1px solid #261c3a !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #e9ecef"] { border: 1px solid #252c32 !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #f1f2f4"] { border: 1px solid #23262d !important; }
html[data-bs-theme="dark"] [style*="border:1px solid #ffd9a8"] { border: 1px solid #4d3c25 !important; }
html[data-bs-theme="dark"] [style*="border: 1px solid #ffeaa7"] { border: 1px solid #4d4425 !important; }
html[data-bs-theme="dark"] [style*="border:1px solid rgba(0,0,0,.08)"] { border: 1px solid rgba(255, 255, 255, 0.08) !important; }
html[data-bs-theme="dark"] [style*="border:1px solid rgba(0,0,0,0.15)"] { border: 1px solid rgba(255, 255, 255, 0.15) !important; }
html[data-bs-theme="dark"] [style*="border:1px solid rgba(99,102,241,0.12)!important"] { border: 1px solid rgba(99, 102, 241, 0.12) !important; }
html[data-bs-theme="dark"] [style*="border:1px solid rgba(99,102,241,0.2)"] { border: 1px solid rgba(99, 102, 241, 0.2) !important; }
html[data-bs-theme="dark"] [style*="border:2px dashed #b8d2e3"] { border: 2px dashed #274152 !important; }
html[data-bs-theme="dark"] [style*="border:2px dashed #dee2e6"] { border: 2px dashed #2a3138 !important; }
html[data-bs-theme="dark"] [style*="border: 2px solid #333"] { border: 2px solid #333333 !important; }
html[data-bs-theme="dark"] [style*="border: 2px solid rgba(255,255,255,0.2)"] { border: 2px solid rgba(28, 33, 38, 0.2) !important; }
html[data-bs-theme="dark"] [style*="border: 2px solid rgba(255,255,255,0.3)"] { border: 2px solid rgba(28, 33, 38, 0.3) !important; }
html[data-bs-theme="dark"] [style*="border-bottom: 1px solid #dee2e6"],
html[data-bs-theme="dark"] [style*="border-bottom:1px solid #dee2e6"] { border-bottom: 1px solid #2a3138 !important; }
html[data-bs-theme="dark"] [style*="border-bottom: 1px solid #dee2e6 !important"] { border-bottom: 1px solid #2a3138 !important; }
html[data-bs-theme="dark"] [style*="border-bottom: 1px solid #e5e7eb"] { border-bottom: 1px solid #282c34 !important; }
html[data-bs-theme="dark"] [style*="border-bottom:1px solid #eceef1"] { border-bottom: 1px solid #242931 !important; }
html[data-bs-theme="dark"] [style*="border-bottom:1px solid #eef2f5"] { border-bottom: 1px solid #1e2a33 !important; }
html[data-bs-theme="dark"] [style*="border-bottom:1px solid #f1f3f5"] { border-bottom: 1px solid #21282e !important; }
html[data-bs-theme="dark"] [style*="border-bottom:1px solid rgba(99,102,241,0.15)"] { border-bottom: 1px solid rgba(99, 102, 241, 0.15) !important; }
html[data-bs-theme="dark"] [style*="border-bottom:1px solid var(--bs-border-color,#dee2e6)"] { border-bottom: 1px solid var(--bs-border-color,#2a3138) !important; }
html[data-bs-theme="dark"] [style*="border-color:#c7d2fe"] { border-color: #202742 !important; }
html[data-bs-theme="dark"] [style*="border-color:#ffd9a8!important"] { border-color: #4d3c25 !important; }
html[data-bs-theme="dark"] [style*="border-left: 2px solid #ccc"] { border-left: 2px solid #333c47 !important; }
html[data-bs-theme="dark"] [style*="border-right:1px solid #edf0f2"] { border-right: 1px solid #232b30 !important; }
html[data-bs-theme="dark"] [style*="border-top: 1px solid #ccc"] { border-top: 1px solid #333c47 !important; }
html[data-bs-theme="dark"] [style*="border-top:1px solid #e2e8f0"] { border-top: 1px solid #1f2b3c !important; }
html[data-bs-theme="dark"] [style*="border-top:1px solid #eceef1"] { border-top: 1px solid #242931 !important; }
html[data-bs-theme="dark"] [style*="border-top:1px solid #eef2f6"] { border-top: 1px solid #1c2835 !important; }
html[data-bs-theme="dark"] [style*="border-top:1px solid #f0f1f4"] { border-top: 1px solid #22252f !important; }
html[data-bs-theme="dark"] [style*="border-top:1px solid #f1f3f5"] { border-top: 1px solid #21282e !important; }
html[data-bs-theme="dark"] [style*="border-top:1px solid #fee2e2"] { border-top: 1px solid #381b1b !important; }
html[data-bs-theme="dark"] [style*="border-top:2px solid #e6e8ec"] { border-top: 2px solid #272b33 !important; }
html[data-bs-theme="dark"] [style*="color: #000"]:not([style*="background-color: #000"]):not([style*="border-color: #000"]),
html[data-bs-theme="dark"] [style*="color:#000"]:not([style*="background-color:#000"]):not([style*="border-color:#000"]) { color: #ffffff !important; }
html[data-bs-theme="dark"] [style*="color: #000 !important"]:not([style*="background-color: #000 !important"]):not([style*="border-color: #000 !important"]) { color: #ffffff !important; }
html[data-bs-theme="dark"] [style*="color:#047857"]:not([style*="background-color:#047857"]):not([style*="border-color:#047857"]) { color: #ade7d7 !important; }
html[data-bs-theme="dark"] [style*="color:#065f46"]:not([style*="background-color:#065f46"]):not([style*="border-color:#065f46"]) { color: #bcecde !important; }
html[data-bs-theme="dark"] [style*="color:#084298"]:not([style*="background-color:#084298"]):not([style*="border-color:#084298"]) { color: #96b4e0 !important; }
html[data-bs-theme="dark"] [style*="color:#0ca678"]:not([style*="background-color:#0ca678"]):not([style*="border-color:#0ca678"]) { color: #8addc4 !important; }
html[data-bs-theme="dark"] [style*="color:#0d9488"]:not([style*="background-color:#0d9488"]):not([style*="border-color:#0d9488"]) { color: #95e0da !important; }
html[data-bs-theme="dark"] [style*="color: #10b981"]:not([style*="background-color: #10b981"]):not([style*="border-color: #10b981"]),
html[data-bs-theme="dark"] [style*="color:#10b981"]:not([style*="background-color:#10b981"]):not([style*="border-color:#10b981"]) { color: #7bd9b9 !important; }
html[data-bs-theme="dark"] [style*="color:#111"]:not([style*="background-color:#111"]):not([style*="border-color:#111"]) { color: #f1f1f1 !important; }
html[data-bs-theme="dark"] [style*="color: #141414 !important"]:not([style*="background-color: #141414 !important"]):not([style*="border-color: #141414 !important"]) { color: #eeeeee !important; }
html[data-bs-theme="dark"] [style*="color: #1565c0"]:not([style*="background-color: #1565c0"]):not([style*="border-color: #1565c0"]),
html[data-bs-theme="dark"] [style*="color:#1565c0"]:not([style*="background-color:#1565c0"]):not([style*="border-color:#1565c0"]) { color: #73a1d6 !important; }
html[data-bs-theme="dark"] [style*="color:#15803d"]:not([style*="background-color:#15803d"]):not([style*="border-color:#15803d"]) { color: #9de3b7 !important; }
html[data-bs-theme="dark"] [style*="color:#166534"]:not([style*="background-color:#166534"]):not([style*="border-color:#166534"]) { color: #aee7c4 !important; }
html[data-bs-theme="dark"] [style*="color:#16a34a"]:not([style*="background-color:#16a34a"]):not([style*="border-color:#16a34a"]) { color: #85dca5 !important; }
html[data-bs-theme="dark"] [style*="color: #1976d2"]:not([style*="background-color: #1976d2"]):not([style*="border-color: #1976d2"]) { color: #649bd2 !important; }
html[data-bs-theme="dark"] [style*="color:#198754"]:not([style*="background-color:#198754"]):not([style*="border-color:#198754"]) { color: #96e0be !important; }
html[data-bs-theme="dark"] [style*="color:#1A4D8C"]:not([style*="background-color:#1A4D8C"]):not([style*="border-color:#1A4D8C"]) { color: #92b4df !important; }
html[data-bs-theme="dark"] [style*="color:#1a2332"]:not([style*="background-color:#1a2332"]):not([style*="border-color:#1a2332"]) { color: #d4dce9 !important; }
html[data-bs-theme="dark"] [style*="color:#1c1c1c"]:not([style*="background-color:#1c1c1c"]):not([style*="border-color:#1c1c1c"]) { color: #e7e7e7 !important; }
html[data-bs-theme="dark"] [style*="color:#1d4ed8"]:not([style*="background-color:#1d4ed8"]):not([style*="border-color:#1d4ed8"]) { color: #617ed1 !important; }
html[data-bs-theme="dark"] [style*="color:#1e293b"]:not([style*="background-color:#1e293b"]):not([style*="border-color:#1e293b"]) { color: #cdd6e5 !important; }
html[data-bs-theme="dark"] [style*="color:#1f9254"]:not([style*="background-color:#1f9254"]):not([style*="border-color:#1f9254"]) { color: #8addb1 !important; }
html[data-bs-theme="dark"] [style*="color:#212529"]:not([style*="background-color:#212529"]):not([style*="border-color:#212529"]) { color: #dce0e3 !important; }
html[data-bs-theme="dark"] [style*="color:#222"]:not([style*="background-color:#222"]):not([style*="border-color:#222"]) { color: #e2e2e2 !important; }
html[data-bs-theme="dark"] [style*="color:#2E6B94"]:not([style*="background-color:#2E6B94"]):not([style*="border-color:#2E6B94"]) { color: #81b5d8 !important; }
html[data-bs-theme="dark"] [style*="color:#2a9d4e"]:not([style*="background-color:#2a9d4e"]):not([style*="border-color:#2a9d4e"]) { color: #7cd999 !important; }
html[data-bs-theme="dark"] [style*="color:#2d8a4e"]:not([style*="background-color:#2d8a4e"]):not([style*="border-color:#2d8a4e"]) { color: #8ad9a6 !important; }
html[data-bs-theme="dark"] [style*="color:#2d9d78"]:not([style*="background-color:#2d9d78"]):not([style*="border-color:#2d9d78"]) { color: #7ad8b9 !important; }
html[data-bs-theme="dark"] [style*="color: #2e2e2e"]:not([style*="background-color: #2e2e2e"]):not([style*="border-color: #2e2e2e"]),
html[data-bs-theme="dark"] [style*="color:#2e2e2e"]:not([style*="background-color:#2e2e2e"]):not([style*="border-color:#2e2e2e"]) { color: #d8d8d8 !important; }
html[data-bs-theme="dark"] [style*="color:#2e6b94"]:not([style*="background-color:#2e6b94"]):not([style*="border-color:#2e6b94"]) { color: #81b5d8 !important; }
html[data-bs-theme="dark"] [style*="color: #2e7d32"]:not([style*="background-color: #2e7d32"]):not([style*="border-color: #2e7d32"]),
html[data-bs-theme="dark"] [style*="color:#2e7d32"]:not([style*="background-color:#2e7d32"]):not([style*="border-color:#2e7d32"]) { color: #95d898 !important; }
html[data-bs-theme="dark"] [style*="color: #333"]:not([style*="background-color: #333"]):not([style*="border-color: #333"]) { color: #d4d4d4 !important; }
html[data-bs-theme="dark"] [style*="color:#334155"]:not([style*="background-color:#334155"]):not([style*="border-color:#334155"]) { color: #b7c3d4 !important; }
html[data-bs-theme="dark"] [style*="color: #495057"]:not([style*="background-color: #495057"]):not([style*="border-color: #495057"]),
html[data-bs-theme="dark"] [style*="color:#495057"]:not([style*="background-color:#495057"]):not([style*="border-color:#495057"]) { color: #b5bbc1 !important; }
html[data-bs-theme="dark"] [style*="color:#4a4a4a"]:not([style*="background-color:#4a4a4a"]):not([style*="border-color:#4a4a4a"]) { color: #c0c0c0 !important; }
html[data-bs-theme="dark"] [style*="color:#4b5563"]:not([style*="background-color:#4b5563"]):not([style*="border-color:#4b5563"]) { color: #abb3bf !important; }
html[data-bs-theme="dark"] [style*="color:#4caf50"]:not([style*="background-color:#4caf50"]):not([style*="border-color:#4caf50"]) { color: #71c174 !important; }
html[data-bs-theme="dark"] [style*="color:#555"]:not([style*="background-color:#555"]):not([style*="border-color:#555"]) { color: #b7b7b7 !important; }
html[data-bs-theme="dark"] [style*="color:#57636C"]:not([style*="background-color:#57636C"]):not([style*="border-color:#57636C"]) { color: #a3adb5 !important; }
html[data-bs-theme="dark"] [style*="color:#5a626c"]:not([style*="background-color:#5a626c"]):not([style*="border-color:#5a626c"]) { color: #a3aab2 !important; }
html[data-bs-theme="dark"] [style*="color:#5e6d7f"]:not([style*="background-color:#5e6d7f"]):not([style*="border-color:#5e6d7f"]) { color: #93a0af !important; }
html[data-bs-theme="dark"] [style*="color:#64748b"]:not([style*="background-color:#64748b"]):not([style*="border-color:#64748b"]) { color: #8996aa !important; }
html[data-bs-theme="dark"] [style*="color: #666"]:not([style*="background-color: #666"]):not([style*="border-color: #666"]),
html[data-bs-theme="dark"] [style*="color:#666"]:not([style*="background-color:#666"]):not([style*="border-color:#666"]) { color: #a8a8a8 !important; }
html[data-bs-theme="dark"] [style*="color:#6b7280"]:not([style*="background-color:#6b7280"]):not([style*="border-color:#6b7280"]) { color: #9298a4 !important; }
html[data-bs-theme="dark"] [style*="color:#6c4400"]:not([style*="background-color:#6c4400"]):not([style*="border-color:#6c4400"]) { color: #ead8b8 !important; }
html[data-bs-theme="dark"] [style*="color: #6c757d"]:not([style*="background-color: #6c757d"]):not([style*="border-color: #6c757d"]),
html[data-bs-theme="dark"] [style*="color:#6c757d"]:not([style*="background-color:#6c757d"]):not([style*="border-color:#6c757d"]) { color: #959ca3 !important; }
html[data-bs-theme="dark"] [style*="color:#842029"]:not([style*="background-color:#842029"]):not([style*="border-color:#842029"]) { color: #e0939a !important; }
html[data-bs-theme="dark"] [style*="color: #856404"]:not([style*="background-color: #856404"]):not([style*="border-color: #856404"]),
html[data-bs-theme="dark"] [style*="color:#856404"]:not([style*="background-color:#856404"]):not([style*="border-color:#856404"]) { color: #e5d4a5 !important; }
html[data-bs-theme="dark"] [style*="color: #888"]:not([style*="background-color: #888"]):not([style*="border-color: #888"]),
html[data-bs-theme="dark"] [style*="color:#888"]:not([style*="background-color:#888"]):not([style*="border-color:#888"]) { color: #888888 !important; }
html[data-bs-theme="dark"] [style*="color:#8B4513"]:not([style*="background-color:#8B4513"]):not([style*="border-color:#8B4513"]) { color: #e1b697 !important; }
html[data-bs-theme="dark"] [style*="color:#92400e"]:not([style*="background-color:#92400e"]):not([style*="border-color:#92400e"]) { color: #e0b296 !important; }
html[data-bs-theme="dark"] [style*="color:#B4322E"]:not([style*="background-color:#B4322E"]):not([style*="border-color:#B4322E"]) { color: #d46d6a !important; }
html[data-bs-theme="dark"] [style*="color:#b02a37"]:not([style*="background-color:#b02a37"]):not([style*="border-color:#b02a37"]) { color: #d56f79 !important; }
html[data-bs-theme="dark"] [style*="color:#b45309"]:not([style*="background-color:#b45309"]):not([style*="border-color:#b45309"]) { color: #dba982 !important; }
html[data-bs-theme="dark"] [style*="color:#b54708"]:not([style*="background-color:#b54708"]):not([style*="border-color:#b54708"]) { color: #dba382 !important; }
html[data-bs-theme="dark"] [style*="color: #b85c00"]:not([style*="background-color: #b85c00"]):not([style*="border-color: #b85c00"]) { color: #dcb186 !important; }
html[data-bs-theme="dark"] [style*="color: #b8860b"]:not([style*="background-color: #b8860b"]):not([style*="border-color: #b8860b"]) { color: #dabf7f !important; }
html[data-bs-theme="dark"] [style*="color:#b91c1c"]:not([style*="background-color:#b91c1c"]):not([style*="border-color:#b91c1c"]) { color: #d67373 !important; }
html[data-bs-theme="dark"] [style*="color:#c2610a"]:not([style*="background-color:#c2610a"]):not([style*="border-color:#c2610a"]) { color: #d8a679 !important; }
html[data-bs-theme="dark"] [style*="color:#e08e0b"]:not([style*="background-color:#e08e0b"]):not([style*="border-color:#e08e0b"]) { color: #d2a864 !important; }
html[data-bs-theme="dark"] [style*="color: #f57c00"]:not([style*="background-color: #f57c00"]):not([style*="border-color: #f57c00"]) { color: #d19a61 !important; }
html[data-bs-theme="dark"] [style*="color:#fff"]:not([style*="background-color:#fff"]):not([style*="border-color:#fff"]) { color: #ffffff !important; }
html[data-bs-theme="dark"] [style*="color: #fff !important"]:not([style*="background-color: #fff !important"]):not([style*="border-color: #fff !important"]),
html[data-bs-theme="dark"] [style*="color:#fff !important"]:not([style*="background-color:#fff !important"]):not([style*="border-color:#fff !important"]) { color: #ffffff !important; }
html[data-bs-theme="dark"] [style*="color: rgba(0,0,0,0.5) !important"]:not([style*="background-color: rgba(0,0,0,0.5) !important"]):not([style*="border-color: rgba(0,0,0,0.5) !important"]) { color: rgba(255, 255, 255, 0.5) !important; }
html[data-bs-theme="dark"] [style*="color: rgba(0,0,0,0.7) !important"]:not([style*="background-color: rgba(0,0,0,0.7) !important"]):not([style*="border-color: rgba(0,0,0,0.7) !important"]) { color: rgba(255, 255, 255, 0.7) !important; }
html[data-bs-theme="dark"] [style*="color: rgba(255,255,255,0.5) !important"]:not([style*="background-color: rgba(255,255,255,0.5) !important"]):not([style*="border-color: rgba(255,255,255,0.5) !important"]) { color: rgba(255, 255, 255, 0.5) !important; }
html[data-bs-theme="dark"] [style*="color: rgba(255,255,255,0.75) !important"]:not([style*="background-color: rgba(255,255,255,0.75) !important"]):not([style*="border-color: rgba(255,255,255,0.75) !important"]) { color: rgba(255, 255, 255, 0.75) !important; }
html[data-bs-theme="dark"] [style*="color: rgba(255,255,255,0.8)"]:not([style*="background-color: rgba(255,255,255,0.8)"]):not([style*="border-color: rgba(255,255,255,0.8)"]) { color: rgba(255, 255, 255, 0.8) !important; }
html[data-bs-theme="dark"] [style*="color:var(--v2-primary,#2e6b94)"]:not([style*="background-color:var(--v2-primary,#2e6b94)"]):not([style*="border-color:var(--v2-primary,#2e6b94)"]) { color: var(--v2-primary,#81b5d8) !important; }
html[data-bs-theme="dark"] [style*="color: white"]:not([style*="background-color: white"]):not([style*="border-color: white"]),
html[data-bs-theme="dark"] [style*="color:white"]:not([style*="background-color:white"]):not([style*="border-color:white"]) { color: #ffffff !important; }

/* darkmode-v3: Zusatzschicht aus nachgeladenen HTML-Bausteinen (gen_fragmente.py).
   Nicht von Hand bearbeiten - neu erzeugen. Greift nur bei html[data-bs-theme="dark"]. */

/* ---- Quelle: heygen-avatars.html (24 Regeln) ---- */
html[data-bs-theme="dark"] #heygen-avatars-page .ha-header h1 i { color: #d8d8d8; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-status.ok { background: #173822; color: #aee7c4; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-status.err { background: #321515; color: #dd8888; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-status.loading { background: #162437; color: #788ed8; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-current { background: #1f242b; border: 1px solid #282c34; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-current-thumb { background: #1b1e24; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-current-info .label { color: #9298a4; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-current-info .voice { color: #9298a4; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-tab { border: 1px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-tab.active { background: #2e2e2e; color: #ffffff; border-color: #2e2e2e; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-search { border: 1px solid #282c34; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-counter { color: #9298a4; }
html[data-bs-theme="dark"] #heygen-avatars-page .heygen-avatar-card { background: #1f242b; border: 2px solid #282c34; }
html[data-bs-theme="dark"] #heygen-avatars-page .heygen-avatar-card.selected { border-color: #2e2e2e; }
html[data-bs-theme="dark"] #heygen-avatars-page .heygen-avatar-thumbnail { background: #1b1e24; }
html[data-bs-theme="dark"] #heygen-avatars-page .heygen-avatar-thumbnail .video-badge { background: rgba(0, 0, 0, 0.7); color: #ffffff; }
html[data-bs-theme="dark"] #heygen-avatars-page .heygen-avatar-info .avatar-name { color: #dee4f1; }
html[data-bs-theme="dark"] #heygen-avatars-page .heygen-avatar-info .avatar-gender { color: #9298a4; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-voice-section { background: #1f242b; border: 1px solid #282c34; }
html[data-bs-theme="dark"] #heygen-avatars-page .heygen-voice-select { border: 1px solid #282c34; background: #1f242b; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-actions { border-top: 1px solid #282c34; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-btn-primary { background: #2e2e2e; color: #ffffff; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-empty { color: #9298a4; }
html[data-bs-theme="dark"] #heygen-avatars-page .ha-loading { color: #9298a4; }

/* ---- Quelle: video-rooms.html (34 Regeln) ---- */
html[data-bs-theme="dark"] .vr-page { --vr-card: #1f242b; --vr-text: #dbe2f2; --vr-muted: #8996aa; --vr-border: rgba(255, 255, 255, 0.08); }
html[data-bs-theme="dark"] .ai-header { background: #1f242b; border: 1px solid #222d39; }
html[data-bs-theme="dark"] .ai-title { color: #d4dce9; }
html[data-bs-theme="dark"] .ai-subtitle { color: #959ca3; }
html[data-bs-theme="dark"] .ai-stat { background: #131b26; border: 1px solid #222d39; }
html[data-bs-theme="dark"] .ai-stat-value { color: #d4dce9; }
html[data-bs-theme="dark"] .vr-btn-primary { background: linear-gradient(135deg, #2c7be5, #1d56b5); color: #ffffff; }
html[data-bs-theme="dark"] .vr-btn-primary:hover { color: #ffffff; }
html[data-bs-theme="dark"] .vr-btn-ghost { background: rgba(31, 36, 43, 0.1); color: rgba(255, 255, 255, 0.95); border: 1px solid rgba(28, 33, 38, 0.15); }
html[data-bs-theme="dark"] .vr-modal .vr-btn-ghost { background: #131f2b; }
html[data-bs-theme="dark"] .vr-btn-ghost:hover { background: rgba(31, 36, 43, 0.18); color: #ffffff; }
html[data-bs-theme="dark"] .vr-modal .vr-btn-ghost:hover { background: #1d2837; }
html[data-bs-theme="dark"] .vr-btn-outline { background: #1f242b; }
html[data-bs-theme="dark"] .vr-btn-danger:hover { background: #321515; color: #dc2626; }
html[data-bs-theme="dark"] .vr-health-card.is-ok { border-left: 4px solid #18b884; }
html[data-bs-theme="dark"] .vr-health-card.is-bad { border-left: 4px solid #dc2626; }
html[data-bs-theme="dark"] .vr-health-card.is-warn { border-left: 4px solid #f59e0b; }
html[data-bs-theme="dark"] .vr-health-card.is-ok .vr-health-icon { color: #76d7b8; }
html[data-bs-theme="dark"] .vr-health-card.is-bad .vr-health-icon { color: #dc2626; }
html[data-bs-theme="dark"] .vr-health-card.is-warn .vr-health-icon { color: #f59e0b; }
html[data-bs-theme="dark"] .vr-stat-secure .vr-stat-icon { background: rgba(24, 184, 132, 0.12); color: #76d7b8; }
html[data-bs-theme="dark"] .vr-search-wrap input:focus { outline: none; }
html[data-bs-theme="dark"] .vr-card-action-btn { background: #1f242b; }
html[data-bs-theme="dark"] .vr-modal-switch { background: #101b25; }
html[data-bs-theme="dark"] .vr-tabs .nav-link.active { background: rgba(44, 123, 229, 0.1) !important; border-color: rgba(44, 123, 229, 0.2) !important; }
html[data-bs-theme="dark"] .vr-transcript-card { background: #1f242b; }
html[data-bs-theme="dark"] .vr-transcript-card.is-recording { border-color: rgba(217, 68, 82, 0.4); background: rgba(217, 68, 82, 0.04); }
html[data-bs-theme="dark"] .vr-transcript-card.is-processing { border-color: rgba(255, 159, 26, 0.4); }
html[data-bs-theme="dark"] .vr-status-processing { background: rgba(255, 159, 26, 0.15); color: #d3a067; }
html[data-bs-theme="dark"] .vr-status-ready { background: rgba(45, 157, 120, 0.15); color: #9ae2cd; }
html[data-bs-theme="dark"] .vr-status-failed { background: rgba(120, 120, 120, 0.15); color: #b7b7b7; }
html[data-bs-theme="dark"] .vr-segments { background: var(--vr-surface, #131b26); }
html[data-bs-theme="dark"] .vr-template-pill { background: #1f242b; }
html[data-bs-theme="dark"] .vr-template-pill.active { color: #ffffff; }

/* ---- Inline-Stile aus den Bausteinen (1 Muster, 1 schon vorhanden) ---- */
html[data-bs-theme="dark"] [style*="color:#374151"]:not([style*="background-color:#374151"]):not([style*="border-color:#374151"]) { color: #bac3d0 !important; }

/* darkmode-v4: Zusatzschicht KI-Team (Postfach, Dateiablage, Organigramm) aus gen_ketten.py.
   Nicht von Hand bearbeiten - neu erzeugen. Greift nur bei html[data-bs-theme="dark"]. */

/* ---- Quelle: modules/aiTeam.js - Stilketten (array@2991, array@6629, kette@13119) (45 Regeln) ---- */
html[data-bs-theme="dark"] .ait-mbody { border: 1px solid #252b37; }
html[data-bs-theme="dark"] .ait-mlinks { border-right: 1px solid #252b37; background: #152035; }
html[data-bs-theme="dark"] .ait-mrechts { background: #1f242b; }
html[data-bs-theme="dark"] .ait-mrow { border-bottom: 1px solid #202632; }
html[data-bs-theme="dark"] .ait-mrow:hover { background: #131c2b; }
html[data-bs-theme="dark"] .ait-mrow-neu { background: #1f242b; }
html[data-bs-theme="dark"] .ait-mrow-aktiv { background: #131c2e; }
html[data-bs-theme="dark"] .ait-mav { color: #ffffff; }
html[data-bs-theme="dark"] .ait-mdat { color: #959ca3; }
html[data-bs-theme="dark"] .ait-mbet { color: #adb2c0; }
html[data-bs-theme="dark"] .ait-mkopf { border-bottom: 1px solid #202632; }
html[data-bs-theme="dark"] .ait-mtxt { color: #dce0e3; }
@media (max-width:991px) { html[data-bs-theme="dark"] .ait-mlinks { border-bottom: 1px solid #252b37; } }
html[data-bs-theme="dark"] .ait-abbody { border: 1px solid #252b37; }
html[data-bs-theme="dark"] .ait-ablinks { border-right: 1px solid #252b37; background: #152035; }
html[data-bs-theme="dark"] .ait-abrechts { background: #1f242b; }
html[data-bs-theme="dark"] .ait-abrow { border-bottom: 1px solid #202632; }
html[data-bs-theme="dark"] .ait-abrow:hover { background: #131c2b; }
html[data-bs-theme="dark"] .ait-abrow-aktiv { background: #131c2e; }
html[data-bs-theme="dark"] .ait-abrow-wahl { background: #111a2a; }
html[data-bs-theme="dark"] .ait-abrow-weg { background: repeating-linear-gradient(45deg,#171b23,#171b23 6px,#1b1e26 6px,#1b1e26 12px); }
html[data-bs-theme="dark"] .ait-abweg-merker { background: #21272d; color: #b5bbc1; }
html[data-bs-theme="dark"] .ait-absz { color: #959ca3; }
html[data-bs-theme="dark"] .ait-abphead { border-bottom: 1px solid #202632; background: #152035; }
html[data-bs-theme="dark"] .ait-abblaetter { border-bottom: 1px solid #202632; background: #152035; }
html[data-bs-theme="dark"] .ait-abblatt { border: 1px solid #272f3e; background: #1f242b; color: #b5bbc1; }
html[data-bs-theme="dark"] .ait-abblatt:hover { background: #111a2a; }
html[data-bs-theme="dark"] .ait-abblatt-aktiv { background: #0d6efd; border-color: #0d6efd; color: #ffffff; }
html[data-bs-theme="dark"] .ait-abtab th,
html[data-bs-theme="dark"] .ait-abtab td { border-right: 1px solid #202632; border-bottom: 1px solid #202632; }
html[data-bs-theme="dark"] .ait-abtab thead th { background: #121a28; }
html[data-bs-theme="dark"] .ait-abtab tbody tr:hover td { background: #101926; }
html[data-bs-theme="dark"] .ait-abnr { background: #152035; color: #98a2b3; }
html[data-bs-theme="dark"] .ait-abtab thead .ait-abnr { background: #121a28; }
@media(max-width:991px) { html[data-bs-theme="dark"] .ait-ablinks { border-bottom: 1px solid #252b37; } }
html[data-bs-theme="dark"] .vo-orgb li::before,
html[data-bs-theme="dark"] .vo-orgb li::after { border-top: 2px solid #2d343c; }
html[data-bs-theme="dark"] .vo-orgb li::after { border-left: 2px solid #2d343c; }
html[data-bs-theme="dark"] .vo-orgb li:last-child::before { border-right: 2px solid #2d343c; }
html[data-bs-theme="dark"] .vo-orgb ul ul::before { border-left: 2px solid #2d343c; }
html[data-bs-theme="dark"] .vo-orgkasten { background: #1f242b; border: 1px solid #272d33; }
html[data-bs-theme="dark"] .vo-orgrolle { color: #959ca3; }
html[data-bs-theme="dark"] .vo-orgfuss { color: #959ca3; border-top: 1px solid #21282e; }
html[data-bs-theme="dark"] .vo-orgzahl { background: #1b232a; color: #b5bbc1; }
html[data-bs-theme="dark"] .vo-orgzahn:hover { color: #0d6efd; }
html[data-bs-theme="dark"] .vo-orgich { background: #171028; border-color: #291f40; border-top: 3px solid #7048c4; }

/* ---- darkmode-v4: Nacharbeit von Hand - Statuspalette von Berichte/Verlauf (aiteam.css .v2-layout --aiv-*).
   Die Toene sind fuer hellen Grund gewaehlt (2,0-3,1 : 1 auf dunklen Karten). Aufgehellt auf >= 6,4 : 1.
   Die Farbe steht nur als Schrift, Streifen (aiv-kpi::before) und Punkt (aiv-punkt), nie hinter Schrift. */
html[data-bs-theme="dark"] .v2-layout {
    --aiv-good:    #3fc497;
    --aiv-warn:    #e0a445;
    --aiv-neutral: #a3afc2;
    --aiv-info:    #9aa8f2;
}

/* Geoeffnete HTML-Mail (iframe.ait-mhtml, srcdoc): Inhalt stammt vom Absender und ist fuer weissen
   Grund gestaltet - wie in jedem Mailprogramm bleibt der Lesebereich hell. Die allgemeine
   iframe-Regel der v1-Schicht (dunkler Verlauf, !important) wird hier ueberstimmt; color-scheme
   light verhindert, dass der Browser den Rahmen dunkel hinterlegt (Firefox/Safari). */
html[data-bs-theme="dark"] iframe.ait-mhtml { background: #ffffff !important; color-scheme: light; }

/* Tarifseite: --pr-ok (styles.css .vo-pr, #0f7b4f) steht nur als Schrift/Symbol ("10 % guenstiger",
   Haken) auf --pr-ok-soft - im Dunkel 2,9 : 1. Gleicher Farbton aufgehellt: 7,0 : 1. */
html[data-bs-theme="dark"] .vo-pr { --pr-ok: #3fc497; }


/* ---- darkmode-v1: gezielte Nacharbeit (von Hand, nach Messung im echten Browser) ---- */
/* voiceOne-/mediOne-Logo: dunkle Wortmarke auf dunklem Grund unlesbar. Invertieren + Farbton
   zurueckdrehen haelt das Blau und hellt nur das Grau auf. Fremd-Logos der Partner bleiben
   unangetastet (ihre Gestaltung ist nicht unsere Entscheidung). */
html[data-bs-theme="dark"] img[src$="images/logo.png"],
html[data-bs-theme="dark"] img[src*="images/logo.png?"],
html[data-bs-theme="dark"] img[src*="medione-logo"] { filter: invert(1) hue-rotate(180deg) brightness(1.05); }

/* ---- darkmode-v5: Nacharbeit von Hand - Seitenhintergrund (Michaels "graues Band unten") ----
   Die erzeugte Schicht setzt body viermal neu (styles.css, mobile-menu.css, ...), zuletzt auf
   #171b20, und gewinnt damit gegen die Grundlage (Z.50, --dm-grund #12161c). Unterhalb des
   Layouts liegt der leere Abo-Block #subscription-container (index_v2.html ~Z.7939, 60 px
   Innenabstand, transparent, von keinem Skript benutzt) - dort scheint der body durch und
   erscheint als hellerer Streifen. Hier wird der body auf die Grundfarbe zurueckgesetzt, dann
   ist der Streifen farbgleich mit dem Layout. Hell bleibt unveraendert. */
html[data-bs-theme="dark"] body { background: var(--dm-grund); }
