:root {
    --cream: #f5f0e8;
    --dark: #0f0d08;
    --green-dark: #1e2e1a;
    --green-mid: #3d5c3a;
    --green-light: #7aaa5a;
    --amber: #c4852a;
    --amber-light: #e8a94a;
    --stone: #8b7355;
    --font-base: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

        /* ── A11y-Effekte ─────────────────────────────────────────────── */

        /* Hoher Kontrast */
        html.high-contrast {
            --cream: #ffffff;
            --dark: #000000;
            --green-dark: #003300;
            --green-light: #00ff88;
            --amber: #ffdd00;
            --amber-light: #ffee44;
            --stone: #ffffff;
        }

        html.high-contrast .slide {
            background: #000 !important;
        }

        html.high-contrast .building,
        html.high-contrast .target-card,
        html.high-contrast .a11y-box,
        html.high-contrast .consent-card,
        html.high-contrast .privacy-box,
        html.high-contrast .tech-phase,
        html.high-contrast .scene-info,
        html.high-contrast .scene-note,
        html.high-contrast .open-box,
        html.high-contrast .mod-team-card,
        html.high-contrast .mod-krise-box,
        html.high-contrast .vision-card {
            border-color: var(--amber) !important;
            background: rgba(255, 221, 0, 0.06) !important;
        }

        /* Reduzierte Helligkeit */
        html.a11y-reduced-brightness body {
            filter: brightness(0.72) saturate(0.85);
        }

        /* Schriftart-Auswahl */
        html.a11y-font-opendyslexic,
        html.a11y-font-opendyslexic *:not([class*="fa-"]) {
            font-family: 'OpenDyslexic', sans-serif !important;
        }

        html.a11y-font-comicsans,
        html.a11y-font-comicsans *:not([class*="fa-"]) {
            font-family: 'Comic Sans MS', 'Chalkboard SE', cursive !important;
        }

        html.a11y-font-lexend,
        html.a11y-font-lexend *:not([class*="fa-"]) {
            font-family: 'Lexend', var(--font-base) !important;
        }

        /* Größere Klickflächen */
        html.a11y-large-targets button,
        html.a11y-large-targets a,
        html.a11y-large-targets .hotspot,
        html.a11y-large-targets .building,
        html.a11y-large-targets .w-btn,
        html.a11y-large-targets .sc-btn {
            min-width: 48px !important;
            min-height: 48px !important;
            padding: 0.6rem 1rem !important;
        }

        html.a11y-large-targets .dot {
            width: 20px !important;
            height: 20px !important;
            min-width: 20px !important;
            min-height: 20px !important;
        }

        /* Animationen reduzieren */
        body.a11y-reduced-motion *,
        body.a11y-reduced-motion *::before,
        body.a11y-reduced-motion *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        /* Erhöhter Zeilenabstand */
        html.a11y-line-height p,
        html.a11y-line-height li,
        html.a11y-line-height h2,
        html.a11y-line-height h3,
        html.a11y-line-height .slide-title,
        html.a11y-line-height .eyebrow,
        html.a11y-line-height .p-item,
        html.a11y-line-height .value-pill,
        html.a11y-line-height .t-desc,
        html.a11y-line-height .b-desc {
            line-height: 1.9 !important;
        }

        /* Fokus-Modus — Navigation (Dots + Hinweis dimmen, Pfeile + Widget bleiben sichtbar) */
        html.a11y-focus-mode #dots,
        html.a11y-focus-mode #key-hint,
        html.a11y-focus-mode #slide-counter {
            opacity: 0.08;
            transition: opacity 0.3s;
        }

        html.a11y-focus-mode #dots:focus-within {
            opacity: 1;
        }

        /* Fokus-Modus — Content-Blöcke dimmen
           animation-fill-mode: none bricht den forwards-Füllmodus der .anim-Klasse,
           der sonst opacity:1 nach Slide-Eintritt dauerhaft überschreibt */
        html.a11y-focus-mode .consent-card,
        html.a11y-focus-mode .scene-note,
        html.a11y-focus-mode .usp-card,
        html.a11y-focus-mode .target-card,
        html.a11y-focus-mode .tech-phase,
        html.a11y-focus-mode .safety-row,
        html.a11y-focus-mode .privacy-box,
        html.a11y-focus-mode .stat-card,
        html.a11y-focus-mode .rm-step,
        html.a11y-focus-mode .finance-box,
        html.a11y-focus-mode .mod-team-card,
        html.a11y-focus-mode .open-box,
        html.a11y-focus-mode .a11y-box,
        html.a11y-focus-mode .market-quote,
        html.a11y-focus-mode .vision-card,
        html.a11y-focus-mode .p-item,
        html.a11y-focus-mode .verify-step {
            opacity: 0.1;
            animation-fill-mode: none !important;
            transition: opacity 0.35s ease;
        }

        /* Erstes Kind jeder Gruppe immer sichtbar */
        html.a11y-focus-mode .consent-card:first-child,
        html.a11y-focus-mode .usp-card:first-child,
        html.a11y-focus-mode .target-card:first-child,
        html.a11y-focus-mode .tech-phase:first-child,
        html.a11y-focus-mode .safety-row:first-child,
        html.a11y-focus-mode .privacy-box:first-child,
        html.a11y-focus-mode .stat-card:first-child,
        html.a11y-focus-mode .rm-step:first-child,
        html.a11y-focus-mode .finance-box:first-child,
        html.a11y-focus-mode .mod-team-card:first-child,
        html.a11y-focus-mode .open-box:first-child,
        html.a11y-focus-mode .a11y-box:first-child,
        html.a11y-focus-mode .vision-card:first-child,
        html.a11y-focus-mode .p-item:first-child,
        html.a11y-focus-mode .verify-step:first-child {
            opacity: 1;
        }

        /* Hover: sofort lesbar */
        html.a11y-focus-mode .consent-card:hover,
        html.a11y-focus-mode .scene-note:hover,
        html.a11y-focus-mode .usp-card:hover,
        html.a11y-focus-mode .target-card:hover,
        html.a11y-focus-mode .tech-phase:hover,
        html.a11y-focus-mode .safety-row:hover,
        html.a11y-focus-mode .privacy-box:hover,
        html.a11y-focus-mode .stat-card:hover,
        html.a11y-focus-mode .rm-step:hover,
        html.a11y-focus-mode .finance-box:hover,
        html.a11y-focus-mode .mod-team-card:hover,
        html.a11y-focus-mode .open-box:hover,
        html.a11y-focus-mode .a11y-box:hover,
        html.a11y-focus-mode .market-quote:hover,
        html.a11y-focus-mode .vision-card:hover,
        html.a11y-focus-mode .p-item:hover,
        html.a11y-focus-mode .verify-step:hover,
        /* Revealed: bleibt dauerhaft sichtbar */
        html.a11y-focus-mode .fokus-revealed {
            opacity: 1;
        }

        /* ── A11y-Widget (floating panel) ────────────────────────────── */
        #a11y-widget {
            position: fixed;
            top: 0.75rem;
            bottom: auto;
            left: auto;
            right: 1.75rem;
            z-index: 9998;
        }

        #a11y-widget-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #CF7280, #E9C96A, #E8E8E8, #6A9EC9, #7DC17E);
            border: none;
            color: #0f0d08;
            font-size: 20px !important;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.35);
            transition: filter 0.2s, transform 0.2s;
        }

        #a11y-widget-btn:hover {
            filter: brightness(1.1);
            transform: scale(1.08);
        }

        #a11y-widget-btn:focus-visible {
            outline: 3px solid var(--cream);
            outline-offset: 3px;
        }

        #a11y-widget-panel {
            position: absolute;
            top: 0;
            bottom: auto;
            right: calc(100% + 0.5rem);
            left: auto;
            width: min(340px, 92vw);
            max-height: 80vh;
            overflow-x: hidden;
            overflow-y: auto;
            background: rgba(12, 10, 5, 0.97);
            border: 1px solid rgba(196, 133, 42, 0.35);
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
            display: none;
            font-size: 1.1rem;
        }

        #a11y-widget-panel.open {
            display: block;
        }

        @media (max-width: 600px) {
            #a11y-widget-panel {
                position: fixed;
                top: 4rem;
                right: 0;
                left: 0;
                bottom: auto;
                width: 100%;
                max-height: calc(100vh - 4rem);
                border-radius: 0;
            }
        }

        .a11y-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid rgba(196, 133, 42, 0.2);
        }

        .a11y-panel-header h2 {
            font-size: 1em;
            color: var(--amber-light);
            margin: 0;
            font-family: var(--font-base);
            font-weight: 700;
        }

        .a11y-panel-close {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: transparent;
            border: 1px solid rgba(245, 240, 232, 0.2);
            color: #e8e4dc;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .a11y-panel-close:hover {
            background: rgba(245, 240, 232, 0.1);
        }

        .a11y-section {
            margin-bottom: 1.25rem;
        }

        /* Vorlesen-Bereich */
        .a11y-action-btn {
            display: block;
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: none;
            border-radius: 0.4rem;
            font-family: var(--font-base);
            font-size: 0.9em;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            text-align: center;
            margin-bottom: 0.5rem;
        }

        .btn-vorlesen {
            background: var(--amber);
            color: var(--dark);
        }

        .btn-vorlesen:hover,
        .btn-vorlesen[aria-pressed="true"] {
            background: var(--amber-light);
        }

        .btn-einfach-sprache {
            background: var(--green-light);
            color: var(--dark);
        }

        .btn-einfach-sprache:hover,
        .btn-einfach-sprache[aria-pressed="true"] {
            background: #8fc96a;
        }

        .a11y-row--speed {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            margin-bottom: 0.5rem;
        }

        .a11y-speed-label {
            font-size: 0.85em;
            color: rgba(245,240,232,0.85);
        }

        .a11y-speed-slider {
            width: 100%;
            accent-color: var(--amber);
        }

        #tts-speed-value {
            font-weight: 700;
            color: var(--amber-light);
        }

        /* HC-Overrides für Vorlesen-Bereich */
        html.high-contrast .btn-vorlesen {
            background: #fff !important;
            color: #000 !important;
            outline: 2px solid #fff;
        }

        html.high-contrast .btn-einfach-sprache {
            background: #fff !important;
            color: #000 !important;
            outline: 2px solid #fff;
        }

        html.high-contrast .a11y-speed-slider {
            accent-color: #fff;
        }

        html.high-contrast #tts-speed-value {
            color: #fff !important;
        }

        .a11y-section h3 {
            font-size: 1em;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: none;
            color: var(--amber-light);
            margin: 0 0 0.75rem;
            font-family: var(--font-base);
        }

        .a11y-toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.55rem 0;
            border-bottom: 1px solid rgba(245, 240, 232, 0.05);
        }

        .a11y-toggle-row:last-child {
            border-bottom: none;
        }

        .a11y-toggle-label {
            font-size: 1em;
            color: #e8e4dc;
            font-family: var(--font-base);
        }

        .a11y-hint {
            font-size: 1em;
            color: rgba(245, 240, 232, 0.8);
            margin-top: 0.15rem;
            line-height: 1.4;
        }

        /* Toggle Switch */
        .a11y-switch {
            position: relative;
            display: inline-flex;
            align-items: center;
            width: 44px;
            height: 44px;
            flex-shrink: 0;
        }

        .a11y-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .a11y-slider {
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 26px;
            background: rgba(245, 240, 232, 0.15);
            border-radius: 24px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .a11y-slider::before {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            left: 3px;
            top: 4px;
            background: var(--cream);
            border-radius: 50%;
            transition: transform 0.2s;
        }

        .a11y-switch input:checked + .a11y-slider {
            background: var(--green-light);
        }

        .a11y-switch input:checked + .a11y-slider::before {
            transform: translateX(20px);
        }

        .a11y-switch input:focus-visible + .a11y-slider {
            outline: 3px solid var(--amber-light);
            outline-offset: 2px;
        }

        /* Schriftgröße-Buttons */
        .a11y-size-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-bottom: 0.75rem;
        }

        .a11y-size-btn {
            flex: 1 1 auto;
            padding: 0.5em 0.8em;
            min-height: 44px;
            white-space: nowrap;
            background: rgba(245, 240, 232, 0.07);
            border: 1px solid rgba(245, 240, 232, 0.15);
            border-radius: 8px;
            color: #e8e4dc;
            font-family: var(--font-base);
            font-size: 1em;
            cursor: pointer;
            transition: all 0.2s;
        }

        .a11y-size-btn:hover,
        .a11y-size-btn.active {
            background: rgba(196, 133, 42, 0.2);
            border-color: var(--amber);
            color: var(--amber-light);
        }

        .a11y-size-btn:focus-visible {
            outline: 3px solid var(--amber-light);
            outline-offset: 2px;
        }

        /* Farbenblindheits-Filter */
        html.a11y-cvd body {
            filter: url(#cvd-filter);
        }

        html.a11y-cvd-greyscale body {
            filter: grayscale(1);
        }

        .cvd-strength-row {
            display: none;
        }

        .cvd-strength-row.cvd-strength-visible {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 6px;
        }

        /* Farbkraft-Regler */
        .a11y-row--vibrancy {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            margin-top: 0.55rem;
            padding-top: 0.55rem;
            border-top: 1px solid rgba(245, 240, 232, 0.05);
        }

        #a11y-vibrancy-value {
            font-weight: 700;
            color: var(--amber-light);
        }

        html.high-contrast #a11y-vibrancy {
            accent-color: #fff;
            opacity: 0.5;
            pointer-events: none;
        }
