/* Hintergrundbild: im Light Mode weniger, im Dark Mode stärker abdunkeln */
        body {
            --background-overlay: 0.35;
            background-image: linear-gradient(
                rgba(0, 0, 0, var(--background-overlay)),
                rgba(0, 0, 0, var(--background-overlay))
            ), url('/background.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
        }

        /* Sanfte Übergänge beim Wechseln der Abschnitte */
        .tab-content {
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }
        .tab-content.active {
            display: block;
            opacity: 1;
        }

        /* Dark Mode ausschließlich innerhalb der zentralen Inhaltsfenster */
        main.theme-dark .tab-content.bg-white {
            background-color: #202124 !important;
            color: #e5e7eb;
            border-color: #3f4145 !important;
        }
        main.theme-dark .tab-content .text-gray-900,
        main.theme-dark .tab-content .text-gray-800,
        main.theme-dark .tab-content .text-gray-700 {
            color: #e5e7eb !important;
        }
        main.theme-dark .tab-content .text-gray-500 {
            color: #a1a1aa !important;
        }
        main.theme-dark .tab-content .bg-gray-50,
        main.theme-dark .tab-content details.bg-gray-50 {
            background-color: #2b2d31 !important;
        }
        main.theme-dark .tab-content .bg-white {
            background-color: #292b2f !important;
        }
        main.theme-dark .tab-content .border,
        main.theme-dark .tab-content .border-gray-100,
        main.theme-dark .tab-content .border-gray-200,
        main.theme-dark .tab-content .border-t {
            border-color: #45474d !important;
        }
        main.theme-dark .tab-content h1 {
            border-color: #45474d;
        }
        main.theme-dark .tab-content summary:hover {
            background-color: #383a40 !important;
        }
        .theme-toggle {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 1rem;
        }


        /*
         * NOTIZ FÜR ZUKÜNFTIGE ERGÄNZUNGEN – LIGHT-/DARK-MODE
         * ---------------------------------------------------
         * Für neue Inhalte im zentralen Inhaltsbereich können diese Klassen
         * verwendet werden, damit Farben zum ausgewählten Theme passen:
         *
         *   theme-panel   – Hintergrund und Text für einen Inhaltsbereich
         *   theme-surface – Hintergrund und Text für Karten/Unterbereiche
         *   theme-text    – normale Textfarbe
         *   theme-muted   – dezente Textfarbe, z. B. für Hinweise
         *   theme-border  – passende Rahmenfarbe
         *   theme-hover   – passende Hover-Hintergrundfarbe
         *
         * Beispiel:
         *   <div class="theme-surface theme-border border rounded-lg p-4">
         *       <p class="theme-text">Neuer Inhalt</p>
         *       <p class="theme-muted">Zusätzlicher Hinweis</p>
         *   </div>
         *
         * Wichtig: Die Klassen wirken nur auf Elemente, denen sie zugewiesen
         * werden. Bestehende Elemente werden dadurch nicht automatisch geändert.
         * Diese Notiz ist ein CSS-Kommentar und verändert das Design nicht.
         */
        main {
            --content-panel-bg: #ffffff;
            --content-panel-text: #1f2937;
            --content-surface-bg: #f9fafb;
            --content-muted-text: #6b7280;
            --content-border: #e5e7eb;
            --content-hover-bg: #f3f4f6;
        }
        main.theme-dark {
            --content-panel-bg: #202124;
            --content-panel-text: #e5e7eb;
            --content-surface-bg: #2b2d31;
            --content-muted-text: #a1a1aa;
            --content-border: #45474d;
            --content-hover-bg: #383a40;
        }
        .theme-panel {
            background-color: var(--content-panel-bg);
            color: var(--content-panel-text);
            border-color: var(--content-border);
        }
        .theme-surface {
            background-color: var(--content-surface-bg);
            color: var(--content-panel-text);
            border-color: var(--content-border);
        }
        .theme-text { color: var(--content-panel-text); }
        .theme-muted { color: var(--content-muted-text); }
        .theme-border { border-color: var(--content-border); }
        .theme-hover:hover { background-color: var(--content-hover-bg); }

        /* Header und Footer folgen ebenfalls dem gewählten Farbschema. */
        body:not(.theme-dark) {
            --background-overlay: 0.35;
        }
        body.theme-dark {
            --background-overlay: 0.65;
        }

        body:not(.theme-dark) header {
            background-color: rgba(255, 255, 255, 0.94) !important;
            border-color: #e5e7eb !important;
        }
        body:not(.theme-dark) header .flex-shrink-0 span {
            color: #1f2937 !important;
        }
        body:not(.theme-dark) header .nav-btn:not(.bg-blue-600),
        body:not(.theme-dark) header .mobile-nav-btn:not(.bg-blue-600),
        body:not(.theme-dark) #mobile-menu-btn {
            color: #4b5563 !important;
        }
        body:not(.theme-dark) header .nav-btn:not(.bg-blue-600):hover,
        body:not(.theme-dark) header .mobile-nav-btn:not(.bg-blue-600):hover,
        body:not(.theme-dark) #mobile-menu-btn:hover {
            color: #111827 !important;
            background-color: #f3f4f6 !important;
        }
        body:not(.theme-dark) #mobile-menu {
            background-color: #ffffff !important;
            border-color: #e5e7eb !important;
        }

        body:not(.theme-dark) footer {
            background-color: rgba(255, 255, 255, 0.96) !important;
            border-color: #e5e7eb !important;
            color: #4b5563 !important;
        }
        body:not(.theme-dark) footer p.font-semibold {
            color: #1f2937 !important;
        }

        body.theme-dark header {
            background-color: rgba(31, 31, 31, 0.90) !important;
            border-color: #374151 !important;
        }
        body.theme-dark header .flex-shrink-0 span {
            color: #ffffff !important;
        }
        body.theme-dark #mobile-menu {
            background-color: #1f1f1f !important;
            border-color: #374151 !important;
        }
        body.theme-dark footer {
            background-color: rgba(31, 31, 31, 0.95) !important;
            border-color: #374151 !important;
            color: #d1d5db !important;
        }
        body.theme-dark footer p.font-semibold {
            color: #ffffff !important;
        }
