/* YourTown Barrierefrei 1.0.0 — Leiste, Sprunglink, Fokus, Modi. Farben/Abstaende kommen als CSS-Variablen aus der Plugin-Konfiguration. */
:root { --yt-a11y-knopf: #141414; --yt-a11y-knopf-text: #fff; --yt-a11y-akzent: #d6000b; --yt-a11y-unten: 1rem; --yt-a11y-unten-mobil: 1rem; }

/* Sprunglink: unsichtbar bis zur Tab-Taste */
.yt-a11y-sprung { position: absolute; left: -999px; top: 0; z-index: 100002; background: #000; color: #fff; padding: .7rem 1.1rem; font: 700 1rem/1.3 system-ui, sans-serif; text-decoration: none; border-radius: 0 0 6px 0; }
.yt-a11y-sprung:focus { left: 0; outline: 3px solid var(--yt-a11y-akzent); outline-offset: 2px; }

/* Tastaturfokus immer sichtbar (nur bei Tastatur, nicht bei Mausklick) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--yt-a11y-akzent) !important; outline-offset: 2px !important; }

/* Knopf + Panel */
.yt-a11y-leiste { position: fixed; bottom: var(--yt-a11y-unten); z-index: 100001; font: 400 1rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.yt-a11y-links { left: 1rem; } .yt-a11y-rechts { right: 1rem; }
/* 1.0.3: Zusammenspiel mit ytcookieconsent. (a) Solange der Cookie-Banner offen ist, tritt die Leiste zurück – sie lag
   (z-index 100001) über „Alle akzeptieren“. (b) Liegt der Widerruf-Knopf des Banners auf derselben Seite, rückt die Leiste
   darüber; vorher verdeckte sie ihn ganz (Widerruf muss jederzeit erreichbar sein). Ohne :has (alte Browser) bleibt es wie bisher. */
body:has(#ytcc-root:not([hidden])) .yt-a11y-leiste { display: none; }
body:has(.ytcc-float--left:not([hidden])) .yt-a11y-links,
body:has(.ytcc-float--right:not([hidden])) .yt-a11y-rechts { bottom: calc(var(--yt-a11y-unten) + 64px); }
.yt-a11y-leiste .yt-a11y-knopf { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 2px solid #fff; background: var(--yt-a11y-knopf) !important; color: var(--yt-a11y-knopf-text) !important; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin: 0; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.yt-a11y-leiste .yt-a11y-knopf svg { width: 1.9rem; height: 1.9rem; }
.yt-a11y-leiste .yt-a11y-knopf:hover { transform: scale(1.06); }
.yt-a11y-leiste.yt-a11y-aktiv .yt-a11y-knopf { box-shadow: 0 0 0 3px var(--yt-a11y-akzent), 0 2px 10px rgba(0,0,0,.35); }
.yt-a11y-leiste .yt-a11y-panel { position: absolute; bottom: 3.9rem; width: min(22rem, calc(100vw - 2rem)); background: #fff !important; color: #111 !important; border: 1px solid #c9c9c9; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.3); padding: .9rem 1rem 1rem; text-align: left; }
.yt-a11y-links .yt-a11y-panel { left: 0; } .yt-a11y-rechts .yt-a11y-panel { right: 0; }
.yt-a11y-leiste .yt-a11y-panel[hidden] { display: none; }
.yt-a11y-leiste .yt-a11y-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.yt-a11y-leiste .yt-a11y-titel { font-size: 1.1rem; font-weight: 700; margin: 0; color: #111 !important; }
.yt-a11y-leiste .yt-a11y-schliessen { background: transparent !important; color: #111 !important; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: .2rem .5rem; margin: 0; }
.yt-a11y-leiste .yt-a11y-liste { display: grid; gap: .4rem; margin: 0; padding: 0; }
.yt-a11y-leiste .yt-a11y-liste button { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; border: 2px solid #c9c9c9; border-radius: 8px; background: #fff !important; color: #111 !important; padding: .55rem .75rem; font: inherit; font-weight: 600; cursor: pointer; margin: 0; text-align: left; }
.yt-a11y-leiste .yt-a11y-liste button[aria-pressed="true"] { border-color: var(--yt-a11y-akzent); background: #fff5f5 !important; }
.yt-a11y-leiste .yt-a11y-liste button[hidden] { display: none; }
.yt-a11y-leiste .yt-a11y-schalter { flex: none; width: 2.2rem; height: 1.2rem; border-radius: 1rem; background: #c9c9c9; position: relative; }
.yt-a11y-leiste .yt-a11y-schalter::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; }
.yt-a11y-leiste button[aria-pressed="true"] .yt-a11y-schalter { background: var(--yt-a11y-akzent); }
.yt-a11y-leiste button[aria-pressed="true"] .yt-a11y-schalter::after { left: 1.15rem; }
.yt-a11y-leiste .yt-a11y-wert { flex: none; font-weight: 700; color: var(--yt-a11y-akzent) !important; min-width: 3.4rem; text-align: right; }
.yt-a11y-leiste .yt-a11y-hoer { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px solid #e3e3e3; font-size: .95rem; }
.yt-a11y-leiste .yt-a11y-hoer p { margin: 0 0 .4rem; color: #111 !important; }
.yt-a11y-leiste .yt-a11y-hoer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.yt-a11y-leiste .yt-a11y-hoer a, .yt-a11y-leiste .yt-a11y-fuss a { display: inline-block; border: 2px solid #111; border-radius: 6px; padding: .3rem .6rem; color: #111 !important; background: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .9rem; }
.yt-a11y-leiste .yt-a11y-fuss { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #e3e3e3; }
.yt-a11y-leiste .yt-a11y-fuss button { border: 2px solid #111; border-radius: 6px; background: #fff !important; color: #111 !important; padding: .3rem .6rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; margin: 0; }
@media (max-width: 767px) {
  .yt-a11y-leiste { bottom: var(--yt-a11y-unten-mobil); }
  body:has(.ytcc-float--left:not([hidden])) .yt-a11y-links,
  body:has(.ytcc-float--right:not([hidden])) .yt-a11y-rechts { bottom: calc(var(--yt-a11y-unten-mobil) + 64px); }
  .yt-a11y-leiste .yt-a11y-panel { width: calc(100vw - 2rem); max-height: 70vh; overflow: auto; }
}

/* ---- Modus: Schrift groesser (rem-Layouts skalieren mit) ---- */
html[data-yt-a11y-schrift="125"] { font-size: 125% !important; }
html[data-yt-a11y-schrift="150"] { font-size: 150% !important; }

/* ---- Modus: Links hervorheben ---- */
html[data-yt-a11y-links] a:not(.yt-a11y-leiste a) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .15em !important; font-weight: 700 !important; }

/* ---- Modus: Bewegung stoppen (Slider-Autoplay stoppt das JS) ---- */
html[data-yt-a11y-ruhe] *, html[data-yt-a11y-ruhe] *::before, html[data-yt-a11y-ruhe] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-yt-a11y-ruhe] [data-aos] { opacity: 1 !important; transform: none !important; visibility: visible !important; }
html[data-yt-a11y-ruhe] video[autoplay] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---- Modus: Hoher Kontrast (Schwarz auf Weiss, keine Hintergrundbilder, keine Transparenzen) ---- */
html[data-yt-a11y-kontrast] body, html[data-yt-a11y-kontrast] body *:not(img):not(svg):not(path):not(video):not(iframe):not(canvas) { background-color: #fff !important; background-image: none !important; color: #000 !important; border-color: #000 !important; box-shadow: none !important; text-shadow: none !important; opacity: 1 !important; filter: none !important; }
html[data-yt-a11y-kontrast] body *::before, html[data-yt-a11y-kontrast] body *::after { background-image: none !important; background-color: transparent !important; color: #000 !important; text-shadow: none !important; }
html[data-yt-a11y-kontrast] a:not(.button):not(.yt-a11y-leiste a) { color: #0000c8 !important; text-decoration: underline !important; }
html[data-yt-a11y-kontrast] a.button, html[data-yt-a11y-kontrast] .button, html[data-yt-a11y-kontrast] button:not(.yt-a11y-leiste button), html[data-yt-a11y-kontrast] input[type="submit"] { background-color: #000 !important; color: #fff !important; border: 2px solid #000 !important; }
html[data-yt-a11y-kontrast] input, html[data-yt-a11y-kontrast] select, html[data-yt-a11y-kontrast] textarea { border: 2px solid #000 !important; }
html[data-yt-a11y-kontrast] img, html[data-yt-a11y-kontrast] svg { opacity: 1 !important; }
html[data-yt-a11y-kontrast] *:focus-visible { outline: 4px solid #ffbf00 !important; outline-offset: 2px !important; }
html[data-yt-a11y-kontrast] .yt-a11y-leiste .yt-a11y-knopf { background: #000 !important; color: #fff !important; border-color: #fff !important; }
/* Anker-Symbole an Ueberschriften (anchors-Plugin) bleiben wie sonst verborgen, bis Fokus/Hover */
html[data-yt-a11y-kontrast] body .anchorjs-link, html[data-yt-a11y-kontrast] body .anchor-link, html[data-yt-a11y-kontrast] body a.anchor, html[data-yt-a11y-kontrast] body .toc-anchor { opacity: 0 !important; }
html[data-yt-a11y-kontrast] body .toc-anchor:focus, html[data-yt-a11y-kontrast] body h1:hover .toc-anchor, html[data-yt-a11y-kontrast] body h2:hover .toc-anchor, html[data-yt-a11y-kontrast] body h3:hover .toc-anchor { opacity: 1 !important; }
html[data-yt-a11y-kontrast] body .anchorjs-link:focus, html[data-yt-a11y-kontrast] body .anchor-link:focus, html[data-yt-a11y-kontrast] body a.anchor:focus, html[data-yt-a11y-kontrast] body h1:hover .anchorjs-link, html[data-yt-a11y-kontrast] body h2:hover .anchorjs-link, html[data-yt-a11y-kontrast] body h3:hover .anchorjs-link, html[data-yt-a11y-kontrast] body h2:hover .anchor-link, html[data-yt-a11y-kontrast] body h3:hover .anchor-link { opacity: 1 !important; }
