/* =====================================================================
   LoG-iX – Dunkles Design (Dark Mode)
   Aktiv, sobald <html class="dark"> gesetzt ist (siehe Style/theme.js).

   Warum eine zentrale Datei statt "dark:"-Klassen im HTML?
   Die Seiten nutzen Tailwind (CDN) mit sehr vielen Farbklassen. Statt jede
   einzelne Klasse um eine dark:-Variante zu ergänzen, werden die verwendeten
   hellen Farbklassen hier zentral auf dunkle Gegenstücke umgemappt.
   → Neue Seiten werden automatisch mit abgedeckt.

   Diese Datei wurde aus einer Farbtabelle erzeugt und enthält nur Klassen,
   die im Projekt vorkommen. Wird eine neue helle Farbklasse verwendet
   (z.B. bg-pink-50), hier im Abschnitt "Manuelle Ergänzungen" ganz unten
   ein dunkles Gegenstück eintragen.
   ===================================================================== */

html.dark { color-scheme: dark; }
html.dark body { background-color: rgb(11 18 32); color: rgb(226 232 240); }
html.dark ::placeholder { color: rgb(100 116 139); }
html.dark ::-webkit-scrollbar-thumb { background-color: rgb(71 85 105); }

/* Sanfter Übergang beim Umschalten */
html.theme-transition, html.theme-transition *, html.theme-transition *::before, html.theme-transition *::after {
    transition: background-color .25s ease, border-color .25s ease, color .25s ease !important;
}
html.dark .bg-white { background-color: rgb(30 41 59); }
html.dark .hover\:bg-white:hover { background-color: rgb(30 41 59); }
html.dark .focus\:bg-white:focus { background-color: rgb(30 41 59); }
html.dark .group:hover .group-hover\:bg-white { background-color: rgb(30 41 59); }
html.dark .focus-within\:bg-white:focus-within { background-color: rgb(30 41 59); }
html.dark .bg-white\/70 { background-color: rgb(30 41 59 / .70); }
html.dark .bg-white\/80 { background-color: rgb(30 41 59 / .80); }
html.dark .bg-white\/90 { background-color: rgb(30 41 59 / .90); }
html.dark .bg-slate-50 { background-color: rgb(15 23 42); }
html.dark .hover\:bg-slate-50:hover { background-color: rgb(15 23 42); }
html.dark .hover\:bg-slate-50\/30:hover { background-color: rgb(15 23 42 / .30); }
html.dark .bg-slate-50\/50 { background-color: rgb(15 23 42 / .50); }
html.dark .bg-slate-50\/80 { background-color: rgb(15 23 42 / .80); }
html.dark .bg-slate-100 { background-color: rgb(39 52 73); }
html.dark .hover\:bg-slate-100:hover { background-color: rgb(39 52 73); }
html.dark .bg-slate-100\/80 { background-color: rgb(39 52 73 / .80); }
html.dark .bg-slate-200 { background-color: rgb(51 65 85); }
html.dark .hover\:bg-slate-200:hover { background-color: rgb(51 65 85); }
html.dark .hover\:bg-slate-200\/50:hover { background-color: rgb(51 65 85 / .50); }
html.dark .bg-slate-200\/70 { background-color: rgb(51 65 85 / .70); }
html.dark .bg-slate-300 { background-color: rgb(71 85 105); }
html.dark .hover\:bg-slate-300:hover { background-color: rgb(71 85 105); }
html.dark .focus\:bg-white:focus { background-color: rgb(15 23 42); }
html.dark .focus-within\:bg-white:focus-within { background-color: rgb(15 23 42); }
html.dark .disabled\:bg-slate-300:disabled { background-color: rgb(51 65 85); }
html.dark .bg-slate-800 { background-color: rgb(71 85 105); }
html.dark .bg-slate-900 { background-color: rgb(51 65 85); }
html.dark .hover\:bg-slate-900:hover { background-color: rgb(51 65 85); }
html.dark .text-slate-900 { color: rgb(241 245 249); }
html.dark .text-slate-800 { color: rgb(226 232 240); }
html.dark .hover\:text-slate-800:hover { color: rgb(226 232 240); }
html.dark .text-slate-700 { color: rgb(203 213 225); }
html.dark .hover\:text-slate-700:hover { color: rgb(203 213 225); }
html.dark .text-slate-600 { color: rgb(170 182 200); }
html.dark .hover\:text-slate-600:hover { color: rgb(170 182 200); }
html.dark .text-slate-500 { color: rgb(148 163 184); }
html.dark .text-slate-400 { color: rgb(120 135 158); }
html.dark .text-slate-300 { color: rgb(85 99 122); }
html.dark .border-slate-50 { border-color: rgb(42 55 76); }
html.dark .border-slate-100 { border-color: rgb(51 65 85); }
html.dark .border-slate-100\/50 { border-color: rgb(51 65 85 / .50); }
html.dark .border-slate-200 { border-color: rgb(61 76 99); }
html.dark .hover\:border-slate-200:hover { border-color: rgb(61 76 99); }
html.dark .border-slate-200\/60 { border-color: rgb(61 76 99 / .60); }
html.dark .border-slate-200\/70 { border-color: rgb(61 76 99 / .70); }
html.dark .border-slate-300 { border-color: rgb(71 85 105); }
html.dark .hover\:border-slate-300:hover { border-color: rgb(71 85 105); }
html.dark .border-slate-400 { border-color: rgb(100 116 139); }
html.dark .focus\:border-slate-400:focus { border-color: rgb(100 116 139); }
html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(51 65 85); }
html.dark .ring-white { --tw-ring-color: rgb(30 41 59); }
html.dark .shadow-slate-200 { --tw-shadow-color: rgb(0 0 0 / .35); }
html.dark .shadow-slate-200\/60 { --tw-shadow-color: rgb(0 0 0 / .35); }
html.dark .shadow-slate-300\/40 { --tw-shadow-color: rgb(0 0 0 / .35); }
html.dark .bg-blue-50 { background-color: rgb(59 130 246 / 0.12); }
html.dark .hover\:bg-blue-50:hover { background-color: rgb(59 130 246 / 0.12); }
html.dark .bg-blue-50\/20 { background-color: rgb(59 130 246 / 0.024); }
html.dark .bg-blue-50\/30 { background-color: rgb(59 130 246 / 0.036); }
html.dark .bg-blue-50\/40 { background-color: rgb(59 130 246 / 0.048); }
html.dark .bg-blue-50\/50 { background-color: rgb(59 130 246 / 0.06); }
html.dark .hover\:bg-blue-50\/50:hover { background-color: rgb(59 130 246 / 0.06); }
html.dark .bg-blue-50\/80 { background-color: rgb(59 130 246 / 0.096); }
html.dark .bg-blue-100 { background-color: rgb(59 130 246 / 0.2); }
html.dark .hover\:bg-blue-100:hover { background-color: rgb(59 130 246 / 0.2); }
html.dark .bg-blue-100\/50 { background-color: rgb(59 130 246 / 0.1); }
html.dark .border-blue-100 { border-color: rgb(59 130 246 / 0.25); }
html.dark .hover\:border-blue-100:hover { border-color: rgb(59 130 246 / 0.25); }
html.dark .border-blue-100\/60 { border-color: rgb(59 130 246 / 0.15); }
html.dark .border-blue-200 { border-color: rgb(59 130 246 / 0.35); }
html.dark .hover\:border-blue-200:hover { border-color: rgb(59 130 246 / 0.35); }
html.dark .border-blue-300 { border-color: rgb(59 130 246 / 0.5); }
html.dark .hover\:border-blue-300:hover { border-color: rgb(59 130 246 / 0.5); }
html.dark .focus\:border-blue-300:focus { border-color: rgb(59 130 246 / 0.5); }
html.dark .text-blue-600 { color: rgb(96 165 250); }
html.dark .hover\:text-blue-600:hover { color: rgb(96 165 250); }
html.dark .text-blue-700 { color: rgb(147 197 253); }
html.dark .text-blue-700\/80 { color: rgb(147 197 253 / .80); }
html.dark .text-blue-800 { color: rgb(191 219 254); }
html.dark .hover\:text-blue-800:hover { color: rgb(191 219 254); }
html.dark .text-blue-800\/70 { color: rgb(191 219 254 / .70); }
html.dark .text-blue-900 { color: rgb(219 234 254); }
html.dark .text-blue-900\/70 { color: rgb(219 234 254 / .70); }
html.dark .focus\:ring-blue-50:focus { --tw-ring-color: rgb(59 130 246 / 0.25); }
html.dark .focus\:ring-blue-100:focus { --tw-ring-color: rgb(59 130 246 / 0.3); }
html.dark .focus-within\:ring-blue-100:focus-within { --tw-ring-color: rgb(59 130 246 / 0.3); }
html.dark .ring-blue-100 { --tw-ring-color: rgb(59 130 246 / 0.3); }
html.dark .from-blue-50 { --tw-gradient-from: rgb(59 130 246 / 0.14) var(--tw-gradient-from-position); --tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html.dark .bg-indigo-50 { background-color: rgb(99 102 241 / 0.12); }
html.dark .bg-indigo-100 { background-color: rgb(99 102 241 / 0.2); }
html.dark .border-indigo-100 { border-color: rgb(99 102 241 / 0.25); }
html.dark .border-indigo-200 { border-color: rgb(99 102 241 / 0.35); }
html.dark .text-indigo-600 { color: rgb(129 140 248); }
html.dark .text-indigo-700 { color: rgb(165 180 252); }
html.dark .text-indigo-800 { color: rgb(199 210 254); }
html.dark .text-indigo-900 { color: rgb(224 231 255); }
html.dark .to-indigo-50\/40 { --tw-gradient-to: rgb(99 102 241 / 0.06) var(--tw-gradient-to-position); }
html.dark .bg-emerald-50 { background-color: rgb(16 185 129 / 0.12); }
html.dark .hover\:bg-emerald-50:hover { background-color: rgb(16 185 129 / 0.12); }
html.dark .bg-emerald-100 { background-color: rgb(16 185 129 / 0.2); }
html.dark .hover\:bg-emerald-100:hover { background-color: rgb(16 185 129 / 0.2); }
html.dark .hover\:bg-emerald-200:hover { background-color: rgb(16 185 129 / 0.3); }
html.dark .border-emerald-200 { border-color: rgb(16 185 129 / 0.35); }
html.dark .text-emerald-600 { color: rgb(52 211 153); }
html.dark .text-emerald-700 { color: rgb(110 231 183); }
html.dark .text-emerald-800 { color: rgb(167 243 208); }
html.dark .text-emerald-900 { color: rgb(209 250 229); }
html.dark .focus-within\:ring-emerald-100:focus-within { --tw-ring-color: rgb(16 185 129 / 0.3); }
html.dark .bg-red-50 { background-color: rgb(239 68 68 / 0.12); }
html.dark .hover\:bg-red-50:hover { background-color: rgb(239 68 68 / 0.12); }
html.dark .bg-red-50\/20 { background-color: rgb(239 68 68 / 0.024); }
html.dark .bg-red-50\/30 { background-color: rgb(239 68 68 / 0.036); }
html.dark .bg-red-50\/50 { background-color: rgb(239 68 68 / 0.06); }
html.dark .bg-red-100 { background-color: rgb(239 68 68 / 0.2); }
html.dark .hover\:bg-red-100:hover { background-color: rgb(239 68 68 / 0.2); }
html.dark .hover\:bg-red-200:hover { background-color: rgb(239 68 68 / 0.3); }
html.dark .border-red-100 { border-color: rgb(239 68 68 / 0.25); }
html.dark .border-red-200 { border-color: rgb(239 68 68 / 0.35); }
html.dark .hover\:border-red-200:hover { border-color: rgb(239 68 68 / 0.35); }
html.dark .text-red-600 { color: rgb(248 113 113); }
html.dark .hover\:text-red-600:hover { color: rgb(248 113 113); }
html.dark .text-red-700 { color: rgb(252 165 165); }
html.dark .text-red-800 { color: rgb(254 202 202); }
html.dark .text-red-900 { color: rgb(254 226 226); }
html.dark .bg-amber-50 { background-color: rgb(245 158 11 / 0.12); }
html.dark .hover\:bg-amber-50:hover { background-color: rgb(245 158 11 / 0.12); }
html.dark .bg-amber-50\/20 { background-color: rgb(245 158 11 / 0.024); }
html.dark .bg-amber-50\/30 { background-color: rgb(245 158 11 / 0.036); }
html.dark .bg-amber-50\/50 { background-color: rgb(245 158 11 / 0.06); }
html.dark .bg-amber-100 { background-color: rgb(245 158 11 / 0.2); }
html.dark .hover\:bg-amber-100:hover { background-color: rgb(245 158 11 / 0.2); }
html.dark .border-amber-50 { border-color: rgb(245 158 11 / 0.2); }
html.dark .border-amber-100 { border-color: rgb(245 158 11 / 0.25); }
html.dark .border-amber-200 { border-color: rgb(245 158 11 / 0.35); }
html.dark .hover\:border-amber-200:hover { border-color: rgb(245 158 11 / 0.35); }
html.dark .border-amber-200\/50 { border-color: rgb(245 158 11 / 0.175); }
html.dark .border-amber-300 { border-color: rgb(245 158 11 / 0.5); }
html.dark .text-amber-600 { color: rgb(251 191 36); }
html.dark .text-amber-700 { color: rgb(252 211 77); }
html.dark .text-amber-800 { color: rgb(253 230 138); }
html.dark .text-amber-900 { color: rgb(254 243 199); }
html.dark .focus\:ring-amber-50:focus { --tw-ring-color: rgb(245 158 11 / 0.25); }
html.dark .bg-purple-50 { background-color: rgb(168 85 247 / 0.12); }
html.dark .bg-purple-100 { background-color: rgb(168 85 247 / 0.2); }
html.dark .hover\:bg-purple-100:hover { background-color: rgb(168 85 247 / 0.2); }
html.dark .border-purple-100 { border-color: rgb(168 85 247 / 0.25); }
html.dark .text-purple-600 { color: rgb(192 132 252); }
html.dark .text-purple-700 { color: rgb(216 180 254); }
html.dark .bg-violet-100 { background-color: rgb(139 92 246 / 0.2); }
html.dark .text-violet-700 { color: rgb(196 181 253); }
html.dark .bg-rose-100 { background-color: rgb(244 63 94 / 0.2); }
html.dark .text-rose-700 { color: rgb(253 164 175); }
html.dark .bg-cyan-100 { background-color: rgb(6 182 212 / 0.2); }
html.dark .text-cyan-700 { color: rgb(103 232 249); }

/* ---------------------------------------------------------------------
   Manuelle Ergänzungen
   --------------------------------------------------------------------- */

/* Gemeinsame Scrollbar der Dashboards */
html.dark .custom-scrollbar::-webkit-scrollbar-track { background: rgb(30 41 59); }
html.dark .custom-scrollbar::-webkit-scrollbar-thumb { background: rgb(71 85 105); }

/* Bilder/Logos mit weißem Hintergrund nicht blenden lassen */
html.dark img { opacity: .92; }

/* Umschalt-Button (Style/theme.js) */
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }
.theme-toggle-floating {
    position: fixed; left: 16px; bottom: 16px; z-index: 90;
    width: 44px; height: 44px; border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #475569; border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -8px rgb(15 23 42 / .35); cursor: pointer;
    transition: transform .15s ease;
}
.theme-toggle-floating:hover { transform: scale(1.06); }
html.dark .theme-toggle-floating { background: rgb(30 41 59); color: rgb(226 232 240); border-color: rgb(61 76 99); }

/* Rechtstexte (legal_layout.php) */
html.dark body.legal { background: rgb(11 18 32); color: rgb(226 232 240); }
html.dark body.legal .top, html.dark body.legal main { background: rgb(30 41 59); border-color: rgb(51 65 85); }
html.dark body.legal .brand, html.dark body.legal h1, html.dark body.legal h2, html.dark body.legal h3 { color: rgb(241 245 249); }
html.dark body.legal p, html.dark body.legal li { color: rgb(203 213 225); }
html.dark body.legal .nav a { color: rgb(148 163 184); }
html.dark body.legal .nav a.active, html.dark body.legal a { color: rgb(96 165 250); }
html.dark body.legal .box { background: rgb(15 23 42); }
html.dark body.legal footer a { color: rgb(148 163 184); }

/* Fehlerseiten (errors/_layout.php) */
html.dark body.errpage { background: rgb(11 18 32); color: rgb(241 245 249); }
html.dark body.errpage p { color: rgb(148 163 184); }
html.dark body.errpage .path { background: rgb(30 41 59); color: rgb(203 213 225); }
html.dark body.errpage .btn-ghost { background: rgb(30 41 59); color: rgb(226 232 240); border-color: rgb(61 76 99); }
html.dark body.errpage .badge { filter: brightness(.9); }
