/* Website-Optimierung-Kit: Grundschicht für das Child-Theme. Verändert keine Farben und keine Schriften.
   Werte in :root zuerst aus der Live-Seite auslesen und eintragen (Stufe 3). Nichts erfinden. */
:root {
  /* --kit-fokus: Farbe des Fokusrings. Vorhandene Markenfarbe mit Kontrast ab 3:1 zum Hintergrund eintragen. */
  --kit-fokus: #8f212e; /* Theme-Rot (Knopf), Kontrast zu Weiß 8,9:1 */
  --kit-dauer: 180ms;
  --kit-kurve: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Schrift und Umbruch */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p, li, figcaption { text-wrap: pretty; overflow-wrap: break-word; }

/* Überlauf verhindern, ohne Inhalte abzuschneiden */
img, svg, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
pre, code { overflow-wrap: anywhere; }

/* Sichtbarer Fokus nur bei Tastatur */
:focus-visible { outline: 2px solid var(--kit-fokus); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* Trefferflächen: Knöpfe und Menüpunkte mindestens 44 px hoch. Selektoren an die Seite anpassen. */
/* a.button, .btn, button, input[type=submit] { min-height: 44px; } */

/* Zustände: nie transition: all. Selektoren an die Seite anpassen. */
/* a.button, .btn, button { transition: background-color var(--kit-dauer) var(--kit-kurve), transform var(--kit-dauer) var(--kit-kurve); }
   a.button:active, .btn:active, button:active { transform: scale(0.97); } */

/* Sprungmarken nicht unter festem Kopf verstecken: Höhe des Kopfs eintragen */
/* :target { scroll-margin-top: 96px; } */

/* Weniger Bewegung, wenn der Besucher das eingestellt hat */
@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; }
}

/* Nur für Vorleseprogramme */
.kit-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Video erst nach Klick (zu kit-video.js) */
.kit-video { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.kit-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kit-video__knopf { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; }
.kit-video__knopf::before { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.kit-video-hinweis { font-size: 0.875em; }
