/* Accessibility-Widget — TATEKU Monitoring (LocalStorage-only, kein Cookie).
   Farben kommen aus den Theme-Tokens (output.css) → folgt Dark/Light automatisch. */
.a11y-widget { position: fixed; left: 18px; bottom: 18px; z-index: 60; font-family: inherit; }

.a11y-trigger {
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: var(--primary-foreground); background: var(--brand-green);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .45); transition: transform .15s ease, background .15s ease;
}
.a11y-trigger:hover { background: var(--brand-green-strong); transform: translateY(-2px); }
.a11y-trigger:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.a11y-panel {
  position: absolute; left: 0; bottom: 62px; width: 264px; padding: 16px;
  background: var(--popover); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, .45);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--popover-foreground); }
.a11y-panel-head strong { font-size: 14px; }
.a11y-close { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted-foreground); padding: 0 4px; }
.a11y-close:hover { color: var(--popover-foreground); }

.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.a11y-row:first-of-type { border-top: none; }
.a11y-label { font-size: 13px; color: var(--popover-foreground); }

.a11y-btn-group { display: inline-flex; gap: 4px; }
.a11y-btn {
  min-width: 34px; height: 30px; padding: 0 8px; border: 1px solid var(--border); background: var(--muted);
  border-radius: 8px; cursor: pointer; color: var(--popover-foreground); font-weight: 600;
}
.a11y-btn[aria-pressed="true"] { background: var(--brand-green); border-color: var(--brand-green); color: var(--primary-foreground); }

.a11y-toggle { width: 42px; height: 24px; border-radius: 999px; border: none; background: var(--muted); position: relative; cursor: pointer; transition: background .15s ease; }
.a11y-toggle[aria-pressed="true"] { background: var(--brand-green); }
.a11y-toggle-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.a11y-toggle[aria-pressed="true"] .a11y-toggle-knob { transform: translateX(18px); }

.a11y-reset { margin-top: 12px; width: 100%; padding: 8px; border: 1px solid var(--border); background: var(--muted); border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--popover-foreground); }
.a11y-reset:hover { background: var(--accent); }

/* Globale Effekte */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
/* Hoher Kontrast — je Theme (Light: Schwarz auf Weiß, Dark: Weiß auf Schwarz, Karten deckend) */
html.a11y-contrast { --foreground: #000; --muted-foreground: #2a2a2a; --card: #fff; --border: #b5b5b5; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast[data-theme="dark"] { --foreground: #fff; --muted-foreground: #d4d4d4; --card: #101010; --popover: #101010; --popover-foreground: #fff; --border: rgba(255, 255, 255, .35); }
html.a11y-contrast[data-theme="dark"] body { background: #000; }
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
}
