/* ═══════════════════════════════════════════
   Accessibility Suite — Funktionsstile
   Alle Regeln mit !important um Tailwind zu überschreiben
═══════════════════════════════════════════ */

/* ── Hoher Kontrast ── */
body.a11y-high-contrast,
body.a11y-high-contrast * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
body.a11y-high-contrast img,
body.a11y-high-contrast video {
    filter: contrast(1.5) brightness(0.9) !important;
}

/* ── Graustufen ── */
body.a11y-grayscale {
    filter: grayscale(100%);
}

/* ── Klare / lesbare Schrift ── */
body.a11y-readable-font,
body.a11y-readable-font * {
    font-family: Arial, Verdana, 'Helvetica Neue', sans-serif !important;
    font-style: normal !important;
}

/* ── Lesehilfe-Schrift (simuliert OpenDyslexic-Prinzip) ── */
body.a11y-dyslexia,
body.a11y-dyslexia * {
    font-family: Georgia, 'Times New Roman', serif !important;
    letter-spacing: 0.06em !important;
    word-spacing: 0.18em !important;
    line-height: 1.75 !important;
}

/* ── Fettdruck ── */
body.a11y-bold-text,
body.a11y-bold-text * {
    font-weight: bold !important;
}

/* ── Erhöhter Zeilenabstand ── */
body.a11y-line-height,
body.a11y-line-height p,
body.a11y-line-height li,
body.a11y-line-height span,
body.a11y-line-height div {
    line-height: 1.9 !important;
}

/* ── Erhöhter Wortabstand ── */
body.a11y-word-spacing,
body.a11y-word-spacing * {
    word-spacing: 0.22em !important;
    letter-spacing: 0.04em !important;
}

/* ── Animationen deaktivieren ── */
body.a11y-no-motion *,
body.a11y-no-motion *::before,
body.a11y-no-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

/* ── Links hervorheben ── */
body.a11y-highlight-links a {
    background-color: rgba(255, 230, 0, 0.25) !important;
    outline: 2px solid rgba(220, 190, 0, 0.7) !important;
    outline-offset: 2px !important;
    border-radius: 3px !important;
    text-decoration: underline !important;
    text-decoration-color: #FFD700 !important;
}
body.a11y-highlight-links a:visited {
    background-color: rgba(180, 120, 255, 0.2) !important;
    outline-color: rgba(160, 100, 240, 0.7) !important;
}

/* ── FAB A11y Panel – Grid-Button Vollbreite ── */
.ap-btn--full {
    grid-column: 1 / -1;
}

/* ── Reset-Button ── */
.ap-btn--reset {
    background: rgba(255, 60, 60, 0.06) !important;
    border-color: rgba(255, 60, 60, 0.2) !important;
    color: rgba(255, 140, 140, 0.85) !important;
}
.ap-btn--reset:hover {
    background: rgba(255, 60, 60, 0.14) !important;
    border-color: rgba(255, 60, 60, 0.4) !important;
    color: #ff9898 !important;
}
