/*
 * Barrierefreiheit & Feinschliff – ergänzt das Webflow-CSS, ohne das Design zu verändern.
 * Wird nach dirt-wies.webflow.css geladen.
 */

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

/* „Zum Inhalt springen“ – erscheint nur bei Tastaturbedienung */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--schwarz, #1a1d15);
  color: var(--weiß, #f5f2ee);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
main:focus {
  outline: none;
}

/* Sichtbarer Tastatur-Fokus (gleiche Farbe wie der Webflow-Video-Button) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid #3b79c3;
  outline-offset: 3px;
}
.nav-menu-button:focus-visible {
  border-radius: 4px;
}

/*
 * Überschriften, deren HTML-Ebene für Barrierefreiheit/SEO korrigiert wurde (data-was="…"),
 * behalten ihr bisheriges Aussehen. Spezifität wie ein Tag-Selektor, damit Klassen weiter gewinnen.
 */
:is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h1"]) {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 38px;
  font-weight: 700;
  line-height: 120%;
}
:is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h2"]) {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
}
:is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h3"]) {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
  line-height: 30px;
}
:is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h4"]) {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 130%;
}
@media screen and (max-width: 991px) {
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h1"]) { font-size: 34px; }
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h2"]) { font-size: 28px; }
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h4"]) { font-size: 17px; }
}
@media screen and (max-width: 767px) {
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h1"]) { font-size: 30px; }
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h2"]) { font-size: 24px; }
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h4"]) { font-size: 16px; }
}
@media screen and (max-width: 479px) {
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h1"]) { font-size: 26px; }
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h2"]) { font-size: 20px; }
  :is(h1, h2, h3, h4, h5, h6, div, p):where([data-was="h4"]) { font-size: 15px; }
}

/* Kontrast nach WCAG 2.2 AA (Farbton bleibt, nur etwas dunkler) */
.container {
  color: #857e7a;
}
.text-block-3 {
  opacity: 1;
  color: #66655f;
}

/* „Über uns“ auf der Startseite: weiße Schrift auf hellem Sonnenuntergang besser lesbar */
.sektion.bg-dw {
  background-image: linear-gradient(#1a1d1580, #1a1d1580), url('../images/DSC_7863DSC_7862.webp');
}
.sektion.bg-dw p,
.sektion.bg-dw h2 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Weniger Bewegung, wenn im Betriebssystem eingestellt */
@media (prefers-reduced-motion: reduce) {
  .marquee_wrap {
    transform: none !important;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* Einwilligungs-Dialog für das YouTube-Video */
.yt-consent {
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 28px;
  border: 0;
  border-radius: 12px;
  background: var(--creme, #ece6df);
  color: var(--schwarz, #1a1d15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.yt-consent::backdrop {
  background: rgba(26, 29, 21, 0.7);
}
.yt-consent h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}
.yt-consent p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
}
.yt-consent a {
  color: inherit;
  text-decoration: underline;
}
.yt-consent .yt-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.yt-consent button {
  cursor: pointer;
  font: inherit;
}
.yt-consent .yt-consent__cancel {
  padding: 9px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
}
