/* WK-Gerüst: Bausteine. Optisch neutral, nur Tokens. */

/* Kopf und Menü. Kein backdrop-filter am Kopf: sonst wird das Overlay-Menü darin eingesperrt (Schall-Fehler). */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: var(--abstand-3); min-height: var(--kopf-hoehe); }
.kopf__marke { font-family: var(--schrift-titel); font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.hauptmenue ul { display: flex; gap: var(--abstand-3); list-style: none; margin: 0; padding: 0; }
.hauptmenue a { display: inline-block; padding: var(--abstand-1) 0; color: var(--text); text-decoration: none; }
.hauptmenue a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.menue-knopf { display: none; }

@media (max-width: 860px) {
  .menue-knopf {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--abstand-2);
    font: inherit;
    color: var(--text);
    background: none;
    border: 1px solid var(--rahmen);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .hauptmenue { display: none; }
  .hauptmenue.ist-offen {
    display: block;
    position: fixed;
    inset: var(--kopf-hoehe) 0 0 0;
    z-index: 30;
    overflow-y: auto;
    padding: var(--abstand-4) var(--rand);
    background: var(--bg);
  }
  .hauptmenue.ist-offen ul { flex-direction: column; gap: var(--abstand-2); }
  .hauptmenue.ist-offen a { font-size: 1.375rem; }
  html.menue-offen { overflow: hidden; }
}

/* Knöpfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--abstand-3);
  border: 0;
  border-radius: var(--radius);
  background: var(--akzent);
  color: var(--akzent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knopf[aria-disabled="true"] { cursor: progress; }

@media (prefers-reduced-motion: no-preference) {
  .knopf { transition: background-color var(--dauer-kurz) var(--ease-out), transform var(--dauer-kurz) var(--ease-out); }
  .knopf:active { transform: scale(0.97); }
}

@media (hover: hover) and (pointer: fine) {
  .knopf:hover { background: var(--akzent-hover); }
}

/* Handyleiste: Anrufen und Anfragen, fest unten bis 860 px, Platz wird freigehalten. */
.handyleiste { display: none; }

@media (max-width: 860px) {
  body { padding-bottom: calc(var(--leiste-hoehe) + env(safe-area-inset-bottom)); }
  .handyleiste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--abstand-1);
    position: fixed;
    inset: auto 0 0 0;
    z-index: 25;
    padding: var(--abstand-1) var(--rand) calc(var(--abstand-1) + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--linie);
  }
  .handyleiste__knopf {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: var(--radius);
    background: var(--akzent);
    color: var(--akzent-text);
    font-weight: 600;
    text-decoration: none;
  }
  .handyleiste__knopf + .handyleiste__knopf { background: var(--flaeche); color: var(--text); }
}

/* Anfrageformular: Labels oben, Fehler am Feld. */
.formular { display: grid; gap: var(--abstand-3); max-width: 40rem; }
.feld { display: grid; gap: var(--abstand-1); }
.feld label { font-weight: 600; }
.feld input, .feld select, .feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
}
.feld textarea { min-height: 10rem; resize: vertical; }
.feld [aria-invalid="true"] { border: 2px solid var(--fehler); }
.feld__fehler { margin: 0; color: var(--fehler); font-size: 0.9375rem; }
.feld--falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular__hinweis { margin: 0; color: var(--text-leise); }
.formular__status { margin: 0; min-height: 1.6em; }
.formular__status.ist-fehler { color: var(--fehler); font-weight: 600; }

/* Öffnungszeiten */
.zeiten { display: grid; gap: var(--abstand-1); margin: 0; }
.zeiten__zeile { display: flex; justify-content: space-between; gap: var(--abstand-3); max-width: 24rem; }
.zeiten dt { font-weight: 600; }
.zeiten dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Slideshow: ohne JavaScript stehen alle Bilder untereinander. */
.slideshow__bilder { display: grid; gap: var(--abstand-2); }
.slideshow__bild { margin: 0; }
.slideshow--aktiv .slideshow__bilder { grid-template-areas: "bild"; gap: 0; }
.slideshow--aktiv .slideshow__bild { grid-area: bild; opacity: 0; visibility: hidden; }
.slideshow--aktiv .slideshow__bild.ist-aktiv { opacity: 1; visibility: visible; }
.slideshow__steuerung { display: none; gap: var(--abstand-1); margin-top: var(--abstand-2); }
.slideshow--aktiv .slideshow__steuerung { display: flex; }
.slideshow__steuerung button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--abstand-2);
  font: inherit;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .slideshow--aktiv .slideshow__bild { transition: opacity 600ms var(--ease-in-out), visibility 600ms; }
}

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--abstand-2); }
.galerie a { display: block; }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* Karte: lädt erst nach Klick. */
.karte { display: grid; overflow: hidden; border-radius: var(--radius); background: var(--flaeche); }
.karte__bild { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.karte__hinweis { display: grid; gap: var(--abstand-2); justify-items: start; padding: var(--abstand-3); }
.karte__rahmen { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.karte__route { display: inline-block; margin-top: var(--abstand-2); }

/* Bewertungen: nur echte, mit Quelle. */
.bewertungen { display: grid; gap: var(--abstand-3); }
.bewertung { margin: 0; padding: var(--abstand-3); background: var(--flaeche); border-radius: var(--radius); }
.bewertung blockquote { margin: 0 0 var(--abstand-2); }
.bewertungen__hinweis { color: var(--text-leise); }

/* Fußzeile */
.fuss { margin-top: var(--abstand-8); padding-block: var(--abstand-6); background: var(--flaeche); }
.fuss__innen { display: grid; gap: var(--abstand-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.fuss__name { font-weight: 700; }
.fuss__links { display: flex; flex-wrap: wrap; gap: var(--abstand-2); margin: 0; padding: 0; list-style: none; }
.fuss a { color: var(--text); }
/* Zielgröße mindestens 24 px auch für Links in Listen (WCAG 2.5.8; Befund der Browser-Prüfung Etappe 4) */
.fuss__links a, main li > a:only-child { display: inline-block; min-height: 24px; }

/* Rechtstexte: Vorlage-Hinweis */
.rechtstext__hinweis { padding: var(--abstand-2); background: var(--flaeche); border: 1px solid var(--rahmen); border-radius: var(--radius); }
