
/* darkmode.css */

/* ==========================================
   DARK MODE – GRUNDFARBEN
   ========================================== */

html.dark {
    color-scheme: dark;

    --color-border: #383838;
    --color-dlv-grey: #a8a8a8;
}

/* Grundfarben */
html.dark body {
    background-color: #121212;
    color: #f1f1f1;
}

/* Bestehende Tailwind-Klassen */
html.dark .bg-white {
    background-color: #1d1d1d;
}

html.dark .text-black {
    color: #f1f1f1;
}

html.dark .border-white {
    border-color: #121212;
}

html.dark .bg-dlv-grey {
    background-color: #353535;
}

/* Hover-Effekte */
@media (hover: hover) {
    html.dark .hover\:bg-white:hover {
        background-color: #292929;
    }

    html.dark .hover\:bg-gray-100:hover {
        background-color: #292929;
    }

    html.dark .hover\:text-black:hover {
        color: #ffffff;
    }
}

/* Formulare */
html.dark input,
html.dark select,
html.dark textarea {
    color: #f1f1f1;
}


/* ==========================================
   SVG-BAUMGRAFIK
   ========================================== */

html.dark .cls-tree-container svg text,
html.dark .cls-tree-container svg tspan {
    fill: #f1f1f1 !important;
}


/* ==========================================
   DLV-LOGO
   ========================================== */

/* Light Mode */
.dlv-logo-light {
    display: block;
}

.dlv-logo-dark {
    display: none;
}

/* Dark Mode */
html.dark .dlv-logo-light {
    display: none;
}

html.dark .dlv-logo-dark {
    display: block;
}


/* ==========================================
   THEME-TOGGLE
   SYSTEM / LIGHT / DARK
   ========================================== */

#themeToggle {
    color: var(--color-dlv-grey);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 0.5rem;
    cursor: pointer;
}

/* Desktop: kein unterer Abstand */
@media (min-width: 1024px) {
    #themeToggle {
        margin-bottom: 0;
    }
}

/* Alle drei SVG-Icons zunächst ausblenden */
#themeToggle svg {
    display: none;
}

/* SYSTEM: Computer-Icon */
html[data-theme="system"] #themeToggle .theme-icon-system {
    display: block;
}

/* LIGHT: Sonnen-Icon */
html[data-theme="light"] #themeToggle .theme-icon-light {
    display: block;
}

/* DARK: Mond-Icon */
html[data-theme="dark"] #themeToggle .theme-icon-dark {
    display: block;
}

/* Fallback, falls data-theme noch nicht gesetzt wurde */
html:not([data-theme]) #themeToggle .theme-icon-system {
    display: block;
}


/* ==========================================
   PLYR
   ========================================== */

/* Bestehendes Plyr-Styling bleibt unverändert */
