/* Barrierefreiheit – Bedienhilfe. Die Anpassungen gelten für die ganze Seite außer dem Bedienfeld selbst (.a11yw). */

/* ---------- Anpassungen der Seite ---------- */
/* Textabstände nach WCAG 2.2, Erfolgskriterium 1.4.12 */
html.a11y-spacing body *:not(.a11yw):not(.a11yw *){line-height:1.6!important;letter-spacing:.12em!important;word-spacing:.16em!important}
html.a11y-spacing body p:not(.a11yw *),html.a11y-spacing body li:not(.a11yw *){margin-bottom:2em!important}

/* Kontrast dunkel: weiße Schrift auf Schwarz, Links gelb */
html.a11y-contrast-dark,html.a11y-contrast-dark body{background:#000!important;color:#fff!important}
html.a11y-contrast-dark body *:not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *){background-color:#000!important;background-image:none!important;color:#fff!important;border-color:#fff!important;text-shadow:none!important;box-shadow:none!important}
html.a11y-contrast-dark body a:not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *),html.a11y-contrast-dark body a:not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *) *:not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *){color:#ff0!important}
html.a11y-contrast-dark body :is(button,input,select,textarea,.cms-button):not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *){border:2px solid #fff!important}
/* Kontrast hell: schwarze Schrift auf Weiß, Links dunkelblau */
html.a11y-contrast-light,html.a11y-contrast-light body{background:#fff!important;color:#000!important}
html.a11y-contrast-light body *:not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *){background-color:#fff!important;background-image:none!important;color:#000!important;border-color:#000!important;text-shadow:none!important;box-shadow:none!important}
html.a11y-contrast-light body a:not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *),html.a11y-contrast-light body a:not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *) *:not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *){color:#00008b!important}
html.a11y-contrast-light body :is(button,input,select,textarea,.cms-button):not(.a11yw):not(.a11yw *):not(img):not(video):not(picture):not(svg):not(svg *){border:2px solid #000!important}

html.a11y-gray body>*:not(.a11yw){filter:grayscale(1)!important}

/* Links unterstrichen, Tastaturfokus mit doppeltem Rahmen (sichtbar auf hellem und dunklem Grund) */
html.a11y-links body a:not(.a11yw *){text-decoration:underline!important;text-decoration-thickness:max(2px,.08em)!important;text-underline-offset:.18em!important}
html.a11y-links body :focus-visible:not(.a11yw *){outline:3px solid #ffd400!important;outline-offset:2px!important;box-shadow:0 0 0 7px #000!important}

html.a11y-font body,html.a11y-font body *:not(.a11yw):not(.a11yw *):not(code):not(pre):not(kbd):not(samp){font-family:Verdana,"Atkinson Hyperlegible","Segoe UI",Tahoma,Arial,sans-serif!important}

html.a11y-motion body *:not(.a11yw *),html.a11y-motion body *::before,html.a11y-motion body *::after{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.001ms!important;transition-delay:0s!important}
html.a11y-motion,html.a11y-motion body{scroll-behavior:auto!important}

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 3l30 27-13 1 8 15-6 3-8-15-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3,auto!important}
html.a11y-cursor :is(a,button,[role=button],label,select,summary),html.a11y-cursor :is(a,button,[role=button],label,select,summary) *{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='M18 4c2 0 3.5 1.5 3.5 3.5V20l2-.5c2-.4 3.6.6 4 2.2l.2.8 1.6-.4c2-.4 3.7.7 4 2.3l.2.8 1.4-.3c2-.3 3.6.9 3.9 2.6l.7 6.5c.4 4.5-1 8.4-4 11.5H19.8L9.5 30.5c-1.3-1.6-1-3.8.6-5 1.4-1 3.4-.8 4.6.5l-.2-18.5C14.5 5.5 16 4 18 4z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 17 4,pointer!important}

/* ---------- Bedienfeld ---------- */
.a11yw{position:fixed;z-index:2147483600;font:16px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#111827;letter-spacing:normal;word-spacing:normal;text-transform:none;text-align:left}
.a11yw *{box-sizing:border-box;font-family:inherit;letter-spacing:normal;word-spacing:normal;line-height:1.4}
.a11yw--br{right:16px;bottom:16px}.a11yw--bl{left:16px;bottom:16px}
.a11yw--rm{right:16px;top:50%;transform:translateY(-50%)}.a11yw--lm{left:16px;top:50%;transform:translateY(-50%)}
.a11yw-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.a11yw-toggle{display:grid;place-items:center;width:56px;height:56px;padding:0;border:3px solid #fff;border-radius:50%;background:var(--a11yw-color,#1d4ed8);color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.a11yw-toggle[hidden],.a11yw-panel[hidden],.a11yw-guide[hidden]{display:none}
.a11yw-toggle:hover{filter:brightness(1.1)}
.a11yw button:focus-visible,.a11yw a:focus-visible,.a11yw-title:focus-visible{outline:3px solid #111827;outline-offset:2px;box-shadow:0 0 0 6px #fff}
.a11yw-panel{position:absolute;width:min(350px,calc(100vw - 32px));max-height:calc(100vh - 110px);overflow:auto;padding:16px;background:#fff;color:#111827;border:1px solid #9aa3af;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.a11yw--br .a11yw-panel{right:0;bottom:68px}.a11yw--bl .a11yw-panel{left:0;bottom:68px}
.a11yw--rm .a11yw-panel{right:68px;top:50%;transform:translateY(-50%)}.a11yw--lm .a11yw-panel{left:68px;top:50%;transform:translateY(-50%)}
.a11yw-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.a11yw-title{margin:0;font-size:19px;font-weight:700;color:#111827}
.a11yw-close{width:44px;height:44px;border:2px solid #9aa3af;border-radius:10px;background:#fff;color:#111827;font-size:26px;line-height:1;cursor:pointer}
.a11yw-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 0;border-top:1px solid #e5e7eb}
.a11yw-label{font-weight:600}
.a11yw-stepper,.a11yw-seg{display:inline-flex;align-items:center;gap:4px}
.a11yw-step,.a11yw-segbtn,.a11yw-opt,.a11yw-reset{min-height:44px;border:2px solid #9aa3af;border-radius:10px;background:#f3f4f6;color:#111827;font-size:16px;font-weight:600;cursor:pointer}
.a11yw-step{min-width:48px;padding:0 8px}
.a11yw-segbtn{padding:0 10px}
.a11yw-value{min-width:58px;text-align:center;font-variant-numeric:tabular-nums;font-weight:700}
.a11yw-opts{display:grid;grid-template-columns:1fr;gap:6px;padding-top:10px;border-top:1px solid #e5e7eb}
.a11yw-opt{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;text-align:left}
.a11yw-check{flex:none;width:22px;height:22px;border:2px solid currentColor;border-radius:5px;position:relative}
.a11yw [aria-pressed=true]{background:var(--a11yw-color,#1d4ed8);border-color:var(--a11yw-color,#1d4ed8);color:#fff}
.a11yw-opt[aria-pressed=true] .a11yw-check::after{content:"";position:absolute;left:5px;top:1px;width:6px;height:11px;border:solid currentColor;border-width:0 3px 3px 0;transform:rotate(45deg)}
.a11yw-reset{width:100%;margin-top:12px;background:#fff}
.a11yw-links{display:flex;flex-direction:column;gap:6px;margin:14px 0 0}
.a11yw-links a{color:#1e3a8a;font-weight:600;text-decoration:underline}
.a11yw-note{margin:12px 0 0;font-size:14px;color:#374151}
.a11yw-guide{position:fixed;left:0;right:0;top:0;height:2.6em;pointer-events:none;z-index:2147483599;background:rgba(255,230,0,.22);border-top:3px solid #111;border-bottom:3px solid #111}
@media (max-width:640px){
  .a11yw--rm,.a11yw--lm{top:auto;bottom:16px;transform:none}
  .a11yw .a11yw-panel{position:fixed;left:8px;right:8px;bottom:84px;top:auto;width:auto;max-height:calc(100vh - 100px);transform:none}
}
@media print{.a11yw,.a11yw-guide{display:none!important}}
