/* Pyranha Kids – Barrierefreiheits-Menü und Darstellungsmodi (assets/pk/js/pk-a11y.js) */

/* ---------- Schaltfläche ---------- */
.pk-a11y-toggle { position: fixed; z-index: 99980; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: #2f6df6; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(21, 21, 26, .55); }
.pk-a11y-toggle:hover { background: #1c47b3; }
.pk-a11y-toggle:focus-visible { outline: 3px solid #15151a; outline-offset: 3px; }
@media (max-width: 1023px) {
  /* Über der mobilen Sticky-Leiste */
  .pk-a11y-toggle { bottom: 92px; width: 50px; height: 50px; }
}

/* Während das mobile Menü offen ist, ausblenden (Menü ist ein eigener Dialog) */
body:has(#pk-menu:not([hidden])) .pk-a11y-toggle, body:has(#pk-menu:not([hidden])) .pk-a11y-panel { display: none; }

/* ---------- Panel ---------- */
.pk-a11y-panel { position: fixed; z-index: 99985; right: 16px; bottom: 84px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto; border-radius: 24px; background: #fff; color: #15151a; border: 1px solid rgba(21, 21, 26, .12); box-shadow: 0 30px 80px -20px rgba(21, 21, 26, .45); font: 500 15px/1.45 Manrope, system-ui, sans-serif; }
.pk-a11y-panel[hidden] { display: none; }
@media (max-width: 1023px) { .pk-a11y-panel { bottom: 152px; max-height: calc(100vh - 170px); } }
.pk-a11y-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: #15151a; color: #fff; }
.pk-a11y-head h2 { margin: 0; font: 800 18px Sora, sans-serif; color: #fff; }
.pk-a11y-head h2:focus { outline: none; }
.pk-a11y-head h2:focus-visible { outline: 3px solid #ffb800; outline-offset: 4px; }
.pk-a11y-close { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.pk-a11y-close:hover { background: rgba(255, 255, 255, .15); }
.pk-a11y-close:focus-visible { outline: 3px solid #ffb800; outline-offset: 2px; }
.pk-a11y-body { padding: 8px 18px 18px; }
.pk-a11y-group { border: 0; margin: 0; padding: 12px 0 4px; border-bottom: 1px solid rgba(21, 21, 26, .08); }
.pk-a11y-gt { margin: 0 0 6px; padding: 0; font: 800 12px Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #5a5a66; }
.pk-a11y-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; }
.pk-a11y-opt label { display: grid; gap: 1px; cursor: pointer; }
.pk-a11y-ot { font-weight: 800; }
.pk-a11y-od { font-size: 13px; color: #5a5a66; }
.pk-a11y-zoom { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; }
.pk-a11y-zoom button { width: 52px; height: 44px; border-radius: 14px; border: 2px solid #15151a; background: #fff; color: #15151a; font: 800 16px Sora, sans-serif; cursor: pointer; }
.pk-a11y-zoom button:hover:not(:disabled) { background: #ffb800; }
.pk-a11y-zoom button:disabled { opacity: .4; cursor: not-allowed; }
.pk-a11y-zoomval { min-width: 64px; text-align: center; font: 800 16px Manrope, sans-serif; }
.pk-a11y-reset { width: 100%; margin-top: 14px; min-height: 46px; border-radius: 999px; border: 2px solid #15151a; background: #fff; color: #15151a; font: 800 14.5px Manrope, sans-serif; cursor: pointer; }
.pk-a11y-reset:hover { background: #f4f6fb; }
.pk-a11y-note { margin: 12px 0 0; font-size: 13px; color: #5a5a66; }
.pk-a11y-note a { color: #1c47b3; }
.pk-a11y-panel :focus-visible { outline: 3px solid #2f6df6; outline-offset: 2px; }

/* Lese-Lineal */
.pk-a11y-guide { display: none; position: fixed; left: 0; right: 0; top: 0; height: 28px; z-index: 99970; pointer-events: none; background: rgba(255, 184, 0, .22); border-top: 2px solid #15151a; border-bottom: 2px solid #15151a; }
html.pk-a-guide .pk-a11y-guide { display: block; }

/* ---------- Modi ---------- */
/* Größe: skaliert den Seiteninhalt (Layout arbeitet mit px) */
html.pk-a-zoom .pk-root { zoom: var(--pk-a-zoom, 1); }

/* Lesefreundliche Schrift */
html.pk-a-font .pk-root, html.pk-a-font .pk-root * , html.pk-a-font .pk-consent * { font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif !important; }

/* Abstände (WCAG 1.4.12) */
html.pk-a-lh .pk-root p, html.pk-a-lh .pk-root li, html.pk-a-lh .pk-root blockquote, html.pk-a-lh .pk-root dd, html.pk-a-lh .pk-root label { line-height: 1.9 !important; }
html.pk-a-lh .pk-root p { margin-bottom: 1.2em; }
html.pk-a-ws .pk-root { word-spacing: .16em !important; letter-spacing: .06em !important; }
html.pk-a-left .pk-root * { text-align: left !important; }

/* Kontrast / Farben (nur Seiteninhalt, nicht das Menü) */
html.pk-a-contrast :is(.pk-root, .pk-232, .pk-235) { filter: contrast(1.35); }
html.pk-a-contrast .pk-root p, html.pk-a-contrast .pk-root li, html.pk-a-contrast .pk-root span, html.pk-a-contrast .pk-root label { text-shadow: none !important; }
html.pk-a-contrast .pk-root a:not([class*="scp"]) { text-decoration: underline !important; }
html.pk-a-contrast .pk-root [class*="pk-"] { border-color: #15151a; }
html.pk-a-invert :is(.pk-root, .pk-232, .pk-235) { filter: invert(1) hue-rotate(180deg); background: #fffdfa; }
html.pk-a-invert :is(.pk-root, .pk-235) img { filter: invert(1) hue-rotate(180deg); }
html.pk-a-gray :is(.pk-root, .pk-232, .pk-235) { filter: grayscale(1); }
html.pk-a-contrast.pk-a-gray :is(.pk-root, .pk-232, .pk-235) { filter: grayscale(1) contrast(1.35); }
html.pk-a-invert.pk-a-gray :is(.pk-root, .pk-232, .pk-235) { filter: invert(1) hue-rotate(180deg) grayscale(1); }

/* Hervorhebungen */
html.pk-a-links .pk-root a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; outline: 2px dashed #2f6df6; outline-offset: 2px; }
html.pk-a-headings .pk-root :is(h1, h2, h3, h4) { outline: 3px solid #ffb800; outline-offset: 4px; border-radius: 4px; }
html.pk-a-focus :focus-visible, html.pk-a-focus :focus { outline: 5px solid #ffb800 !important; outline-offset: 3px !important; box-shadow: 0 0 0 9px #15151a !important; }
html.pk-a-cursor, html.pk-a-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%2315151a' stroke='%23fff' stroke-width='1.2' d='M5 2l14 11-6.2.9 3.7 7.3-2.6 1.3-3.7-7.4L5 19z'/%3E%3C/svg%3E") 4 2, auto !important; }

/* Animationen stoppen */
html.pk-a-motion *, html.pk-a-motion ::before, html.pk-a-motion ::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.pk-a-motion { scroll-behavior: auto !important; }
html.pk-a-motion .pk-marquee-track { flex-wrap: wrap; width: auto !important; justify-content: center; }
html.pk-a-motion .pk-marquee-track > [aria-hidden="true"] { display: none; }
html.pk-a-motion .pk-marquee-toggle { display: none; }

@media print { .pk-a11y-toggle, .pk-a11y-panel, .pk-a11y-guide { display: none !important; } }
