/* SeaFly.ai accessibility panel ("Ansicht anpassen") — assets/js/a11y.js. Settings = classes on <html> (set early by templates/partials/consent.php). */

/* ── text ── */
html.sfa-fs { font-size: calc(var(--sfa-fs, 1) * 100%) !important; }
html.sfa-lh body > :not(.sfa-panel):not(.sfc-root), html.sfa-lh body > :not(.sfa-panel):not(.sfc-root) * { line-height: var(--sfa-lh, 1.5) !important; }
html.sfa-ls body > :not(.sfa-panel):not(.sfc-root), html.sfa-ls body > :not(.sfa-panel):not(.sfc-root) * { letter-spacing: var(--sfa-ls, .05em) !important; word-spacing: calc(var(--sfa-ls, .05em) * 2) !important; }
html.sfa-font body > :not(.sfa-panel):not(.sfc-root), html.sfa-font body > :not(.sfa-panel):not(.sfc-root) * { font-family: 'Atkinson Hyperlegible', Verdana, Tahoma, 'Segoe UI', Arial, sans-serif !important; }

/* ── display ── */
html.sfa-contrast body { --bg-deep: #fff; --bg-card: #fff; --bg-surface: #fff; --text-1: #000; --text-2: #000; --text-3: #1a1a1a; --border: #000; --border-lit: #000; --accent: #0a2fbf; --accent-soft: #0a2fbf; --header-bg: #fff; }
html[data-theme="dark"].sfa-contrast body { --bg-deep: #000; --bg-card: #000; --bg-surface: #000; --text-1: #fff; --text-2: #fff; --text-3: #e6e6e6; --border: #fff; --border-lit: #fff; --accent: #7fb0ff; --accent-soft: #7fb0ff; --header-bg: #000; }
html.sfa-contrast body::before, html.sfa-contrast .page-bg, html.sfa-contrast .blob { display: none !important; }
html.sfa-links a:not(.sfc-btn) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px !important; }
html.sfa-links a:not(.sfc-btn):hover { background: rgba(255, 214, 0, .35); }
html.sfa-headings :is(h1, h2, h3, h4, h5, h6):not(.sfa-title):not(.sfc-title) { outline: 2px dashed currentColor; outline-offset: 4px; }
html.sfa-motion *, html.sfa-motion *::before, html.sfa-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.sfa-cursor, html.sfa-cursor body, html.sfa-cursor a, html.sfa-cursor button, html.sfa-cursor label { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.5L9 19z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
html.sfa-focus :focus-visible { outline: 4px solid #ffb300 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px rgba(0, 0, 0, .75) !important; }

/* ── panel ── */
.sfa-panel {
    --sfa-bg: #fff; --sfa-text: #0f1b33; --sfa-muted: #4b5a78; --sfa-border: rgba(20,40,90,.14); --sfa-card: #f6f8fc; --sfa-accent: #2f5fe0; --sfa-sel: #e7eeff;
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 2147482000; width: min(400px, 100vw); display: flex; flex-direction: column;
    background: var(--sfa-bg); color: var(--sfa-text); border-inline-end: 1px solid var(--sfa-border); box-shadow: 8px 0 40px rgba(8,13,26,.3);
    font: 400 15px/1.45 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: normal; transform: translateX(-102%); visibility: hidden; transition: transform .22s ease, visibility .22s;
    border-top: 3px solid var(--sfa-accent);
}
.sfa-panel[dir="rtl"] { transform: translateX(102%); box-shadow: -8px 0 40px rgba(8,13,26,.3); }
.sfa-panel.sfa-open { transform: none; visibility: visible; }
:root[data-theme="dark"] .sfa-panel { --sfa-bg: #0e1628; --sfa-text: #e8eefc; --sfa-muted: #a6b4d4; --sfa-border: rgba(99,140,255,.28); --sfa-card: #131f38; --sfa-accent: #3b7bff; --sfa-sel: #1b2c52; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .sfa-panel { --sfa-bg: #0e1628; --sfa-text: #e8eefc; --sfa-muted: #a6b4d4; --sfa-border: rgba(99,140,255,.28); --sfa-card: #131f38; --sfa-accent: #3b7bff; --sfa-sel: #1b2c52; } }
.sfa-panel *, .sfa-panel *::before, .sfa-panel *::after { box-sizing: border-box; }
.sfa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--sfa-border); }
.sfa-title { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.sfa-sub { margin: 4px 0 0; color: var(--sfa-muted); font-size: .88rem; }
.sfa-x { flex: none; width: 38px; height: 38px; border: 1px solid var(--sfa-border); border-radius: 10px; background: var(--sfa-bg); color: var(--sfa-text); font-size: 22px; line-height: 1; cursor: pointer; }
.sfa-body { flex: 1; overflow: auto; padding: 8px 20px 16px; overscroll-behavior: contain; }
.sfa-h { margin: 18px 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .08em !important; text-transform: uppercase; color: var(--sfa-muted); }
.sfa-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sfa-pro { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--sfa-border); border-radius: 12px; background: var(--sfa-bg); color: var(--sfa-text); font: inherit; font-size: .88rem; font-weight: 600; text-align: start; cursor: pointer; }
.sfa-pro:hover { background: var(--sfa-card); }
.sfa-pro svg { flex: none; width: 17px; height: 17px; }
.sfa-pro:first-child { grid-column: 1 / -1; }
.sfa-row { padding: 12px 0; border-bottom: 1px solid var(--sfa-border); }
.sfa-row:last-child { border-bottom: 0; }
.sfa-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .95rem; }
.sfa-seg { display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--sfa-card); }
.sfa-seg button { flex: 1; min-height: 36px; padding: 6px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--sfa-muted); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.sfa-seg button[aria-pressed="true"] { background: var(--sfa-bg); color: var(--sfa-accent); box-shadow: 0 1px 4px rgba(20,40,90,.18); font-weight: 700; }
.sfa-check { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sfa-border); font-weight: 600; font-size: .95rem; cursor: pointer; }
.sfa-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--sfa-accent); cursor: pointer; }
.sfa-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--sfa-border); background: var(--sfa-bg); }
.sfa-reset { display: inline-flex; align-items: center; gap: 6px; padding: 8px 6px; border: 0; background: none; color: var(--sfa-text); font: inherit; font-weight: 600; cursor: pointer; }
.sfa-done { min-height: 42px; padding: 9px 22px; border: 0; border-radius: 12px; background: var(--sfa-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sfa-panel button:focus-visible, .sfa-panel input:focus-visible { outline: 3px solid var(--sfa-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sfa-panel { transition: none; } }
