/* Woid Barrierefreiheit – Widget + Ansichten. Farben kommen als CSS-Variablen aus dem Plugin. */

/* ---------- immer aktiv: Sprunglink + sichtbarer Tastatur-Fokus ---------- */
.wba-skip{position:fixed;left:12px;top:-200px;z-index:2147483646;background:var(--wba-bg,#222);color:var(--wba-fg,#fff)!important;
  font:600 15px/1.2 var(--wba-font,system-ui,sans-serif);padding:12px 18px;border-radius:var(--wba-r,4px);text-decoration:none!important;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.wba-skip:focus{top:12px;outline:3px solid var(--wba-ak,#000);outline-offset:2px}
html.wba-fokus :focus-visible{outline:3px solid currentColor!important;outline-offset:3px!important}
html.wba-fokus #wba :focus-visible{outline:3px solid var(--wba-ak)!important;outline-offset:2px!important}

/* ---------- Widget ---------- */
#wba,#wba *{box-sizing:border-box;font-family:var(--wba-font,inherit);letter-spacing:normal;text-transform:none;word-spacing:normal;text-shadow:none}
#wba{position:fixed;z-index:2147483640;bottom:calc(var(--wba-unten,20px) + var(--wba-hub,0px));transition:bottom .25s ease;left:var(--wba-seite,20px);right:auto;line-height:1.35;font-size:15px;-webkit-font-smoothing:antialiased}
#wba.wba-rechts{left:auto;right:var(--wba-seite,20px)}
#wba button{font:inherit;margin:0;cursor:pointer;-webkit-appearance:none;appearance:none;text-transform:none!important;letter-spacing:normal!important;min-width:0!important;min-height:0!important;box-shadow:none;text-shadow:none}
#wba button:focus:not(:focus-visible),#wba a:focus:not(:focus-visible),#wba-pan:focus{outline:none!important;box-shadow:none!important}
#wba .wba-zu:focus:not(:focus-visible){border:0!important}
#wba-btn:focus:not(:focus-visible){border-color:var(--wba-kring,var(--wba-ring,rgba(255,255,255,.55)))!important}
#wba-btn{width:var(--wba-kgr,54px);height:var(--wba-kgr,54px);border-radius:var(--wba-rund,50%)!important;border:1.5px solid var(--wba-kring,var(--wba-ring,rgba(255,255,255,.55)));background:var(--wba-kbg,var(--wba-bg));color:var(--wba-kfg,var(--wba-fg));
  display:flex;align-items:center;justify-content:center;padding:0;box-shadow:0 4px 14px rgba(0,0,0,.12);transition:background-color .2s ease,color .2s ease}
#wba-btn:hover,#wba-btn[aria-expanded="true"]{background:var(--wba-kfg,var(--wba-bg));color:var(--wba-kbg,var(--wba-fg))}

#wba-btn svg{width:calc(var(--wba-kgr,54px) * .54);height:calc(var(--wba-kgr,54px) * .54);fill:currentColor;display:block}
#wba-pan{position:absolute;bottom:calc(var(--wba-kgr,54px) + 12px);left:0;width:350px;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain;
  background:var(--wba-hell);color:var(--wba-ink);border-radius:var(--wba-r);box-shadow:0 24px 60px rgba(0,0,0,.28),0 4px 14px rgba(0,0,0,.14)}
#wba.wba-rechts #wba-pan{left:auto;right:0}
#wba-pan[hidden]{display:none}
#wba .wba-kopf{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--wba-bg);color:var(--wba-fg);padding:15px 14px 15px 20px}
#wba .wba-kopf h2{margin:0;font-size:17px;font-weight:600;line-height:1.2;color:inherit;font-family:var(--wba-font-t,var(--wba-font))}
#wba .wba-zu{width:36px;height:36px;border:0;background:transparent;color:inherit;font-size:26px;line-height:1;padding:0;border-radius:var(--wba-rund,50%)!important;opacity:.85}
#wba .wba-zu:hover{opacity:1;background:rgba(255,255,255,.12)}
#wba .wba-inhalt{padding:10px 12px 6px}
#wba .wba-zeile{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:50px;padding:10px 10px;border:0;border-radius:calc(var(--wba-r) * .75);
  background:transparent;color:var(--wba-ink);text-align:left;font-size:15px;font-weight:500}
#wba button.wba-zeile:hover{background:var(--wba-hover)}
#wba .wba-zeile + .wba-zeile{border-top:1px solid var(--wba-linie)}
#wba .wba-zeile .wba-ic{flex:none;width:22px;height:22px;margin-right:12px;opacity:.85}
#wba .wba-zeile .wba-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}
#wba .wba-txt{flex:1;display:flex;align-items:center}
#wba .wba-sw{flex:none;position:relative;width:42px;height:24px;border-radius:var(--wba-sw-r,12px);background:var(--wba-aus);transition:background .2s}
#wba .wba-sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:var(--wba-sw-k,50%);background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
#wba [aria-pressed="true"] .wba-sw{background:var(--wba-ak)}
#wba [aria-pressed="true"] .wba-sw::after{transform:translateX(18px);background:var(--wba-akf)}
#wba .wba-gr{display:flex;align-items:center;gap:6px;flex:none}
#wba .wba-gr button{width:38px;height:38px;border-radius:var(--wba-rund,50%)!important;border:1.5px solid var(--wba-ink);background:transparent;color:var(--wba-ink);font-size:20px;line-height:1;padding:0;font-weight:500}
#wba .wba-gr button:hover:not(:disabled){background:var(--wba-ink);color:var(--wba-hell)}
#wba .wba-gr button:disabled{opacity:.3;cursor:default}
#wba .wba-gr output{min-width:52px;text-align:center;font-variant-numeric:tabular-nums;font-weight:600;font-size:15px}
#wba .wba-fuss{padding:12px 20px 18px;border-top:1px solid var(--wba-linie);display:flex;flex-direction:column;gap:12px;align-items:flex-start}
#wba .wba-reset{border:1.5px solid var(--wba-ink);background:transparent;color:var(--wba-ink);padding:10px 16px;border-radius:calc(var(--wba-r) * .75);font-size:14px;font-weight:600}
#wba .wba-reset:hover{background:var(--wba-ink);color:var(--wba-hell)}
#wba .wba-erkl{color:var(--wba-ink);font-size:14px;text-decoration:underline;text-underline-offset:3px}
#wba .wba-hinweis{margin:0;font-size:12.5px;opacity:.72;line-height:1.45}
@media (max-width:600px){
  #wba{bottom:calc(var(--wba-unten-m,14px) + var(--wba-hub,0px));left:var(--wba-seite-m,14px)}
  #wba.wba-rechts{left:auto;right:var(--wba-seite-m,14px)}
  #wba-btn{width:calc(var(--wba-kgr,54px) - 2px);height:calc(var(--wba-kgr,54px) - 2px)}
  #wba-pan{position:fixed;left:10px!important;right:10px!important;top:auto;bottom:calc(var(--wba-unten-m,14px) + var(--wba-hub,0px) + 60px);width:auto;max-height:calc(100dvh - 100px - var(--wba-hub,0px))}
}
@media (prefers-reduced-motion:reduce){#wba *{transition:none!important}}
@media print{#wba,.wba-skip{display:none!important}}

/* ---------- Ansichten (Klassen am <html>) ---------- */

/* Hoher Kontrast: schwarz / weiß / gelb, Fotos bleiben */
html.wba-kontrast,html.wba-kontrast body{background:#000!important}
html.wba-kontrast body :not(#wba):not(#wba *):not(img):not(video):not(picture):not(source):not(iframe):not(svg):not(svg *):not(canvas){
  background-color:#000!important;background-image:none!important;color:#fff!important;border-color:#fff!important;text-shadow:none!important;box-shadow:none!important}
html.wba-kontrast body :not(#wba *)::before,html.wba-kontrast body :not(#wba *)::after{background-color:transparent!important;background-image:none!important;color:#fff!important;border-color:#fff!important}
/* 3 IDs, damit diese Regeln die allgemeine Kontrast-Regel oben (2 IDs) schlagen */
html.wba-kontrast body a:not(#wba):not(#wba a):not(#wba-btn),html.wba-kontrast body a:not(#wba):not(#wba a):not(#wba-btn) *:not(svg):not(svg *){color:#ffe600!important}
html.wba-kontrast body a:not(#wba):not(#wba a):not(#wba-btn){text-decoration:underline!important}
html.wba-kontrast body :is(input,textarea,select):not(#wba):not(#wba *):not(#wba-btn){border:2px solid #fff!important}
html.wba-kontrast body svg:not(#wba svg) :is(path,circle,rect,line,polyline,polygon)[fill]:not([fill="none"]){fill:currentColor!important}
html.wba-kontrast body img:not(#wba img){opacity:1!important;filter:none!important}

/* Links hervorheben */
html.wba-links body a:not(#wba a){text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:4px!important}
html.wba-links body a:not(#wba a):hover{outline:3px solid currentColor!important;outline-offset:3px!important}

/* Gut lesbare Schrift */
html.wba-schrift body :not(#wba):not(#wba *):not(i):not([class*="icon"]):not([class*="fa-"]):not([class*="ti-"]):not(code):not(pre):not(svg *){
  font-family:Verdana,Tahoma,"Segoe UI",Arial,sans-serif!important;font-style:normal!important}

/* Mehr Zeilen- und Buchstabenabstand (WCAG 1.4.12) */
html.wba-abstand body :is(p,li,dd,dt,td,th,blockquote,figcaption,label,span,a,em,strong,small):not(#wba *){line-height:1.8!important;letter-spacing:.06em!important;word-spacing:.16em!important}
html.wba-abstand body :is(h1,h2,h3,h4,h5,h6):not(#wba *){line-height:1.45!important;letter-spacing:.03em!important;word-spacing:.12em!important}
html.wba-abstand body p:not(#wba *){margin-bottom:1.4em!important}

/* Animationen stoppen */
html.wba-ruhe,html.wba-ruhe *,html.wba-ruhe *::before,html.wba-ruhe *::after{animation-duration:.001s!important;animation-delay:0s!important;animation-iteration-count:1!important;
  transition-duration:.001s!important;transition-delay:0s!important;scroll-behavior:auto!important}

/* Großer Mauszeiger */
html.wba-zeiger,html.wba-zeiger *{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 28H21l-8 14z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3,auto!important}
html.wba-zeiger :is(a,button,[role="button"],label,select,summary),html.wba-zeiger :is(a,button,[role="button"]) *{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 28H21l-8 14z' fill='%23ffe600' stroke='%23000' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3,pointer!important}

/* Lesemarkierung beim Vorlesen */
.wba-liest{outline:3px solid var(--wba-ak,#000)!important;outline-offset:4px!important;border-radius:2px}

/* +, − und × als SVG, fest mittig – unabhängig von Button-Stilen des Themes */
#wba .wba-gr button,#wba .wba-zu{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important;font-size:0!important;vertical-align:middle}
#wba .wba-gr button svg,#wba .wba-zu svg{display:block;flex:none;fill:none;stroke:currentColor;stroke-linecap:square;margin:0!important}
#wba .wba-gr button svg{width:14px;height:14px;stroke-width:1.6}
#wba .wba-zu svg{width:18px;height:18px;stroke-width:1.5}
#wba .wba-gr button:hover:not(:disabled) svg{stroke:var(--wba-hell)}
