/* ── ACCESSIBILITY (WCAG 2.1 AA / BFSG) ── */

/* Skip-Link für Tastatur-Nutzer */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: #1ec4ec; color: #001829;
  font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 8px;
  text-decoration: none; z-index: 99999;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #fff; outline-offset: 2px;
}

/* Konsistenter sichtbarer Fokus für alle interaktiven Elemente */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #1ec4ec;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Screenreader-only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Kontrast: Untertitel etwas heller für AA */
:root { --muted: rgba(255,255,255,0.72); --subtle: rgba(255,255,255,0.55); }

/* ── Cloudflare Turnstile Mount-Container (unsichtbar by default) ── */
.ts-mount {
  margin: 0;
  min-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
/* Wenn Cloudflare ein interaktives Widget rendert: Platz und Abstand */
.ts-mount:not(:empty) {
  margin: 18px 0 6px;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
/* Nach erfolgreichem Solve: ausblenden */
.ts-mount.ts-solved {
  max-height: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}
