/* Knopf und Fenster der Barrierefreiheits-Leiste (Kopfleiste rechts, sonst unten links; Farben aus den Variablen des Themes) */
.a11y-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line, #e2e8f0); background: var(--surface, #fff);
  color: var(--ink, #0f172a); box-shadow: 0 2px 10px rgba(15, 23, 42, .15); cursor: pointer; padding: 0; }
.a11y-toggle:hover { border-color: var(--ink, #0f172a); }
.cm-toggle + .a11y-toggle { left: 68px; }
.a11y-panel { position: fixed; left: 16px; bottom: 72px; z-index: 85; width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto;
  padding: 18px 20px; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: var(--surface, #fff); color: var(--text, #334155);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .25); font-size: .9375rem; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-head h2 { margin: 0; font-size: 1.1rem; }
.a11y-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink, #0f172a); cursor: pointer; padding: 2px 8px; }
.a11y-font { display: block; font-weight: 600; color: var(--ink, #0f172a); margin-bottom: 6px; }
.a11y-panel input[type="range"] { width: calc(100% - 64px); vertical-align: middle; accent-color: var(--brand, #2563eb); }
.a11y-font-out { display: inline-block; min-width: 56px; margin-left: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.a11y-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line, #e2e8f0); cursor: pointer; color: var(--ink, #0f172a); }
.a11y-row input { width: 20px; height: 20px; accent-color: var(--brand, #2563eb); flex-shrink: 0; }
.a11y-reset { margin-top: 10px; width: 100%; padding: 10px; border-radius: 999px; border: 1.5px solid var(--line, #e2e8f0); background: transparent;
  color: var(--ink, #0f172a); font: inherit; font-weight: 600; cursor: pointer; }
.a11y-reset:hover { border-color: var(--ink, #0f172a); }
.a11y-toggle[hidden] { display: none; }
/* in der Kopfleiste: klein, ohne Schatten und Rahmen; das Fenster öffnet sich darunter am rechten Rand */
.a11y-toggle.a11y-inline { position: static; width: 40px; height: 40px; box-shadow: none; border-color: transparent; background: transparent; }
.a11y-toggle.a11y-inline:hover { background: var(--bg-alt, #f8fafc); border-color: transparent; }
.a11y-panel.a11y-inline { left: auto; right: 16px; bottom: auto; top: 80px; max-height: calc(100vh - 96px); }
