/* =========================================================
   Kröger Gesunde Schuhe — Design System
   Stil: Minimalism / Swiss Style, großzügig
   Zielgruppe: 50+ mit Fußbeschwerden → hohe Kontraste,
   große Schrift, große Klickflächen, klare Hierarchie
   ========================================================= */

/* Schriften liegen auf dem eigenen Server — keine Verbindung zu Google,
   damit beim Seitenaufruf keine Besucher-IP dorthin übertragen wird.
   Erneuern mit: python tools/fonts_lokal.py */
@import url('../fonts/fonts.css');

/* ---------- Tokens ---------- */
:root {
  /* Marke */
  --brand-red: #a50000;
  --brand-red-dark: #7d0000;
  /* CI-Grün ist #298700. Um 4 % abgedunkelt, weil die kleine Kennzeile (.eyebrow,
     14 px) auf dem grauen --color-bg-alt sonst nur 4,28:1 erreicht — WCAG AA
     verlangt 4,5:1. Jetzt 4,56:1 auf Grau und 4,91:1 auf Weiß. Vom Nutzer
     freigegeben am 29.08.2026. */
  --brand-green: #278200;
  --brand-green-light: #8aff19;
  --ink: #3a4e58;
  --mist: #ccd5da;

  /* Semantisch */
  --color-primary: var(--brand-red);
  --color-on-primary: #ffffff;
  --color-accent: var(--brand-green);
  --color-on-accent: #ffffff;

  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f8;
  --color-surface: #ffffff;
  --color-fg: var(--ink);
  --color-fg-strong: #22323a;
  --color-fg-muted: #5f7480;
  --color-border: var(--mist);
  --color-ring: var(--brand-green);

  /* Typografie — Calibri lokal, sonst Web-Fallback */
  --font-display: 'Exo 2', 'Neo Sans Pro', 'Segoe UI', sans-serif;
  --font-body: Calibri, Carlito, 'Source Sans 3', 'Segoe UI', sans-serif;

  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-base: 1.125rem;   /* 18px Basis für 50+ */
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;

  /* Abstände — spacious (Density 3/10) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(34, 50, 58, 0.08);
  --shadow: 0 4px 16px rgba(34, 50, 58, 0.10);
  --shadow-lg: 0 12px 32px rgba(34, 50, 58, 0.14);

  --container: 1280px;
  --header-h: 108px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 220ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-fg-strong);
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5vw, var(--fs-5xl)); }
h2 { font-size: clamp(1.875rem, 3.5vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-2); max-width: 68ch; }

a { color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section { padding-block: var(--space-7); }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding-block: var(--space-5); }

.section__head {
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.lead { font-size: var(--fs-lg); color: var(--color-fg-muted); }

/* ---------- Nur für Screenreader ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 0.85em 1.9em;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn--primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn--accent:hover {
  background: #1f6b00;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--color-fg-strong);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-fg-strong);
  background: #fff;
}

.btn--light {
  background: #fff;
  color: var(--color-primary);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn__icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Key Visual — bewusst nicht fixiert, es scrollt mit.
     --header-tint steuert, wie stark das Bild abgedunkelt wird (0 = original). */
  --header-tint: 0.25;
  background-image:
    linear-gradient(rgba(34, 50, 58, var(--header-tint)), rgba(34, 50, 58, var(--header-tint))),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  border-bottom: 3px solid var(--brand-green);
}

/* Header darf breiter laufen als der Inhalt — Logo und Buttons rücken nach außen */
.header .container { max-width: 1600px; }

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.header__panel { display: contents; }

.header__logo { flex: none; }
.header__logo img {
  height: 76px; width: auto;
  /* Wird es knapp, verkleinert sich das Logo im Ganzen, statt in der Breite
     gestaucht zu werden (die globale Regel img { max-width: 100% } kürzt nur die Breite) */
  object-fit: contain; object-position: left center;
}

.nav { display: flex; align-items: center; gap: 2px; }

.nav__item { position: relative; display: flex; align-items: center; }

.nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-2);
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-fg-strong);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.nav__link[aria-current="page"] {
  color: var(--color-primary);
  box-shadow: inset 0 -3px 0 var(--color-primary);
}

/* Untermenü-Umschalter */
.nav__sub-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-fg-strong);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__sub-toggle:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.nav__sub-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--dur) var(--ease);
}
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Untermenü */
.nav__sub {
  list-style: none;
  margin: 0;
  padding: var(--space-1);
}
.nav__sub a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-2);
  font-weight: 600;
  color: var(--color-fg-strong);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__sub a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.nav__sub a[aria-current="page"] { color: var(--color-primary); background: var(--color-bg-alt); }

/* Social-Buttons */
.social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.social__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-fg-strong);
  text-decoration: none;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.social__link svg { width: 23px; height: 23px; }
.social__link:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
.social__link--instagram:hover { background: #d62976; }
.social__link--facebook:hover  { background: #1877f2; }
.social__link--whatsapp:hover  { background: #25d366; }
.social__link--mail:hover      { background: var(--brand-green); }
.social__link--phone:hover     { background: var(--brand-red); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(34, 50, 58, 0.18);
  cursor: pointer;
  color: var(--color-fg-strong);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Fixierter Hintergrund (Parallax) ----------
   clip-path erzeugt einen neuen Containing Block: das position:fixed
   Pseudoelement bleibt beim Scrollen stehen, wird aber auf die Sektion
   beschnitten. Funktioniert anders als background-attachment:fixed
   auch auf iOS Safari. */
.fixed-bg {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
}
.fixed-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Farbkraft des Fotos; der Filter sitzt auf dem fixierten Element selbst,
     nicht auf dem Elternteil — sonst bräche der Parallax-Effekt. */
  filter: saturate(var(--bg-saturate, 1));
}
.fixed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-overlay, rgba(34, 50, 58, 0.72));
}

/* Bildquellen als Klassen — url() in einer Custom Property würde relativ
   zum Stylesheet aufgelöst, deshalb hier und nicht per style-Attribut. */
.fixed-bg--werkstatt  { --bg-image: url('../img/bg-1.jpg'); }
.fixed-bg--laden      { --bg-image: url('../img/about-1.jpg'); }
.fixed-bg--beratung   { --bg-image: url('../img/about-3.jpg'); }
/* Meisterbrief des Gründers von 1953, Hochformat — etwas weniger abgedunkelt
   als die Fotos, damit die Kalligrafie durchkommt. */
.fixed-bg--meister    { --bg-image: url('../img/meisterbrief-1953.jpg');
                        --bg-overlay: rgba(34, 50, 58, 0.80); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  align-items: center;
  min-height: min(78vh, 680px);
  padding-block: var(--space-6);
  --bg-image: url('../img/bg-1.jpg');
  /* Deckung bleibt über der Textzone (bis ~75%) hoch und läuft erst dahinter
     aus — so wird das Foto rechts heller als zuvor, ohne die Schrift zu opfern. */
  --bg-overlay: linear-gradient(100deg,
                  rgba(34,50,58,0.80) 0%,
                  rgba(34,50,58,0.66) 45%,
                  rgba(34,50,58,0.56) 75%,
                  rgba(34,50,58,0.20) 100%);
  --bg-saturate: 1.18;
  color: #fff;
}

.hero__inner { max-width: 44rem; }
.hero h1 { color: #fff; margin-bottom: var(--space-2); }

/* Sichert die Lesbarkeit auch dort, wo der Bildausschnitt je nach
   Fenstergröße einen hellen Bereich unter die Schrift schiebt. */
.hero h1,
.hero__text { text-shadow: 0 1px 4px rgba(20, 30, 35, 0.55); }

.hero__claim {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-green-light);
}

.hero__text {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-4);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Trust Bar ---------- */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-top: calc(var(--space-5) * -1);
  position: relative;
  z-index: 2;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.trust__item { display: flex; align-items: center; gap: var(--space-2); }

.trust__icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(39, 130, 0, 0.10);
  color: var(--color-accent);
}
.trust__icon svg { width: 28px; height: 28px; }

.trust__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-fg-strong);
  line-height: 1.2;
}
.trust__label { font-size: var(--fs-sm); color: var(--color-fg-muted); }

/* ---------- Cards / Leistungen ---------- */
.grid {
  display: grid;
  /* min() verhindert Überlauf auf sehr schmalen Geräten (<360px) */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-3);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.card__text { color: var(--color-fg-muted); font-size: var(--fs-sm); margin-bottom: var(--space-2); }

.card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--color-primary);
}
.card__more svg { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* ---------- Split (Über uns) ---------- */
.split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.split__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.split__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.split__media img:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }

/* Zwei Bilder untereinander in der Bildspalte */
.split__stapel { display: grid; gap: var(--space-2); }
.split__stapel .team { margin: 0; }
.split__stapel .team figcaption {
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--color-fg-muted);
}

.facts { list-style: none; margin: var(--space-3) 0 var(--space-4); padding: 0; }
.facts li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-1) 0;
}
.facts svg { flex: none; width: 26px; height: 26px; color: var(--color-accent); margin-top: 2px; }

.facts--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-1) var(--space-3);
  margin-bottom: 0;
}

/* ---------- Ausklappbare Einträge (Marken, Leistungen) ---------- */
.ausklapp-liste {
  display: grid;
  gap: var(--space-1);
  max-width: 60rem;
}

/* Rastervariante: drei Kacheln nebeneinander, kompakt wie die Karten auf der
   Startseite. align-items:start sorgt dafür, dass eine aufgeklappte Kachel
   wächst, ohne ihre Nachbarn in der Reihe mitzuziehen. */
.ausklapp-liste--raster {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-2);
  align-items: start;
  max-width: none;
}

.ausklapp-liste--raster .ausklapp summary {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 210px;
  padding: var(--space-3);
}
.ausklapp-liste--raster .ausklapp__kopf { flex: 1; gap: var(--space-1); }
.ausklapp-liste--raster .ausklapp__kurz { font-size: var(--fs-base); }

/* "Mehr erfahren" sitzt am unteren Rand der Kachel */
.ausklapp-liste--raster .ausklapp__mehr {
  justify-content: flex-start;
  gap: 0.4em;
  padding-top: var(--space-1);
  border-top: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-primary);
}
.ausklapp-liste--raster .ausklapp[open] .ausklapp__mehr-text { visibility: hidden; }
.ausklapp-liste--raster .ausklapp__text { padding-top: 0; border-top: 0; margin-top: 0; }

/* Beispielfoto oben in der Kachel. Es sitzt im <summary> und gehört damit zur
   Schaltfläche. Die negativen Ränder heben die Polsterung des summary auf,
   sodass das Foto bündig über die ganze Kachelbreite läuft. */
.ausklapp__bild {
  display: block;
  width: calc(100% + 2 * var(--space-3));
  /* Die globale Regel img { max-width: 100% } würde das Foto auf die
     Innenbreite kappen — hier soll es über die Polsterung hinauslaufen. */
  max-width: none;
  margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-2);
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--color-bg-alt);
}

/* Zwei nebeneinander auf mittleren Bildschirmen */
@media (min-width: 620px) {
  .ausklapp-liste--raster { grid-template-columns: repeat(2, 1fr); }
}

/* Ab hier drei in einer Reihe — bei sechs Punkten ergibt das zwei Zeilen.
   Der Kopfbereich wird quadratisch; klappt eine Kachel auf, wächst sie nach
   unten, während der quadratische Teil seine Form behält. */
@media (min-width: 980px) {
  .ausklapp-liste--raster { grid-template-columns: repeat(3, 1fr); }
  .ausklapp-liste--raster .ausklapp summary {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }
  /* Mit Foto wird die Kachel so hoch, wie Bild und Text es brauchen —
     quadratisch würde den Text zusammenquetschen. */
  .ausklapp-liste--raster .ausklapp--bild summary {
    aspect-ratio: auto;
  }
}

.ausklapp {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ausklapp[open] {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.ausklapp:hover { border-color: var(--color-accent); }

.ausklapp summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 64px;
  padding: var(--space-2) var(--space-3);
  color: var(--color-fg-strong);
  cursor: pointer;
  list-style: none;              /* Standard-Dreieck ausblenden … */
}

/* Überschrift und Anreißer stehen untereinander, beide immer sichtbar */
.ausklapp__kopf { display: grid; gap: 2px; }

.ausklapp__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.25;
}

.ausklapp__kurz {
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-fg-muted);
}
.ausklapp[open] .ausklapp__kurz { color: var(--color-fg); }
.ausklapp summary::-webkit-details-marker { display: none; }   /* … auch in Safari */
.ausklapp summary:hover { color: var(--color-accent); }
.ausklapp summary:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: -3px;
  border-radius: var(--radius);
}

/* Fußzeile der Kachel: Hinweistext und Pfeil */
.ausklapp__mehr {
  display: flex;
  align-items: center;
  flex: none;
}

.ausklapp__pfeil {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  transition: transform var(--dur) var(--ease);
}
.ausklapp[open] .ausklapp__pfeil { transform: rotate(180deg); }

.ausklapp__text {
  padding: 0 var(--space-3) var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
  margin-top: calc(var(--space-1) * -1);
}
.ausklapp__text p { margin: 0; color: var(--color-fg); }

/* Noch nicht befüllte Einträge sichtbar kennzeichnen — verschwindet von
   selbst, sobald in build.py ein Text hinterlegt wird. */
.ausklapp[data-platzhalter] .ausklapp__text p {
  color: var(--color-fg-muted);
  font-style: italic;
}

/* ---------- Galerie ---------- */
.gallery__item { margin: 0; }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Brotkrumen ---------- */
.breadcrumb {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.5em; color: var(--color-fg-muted); }
.breadcrumb li + li::before { content: "›"; color: var(--color-border); }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-fg-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-fg-strong); font-weight: 600; }

/* ---------- Leistungsbild ---------- */
.service__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Blätterlinks ---------- */
.pager {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
.pager__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 76px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pager__link:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pager__link svg { width: 26px; height: 26px; flex: none; color: var(--color-primary); }
.pager__link--next { justify-content: flex-end; text-align: right; }
.pager__label { display: block; font-size: var(--fs-xs); color: var(--color-fg-muted); }
.pager__link strong { color: var(--color-fg-strong); }

/* ---------- Zitat ---------- */
.quote {
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
}
.quote__stars { display: flex; justify-content: center; gap: 6px; margin-bottom: var(--space-3); color: #ffc44d; }
.quote__stars svg { width: 36px; height: 36px; }
.quote blockquote {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-fg-strong);
}

/* Rezensionsband bekommt mehr Luft als eine normale Sektion */
.section--quote { padding-block: var(--space-8); }
.quote cite { font-style: normal; color: var(--color-fg-muted); }

/* Zitat auf fixiertem Hintergrund */
.fixed-bg .quote blockquote { color: #fff; }
.fixed-bg .quote cite { color: rgba(255, 255, 255, 0.85); }
.fixed-bg .eyebrow { color: var(--brand-green-light); }

/* ---------- Marken ---------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Jede Marke als eigene Fläche — so ist klar erkennbar, wo eine
   Marke endet und die nächste beginnt. */
/* Jede Marke ist ein Link zu ihrer Kachel auf der Leistungsseite — der Link füllt die
   ganze Fläche, damit nicht nur das Wort klickbar ist */
.brands a {
  display: block;
  padding: 0.55em 1.3em;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-fg-strong);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.brands a:hover,
.brands a:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ---------- Öffnungszeiten ---------- */

/* Zwei fixierte Fotos nebeneinander, weich ineinander geblendet:
   links das Ladengeschäft, rechts die Fußvermessung. */
.hours-section {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
  color: #fff;
}
.hours-section__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hours-section__bg--laden { background-image: url('../img/bg-2.jpg'); }
.hours-section__bg--werkstatt {
  background-image: url('../img/about-2.jpg');
  /* Das Foto ist Hochformat; der Zoom schafft den horizontalen Spielraum,
     ohne den die X-Position wirkungslos bliebe.
     --werkstatt-x: 0% = ganz links, 100% = ganz rechts im Bild.
     --werkstatt-y: 0% = oberer Bildrand, 100% = unterer. */
  --werkstatt-zoom: 150%;
  --werkstatt-x: 0%;
  --werkstatt-y: 35%;
  inset: 0 0 0 10%;
  background-size: var(--werkstatt-zoom) auto;
  background-position: var(--werkstatt-x) var(--werkstatt-y);
  /* Maskenwerte sind relativ zur Ebene (beginnt bei 10%, ist 90% breit):
     16% ≙ 24% und 56% ≙ 60% der Fensterbreite */
  -webkit-mask-image: linear-gradient(to right, transparent 16%, #000 56%);
          mask-image: linear-gradient(to right, transparent 16%, #000 56%);
}
.hours-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(34, 50, 58, 0.55);
}
.hours-section h2 { color: #fff; text-shadow: 0 1px 4px rgba(20, 30, 35, 0.55); }
.hours-section .eyebrow { color: var(--brand-green-light); }

.hours {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.hours__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-lg);
  color: var(--color-fg);
}
.hours__card h3 { color: var(--color-fg-strong); }
.hours__card--green { border-top-color: var(--color-accent); }

.hours__table { width: 100%; border-collapse: collapse; }
.hours__table th {
  text-align: left;
  font-weight: 400;
  color: var(--color-fg-muted);
  padding: 0.6em 0;
  border-bottom: 1px solid var(--color-border);
}
.hours__table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding: 0.6em 0;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.hours__table tr:last-child th,
.hours__table tr:last-child td { border-bottom: 0; }
.hours__closed { color: var(--color-fg-muted); font-weight: 400; }

.hours__note {
  margin: var(--space-3) 0 0;
  padding: var(--space-2);
  background: rgba(39, 130, 0, 0.08);
  border: 1px solid rgba(39, 130, 0, 0.35);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-fg-strong);
}

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: var(--space-5); }

.contact__list { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.contact__list li { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-1) 0; }
.contact__list svg { flex: none; width: 26px; height: 26px; color: var(--color-primary); margin-top: 3px; }
.contact__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-fg-strong);
  font-weight: 600;
  text-decoration: none;
}
.contact__list a:hover { color: var(--color-primary); text-decoration: underline; }

.form { display: grid; gap: var(--space-2); }

/* Spamschutz-Feld: unsichtbar, aber nicht display:none — manche Bots
   erkennen und überspringen ausgeblendete Felder. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--color-fg-strong); }
.field .req { color: var(--color-primary); }

.field input,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 0.75em 1em;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--color-fg-strong);
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }

.field input:hover,
.field textarea:hover { border-color: var(--color-fg-muted); }
.field input:focus,
.field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(39, 130, 0, 0.18);
  outline: none;
}

.field__hint { font-size: var(--fs-xs); color: var(--color-fg-muted); }

.field__error {
  display: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--color-primary); }
.field.is-invalid .field__error { display: flex; align-items: center; gap: 0.4em; }
.field__error svg { width: 1.1em; height: 1.1em; flex: none; }

.checkbox { display: flex; gap: var(--space-2); align-items: flex-start; }
.checkbox input {
  flex: none;
  width: 28px;
  height: 28px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
}
.checkbox label { font-size: var(--fs-sm); font-weight: 400; }

.form__status {
  display: none;
  gap: 0.6em;
  align-items: flex-start;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form__status.is-visible { display: flex; }
.form__status--ok { background: rgba(39, 130, 0, 0.12); color: #1c5e00; }
.form__status--error { background: rgba(165, 0, 0, 0.10); color: var(--brand-red); }
.form__status svg { width: 1.4em; height: 1.4em; flex: none; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin-inline: auto; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-fg-strong);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--space-5) var(--space-3);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer h3 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--space-2);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.25em; }
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;      /* WCAG 2.2 AA: min. 24px Zielgröße */
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.footer a:hover { color: #fff; text-decoration: underline; }
.footer li:not(:has(a)) { min-height: 32px; display: flex; align-items: center; }
.footer__logo { background: #fff; padding: var(--space-2); border-radius: var(--radius-sm); display: inline-block; }
.footer__logo img { height: 54px; width: auto; }
.footer .footer__mehr { margin-top: var(--space-2); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Einwilligung: Dialog über der Seite ---------- */
/* Der Hintergrund liegt über allem und fängt jeden Klick ab — bis eine
   Entscheidung getroffen ist, lässt sich die Seite dahinter nicht bedienen. */
.einwilligung-hg {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(34, 50, 58, 0.7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  /* Die Deckkraft wird bewusst nicht animiert. Browser frieren Animationen in
     Hintergrund-Tabs ein — ein hängengebliebenes opacity:0 wäre ein unsichtbarer
     Dialog, der trotzdem jeden Klick abfängt. Der Hintergrund ist also immer da,
     nur die Karte darin fährt herein (siehe .einwilligung). */
  opacity: 1;
}
.einwilligung-hg.is-weg {
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

/* Seite hinter dem Dialog nicht mitscrollen lassen */
.dialog-offen, .dialog-offen body { overflow: hidden; }

.einwilligung {
  width: 100%;
  max-width: 32rem;
  margin: auto;
  /* Höher als der Bildschirm darf der Dialog nicht werden — sonst wäre auf
     kleinen Geräten eine der beiden Antworten erst nach dem Scrollen zu sehen
     und damit schlechter erreichbar als die andere. */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2 * var(--space-2));
  max-height: calc(100dvh - 2 * var(--space-2));
  padding: var(--space-4);
  background: var(--color-surface);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: einwilligung-ein var(--dur) var(--ease);
}
.einwilligung:focus { outline: none; }   /* der Rahmen soll den Dialog nicht umranden */
@keyframes einwilligung-ein {
  from { transform: translateY(14px) scale(0.98); }
  to   { transform: none; }
}

/* Nur der Textteil scrollt; der Fuß mit den Schaltflächen steht fest */
.einwilligung__koerper {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Angebissener Keks über der Überschrift — kleines Osterei */
.keks {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-1);
}
.keks__teig { fill: #c9954f; }
.keks__stueck { fill: #6b4423; }
.keks__kruemel {
  fill: #c9954f;
  /* Die Ruhelage ist der 0-%-Schritt. Friert die Animation ein (Hintergrund-Tab),
     bleiben die Krümel einfach liegen — sichtbar und an der richtigen Stelle. */
  animation: kruemeln 4.5s var(--ease) infinite;
}
.keks__kruemel:nth-of-type(2) { animation-delay: 1.1s; }
.keks__kruemel:nth-of-type(3) { animation-delay: 2.3s; }

@keyframes kruemeln {
  0%, 55%  { transform: none; opacity: 1; }
  80%      { transform: translateY(5px); opacity: 0; }
  81%      { transform: translateY(-3px); opacity: 0; }
  100%     { transform: none; opacity: 1; }
}
.einwilligung__fuss { flex: none; }

.einwilligung__titel {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}
.einwilligung__text {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-2);
  max-width: none;
}
.einwilligung__punkte {
  margin: 0 0 var(--space-3);
  padding-left: 1.3em;
  font-size: var(--fs-sm);
  color: var(--color-fg);
}
.einwilligung__punkte li { margin-bottom: 0.35em; }

/* Beide Schaltflächen gleich gewichtet — Ablehnen darf nicht versteckt sein */
.einwilligung__aktionen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.einwilligung__aktionen .btn {
  min-height: 56px;
  padding-inline: var(--space-2);
  font-size: var(--fs-sm);
}
.einwilligung__hinweis {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-fg-muted);
  max-width: none;
}
.einwilligung__hinweis a { color: var(--color-fg-muted); }
.einwilligung__hinweis a:hover { color: var(--color-primary); }

@media (max-width: 480px) {
  .einwilligung { padding: var(--space-3); }
  .einwilligung__aktionen { grid-template-columns: 1fr; }
}

/* ---------- Karte (Zwei-Klick-Lösung) ---------- */
/* Nichts geht an Google, bevor eingewilligt oder „Karte laden" gedrückt wurde. */
/* Feste Höhe: Platzhalter und Karte sind gleich hoch, damit beim Laden nichts
   springt. */
.karte {
  height: 300px;
  margin: var(--space-3) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.karte__platzhalter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-2);
  text-align: center;
}
.karte__platzhalter svg {
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}
.karte__text {
  margin: 0;
  max-width: 34ch;
  font-size: var(--fs-sm);
}
.karte__knopf { flex: none; }
.karte__hinweis {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-fg-muted);
}

.karte__rahmen {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Verweis im Fußbereich */
.footer__legal button {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  min-height: 32px;
}
.footer__legal button:hover { color: #fff; text-decoration: underline; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Klappmenü bis 1023 px. Erst ab 1024 px passen Logo (212 px), Menü und die fünf
   Symbole nebeneinander — vorher wurde das Logo bis auf 108 px Breite gestaucht. */
@media (max-width: 1023px) {
  .header__panel {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: var(--space-2);
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* visibility schaltet diskret: beim Öffnen sofort, beim Schließen nach der Animation */
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility 0s linear var(--dur);
  }
  .header__panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility 0s linear 0s;
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link { min-height: 56px; font-size: var(--fs-lg); border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--color-primary); }

  /* Mobil: Leistungen als Akkordeon */
  .nav__item { display: grid; grid-template-columns: 1fr auto; }
  .nav__item .nav__link { grid-column: 1; }
  .nav__sub-toggle {
    grid-column: 2;
    width: 56px;
    height: 56px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .nav__sub {
    grid-column: 1 / -1;
    display: none;
    padding: 0;
    background: var(--color-bg-alt);
  }
  .nav__sub-toggle[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__sub a {
    min-height: 52px;
    padding-left: var(--space-4);
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  /* Social-Buttons unter der Navigation */
  .social {
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-3) 0 var(--space-1);
  }
}

@media (max-width: 899px) {
  /* Karten stehen untereinander — also blendet auch das Foto von oben
     nach unten über, passend zur jeweiligen Karte. Die Ebene nimmt hier
     wieder die volle Breite ein. */
  .hours-section__bg--werkstatt {
    inset: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 32%, #000 68%);
            mask-image: linear-gradient(to bottom, transparent 32%, #000 68%);
  }
}

@media (min-width: 640px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .contact { grid-template-columns: 5fr 7fr; }
  .pager { grid-template-columns: 1fr 1fr; }
}

/* Desktop-Kopf: siehe Kommentar beim Klappmenü, warum erst ab 1024 px */
@media (min-width: 1024px) {
  :root { --header-h: 132px; }
  .nav-toggle { display: none; }
  .header__logo img { height: 96px; }

  /* Drei Spalten: Logo außen links, Navigation exakt mittig, Buttons außen rechts */
  .header__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-2);
  }
  .header__logo { justify-self: start; }
  .nav { justify-self: center; }
  .social { justify-self: end; }

  /* Der Pfeil gehört zu "Leistungen" und muss darum näher am Wort stehen
     als die Menüpunkte untereinander — sonst wirkt er losgelöst. */
  .nav__item--has-sub > .nav__link { padding-right: 2px; }
  .nav__sub-toggle { width: 28px; }

  /* Weiße Trägerfläche nur für die Navigation — die Schrift braucht sie.
     Die Social-Buttons stehen frei auf dem Key Visual. */
  .nav {
    padding: 5px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(34, 50, 58, 0.18);
  }

  /* Weiße Symbole direkt auf dem Bild, mit Schatten für sicheren Kontrast */
  .social__link {
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(20, 30, 35, 0.55));
  }
  .social__link:hover { filter: none; }

  /* Desktop: echtes Dropdown */
  .nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 120;
    min-width: 300px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility 0s linear var(--dur);
  }
  .nav__item--has-sub:hover .nav__sub,
  .nav__item--has-sub:focus-within .nav__sub,
  .nav__sub-toggle[aria-expanded="true"] + .nav__sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility 0s linear 0s;
  }
}

/* Sehr schmale Header-Breiten: Social-Buttons kompakter */
@media (min-width: 1024px) and (max-width: 1150px) {
  .social__link { width: 40px; height: 40px; }
  .social__link svg { width: 19px; height: 19px; }
  .nav__link { padding: 0 0.7rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }

  /* Bild scrollt normal mit — der Parallax-Effekt kann Schwindel auslösen */
  .fixed-bg::before,
  .hours-section__bg { position: absolute; }
}

/* ---------- Fragen zum Besuch, im Kontaktbereich ---------- */
.besuch-faq {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.besuch-faq h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}
/* Kompakter als die Ausklapper auf den Leistungsseiten — hier sind es nur drei */
.besuch-faq .ausklapp summary { padding: var(--space-2); }
.besuch-faq .ausklapp__name { font-size: var(--fs-base); }

/* ---------- Fotoraster auf „Über uns" ---------- */
/* Feste 3 Spalten statt auto-fit: die sechs Fotos in „Bei uns im Haus" sollen
   immer zwei volle Dreierreihen ergeben, nicht je nach Fensterbreite 2 oder 3.
   Steht nach .grid, überschreibt dessen auto-fit also. */
.galerie { grid-template-columns: 1fr; }
@media (min-width: 560px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .galerie { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Historie auf „Über uns" ---------- */
.historie { margin-top: var(--space-4); }

.historie__bild figcaption {
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--color-fg-muted);
}
.historie__bild figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-accent);
}

/* 1954 ist fast quadratisch — der 4:3-Zuschnitt nähme sonst oben zu viel Himmel
   und unten die Personen vor dem Haus weg. */
.historie__bild--1954 img { object-position: center 55%; }

/* Zahlenreihe darunter — feste Umbruchpunkte statt auto-fit: bei vier Werten
   würde auto-fit dazwischen 3+1 setzen und einen Wert allein stehen lassen.
   So sind es immer 4, 2+2 oder 1 untereinander. */
.zahlen {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px)  { .zahlen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .zahlen { grid-template-columns: repeat(4, 1fr); } }
.zahlen li { max-width: 34ch; }
.zahlen__wert {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 1.1;
  color: var(--color-primary);
}
.zahlen span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
}

/* ---------- Drei Meister unter einem Dach ---------- */
/* Eigener Abschnitt über dem festen Hintergrund — heller Text auf dunklem Grund */
.fixed-bg--meister h2 { color: #fff; }
.meister__text {
  color: rgba(255, 255, 255, 0.90);
  max-width: 62ch;
}

.meister__briefe {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (min-width: 620px) { .meister__briefe { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .meister__briefe { grid-template-columns: repeat(3, 1fr); } }

.meister__brief { margin: 0; }
.meister__brief img {
  width: 100%;
  height: auto;
  /* Die drei Scans sind auf dasselbe Format zugeschnitten — die Überschrift
     MEISTERBRIEF sitzt in allen auf gleicher Höhe. Deshalb kein object-fit
     nötig, die Bilder passen von sich aus zusammen. */
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.meister__brief figcaption {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
}
.meister__brief figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: #fff;
}

/* ---------- Rechtstexte (Datenschutz) ---------- */
/* Lange Gliederung — die Abschnitte brauchen sichtbare Trennung */
.rechtstext h2 {
  margin-top: var(--space-5);
  padding-top: var(--space-2);
  border-top: 2px solid var(--color-border);
}
.rechtstext h3 { margin-top: var(--space-4); }
.rechtstext h2 + h3 { margin-top: var(--space-3); }

/* Hervorgehobener Kasten, u. a. für den Widerspruchshinweis nach Art. 21 DSGVO,
   der nach Art. 21 Abs. 4 DSGVO getrennt und deutlich hervorgehoben stehen muss */
.ds-hinweis {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background: rgba(39, 130, 0, 0.08);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
}
.ds-hinweis p { line-height: 1.7; }   /* Großbuchstaben brauchen mehr Luft */
.ds-hinweis > :first-child { margin-top: 0; }
.ds-hinweis > :last-child { margin-bottom: 0; }

/* Schaltfläche, die im Fließtext wie ein Verweis aussehen soll */
.ds-link {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ds-link:hover { color: var(--brand-red-dark); }

.liste {
  margin: 0 0 var(--space-2);
  padding-left: 1.4em;
  max-width: 68ch;
}
.liste li { margin-bottom: var(--space-1); }

.ds-stand {
  margin-top: var(--space-5);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  color: var(--color-fg-muted);
}

code {
  padding: 0.1em 0.35em;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* ---------- Ortsseiten und Anfahrt (orte/*.html, anfahrt.html) ---------- */
/* Nur der Text wird schmal, nicht der Container — sonst rückt die Einleitung gegenüber
   den Abschnitten darunter ein */
.ort > * { max-width: 52rem; }

/* Eckdaten der Route: Begriff links, Wert rechts */
.weg { margin: 0 0 var(--space-3); }
.weg > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: var(--space-2);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}
.weg dt { font-weight: 700; color: var(--color-fg-strong); }
.weg dd { margin: 0; }
.ort__weg { align-items: start; }

/* Leistungs- und Ortsliste: zweizeilige Wegweiser */
.ort__leistungen {
  display: grid;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 760px) { .ort__leistungen { grid-template-columns: 1fr 1fr; } }
.ort__leistungen a {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: var(--space-2);
  align-items: center;
  min-height: 56px;
  padding: 0.75rem var(--space-2);
  color: var(--color-fg);
  text-decoration: none;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.section--alt .ort__leistungen a { background: #fff; }
.ort__leistungen strong { color: var(--color-fg-strong); }
.ort__leistungen span { grid-column: 1; font-size: var(--fs-sm); }
.ort__leistungen svg {
  grid-column: 2; grid-row: 1 / span 2;
  width: 20px; height: 20px; color: var(--color-primary);
}
.ort__leistungen a:hover strong { color: var(--color-primary); }
.ort__leistungen--orte { grid-template-columns: 1fr; }

.anfahrt { display: grid; gap: var(--space-4); }
@media (min-width: 980px) { .anfahrt { grid-template-columns: repeat(3, 1fr); } }
.anfahrt__kreis { font-size: var(--fs-xl); margin-bottom: var(--space-2); }

/* ---------- Fehlerseite 404 ---------- */
.fehlerseite { max-width: 52rem; }
.fehlerseite__ziele {
  display: grid;
  gap: var(--space-1);
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
}
@media (min-width: 620px) { .fehlerseite__ziele { grid-template-columns: 1fr 1fr; } }
.fehlerseite__ziele a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 56px;
  padding: 0.75rem var(--space-2);
  font-weight: 600;
  color: var(--color-fg-strong);
  text-decoration: none;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.fehlerseite__ziele a:hover { color: var(--color-primary); }
.fehlerseite__ziele svg { width: 20px; height: 20px; flex: none; color: var(--color-primary); }
.fehlerseite__aktionen { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Fachlexikon ---------- */
.faq-lexikon { margin: var(--space-4) 0 0; }
.lexikon .container { max-width: 62rem; }

.lexikon__suche { margin-bottom: var(--space-3); }
.lexikon__suche[hidden] { display: none; }
.lexikon__suche label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--color-fg-strong);
}
.lexikon__suche input {
  width: 100%;
  max-width: 28rem;
  min-height: 56px;
  padding: 0.75em 1em;
  font: inherit;
  color: var(--color-fg-strong);
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.lexikon__suche input:hover { border-color: var(--color-fg-muted); }
.lexikon__suche input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(39, 130, 0, 0.18);
  outline: none;
}
.lexikon__status { margin: 0.4rem 0 0; min-height: 1.5em; font-size: var(--fs-sm); color: var(--color-fg-muted); }

/* A–Z-Leiste: 44 px Zielgröße, bricht auf schmalen Bildschirmen um */
.lexikon__abc { margin-bottom: var(--space-5); }
.lexikon__abc[hidden] { display: none; }
.lexikon__abc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lexikon__abc a,
.lexikon__abc span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.lexikon__abc a {
  color: var(--color-fg-strong);
  background: var(--color-bg-alt);
  text-decoration: none;
}
.lexikon__abc a:hover { background: var(--color-accent); color: var(--color-on-accent); }
/* Buchstaben ohne Einträge: bewusst blass, sie sind nicht bedienbar */
.lexikon__abc span { color: var(--color-border); }

.lexikon__gruppe { margin-bottom: var(--space-5); }
.lexikon__gruppe[hidden] { display: none; }
.lexikon__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-2);
  border-bottom: 3px solid var(--color-accent);
}
.lexikon__buchstabe { margin: 0; color: var(--color-accent); }
.lexikon__hoch { font-size: var(--fs-sm); }

.lexikon__liste { margin: 0; }
.lexikon__eintrag {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.lexikon__eintrag[hidden] { display: none; }
.lexikon__eintrag dt {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-fg-strong);
  margin-bottom: 0.25rem;
}
.lexikon__eintrag dd { margin: 0; }
.lexikon__eintrag dd p:last-child { margin-bottom: 0; }
/* Angesprungener Eintrag: kurz markieren, damit man ihn in der Liste findet */
.lexikon__eintrag:target {
  margin-inline: calc(var(--space-2) * -1);
  padding-inline: var(--space-2);
  background: rgba(39, 130, 0, 0.08);
  border-radius: var(--radius-sm);
}

/* ICD-Code: kleiner, aber in voller Textfarbe — Grau erreicht auf der Markierung
   eines angesprungenen Eintrags nur 4,4 : 1 */
.lexikon__icd { font-size: var(--fs-sm); color: var(--color-fg); }
.lexikon__icd abbr { font-weight: 600; text-decoration: none; }

.lexikon__leer {
  padding: var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.lexikon__leer[hidden] { display: none; }

.lexikon__hinweis {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-fg-muted);
}

@media (min-width: 760px) {
  /* Begriff links, Erklärung rechts — liest sich wie ein Nachschlagewerk */
  .lexikon__eintrag {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: var(--space-3);
  }
  .lexikon__eintrag dt { margin: 0; font-size: var(--fs-base); line-height: 1.6; overflow-wrap: anywhere; }
}

/* ---------- Print ---------- */
@media print {
  .header, .nav-toggle, .cta-band, .form, .hero__actions,
  .lexikon__suche, .lexikon__abc, .lexikon__hoch { display: none; }
  body { font-size: 11pt; color: #000; }
  .hero { min-height: auto; background: none; color: #000; }
  .hero h1, .hero__claim { color: #000; }
  .fixed-bg, .hours-section { clip-path: none; color: #000; }
  .fixed-bg::before, .fixed-bg::after,
  .hours-section__bg, .hours-section::after { display: none; }
  .fixed-bg h2, .fixed-bg blockquote, .fixed-bg cite,
  .hours-section h2, .hours-section .eyebrow { color: #000; }
}
