/* Hell-Modus für wirholens.de
   Greift nur bei <html data-theme="light">. Dunkel bleibt unverändert.
   Die Selektoren beginnen mit html[data-theme="light"], damit sie die
   Tailwind-Klassen (eine Klasse) unabhängig von der Reihenfolge schlagen.
   Rot bleibt die Highlightfarbe. */

/* Grundflächen */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="light"] body {
    background-color: #fafaf9;
    color: #1c1917;
}
html[data-theme="light"] ::-webkit-scrollbar-track { background: #fafaf9; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d6d3d1; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #DC2626; }

html[data-theme="light"] .glass-nav {
    background: rgba(250, 250, 249, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.07);
}
html[data-theme="light"] .glass-panel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .bg-brand-black { background-color: #f5f5f4; }
html[data-theme="light"] .bg-brand-dark { background-color: #f3f2f0; }
html[data-theme="light"] .bg-\[\#020202\] { background-color: #f3f2f0; }
html[data-theme="light"] .bg-\[\#0A0A0A\] { background-color: #ffffff; }
html[data-theme="light"] .bg-black\/50 { background-color: rgba(0, 0, 0, 0.04); }

html[data-theme="light"] .bg-white\/\[0\.02\] { background-color: rgba(0, 0, 0, 0.02); }
html[data-theme="light"] .bg-white\/5 { background-color: rgba(0, 0, 0, 0.04); }
html[data-theme="light"] .hover\:bg-white\/\[0\.05\]:hover { background-color: rgba(0, 0, 0, 0.04); }
html[data-theme="light"] .hover\:bg-white\/5:hover { background-color: rgba(0, 0, 0, 0.05); }
html[data-theme="light"] .hover\:bg-white\/10:hover { background-color: rgba(0, 0, 0, 0.07); }

/* Raster im Hintergrund: Linien hell statt #171717 */
html[data-theme="light"] .bg-grid-pattern {
    background-image:
        linear-gradient(to right, #d6d3d1 1px, transparent 1px),
        linear-gradient(to bottom, #d6d3d1 1px, transparent 1px);
}

/* Linien */
html[data-theme="light"] .border-white\/5 { border-color: rgba(0, 0, 0, 0.07); }
html[data-theme="light"] .border-white\/10 { border-color: rgba(0, 0, 0, 0.1); }

/* Schrift. Weiß auf roten Flächen bleibt weiß. */
html[data-theme="light"] .text-white:not(.bg-brand-red):not(.bg-brand-red *) { color: #0a0a0a; }
html[data-theme="light"] .hover\:text-white:hover:not(.bg-brand-red) { color: #0a0a0a; }
html[data-theme="light"] .group:hover .group-hover\:text-gray-200 { color: #44403c; }
html[data-theme="light"] .text-stone-300 { color: #44403c; }
html[data-theme="light"] .text-stone-400 { color: #57534e; }
html[data-theme="light"] .text-stone-500 { color: #6b6560; }
html[data-theme="light"] .text-stone-600 { color: #78716c; }
html[data-theme="light"] .text-white\/\[0\.05\] { color: rgba(0, 0, 0, 0.05); }

/* Verlaufsschrift im Hero: dunkel nach Grau statt Weiß nach Grau */
html[data-theme="light"] .bg-clip-text.from-white {
    background-image: linear-gradient(to right, #0a0a0a, #0a0a0a, #78716c);
}

/* Rechtstexte */
html[data-theme="light"] .legal-content h2 {
    color: #0a0a0a;
    border-bottom-color: rgba(0, 0, 0, 0.07);
}
html[data-theme="light"] .legal-content h3 { color: #262626; }
html[data-theme="light"] .legal-content p,
html[data-theme="light"] .legal-content ul { color: #57534e; }
html[data-theme="light"] .legal-content li::marker { color: #a8a29e; }
html[data-theme="light"] .legal-content strong { color: #292524; }
html[data-theme="light"] .legal-content a:hover { color: #0a0a0a; }

/* Logo: im Hellen die Fassung mit grauer Schrift */
.logo-light { display: none; }
html[data-theme="light"] .logo-dark { display: none; }
html[data-theme="light"] .logo-light { display: inline-block; }

/* Umschalter */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d6d3d1;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.theme-toggle:hover { color: #ffffff; border-color: rgba(220, 38, 38, 0.5); }
.theme-toggle:focus-visible { outline: 2px solid #DC2626; outline-offset: 2px; }
html[data-theme="light"] .theme-toggle { border-color: rgba(0, 0, 0, 0.12); color: #44403c; }
html[data-theme="light"] .theme-toggle:hover { color: #0a0a0a; border-color: rgba(220, 38, 38, 0.5); }
.theme-toggle .to-dark { display: none; }
html[data-theme="light"] .theme-toggle .to-dark { display: inline-flex; }
html[data-theme="light"] .theme-toggle .to-light { display: none; }
