/* ==========================================================================
   HMS3 GmbH – a11y.css · Barrierefreiheit: Auslöser, Dialog „Darstellung anpassen“
   und die Darstellungs-Modi. Wird über partials/a11y.html NACH base.css/components.css
   geladen und gilt auf allen Seiten.
   Modi = Klassen am <html>-Element (gesetzt vom Inline-Snippet im Head und von a11y.js):
     a11y-text-115 | a11y-text-130 | a11y-text-150   Schriftgröße
     a11y-contrast                                   erhöhter Kontrast
     a11y-motion-off                                 Animationen aus
     a11y-links                                      Links hervorheben
     a11y-spacing                                    größere Abstände (WCAG 1.4.12)
     a11y-font                                       kräftigere Schrift (Outfit, höheres Gewicht)
     a11y-cursor                                     großer Mauszeiger
   Ohne gesetzte Klasse ändert diese Datei am Standard-Design nichts.
   Aufbau: 1 Auslöser · 2 Dialog · 3 Modi · 4 Fallbacks
   ========================================================================== */

/* 1 · Auslöser: fest am rechten Fensterrand, unten (Cookie-Banner sitzt unten links).
   Bündig am Rand liegt das Quadrat im Seitenrand (--gutter) und damit neben dem Inhaltsraster – es verdeckt
   weder die Hero-Glaskachel der Startseite noch Texte/Pfeile in Karten (deren Innenabstand ist größer als die
   Überlappung auf schmalen Bildschirmen). Position auf allen Seiten gleich. */
.a11y-trigger {
  position: fixed; z-index: 140;
  right: 0; bottom: calc(var(--gutter) + var(--a11y-lift, 0px));
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--c-ink); color: var(--c-violet-200);
  border: 1px solid rgba(255, 255, 255, .22); border-right: 0;
  box-shadow: var(--float-shadow);
  --focus: var(--c-violet-500);
  transition: background-color .25s, color .25s, opacity .25s, visibility 0s;
}
.a11y-trigger::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--grad-brand); }
.a11y-trigger .icon { width: 22px; height: 22px; }
@media (max-width: 860px) { .a11y-trigger { width: 40px; height: 40px; } .a11y-trigger .icon { width: 20px; height: 20px; } }
.a11y-trigger:hover, .a11y-trigger[aria-expanded="true"] { background: var(--grad-brand); color: #fff; }
.a11y-trigger:focus-visible { outline: 2px solid var(--focus); outline-offset: -6px; box-shadow: inset 0 0 0 4px var(--c-ink), var(--float-shadow); --focus: #fff; }   /* Ring innen: weiß auf Schwarz (19:1), am Fensterrand nicht abgeschnitten */
/* Beschriftung erscheint bei Hover/Fokus links neben dem Quadrat */
.a11y-trigger__label {
  position: absolute; right: calc(100% + 8px); top: 50%;
  padding: .45rem .7rem;
  background: var(--c-ink); color: #fff;
  font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap;
  transform: translateY(-50%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, visibility 0s .2s;
}
.a11y-trigger:hover .a11y-trigger__label, .a11y-trigger:focus-visible .a11y-trigger__label {
  opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s;
}
/* Am Seitenende (Footer-Leiste sichtbar) tritt der Auslöser zurück – dort gibt es den Footer-Link */
.a11y-trigger.is-tucked:not(:focus-visible) { opacity: 0; pointer-events: none; }   /* bleibt fokussierbar; bei Tastaturfokus sofort sichtbar */

/* 2 · Dialog ------------------------------------------------------------------ */
.a11y-dialog {
  position: fixed;
  width: min(440px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100dvh - 2 * var(--gutter));
  margin: auto var(--gutter) auto auto;
  padding: 0;
  overflow: auto; overscroll-behavior: contain;
  background: var(--c-paper);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  box-shadow: 0 40px 80px -30px rgba(9, 9, 11, .55);
  --focus: var(--c-violet-600);
}
.a11y-dialog:not([open]) { display: none; }
.a11y-dialog::before { content: ""; position: sticky; top: 0; display: block; height: 3px; background: var(--grad-brand); z-index: 1; }
.a11y-dialog::backdrop { background: rgba(9, 9, 11, .55); }
.a11y-dialog__inner { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.a11y-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.a11y-dialog__title { margin-top: var(--space-sm); font-size: var(--fs-xl); font-weight: var(--fw-light); letter-spacing: var(--track-snug); line-height: 1.15; }
.a11y-dialog__close {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border: 1px solid #8a8a93;               /* 3.4:1 auf Weiß (Bedienelement-Kontur) */
  transition: border-color .2s, background-color .2s, color .2s;
}
.a11y-dialog__close:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.a11y-dialog__close .icon { width: 18px; height: 18px; }
.a11y-dialog__intro { margin-top: var(--space-sm); font-size: var(--fs-sm); color: var(--c-text-2); }
.a11y-form { margin-top: var(--space-md); }
.a11y-group { margin: var(--space-lg) 0 0; padding: 0; border: 0; min-width: 0; }
.a11y-group__title { padding: 0; margin-bottom: var(--space-xs); font-size: var(--fs-xs); font-weight: var(--fw-regular); letter-spacing: .02em; color: var(--c-text-2); }

/* Schriftgröße: echte Radio-Buttons als Segmente (je ≥ 48 px hoch) */
.a11y-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #8a8a93; }
.a11y-seg__opt { position: relative; display: block; cursor: pointer; }
.a11y-seg__opt + .a11y-seg__opt { border-left: 1px solid #8a8a93; }
.a11y-seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.a11y-seg__opt span {
  display: grid; place-items: center;
  min-height: 48px; padding: .4rem .25rem;
  font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 1.2; text-align: center;
  transition: background-color .2s, color .2s;
}
.a11y-seg__opt:nth-child(2) span { font-size: 1rem; }
.a11y-seg__opt:nth-child(3) span { font-size: 1.125rem; }
.a11y-seg__opt:nth-child(4) span { font-size: 1.25rem; }
.a11y-seg__opt:hover span { background: var(--c-mist); }
.a11y-seg__opt input:checked + span { background: var(--c-ink); color: #fff; box-shadow: inset 0 -3px 0 var(--c-violet-300); }
.a11y-seg__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }

/* Schalter: ganze Zeile ist das Label (Zielgröße ≥ 56 px), echte Checkbox mit role="switch" */
.a11y-opt {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  min-height: 60px; padding: .6rem 0;
  border-top: var(--line);
  cursor: pointer;
}
.a11y-group .a11y-opt:last-child { border-bottom: var(--line); }
.a11y-opt__text { display: grid; gap: .1rem; min-width: 0; }
.a11y-opt__title { font-size: var(--fs-base); font-weight: var(--fw-regular); line-height: 1.3; }
.a11y-opt__desc { font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.4; }
.a11y-opt__hint { padding: 0 0 .6rem; font-size: var(--fs-xs); color: var(--c-text-2); }
.a11y-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.a11y-switch { position: relative; flex: none; width: 50px; height: 28px; border: 1px solid #8a8a93; background: var(--c-paper); transition: background .25s, border-color .25s; }
.a11y-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; background: var(--c-text-2); transition: transform .25s var(--ease), background .25s; }
.a11y-opt input:checked ~ .a11y-switch { background: var(--c-violet-700); border-color: var(--c-violet-700); }
.a11y-opt input:checked ~ .a11y-switch::after { transform: translateX(22px); background: #fff; }
.a11y-opt input:focus-visible ~ .a11y-switch { outline: 2px solid var(--focus); outline-offset: 3px; }
.a11y-opt:hover .a11y-switch { border-color: var(--c-ink); }

.a11y-dialog__note { margin-top: var(--space-lg); font-size: var(--fs-xs); color: var(--c-text-2); }
.a11y-dialog__note a { color: var(--c-violet-600); text-decoration: underline; text-underline-offset: 2px; }
.a11y-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
.a11y-dialog__actions .btn { flex: 1 1 auto; justify-content: center; }
.a11y-dialog .btn--outline { --btn-edge: #8a8a93; }

@media (max-width: 520px) {
  .a11y-dialog { width: 100%; max-height: 100dvh; margin: auto 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .a11y-seg__opt span { font-size: var(--fs-sm) !important; }
}

/* 3 · Modi ---------------------------------------------------------------------- */

/* 3.1 Schriftgröße – skaliert alle rem-basierten Größen der Seite */
html.a11y-text-115 { font-size: 115%; }
html.a11y-text-130 { font-size: 130%; }
html.a11y-text-150 { font-size: 150%; }
html[class*="a11y-text-"] .site-footer__bottom ul { flex-wrap: wrap; }
/* Lange deutsche Wörter in großen Headlines dürfen umbrechen (sonst seitliches Scrollen auf schmalen Bildschirmen) */
html[class*="a11y-text-"] :is(h1, h2, h3, h4, .display, .h2, .statement, [class*="__title"], [class*="__text"], .lead),
html.a11y-spacing :is(h1, h2, h3, h4, .display, .h2, .statement, [class*="__title"], [class*="__text"], .lead) { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
html[class*="a11y-text-"] :is(.section-head__text, .section-head__aside, .hero__content, .page-hero__content, .contact-card > div),
html.a11y-spacing :is(.section-head__text, .section-head__aside, .hero__content, .page-hero__content, .contact-card > div) { min-width: 0; max-width: 100%; }
html[class*="a11y-text-"] :is(.contact-card__value, .facts dd, .prose a, .btn__label, .logo-strip__item, .check, .chip),
html.a11y-spacing :is(.contact-card__value, .facts dd, .prose a, .btn__label, .logo-strip__item, .check, .chip) { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; min-width: 0; }
html[class*="a11y-text-"] .logo-strip__item, html.a11y-spacing .logo-strip__item { white-space: normal; }
html[class*="a11y-text-"] .services__controls, html.a11y-spacing .services__controls { flex-wrap: wrap; }
html[class*="a11y-text-"] .tag { white-space: normal; }
html[class*="a11y-text-"] .btn { max-width: 100%; }
html[class*="a11y-text-"] .btn__label { white-space: normal; }
html[class*="a11y-text-"] .fact-row strong,
html[class*="a11y-text-"] .board__num { white-space: normal; overflow-wrap: anywhere; }
/* Desktop-Navigation: Leiste darf nicht aus dem Bild laufen – Abstände enger, Schrift wächst gedeckelt mit */
@media (min-width: 1080px) and (max-width: 1599.98px) {
  html.a11y-text-130 .site-header__inner, html.a11y-text-150 .site-header__inner { gap: var(--space-sm); }
  html.a11y-text-130 .site-nav__link, html.a11y-text-150 .site-nav__link,
  html.a11y-text-130 .site-header__cta, html.a11y-text-150 .site-header__cta { font-size: min(var(--fs-sm), 16px); }
  html.a11y-text-130 .site-nav__link, html.a11y-text-150 .site-nav__link { padding-inline: .7rem; }
  html.a11y-text-130 .brand, html.a11y-text-150 .brand { padding-inline: .75rem; }
}
@media (min-width: 1080px) and (max-width: 1279.98px) {
  html[class*="a11y-text-"] .site-header__cta { display: none; }   /* Kontakt bleibt über die Navigation/Seite erreichbar */
}
/* Mobil: Logo-Kasten und Menü-Knopf müssen nebeneinander passen – Abstände fest, Beschriftung „Menü“ bei
   wenig Platz nur noch für Screenreader (der Knopf behält seinen Namen) */
@media (max-width: 1079.98px) {
  html[class*="a11y-text-"] .brand, html.a11y-spacing .brand,
  html[class*="a11y-text-"] .nav-toggle, html.a11y-spacing .nav-toggle { padding-inline: 12px; }
  html[class*="a11y-text-"] .site-header__inner, html.a11y-spacing .site-header__inner { gap: 12px; }
}
@media (max-width: 480px) {
  html[class*="a11y-text-"] .nav-toggle__label, html.a11y-spacing .nav-toggle__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  html[class*="a11y-text-"] .nav-toggle, html.a11y-spacing .nav-toggle { width: var(--hdr-item-h); justify-content: center; padding: 0; }
}

/* 3.2 Erhöhter Kontrast */
html.a11y-contrast {
  --c-text-2: #3f3f46;            /* 10.4:1 auf Weiß */
  --c-muted: #55555e;             /* Headline-Zweitfarbe 7.4:1 statt 3.7:1 */
  --c-line: #8a8a93;              /* Kartenkanten sichtbar (3.4:1) */
  --c-line-strong: #6b6b74;       /* Feld- und Schalterkanten 5.3:1 */
  --c-field-edge: #6b6b74;
  --c-muted-text: #55555e;
  --c-placeholder: #55555e;
  --c-on-dark-2: #ffffff;
  --c-on-dark-muted: rgba(255, 255, 255, .88);
  --glass-light: #ffffff;
  --glass-light-strong: #ffffff;
  --glass-dark-bg: linear-gradient(#120c20, #120c20);
  --glass-dark-tint: #120c20;
  --focus: var(--c-violet-700);
}
html.a11y-contrast .on-dark, html.a11y-contrast .site-header:not(.is-scrolled), html.a11y-contrast .mega__feature,
html.a11y-contrast .feature-card--dark, html.a11y-contrast .svc-card { --focus: #ffffff; }
html.a11y-contrast .site-header.is-scrolled, html.a11y-contrast .mega, html.a11y-contrast .site-nav,
html.a11y-contrast .cookie-banner, html.a11y-contrast .cookie-dialog, html.a11y-contrast .a11y-dialog { --focus: var(--c-violet-700); }
/* Glas wird deckend */
html.a11y-contrast :is(.glass, .brand, .nav-toggle, .mega, .site-nav, .cookie-banner, .cookie-dialog, .tag--glass, .btn--glass, .hero-card),
html.a11y-contrast .site-nav__list::before {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.a11y-contrast .glass::before, html.a11y-contrast .hero-card::after { display: none; }
html.a11y-contrast :is(.glass--dark, .hero-card, .tag--glass, .btn--glass) { background: #120c20; }
html.a11y-contrast .brand, html.a11y-contrast .nav-toggle { background: #120c20; border-color: rgba(255, 255, 255, .6); }
html.a11y-contrast .site-header.is-scrolled .brand, html.a11y-contrast .site-header.is-open .brand,
html.a11y-contrast .site-header.is-scrolled .nav-toggle, html.a11y-contrast .site-header.is-open .nav-toggle { background: #fff; border-color: var(--c-ink); }
@media (min-width: 1080px) {
  html.a11y-contrast .site-nav__list { border-color: rgba(255, 255, 255, .6); }
  html.a11y-contrast .site-nav__list::before { background: #120c20; }
  html.a11y-contrast .site-header.is-scrolled .site-nav__list { border-color: var(--c-ink); }
  html.a11y-contrast .site-header.is-scrolled .site-nav__list::before { background: #fff; }
}
@media (max-width: 1079.98px) { html.a11y-contrast .site-nav { background: #fff; border-color: var(--c-ink); } }
html.a11y-contrast .mega { border-color: var(--c-ink); }
html.a11y-contrast .cookie-banner, html.a11y-contrast .cookie-dialog { border-color: var(--c-ink); }
/* Bildflächen hinter Text stärker abdunkeln */
html.a11y-contrast .page-hero__media::after, html.a11y-contrast .hero__shade, html.a11y-contrast .cta__media::after,
html.a11y-contrast .svc-card__visual::after { background: rgba(9, 9, 11, .82); }
/* Verlaufs- und halbtransparente Schrift wird deckend */
html.a11y-contrast :is(.accent, .grad-text, .hero-card__accent, .glass-card__num, .board__num, .svc-card__num) {
  background: none; -webkit-text-fill-color: currentColor; color: var(--c-violet-700);
}
html.a11y-contrast .on-dark :is(.accent, .grad-text, .hero-card__accent, .glass-card__num, .svc-card__num),
html.a11y-contrast :is(.hero-card__accent, .svc-card__num, .glass-card__num),
html.a11y-contrast :is(.board__tile--ink, .board__tile--night, .board__tile--media) .board__num { color: #fff; }
html.a11y-contrast .board__num small { opacity: 1; }
html.a11y-contrast .breadcrumb ol, html.a11y-contrast .breadcrumb a { color: #fff; }
html.a11y-contrast .breadcrumb--light ol, html.a11y-contrast .breadcrumb--light a { color: var(--c-ink); }
html.a11y-contrast .logo-strip__item { color: var(--c-ink-2); }
html.a11y-contrast .logo-strip__item img, html.a11y-contrast .logo-strip__item .icon,
html.a11y-contrast .logo-tile img { filter: none; opacity: 1; }
html.a11y-contrast .icon-btn { border-color: var(--c-line-strong); }
html.a11y-contrast .icon-btn:disabled { opacity: .5; }
html.a11y-contrast .chips--dark .chip, html.a11y-contrast .tag--on-dark { border-color: rgba(255, 255, 255, .8); }
html.a11y-contrast .site-footer { color: #fff; }
html.a11y-contrast .site-footer__bottom, html.a11y-contrast .site-footer h2 { color: rgba(255, 255, 255, .88); }
html.a11y-contrast .table tbody tr:hover { background: transparent; }
html.a11y-contrast :focus-visible { outline-width: 3px; }

/* 3.3 Animationen aus – alle Bewegungen, Lichteffekte, Parallax, Einblendungen */
html.a11y-motion-off { scroll-behavior: auto; }
html.a11y-motion-off *, html.a11y-motion-off *::before, html.a11y-motion-off *::after {
  animation: none !important;
  transition-duration: .01ms !important; transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
html.a11y-motion-off .hero-in, html.a11y-motion-off .js .reveal, html.a11y-motion-off.js .reveal { opacity: 1; transform: none; }
html.a11y-motion-off .flow-layer .pulse, html.a11y-motion-off .flow-layer .streak, html.a11y-motion-off .pattern__wave { display: none; }
html.a11y-motion-off .flow-layer { will-change: auto; }
html.a11y-motion-off .hero-card { translate: none !important; will-change: auto; }   /* Maus-Parallax der Glaskachel */
html.a11y-motion-off .js .svc-card, html.a11y-motion-off.js .svc-card { transform: none; }
html.a11y-motion-off .pcard:hover .pcard__img, html.a11y-motion-off .pcard:hover .pcard__media > svg { transform: none; }

/* 3.4 Links hervorheben + deutlicher Fokus */
html.a11y-links a:not(.btn):not(.brand):not(.arrow-square):not(.mega__feature):not(.mega__item):not(.feature-card):not(.contact-card):not(.skip-link):not(.pcard__title a) {
  text-decoration: underline; text-decoration-thickness: max(1px, .08em); text-underline-offset: .22em;
}
html.a11y-links .pcard__title a, html.a11y-links .mega__item strong, html.a11y-links a.feature-card .feature-card__title,
html.a11y-links .mega__feature-title, html.a11y-links .btn__label {
  text-decoration: underline; text-decoration-thickness: max(1px, .06em); text-underline-offset: .2em;
}
html.a11y-links .link-button { text-decoration: underline; text-underline-offset: .22em; }
html.a11y-links .site-nav__link[aria-current="page"], html.a11y-links .site-nav__link[data-current="true"] { text-decoration-thickness: 2px; }
html.a11y-links :focus-visible {
  outline: 3px solid var(--focus) !important; outline-offset: 3px !important;
  box-shadow: 0 0 0 9px var(--a11y-halo, #fff) !important;
}
html.a11y-links .on-dark, html.a11y-links .site-header:not(.is-scrolled), html.a11y-links .mega__feature, html.a11y-links .svc-card,
html.a11y-links .feature-card--dark { --a11y-halo: #09090b; }
html.a11y-links .site-header.is-scrolled, html.a11y-links .mega, html.a11y-links .site-nav { --a11y-halo: #fff; }
html.a11y-links .pcard:has(a:focus-visible) { outline-width: 3px; box-shadow: 0 0 0 9px #fff; }
html.a11y-links .mega__feature:focus-visible { outline-offset: -6px !important; box-shadow: none !important; }
html.a11y-links .a11y-trigger:focus-visible { outline-offset: -6px !important; box-shadow: inset 0 0 0 4px var(--c-ink) !important; }

/* 3.5 Größere Abstände (Werte nach WCAG 1.4.12: Zeilen 1,5×, Absätze 2×, Zeichen 0,12em, Wörter 0,16em) */
html.a11y-spacing body { line-height: 1.8; }
html.a11y-spacing :is(p, li, dd, dt, td, th, label, blockquote, figcaption, address, summary, .lead, .field__hint, .field__error) {
  line-height: 1.8 !important;
  letter-spacing: .12em !important;
  word-spacing: .16em !important;
}
html.a11y-spacing :is(h1, h2, h3, h4, .display, .h2, .statement, .page-hero__title) {
  line-height: 1.35 !important; letter-spacing: .03em !important; word-spacing: .16em !important;
}
html.a11y-spacing :is(.btn__label, .tag, .chip, .site-nav__link, .mega__text, .cookie-btn) { letter-spacing: .06em !important; word-spacing: .16em !important; }
html.a11y-spacing main :is(p, ul, ol, dl, blockquote):not(:last-child) { margin-bottom: 1.25em; }
html.a11y-spacing .prose > * + * { margin-top: 2em; }
html.a11y-spacing :is(.tag, .btn__label, .fact-row strong, .board__num, .logo-strip__item, .visual-frame__label) { white-space: normal; }
html.a11y-spacing .tag { width: auto; }
html.a11y-spacing .site-footer__bottom ul { flex-wrap: wrap; }
@media (min-width: 1080px) and (max-width: 1599.98px) {
  html.a11y-spacing .site-nav__link { letter-spacing: .02em !important; padding-inline: .7rem; }
}

/* 3.6 Kräftigere Schrift – Outfit (lokal) mit höherem Gewicht, ohne enge Laufweite */
html.a11y-font {
  --fw-thin: 420;
  --fw-light: 450;
  --fw-book: 460;
  --fw-regular: 560;
  --track-tight: 0em;
  --track-snug: 0em;
}
html.a11y-font body { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
html.a11y-font :is(strong, b, th) { font-weight: 650; }

/* 3.7 Großer Mauszeiger (inline-SVG, keine externen Dateien) */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l0 36 9-9 6 14 7-3-6-14h13z' fill='%2309090b' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.a11y-cursor :is(a, button, summary, label, select, [role="button"], input[type="checkbox"], input[type="radio"], input[type="submit"]),
html.a11y-cursor :is(a, button, summary, label) * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l0 36 9-9 6 14 7-3-6-14h13z' fill='%235b3aac' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, pointer !important;
}
html.a11y-cursor :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea) { cursor: text !important; }

/* 4 · Fallbacks ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .a11y-trigger, .a11y-trigger__label, .a11y-switch, .a11y-switch::after { transition: none; }
}
@media (forced-colors: active) {
  .a11y-trigger, .a11y-switch, .a11y-seg { border: 1px solid CanvasText; }
  .a11y-opt input:checked ~ .a11y-switch { background: Highlight; }
  .a11y-seg__opt input:checked + span { background: Highlight; color: HighlightText; }
}
@media print { .a11y-trigger, .a11y-dialog { display: none !important; } }
