/* =============================================================================
   vitd_accessibility — Widget und Anpassungen
   Erbt die Design-Tokens des Site-Packages (--vd-*); die Fallbacks greifen nur,
   falls die Extension einmal ohne site_package laeuft.

   Aufbau:
   1. Schrift (Atkinson Hyperlegible, self-hosted)
   2. Widget-Chrome (Knopf, Panel, Bedienelemente)
   3. Wirkung der Einstellungen auf #root (Skalierung, Schrift, Abstand, Links)
   4. Themen (Hoher Kontrast) und Filter-Linse (Graustufen, Farben, Dunkel)
   5. Leselineal, grosser Zeiger, Vorlesen, Animationen
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Schrift
   -------------------------------------------------------------------------- */

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../Fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../Fonts/AtkinsonHyperlegible-Regular-ext.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../Fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../Fonts/AtkinsonHyperlegible-Bold-ext.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -----------------------------------------------------------------------------
   2. Widget-Chrome
   -------------------------------------------------------------------------- */

.vd-a11y {
    /* Ohne JavaScript bleibt der Knopf verborgen - er waere sonst tot. */
    display: none;

    --vd-a11y-accent: var(--vd-blue-500, #00628B);
    --vd-a11y-surface: var(--vd-ink-0, #FFFFFF);
    --vd-a11y-sunken: var(--vd-ink-50, #F4F5FA);
    --vd-a11y-fg: var(--vd-ink-900, #0E1220);
    --vd-a11y-muted: var(--vd-ink-500, #5F6678);
    --vd-a11y-line: var(--vd-ink-200, #D5D9E6);
    --vd-a11y-amber: var(--vd-sun-500, #F5B800);
    --vd-a11y-radius: var(--vd-radius-lg, 14px);
    --vd-a11y-font: var(--vd-font-sans, system-ui, sans-serif);
    --vd-a11y-mono: var(--vd-font-mono, ui-monospace, monospace);
}
html.vd-a11y-js .vd-a11y { display: block; }

.vd-a11y *,
.vd-a11y *::before,
.vd-a11y *::after { box-sizing: border-box; }

.vd-a11y-defs,
.vd-a11y-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.vd-a11y svg { display: block; }

/* Schwebender Knopf --------------------------------------------------------- */

/* Standard ist der runde Knopf unten links. Ueber data-position (Konstante
   plugin.tx_vitdaccessibility.position) wandert er nach unten rechts oder wird
   zur Lasche an der rechten Kante. */
.vd-a11y-fab {
    position: fixed;
    /* Unten derselbe Abstand wie zur Seite. */
    left: calc(env(safe-area-inset-left, 0px) + 24px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    z-index: 2147483200;

    width: 56px; height: 56px;
    display: grid; place-items: center;
    padding: 0;
    border: 0; border-radius: 50%;
    background: var(--vd-a11y-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(2, 25, 36, 0.30), 0 2px 6px rgba(2, 25, 36, 0.18);
    transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms, background-color 200ms;
}
.vd-a11y[data-position="right"] .vd-a11y-fab {
    left: auto;
    right: calc(env(safe-area-inset-right, 0px) + 24px);
}
/* Rechts teilt sich der Knopf die Ecke mit dem Nach-oben-Knopf. Damit der
   gleiche Abstand unten wie zur Seite erhalten bleibt, weicht der Nach-oben-
   Knopf nach oben aus statt der Widget-Knopf. */
body:has(#vd-a11y[data-position="right"]) .vd-totop {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
}
.vd-a11y-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(2, 25, 36, 0.36), 0 2px 6px rgba(2, 25, 36, 0.18); }
.vd-a11y-fab:focus-visible { outline: 3px solid var(--vd-a11y-amber); outline-offset: 3px; }
.vd-a11y-fab-ic { width: 30px; height: 30px; }
.vd-a11y-fab-tx { display: none; }

/* Kuerzel-Badge am Ausloeser: unten mittig auf der Kante, damit es nicht am
   Kopf des Symbols klebt. */
.vd-a11y-fab-key {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 2px 6px;
    border: 2px solid var(--vd-a11y-surface, #FFFFFF);
    border-radius: var(--vd-radius-pill, 999px);
    background: var(--vd-a11y-amber);
    color: var(--vd-ink-900, #0E1220);
    font-family: var(--vd-a11y-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(2, 25, 36, 0.25);
}
/* Die Lasche traegt das Badge oben links; unten mittig liefe es an der
   senkrechten Beschriftung und am Bildrand an. */
.vd-a11y[data-position="tab"] .vd-a11y-fab-key {
    top: -8px;
    bottom: auto;
    left: -8px;
    transform: none;
}

/* Lasche: fest an der rechten Kante, senkrecht auf halber Hoehe. */
.vd-a11y[data-position="tab"] .vd-a11y-fab {
    top: 50%;
    bottom: auto;
    left: auto;
    right: 0;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 11px;
    border-radius: var(--vd-radius-lg, 14px) 0 0 var(--vd-radius-lg, 14px);
    transform: translateY(-50%);
}
.vd-a11y[data-position="tab"] .vd-a11y-fab:hover {
    transform: translateY(-50%) translateX(-3px);
}
.vd-a11y[data-position="tab"] .vd-a11y-fab:focus-visible {
    outline-offset: -4px;
}
.vd-a11y[data-position="tab"] .vd-a11y-fab-ic { width: 26px; height: 26px; }
.vd-a11y[data-position="tab"] .vd-a11y-fab-tx {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* Hinweis beim Ueberfahren oder bei Tastaturfokus. Der runde Knopf unten links
   traegt ihn rechts, der Knopf unten rechts und die Lasche tragen ihn links. */
.vd-a11y-fab-tip {
    position: absolute;
    top: 50%;
    left: calc(100% + 14px);
    z-index: 1;
    width: max-content;
    max-width: min(76vw, 340px);
    padding: 8px 12px;
    border-radius: var(--vd-radius-md, 10px);
    background: var(--vd-ink-900, #0E1220);
    color: #fff;
    font-family: var(--vd-a11y-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    box-shadow: 0 8px 24px rgba(2, 25, 36, 0.30), 0 2px 6px rgba(2, 25, 36, 0.20);
    opacity: 0;
    transform: translateY(-50%) translateX(-6px);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}
.vd-a11y-fab-tip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    background: inherit;
    transform: rotate(45deg);
}
.vd-a11y-fab:hover .vd-a11y-fab-tip,
.vd-a11y-fab:focus-visible .vd-a11y-fab-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.vd-a11y[data-position="right"] .vd-a11y-fab-tip,
.vd-a11y[data-position="tab"] .vd-a11y-fab-tip {
    left: auto;
    right: calc(100% + 14px);
    transform: translateY(-50%) translateX(6px);
}
.vd-a11y[data-position="right"] .vd-a11y-fab-tip::before,
.vd-a11y[data-position="tab"] .vd-a11y-fab-tip::before {
    left: auto;
    right: -4px;
}
.vd-a11y[data-position="right"] .vd-a11y-fab:hover .vd-a11y-fab-tip,
.vd-a11y[data-position="right"] .vd-a11y-fab:focus-visible .vd-a11y-fab-tip,
.vd-a11y[data-position="tab"] .vd-a11y-fab:hover .vd-a11y-fab-tip,
.vd-a11y[data-position="tab"] .vd-a11y-fab:focus-visible .vd-a11y-fab-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Panel --------------------------------------------------------------------- */

.vd-a11y-panel {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: 100%;
    max-width: min(420px, 100vw);
    height: 100dvh;
    max-height: 100dvh;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--vd-a11y-line);
    border-radius: 0;
    background: var(--vd-a11y-surface);
    color: var(--vd-a11y-fg);
    font-family: var(--vd-a11y-font);
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden;
    box-shadow: -24px 0 60px rgba(2, 25, 36, 0.28);
}
.vd-a11y[data-position="left"] .vd-a11y-panel {
    inset: 0 auto 0 0;
    border-left: 0;
    border-right: 1px solid var(--vd-a11y-line);
    box-shadow: 24px 0 60px rgba(2, 25, 36, 0.28);
}
.vd-a11y-panel::backdrop { background: rgba(2, 25, 36, 0.48); }

.vd-a11y-panel[open] {
    display: flex;
    flex-direction: column;
    animation: vd-a11y-panel-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes vd-a11y-panel-in {
    from { transform: translateX(24px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.vd-a11y[data-position="left"] .vd-a11y-panel[open] {
    animation-name: vd-a11y-panel-in-left;
}
@keyframes vd-a11y-panel-in-left {
    from { transform: translateX(-24px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

.vd-a11y-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 16px 24px;
    border-bottom: 1px solid var(--vd-a11y-line);
}
.vd-a11y-title {
    margin: 0;
    font-family: var(--vd-a11y-font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.vd-a11y-close {
    margin-left: auto;
    width: 40px; height: 40px;
    flex: 0 0 auto;
    display: grid; place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--vd-a11y-muted);
    cursor: pointer;
    transition: background-color 160ms, color 160ms;
}
.vd-a11y-close svg { width: 22px; height: 22px; }
.vd-a11y-close:hover { background: var(--vd-a11y-sunken); color: var(--vd-a11y-fg); }
.vd-a11y-close:focus-visible { outline: 3px solid var(--vd-a11y-amber); outline-offset: 2px; }

.vd-a11y-intro {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 24px 0;
    color: var(--vd-a11y-muted);
    font-size: 14px;
    line-height: 1.5;
}

.vd-a11y-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 24px 8px;
}

.vd-a11y-group {
    margin: 0;
    padding: 20px 0;
    border: 0;
    border-top: 1px solid var(--vd-a11y-line);
}
.vd-a11y-group:first-child { border-top: 0; }

.vd-a11y-legend {
    margin: 0 0 14px;
    padding: 0;
    font-family: var(--vd-a11y-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vd-a11y-muted);
}

/* Schriftgroesse ------------------------------------------------------------ */

.vd-a11y-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vd-a11y-zoom-btn {
    width: 48px; height: 48px;
    flex: 0 0 auto;
    display: grid; place-items: center;
    padding: 0;
    border: 1px solid var(--vd-a11y-line);
    border-radius: var(--vd-radius-md, 10px);
    background: var(--vd-a11y-surface);
    color: var(--vd-a11y-fg);
    cursor: pointer;
    transition: border-color 160ms, background-color 160ms;
}
.vd-a11y-zoom-btn svg { width: 22px; height: 22px; }
.vd-a11y-zoom-btn:hover { border-color: var(--vd-a11y-accent); }
.vd-a11y-zoom-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vd-a11y-zoom-btn:focus-visible { outline: 3px solid var(--vd-a11y-amber); outline-offset: 2px; }
.vd-a11y-zoom-val {
    flex: 1 1 auto;
    text-align: center;
    font-family: var(--vd-a11y-mono);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.vd-a11y-hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: var(--vd-a11y-muted);
}

/* Kacheln (Checkbox-Zeilen) ------------------------------------------------ */

.vd-a11y-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
}

.vd-a11y-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--vd-a11y-line);
    border-radius: var(--vd-radius-md, 10px);
    cursor: pointer;
    transition: border-color 160ms, background-color 160ms;
}
.vd-a11y-tile:hover { border-color: var(--vd-a11y-accent); }

.vd-a11y-tile > input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.vd-a11y-tile-ic {
    width: 40px; height: 40px;
    flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: var(--vd-radius-sm, 6px);
    background: var(--vd-a11y-sunken);
    color: var(--vd-a11y-accent);
}
.vd-a11y-tile-ic svg { width: 22px; height: 22px; }
.vd-a11y-tile-tx {
    flex: 1 1 auto;
    font-size: 14.5px;
    font-weight: 500;
}
.vd-a11y-tile-check {
    width: 24px; height: 24px;
    flex: 0 0 auto;
    display: grid; place-items: center;
    border: 2px solid var(--vd-a11y-line);
    border-radius: 50%;
    color: transparent;
    transition: background-color 160ms, border-color 160ms, color 160ms;
}
.vd-a11y-tile-check svg { width: 15px; height: 15px; }

.vd-a11y-tile > input:checked ~ .vd-a11y-tile-ic { background: var(--vd-a11y-accent); color: #fff; }
.vd-a11y-tile > input:checked ~ .vd-a11y-tile-check {
    background: var(--vd-a11y-accent);
    border-color: var(--vd-a11y-accent);
    color: #fff;
}
.vd-a11y-tile > input:checked ~ .vd-a11y-tile-tx { font-weight: 600; }
.vd-a11y-tile > input:focus-visible ~ .vd-a11y-tile-ic { outline: 3px solid var(--vd-a11y-amber); outline-offset: 2px; }

/* Segmentierte Auswahl (Radio-Pillen) -------------------------------------- */

.vd-a11y-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.vd-a11y-seg label {
    position: relative;
    flex: 1 1 30%;
    min-width: 96px;
}
.vd-a11y-seg input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.vd-a11y-seg label > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 6px 10px;
    border: 1px solid var(--vd-a11y-line);
    border-radius: var(--vd-radius-md, 10px);
    background: var(--vd-a11y-surface);
    color: var(--vd-a11y-fg);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    transition: border-color 160ms, background-color 160ms, color 160ms;
}
.vd-a11y-seg label > span svg { width: 17px; height: 17px; flex: 0 0 auto; }
.vd-a11y-seg label:hover > span { border-color: var(--vd-a11y-accent); }
.vd-a11y-seg input:checked ~ span {
    background: var(--vd-a11y-accent);
    border-color: var(--vd-a11y-accent);
    color: #fff;
    font-weight: 600;
}
.vd-a11y-seg input:focus-visible ~ span { outline: 3px solid var(--vd-a11y-amber); outline-offset: 2px; }
.vd-a11y-seg-four label { flex-basis: 46%; }

/* Fuss ---------------------------------------------------------------------- */

.vd-a11y-foot {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--vd-a11y-line);
    background: var(--vd-a11y-sunken);
}
.vd-a11y-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--vd-a11y-line);
    border-radius: var(--vd-radius-md, 10px);
    background: var(--vd-a11y-surface);
    color: var(--vd-a11y-fg);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 160ms, color 160ms;
}
.vd-a11y-reset svg { width: 18px; height: 18px; }
.vd-a11y-reset:hover { border-color: var(--vd-a11y-accent); color: var(--vd-a11y-accent); }
.vd-a11y-reset:focus-visible { outline: 3px solid var(--vd-a11y-amber); outline-offset: 2px; }
.vd-a11y-more {
    margin-left: auto;
    color: var(--vd-a11y-accent);
    font-size: 13.5px;
    font-weight: 600;
    text-underline-offset: 0.2em;
}
.vd-a11y-more:focus-visible { outline: 3px solid var(--vd-a11y-amber); outline-offset: 2px; }

/* -----------------------------------------------------------------------------
   3. Wirkung auf #root
   -------------------------------------------------------------------------- */

:root { --vd-a11y-zoom: 1; }
html #root { zoom: var(--vd-a11y-zoom); }

/* Lesefreundliche Schrift */
html.vd-a11y-readable #root,
html.vd-a11y-readable #root *:not(code):not(kbd):not(samp):not(pre) {
    font-family: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif !important;
}

/* Mehr Textabstand (WCAG 1.4.12) */
html.vd-a11y-spacing #root :is(p, li, dd, dt, blockquote, figcaption, td, th, h1, h2, h3, h4, h5, h6, a, label, button, input, textarea, select) {
    line-height: 1.85 !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.14em !important;
}

/* Links hervorheben */
html.vd-a11y-links #root a[href] {
    text-decoration: underline !important;
    text-decoration-thickness: 0.11em !important;
    text-underline-offset: 0.18em !important;
    background-color: color-mix(in srgb, var(--vd-sun-500, #F5B800) 26%, transparent) !important;
    border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   4. Themen und Filter-Linse
   -------------------------------------------------------------------------- */

/* Hoher Kontrast: harte Schwarz-Gelb-Flaeche, Cyan fuer Links. Die Forcierung
   liegt auf #root; das Widget selbst bleibt davon unberuehrt. */
html.vd-a11y-contrast #root,
html.vd-a11y-contrast #root * {
    background-color: #000 !important;
    background-image: none !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #ffee00 !important;
}
html.vd-a11y-contrast #root a,
html.vd-a11y-contrast #root a * { color: #6fe0ff !important; }

/* Die Filter-Linse liegt fest ueber der Seite (backdrop-filter). Weil sie nicht
   Vorfahre der Seite ist, bleiben feste Elemente (Header, Mobilmenue) fixiert -
   anders als bei einem filter auf #root. Bilder kehren die Dunkel-Invertierung
   mit demselben Filter wieder um und bleiben so unverfälscht. */
.vd-a11y-lens {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    display: none;
    backdrop-filter: var(--vd-a11y-lens, none);
    -webkit-backdrop-filter: var(--vd-a11y-lens, none);
}
html.vd-a11y-lens-on .vd-a11y-lens { display: block; }

html.vd-a11y-dark #root img,
html.vd-a11y-dark #root picture,
html.vd-a11y-dark #root video,
html.vd-a11y-dark #root canvas {
    filter: invert(1) hue-rotate(180deg) !important;
}

/* -----------------------------------------------------------------------------
   5. Leselineal, Zeiger, Vorlesen, Animationen
   -------------------------------------------------------------------------- */

.vd-a11y-ruler {
    position: fixed;
    left: 0; right: 0; top: 0;
    height: 44px;
    z-index: 2147483100;
    pointer-events: none;
    display: none;
    border-top: 2px solid var(--vd-a11y-accent);
    border-bottom: 2px solid var(--vd-a11y-accent);
    background: color-mix(in srgb, var(--vd-a11y-amber) 16%, transparent);
    box-shadow: 0 0 0 100vmax rgba(2, 25, 36, 0.45);
    transform: translateY(40vh);
}
html.vd-a11y-ruler-on .vd-a11y-ruler { display: block; }

html.vd-a11y-cursor,
html.vd-a11y-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5v16.9l4.5-4.2 2.6 6 2.7-1.2-2.7-5.9h6.4z' fill='%23ffffff' stroke='%23000000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}

html.vd-a11y-read #root :is(p, li, h1, h2, h3, h4, h5, h6, blockquote, figcaption, td, th, dd) { cursor: pointer !important; }
html.vd-a11y-read #root :is(p, li, h1, h2, h3, h4, h5, h6, blockquote, figcaption, td, th, dd):hover {
    background-color: color-mix(in srgb, var(--vd-sun-500, #F5B800) 18%, transparent);
    border-radius: 3px;
}
.vd-a11y-speaking {
    background-color: color-mix(in srgb, var(--vd-sun-500, #F5B800) 42%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--vd-sun-500, #F5B800) 42%, transparent);
    border-radius: 3px;
}

html.vd-a11y-noanim #root *,
html.vd-a11y-noanim #root *::before,
html.vd-a11y-noanim #root *::after {
    animation-play-state: paused !important;
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
}

/* -----------------------------------------------------------------------------
   Responsiv & Bewegungsreduktion
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
    .vd-a11y-panel { max-width: 100vw; }
    .vd-a11y[data-position="left"] .vd-a11y-fab,
    .vd-a11y[data-position="right"] .vd-a11y-fab { width: 52px; height: 52px; }
    /* Auf schmalen Schirmen nur das Symbol - die senkrechte Beschriftung
       wuerde die Lasche zu hoch machen. */
    .vd-a11y[data-position="tab"] .vd-a11y-fab { padding: 14px 12px; }
    .vd-a11y[data-position="tab"] .vd-a11y-fab-tx { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .vd-a11y-panel[open] { animation: none; }
    .vd-a11y-fab,
    .vd-a11y-tile,
    .vd-a11y-seg label > span,
    .vd-a11y-zoom-btn,
    .vd-a11y-close,
    .vd-a11y-reset,
    .vd-a11y-fab-tip { transition: none; }
}
