/* Barrierefreiheit für ALLE Seiten (Ivo 06.11.2026), gehört zu pp-barriere.js. */

/* Zum Inhalt springen: unsichtbar, bis jemand mit der Tastatur hinkommt */
.pp-sprung { position: fixed; left: 12px; top: -200px; z-index: 2147483000; padding: 12px 20px; border-radius: 8px; background: #f7d2b0; color: #1b1009 !important; font: 600 16px/1.3 system-ui, sans-serif; text-decoration: underline; }
.pp-sprung:focus { top: 12px; outline: 3px solid #1b1009 !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px #f7d2b0; }

/* Wo bin ich mit der Tastatur? Maus-Klicks auf Knöpfe zeigen den Rahmen nicht. */
/* Ivo 06.11.2026: nur sichtbar, wenn die Barrierefreiheit eingeschaltet ist */
.pp-bf-textknopf { display: none !important; }
html.pp-bf-dokumente .pp-bf-textknopf { display: inline-block !important; }
iframe[data-ppbf-rahmen]:focus { outline: 3px solid #f7d2b0 !important; outline-offset: 2px !important; }
:focus-visible:not(input, select, textarea) { outline: 3px solid #f7d2b0 !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px rgba(10, 18, 28, .85); }
body.lightmode :focus-visible:not(input, select, textarea), .lightmode :focus-visible:not(input, select, textarea) { outline-color: #7a4a26 !important; box-shadow: 0 0 0 6px rgba(255, 255, 255, .9); }
/* Eingabefelder bekommen den Rahmen auch beim Klicken, dort ohne den breiten Schatten */
html.pp-bf-dokumente input:focus-visible, html.pp-bf-dokumente select:focus-visible, html.pp-bf-dokumente textarea:focus-visible { outline: 2px solid #f7d2b0 !important; outline-offset: 2px !important; box-shadow: none; }
html.pp-bf-dokumente body.lightmode input:focus-visible, html.pp-bf-dokumente body.lightmode select:focus-visible, html.pp-bf-dokumente body.lightmode textarea:focus-visible { outline-color: #7a4a26 !important; }
/* Dialoge und Sprungziele bekommen den Fokus nur für das Vorlesegerät */
[data-ppbf-dialog]:focus, [data-ppbf-dialog]:focus-visible, [data-ppbf-ziel]:focus, [data-ppbf-ziel]:focus-visible { outline: none !important; box-shadow: none !important; }

/* Links im Fließtext nicht nur an der Farbe erkennbar */
html.pp-bf-dokumente .pp-c-link { text-decoration: underline !important; }

/* Zeichen rechts unten. Fenster des Portals liegen ab z-index 1000 darüber, die Schublade (901) darunter. */
.pp-bf-knopf { position: fixed; right: 16px; bottom: 16px; z-index: 950; width: 52px; height: 52px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #1b1009; color: #1b1009; background: linear-gradient(160deg, #f7d2b0, #d9986a); box-shadow: 0 4px 16px rgba(0, 0, 0, .45); cursor: pointer; }
.pp-bf-knopf:hover { background: linear-gradient(160deg, #fbe2c8, #e6ab7f); }
.pp-bf-menue { position: fixed; right: 16px; bottom: 78px; z-index: 960; box-sizing: border-box; width: 300px; max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); overflow-y: auto; padding: 14px; border-radius: 14px; border: 1px solid #d9986a; background: #0a121c; color: #f3ede1; font: 400 15px/1.35 system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; box-shadow: 0 10px 34px rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
.pp-bf-menue[hidden] { display: none !important; }
.pp-bf-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 16px; color: #f7d2b0; }
.pp-bf-x { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #d9986a; border-radius: 8px; background: transparent; color: #f3ede1; font-size: 15px; cursor: pointer; }
.pp-bf-groesse { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pp-bf-groesse b { flex: 1; text-align: center; font-weight: 600; }
.pp-bf-groesse button { width: 64px; height: 42px; border: 1px solid #d9986a; border-radius: 8px; background: transparent; color: #f3ede1; font: 700 17px system-ui, sans-serif; cursor: pointer; }
.pp-bf-groesse button:disabled { opacity: .45; cursor: default; }
.pp-bf-z { display: block; box-sizing: border-box; width: 100%; min-height: 42px; margin: 0 0 6px; padding: 9px 12px 9px 38px; position: relative; text-align: left; border: 1px solid rgba(217, 152, 106, .55); border-radius: 8px; background: transparent; color: #f3ede1; font: inherit; cursor: pointer; }
.pp-bf-z:hover, .pp-bf-groesse button:hover:not(:disabled), .pp-bf-x:hover { background: rgba(247, 210, 176, .12); }
.pp-bf-z::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -9px; border: 1px solid #f7d2b0; border-radius: 4px; }
.pp-bf-z[aria-pressed="true"] { background: #f7d2b0; color: #1b1009; border-color: #f7d2b0; font-weight: 600; }
.pp-bf-z[aria-pressed="true"]::before { content: "✓"; border-color: #1b1009; color: #1b1009; font-size: 13px; line-height: 16px; text-align: center; }
.pp-bf-reset { padding-left: 12px; margin-top: 8px; }
.pp-bf-reset::before { display: none; }
.pp-bf-meldung:not(:empty) { margin: 2px 0 8px; padding: 8px 10px; border-radius: 8px; background: rgba(247, 210, 176, .14); font-size: 14px; }
#ppBfMenue .pp-bf-erkl, body.lightmode #ppBfMenue .pp-bf-erkl { display: block; margin-top: 8px; padding: 6px 2px; color: #f7d2b0 !important; text-decoration: underline; font-size: 14px; }
@media print { .pp-bf-knopf, .pp-bf-menue, .pp-sprung { display: none !important; } }

/* Einstellungen, die man im Menü wählt. Das Menü selbst bleibt immer gleich gut lesbar. */
html.pp-bf-gross body { zoom: var(--pp-bf-zoom, 1); }
/* Zeichen und Menü bleiben gleich groß, sonst stößt das Menü bei 130 % oben an */
html.pp-bf-gross .pp-bf-knopf, html.pp-bf-gross .pp-bf-menue, html.pp-bf-gross .pp-sprung { zoom: calc(1 / var(--pp-bf-zoom, 1)); }
/* Die Füllfarbe aus dem starken Kontrast vererbt sich, im Menü und am Zeichen gilt die eigene Farbe */
html.pp-bf-kontrast .pp-bf-knopf, html.pp-bf-kontrast .pp-bf-knopf *, html.pp-bf-kontrast .pp-bf-menue, html.pp-bf-kontrast .pp-bf-menue * { -webkit-text-fill-color: currentColor !important; }
html.pp-bf-schrift .pp-bf-menue, html.pp-bf-abstand .pp-bf-menue { line-height: 1.35; }
html.pp-bf-links a:not(.pp-sprung) { text-decoration: underline !important; font-weight: 700 !important; }
html.pp-bf-schrift body *:not(.pp-bf-menue *) { font-family: Arial, Verdana, Helvetica, sans-serif !important; }
html.pp-bf-abstand body *:not(.pp-bf-menue, .pp-bf-menue *) { line-height: 1.8 !important; letter-spacing: .03em !important; word-spacing: .1em !important; }
html.pp-bf-kontrast body, html.pp-bf-kontrast body *:not(img, video, canvas, svg, svg *, .pp-bf-knopf, .pp-bf-menue, .pp-bf-menue *) { color: #fff !important; background-color: #000 !important; border-color: #fff !important; text-shadow: none !important; box-shadow: none !important; -webkit-text-fill-color: #fff !important; }
html.pp-bf-kontrast body *:not(img, video, canvas, svg, svg *, .pp-bf-knopf, .pp-bf-menue, .pp-bf-menue *, .ph, .ph *, [class*=bild], [class*=foto], [class*=photo]) { background-image: none !important; }
html.pp-bf-kontrast a:not(.pp-bf-erkl, .pp-sprung), html.pp-bf-kontrast a:not(.pp-bf-erkl, .pp-sprung) * { color: #ffe600 !important; -webkit-text-fill-color: #ffe600 !important; text-decoration: underline !important; }
html.pp-bf-kontrast input, html.pp-bf-kontrast select, html.pp-bf-kontrast textarea, html.pp-bf-kontrast button:not(.pp-bf-knopf, .pp-bf-menue *) { border: 2px solid #fff !important; }

html.pp-angehalten *, html.pp-angehalten *::before, html.pp-angehalten *::after { animation-play-state: paused !important; }

/* Kontraste in der hellen Ansicht (gemessen 06.11.2026, vorher 1,17 bis 3,8). Ivo 06.11.: nur nach dem Einschalten, sonst bleibt alles wie immer. Im starken Kontrast gilt dessen eigene Farbregel, sonst stand Gelb auf Hell (gemessen 1,09). */
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode .bc-chip:not(.an), html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode .bc-knopf { color: #6b4226; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode .wl-stand.an { color: #6b4226; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode .pp-hinweis { background: #f7f3ea !important; }
@media (max-width: 900px) { html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode span[data-zahl] { color: #c9d2da; } }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode p a { text-decoration: underline; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode .bc-ort, html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode .bc-ort b { color: #f7d2b0; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode .bck-legende > span, html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode #bckFehlt { color: #e8dfd0; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode .wl-hinweis { color: #6b4226; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode [data-lang] .box { background: #f7f3ea; border-color: #c9b89a; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode [data-lang] .box a { color: #6b4226; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode header[style] nav a:not([href="shop/"]) { background: #f2eee5 !important; color: #1c4258 !important; }
html.pp-bf-dokumente:not(.pp-bf-kontrast) body.lightmode footer a { text-decoration: underline; }

/* Wer im System „weniger Bewegung“ eingestellt hat, bekommt keine */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
