/* =====================================================================
   Painscheri Automobile (Autohaus 23) — Fahrzeug-Detailseite.
   Kanon: ~/.claude/vorlagen/fahrzeug-detail/assets/css/detail.css (Story-Galerie 16.10.2026, GESETZ Kap. 10),
   kopiert und NUR auf tokens.css umgestellt (Navy/Messing, Inter Tight/Inter, Kante scharf = Radius aus Tokens).
   Keine Fremdfarben; Hell = Standard, Dunkel über [data-theme="dark"] (tokens.css).
   Am Ende: (1) Painscheri-Ergänzungen (Plus-Kapitelmarke, EnVKV-Liste, Zusatzzeile),
            (2) @layer fzg-basis — Grundbausteine (Knöpfe, Formular, Platzhalter-Kopf/-Fuß), solange
                assets/css/site.css aus Schritt 6 fehlt. Ungeschichtete Regeln aus site.css gewinnen IMMER
                gegen diese Ebene — Schritt 6 überschreibt also ohne Reihenfolge-Kampf.
   Generator: tools/generate-fahrzeugseiten.mjs
   ===================================================================== */
.det {
  padding-block: 1.75rem 4.5rem;
}
.det-pfad {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--meta);
  margin: 0 0 1.4rem;
}
.det-pfad a {
  color: var(--leit-text);
  text-decoration: none;
}
.det-pfad a:hover {
  text-decoration: underline;
}

.det-kopf {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2.5rem;
  align-items: end;
  margin-bottom: 1.6rem;
}
.det-kopf .h-2 {
  margin-top: 0.35rem;
}
.det-kopf__unter {
  color: var(--meta);
  margin: 0.5rem 0 0;
  max-width: 42rem;
}
.det-kopf__preis {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 1rem 0 0;
  flex-wrap: wrap;
}
.det-kopf__preis b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--tinte);
  line-height: 1;
}
.det-kopf__preis span {
  color: var(--meta);
  font-size: 0.86rem;
}
.det-kopf__eck {
  margin: 0.55rem 0 0;
  color: var(--meta);
  font-size: 0.95rem;
}
.det-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
}
.det-chips li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.7rem;
  border-radius: 2px;
  border: 1px solid var(--kante);
  background: var(--flaeche);
  color: var(--tinte);
}
.det-kopf__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
}
.det-kopf__knoepfe .knopf {
  white-space: nowrap;
}
.det-expose svg {
  margin-right: 0.45rem;
  vertical-align: -3px;
}
.merk--text {
  position: static;
  width: auto;
  height: 44px;
  padding: 0 0.9rem;
  gap: 0.45rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 2px;
}
.merk--text svg {
  width: 18px;
  height: 18px;
}
.merk--text[aria-pressed="true"] {
  border-color: var(--akzent);
  color: var(--akzent);
}

/* Galerie */
.gal {
  margin: 0 0 2.5rem;
}
.gal__buehne {
  position: relative;
  margin: 0;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: clip;
  background: var(--flaeche);
}
.gal__buehne img[data-gal-haupt] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 180ms var(--ease);
}
.gal__buehne img.ist-wechsel {
  opacity: 0.85;
}
.gal__pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 14, 20, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition:
    background 150ms var(--ease),
    transform 150ms var(--ease);
  z-index: 2;
  padding: 0;
}
.gal__pfeil:hover {
  background: var(--akzent);
}
.gal__pfeil:active {
  transform: translateY(-50%) scale(0.96);
}
.gal__pfeil:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.gal__pfeil--l {
  left: 1rem;
}
.gal__pfeil--r {
  right: 1rem;
}
.gal__zaehler {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  background: rgba(8, 14, 20, 0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  z-index: 2;
}
.gal__thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.gal__thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: clip;
  background: var(--flaeche);
  cursor: pointer;
  aspect-ratio: 16/10;
  transition:
    border-color 150ms var(--ease),
    opacity 150ms var(--ease);
  opacity: 0.82;
}
.gal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal__thumb:hover,
.gal__thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--akzent);
}
.gal__thumb:focus-visible {
  outline: 2px solid var(--leit-text);
  outline-offset: 2px;
}
.gal__voll {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 8, 12, 0.96);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}
.gal__voll[hidden] {
  display: none;
}
.gal__voll img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.gal__voll .gal__pfeil--l {
  left: 1.2rem;
}
.gal__voll .gal__pfeil--r {
  right: 1.2rem;
}
.gal__voll .gal__zaehler {
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.2rem;
}
.gal__zu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 14, 20, 0.55);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  padding: 0;
}
.gal__zu:hover {
  background: var(--akzent);
}
.gal--leer .fzg-karte__tafel-text {
  max-width: 36rem;
  font-size: 1rem;
}

/* Raster: Inhalt links, Anfrage rechts sticky */
.det-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 1fr);
  gap: 3rem;
  align-items: start;
}
.det-block {
  margin-top: 2.75rem;
}
.det-block:first-child {
  margin-top: 0;
}
.kapitel {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.kapitel__nr {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--auf-akzent);
  background: var(--akzent);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius);
}
.kapitel .h-3 {
  margin: 0;
}
.kapitel small {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--meta);
  margin-left: 0.5rem;
  letter-spacing: 0;
}

.det-daten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  margin: 0;
}
.det-daten__zeile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--kante);
  font-size: 0.94rem;
}
.det-daten__zeile dt {
  color: var(--meta);
}
.det-daten__zeile dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.det-envkv {
  margin-top: 1.4rem;
  padding: 1.1rem 1.4rem;
  background: var(--flaeche);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--meta);
  line-height: 1.55;
}
.det-envkv b {
  color: var(--tinte);
  display: block;
  margin-bottom: 0.35rem;
}
.det-envkv__fn {
  margin: 0.7rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
}
.det-hinweis {
  margin: 1rem 0 0;
  color: var(--meta);
  font-size: 0.88rem;
}
.det-hinweis--rot {
  color: var(--akzent);
  font-weight: 600;
}
.det-hl {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0;
  margin: 0 0 1.2rem;
}
.det-hl li {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--akzent);
  background: var(--flaeche);
  border-radius: var(--radius);
}
.det-aus {
  columns: auto;
}
.det-aus__gruppe {
  break-inside: avoid;
  margin-bottom: 1.2rem;
}
.det-aus__gruppe h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leit-text);
  margin: 0 0 0.4rem;
}
.det-aus__gruppe ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.det-aus__gruppe li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.det-aus__gruppe li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 0;
  background: var(--akzent);
}
.det-text p {
  margin: 0 0 0.8rem;
  line-height: 1.6;
}
.det-text ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}
.det-text li {
  margin-bottom: 0.3rem;
}
.det-fuss {
  margin-top: 2.5rem;
  color: var(--meta);
  font-size: 0.78rem;
  line-height: 1.5;
}
.det-fuss a {
  color: var(--leit-text);
}
.det-aside {
  position: sticky;
  top: 104px;
  margin-top: 0;
}
.det-aside__meta {
  color: var(--meta);
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}
.det-aside__expose {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  color: var(--leit-text);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .gal__thumbs {
    grid-template-columns: repeat(6, 1fr);
  }
  .det-raster {
    grid-template-columns: 1fr;
  }
  .det-aside {
    position: static;
  }
}
@media (max-width: 760px) {
  .det-kopf {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .det-kopf__knoepfe {
    justify-content: flex-start;
  }
  .det-kopf__knoepfe .knopf {
    flex: 1 1 auto;
    text-align: center;
  }
  .gal__thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }
  .gal__pfeil {
    width: 42px;
    height: 42px;
  }
  .det-daten {
    grid-template-columns: 1fr;
  }
  .det-hl {
    grid-template-columns: 1fr 1fr;
  }
  .det-aus {
    columns: 1;
  }
}
@media (max-width: 480px) {
  .det-hl {
    grid-template-columns: 1fr;
  }
  .gal__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Fremd-Blick Runde 3, FAIL 2: waagerechter Überhang bei 390 (nowrap-Knöpfe + lange Modellnamen) */
.det-kopf .h-2 {
  overflow-wrap: anywhere;
}
.det-kopf__knoepfe .knopf,
.det-kopf__knoepfe .merk--text {
  min-width: 0;
}
@media (max-width: 760px) {
  .det-kopf__knoepfe .knopf {
    white-space: normal;
  }
  .det-kopf__knoepfe {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .det-kopf__eck {
    overflow-wrap: anywhere;
  }
}

/* --- F6 (Fremd-Blick Runde 4, 15.09.2026) ---------------------------------
   Die feste Ruf-Pille (site.css .ruf-fix, unten rechts) lag bei 1440 px ueber
   dem Anruf-Knopf der Sticky-Anfrage: Pille x1287 y826 135x56, Knopf
   „040 899660-0 anrufen" x917 y828 427x56 — 57 x 54 px Ueberlappung, 13 % der
   Knopfflaeche (AUGEN.md 11.09.2026: „feste Ruf-Leiste rechts unten verdeckt
   Knoepfe und Pflichtwerte bei 1440 px").
   Die Pille bleibt DAUERHAFT sichtbar (GESETZ Kap. 10 — Verstecken war schon
   einmal falsch, s. site.js Kommentar); sie wechselt auf den Detailseiten nur
   die Ecke: solange die Anfrage-Spalte rechts sticky steht (ab 1101 px, s.
   .det-aside oben), steht die Pille unten LINKS. Dort liegt Fliesstext, kein
   Bedienelement — Ueberlappung mit jedem Knopf ist damit rechnerisch 0.
   Diese Datei wird ausschliesslich von fahrzeuge/<slug>.html geladen, die
   Regel gilt also nur fuer Detailseiten. */
@media (min-width: 1101px) {
  .ruf-fix {
    left: 1.1rem;
    right: auto;
  }
  /* Die reservierte Luft im Seitenfuss wandert mit: site.css raeumt den
     RECHTEN Eckbereich frei (.fuss__unten padding-right) — auf den
     Detailseiten muss der LINKE frei bleiben, sonst deckt die Pille die
     Copyright-Zeile zu. */
  .fuss__unten {
    padding-left: 11rem;
    padding-right: 0;
  }
}

/* 16.10.2026 — Hamada (Nigari): „so sollen die immer aufgelistet werden!“ — die Ausstattungsliste SELBST
   fließt in 2 Spalten, auch bei EINER Gruppe aus der Börse und auch auf dem Handy (Gate-Regel 65). */
.det-aus__gruppe ul {
  columns: 2;
  column-gap: clamp(1.25rem, 4vw, 3rem);
}
.det-aus__gruppe li {
  break-inside: avoid;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
@media (max-width: 560px) {
  .det-aus__gruppe li {
    font-size: 0.88rem;
    line-height: 1.35;
  }
}

/* Story-Galerie (Hamada 16.10.2026: „MACH MIR G ABER ICH WILL DAS DAS BILD GROSS IST UND DARUNTER DIE ANGABEN“, GESETZ Kap. 10).
   Bild über die volle Breite (PC 16:9, Handy 4:3), läuft wie eine Story; Kopf mit Preis + Knöpfen steht DARUNTER. */
.gal--story {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.9rem);
}
.gal--story .gal__buehne {
  aspect-ratio: 16/9;
  max-height: min(66vh, 52rem);
  background: var(--nacht-fest, #0b0d0c);
  border-radius: var(--bild-radius);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.gal--story .gal__buehne::after {
  display: none;
}
.gal--story .gal__buehne img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: inherit;
  -webkit-user-drag: none;
}
.gal--story .gal__buehne img.ist-an {
  opacity: 1;
}
.gal__balken {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 12px 12px 26px;
  background: linear-gradient(rgb(0 0 0/0.4), transparent);
  pointer-events: none;
}
.gal__balken span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgb(18 21 19/0.38);
  box-shadow:
    0 1px 3px rgb(0 0 0/0.28),
    inset 0 0 0 1px rgb(255 255 255/0.35);
  overflow: hidden;
}
.gal__balken i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.gal__leiste {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 2.75rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgb(0 0 0/0.62));
  color: #fff;
  pointer-events: none;
}
.gal--story .gal__leiste .gal__zaehler {
  position: static;
  padding: 0 0 0.55rem;
  background: none;
  color: #fff;
  font-size: 0.9rem;
}
.gal__leiste-knoepfe {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}
.gal__pause,
.gal__gross {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1rem;
  border: 0;
  border-radius: 2px;
  background: rgb(255 255 255/0.2);
  color: #fff;
  font: 600 0.86rem/1 var(--f-text, system-ui);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.gal__pause:hover,
.gal__gross:hover {
  background: rgb(255 255 255/0.34);
}
.gal__pause:focus-visible,
.gal__gross:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.gal--story .gal__buehne .gal__pfeil {
  opacity: 0;
  pointer-events: none;
}
.gal--story .gal__buehne .gal__pfeil:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.gal--story ~ .det-kopf {
  align-items: start;
  padding-bottom: 1.4rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--linie);
}
.gal--story ~ .det-kopf .det-marke {
  margin-bottom: 0.4rem;
}
.det-envkv-kurz {
  margin: 0.7rem 0 0;
  color: var(--text-leise);
  font-size: 0.86rem;
}
@media (max-width: 720px) {
  .gal--story .gal__buehne {
    aspect-ratio: 4/3;
    max-height: none;
  }
  .gal__leiste {
    padding: 2.25rem 0.7rem 0.7rem;
  }
  .gal__pause,
  .gal__gross {
    min-height: 40px;
    padding: 0 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gal--story .gal__buehne img {
    transition: none;
  }
}
/* Story-Galerie: kein Leerraum über dem Bild, Exposé am Handy direkt unter dem Preis (sichtbar ohne Scrollen) */
.det:has([data-gal-voll]) {
  padding-top: calc(var(--leiste-h, 80px) * 0.25 + 0.5rem);
}
@media (max-width: 1100px) {
  .gal--story ~ .det-kopf > div:first-child {
    display: contents;
  }
  .gal--story ~ .det-kopf {
    gap: 0;
  }
  .gal--story ~ .det-kopf > div:first-child > * {
    order: 1;
  }
  .gal--story ~ .det-kopf > div:last-child {
    order: 2;
    margin-top: 1rem;
  }
  .gal--story ~ .det-kopf > div:first-child > .det-chips,
  .gal--story ~ .det-kopf > div:first-child > .det-kopf__eck,
  .gal--story ~ .det-kopf > div:first-child > .det-envkv-kurz,
  .gal--story ~ .det-kopf > div:first-child > [class*="hinweis"],
  .gal--story ~ .det-kopf > div:first-child > [class*="Hinweis"] {
    order: 3;
  }
}
@media (max-width: 720px) {
  .gal__pause span,
  .gal__gross span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .gal__pause,
  .gal__gross {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------
   (1) Painscheri-Ergänzungen (bau-brief §5 „Das Plus“, §2 Akzent-Regeln)
   --------------------------------------------------------------------- */
/* Kapitelmarke = das Plus (12 × 12 px, Strich 2 px, Messing) statt Nummer — max. 6 je Seite */
.kapitel__plus {
  flex: none;
  width: 12px;
  height: 12px;
  align-self: center;
  background:
    linear-gradient(var(--akzent), var(--akzent)) center/100% 2px no-repeat,
    linear-gradient(var(--akzent), var(--akzent)) center/2px 100% no-repeat;
}
.kapitel .h-3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.det-kopf .h-2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(1.7rem, 1rem + 2vw, 2.6rem);
}
.det-kopf__preis b {
  font-weight: 700;
  font-variant-numeric: proportional-nums;
  color: var(--text);
}
.det-kopf__zusatz {
  margin: 0.45rem 0 0;
  color: var(--text-leise);
  font-size: 0.88rem;
}
.det-aus__gruppe li::before {
  width: 0.3rem;
  height: 0.3rem;
  background: var(--leit);
}
.det-hl li {
  border-left-color: var(--leit);
}
.det-envkv ul {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}
.det-envkv li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--linie);
}
.det-envkv li strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}
.det-envkv p {
  margin: 0.7rem 0 0;
}
.det-envkv--fehlt li strong {
  color: var(--text-leise);
  font-weight: 500;
}
.det-aside__wa {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  color: var(--leit-text);
  font-size: 0.9rem;
  font-weight: 600;
}
.det-aside .fakten-wert {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.form__meldung[data-art="ok"] {
  color: var(--ok);
}
.form__meldung[data-art="fehler"] {
  color: var(--error);
}
/* Story-Galerie: Navy-Nacht statt Schwarz */
.gal--story .gal__buehne {
  background: var(--nacht-fest);
}
/* Übernommen aus Autohaus 22 (Gate-Fixes 23.10.2026): Bildlagen der Story-Galerie liegen übereinander (galerie.js legt
   eine Lage je Bild an) — ohne diese Regel stapeln sie sich untereinander und die Bühne wird bildschirmhoch. */
.gal--story .gal__buehne img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  margin: 0;
}
.det-haupt,
.det-aside {
  min-width: 0;
}
@media (max-width: 1100px) {
  .det-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}
.det-daten__zeile dd {
  overflow-wrap: anywhere;
}
.gal--story .gal__buehne {
  width: 100%;
  max-height: min(60vh, 50rem);
}
@media (max-width: 720px) {
  .gal--story .gal__buehne {
    max-height: none;
  }
}

/* ---------------------------------------------------------------------
   (2) Grundbausteine, bis site.css (Schritt 6) da ist — absichtlich in einer Ebene
   --------------------------------------------------------------------- */
@layer fzg-basis {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  html {
    -webkit-text-size-adjust: 100%;
  }
  body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font-family: var(--font-text);
    font-size: var(--t-body, 1rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  a {
    color: var(--leit-text);
  }
  .bahn {
    max-width: var(--max, 74rem);
    margin-inline: auto;
    padding-inline: var(--rand-leiste, 1.25rem);
  }
  .h-2,
  .h-3 {
    font-family: var(--font-display);
    color: var(--text);
    margin: 0;
  }
  .h-3 {
    font-size: var(--t-h3, 1.4rem);
    line-height: 1.15;
  }
  .eyebrow {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-leise);
  }
  .sr-only,
  .nurSR {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .sr-only:focus {
    position: fixed !important;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    z-index: 200;
    background: var(--grund);
    padding: 0.6rem 1rem;
    outline: 2px solid var(--leit);
  }
  .knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0 1.15rem;
    border: 1px solid var(--leit);
    border-radius: 2px;
    background: var(--leit);
    color: var(--auf-leit);
    font: 600 0.95rem/1.1 var(--font-text);
    text-decoration: none;
    cursor: pointer;
    transition:
      background var(--t-ui, 0.2s) var(--ease),
      color var(--t-ui, 0.2s) var(--ease);
  }
  .knopf:hover {
    background: color-mix(in oklch, var(--leit) 86%, var(--grund));
  }
  .knopf--rand {
    background: transparent;
    color: var(--leit-text);
    border-color: var(--linie);
  }
  .knopf--rand:hover {
    background: var(--flaeche);
    border-color: var(--leit);
  }
  .knopf--akzent {
    background: var(--akzent);
    border-color: var(--akzent);
    color: var(--auf-akzent);
  }
  .knopf--akzent:hover {
    background: color-mix(in oklch, var(--akzent) 85%, var(--schatten));
  }
  .knopf--voll {
    width: 100%;
  }
  .knopf:focus-visible,
  .merk:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid var(--leit-text);
    outline-offset: 2px;
  }
  .merk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--linie);
    background: var(--grund);
    color: var(--text);
    cursor: pointer;
  }
  .merk svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }
  .merk[aria-pressed="true"] svg {
    fill: currentColor;
  }
  .anfrage-formular {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    padding: clamp(1.1rem, 2vw, 1.6rem);
  }
  .form {
    display: grid;
    gap: 0.85rem;
  }
  .feld {
    display: grid;
    gap: 0.3rem;
  }
  .feld label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
  }
  .feld input,
  .feld textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--grund);
    border: 1px solid var(--linie);
    border-radius: 2px;
    padding: 0.7rem 0.8rem;
  }
  .feld textarea {
    resize: vertical;
    min-height: 6rem;
  }
  .einwilligung {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-leise);
    line-height: 1.45;
  }
  .einwilligung input {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: var(--leit);
  }
  .form__meldung {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .form__zusage {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-leise);
  }
  /* Platzhalter-Kopf und -Fuß (_arbeit/partials) — Schritt 6 ersetzt beide */
  .fzg-leiste {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--grund);
    border-bottom: 1px solid var(--linie);
  }
  .fzg-leiste__innen {
    max-width: var(--max, 74rem);
    margin-inline: auto;
    padding: 0.5rem var(--rand-leiste, 1.25rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .fzg-leiste__logo img {
    display: block;
    height: 60px;
    width: auto;
  }
  [data-theme="dark"] .fzg-leiste__logo img {
    filter: brightness(0) invert(0.93);
  }
  .fzg-leiste__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
  }
  .fzg-leiste__liste a {
    color: var(--text);
    text-decoration: none;
  }
  .fzg-leiste__liste a[aria-current="page"] {
    color: var(--leit-text);
    text-decoration: underline;
    text-underline-offset: 0.35em;
  }
  .fzg-leiste__kontakt {
    padding: 0.45rem 0.9rem;
    background: var(--akzent);
    color: var(--auf-akzent) !important;
  }
  .fzg-fuss {
    margin-top: 4rem;
    background: var(--dunkel-fest);
    color: var(--meta-fest);
    font-size: 0.88rem;
  }
  .fzg-fuss__innen {
    max-width: var(--max, 74rem);
    margin-inline: auto;
    padding: 2rem var(--rand-leiste, 1.25rem) 5.5rem;
  }
  .fzg-fuss p {
    margin: 0.3rem 0;
  }
  .fzg-fuss b,
  .fzg-fuss a {
    color: var(--kalk-fest);
  }
  .fzg-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    gap: 0.5rem;
  }
  .fzg-fab__knopf {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 1rem;
    background: var(--leit);
    color: var(--auf-leit);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px color-mix(in oklch, var(--schatten) 30%, transparent);
  }
  @media (max-width: 900px) {
    .fzg-leiste__innen {
      flex-wrap: wrap;
      gap: 0.4rem;
    }
    .fzg-leiste__logo img {
      height: 48px;
    }
    .fzg-leiste__liste {
      font-size: 0.85rem;
      gap: 0.2rem 0.9rem;
    }
  }
  @media (max-width: 560px) {
    .fzg-leiste {
      position: static;
    }
    /* Platzhalter-Knöpfe am Handy als schmale Leiste ganz unten (verdecken die Knopfleiste nicht) */
    .fzg-fab {
      left: 0;
      right: 0;
      bottom: 0;
      gap: 0;
    }
    .fzg-fab__knopf {
      flex: 1;
      justify-content: center;
      min-height: 44px;
      box-shadow: none;
      border-top: 1px solid var(--linie-fest);
    }
    .fzg-fuss__innen {
      padding-bottom: 4rem;
    }
  }
}

/* Schritt 6 (25.10.2026): Pause-/Vollbild-Knopf der Story-Galerie auf hellen Fotos 3,4:1 (Gate 38b WARN) → dunklerer Glasgrund */
.gal__pause,
.gal__gross {
  background: rgb(10 12 24 / 0.5);
}
@media (hover: hover) and (pointer: fine) {
  .gal__pause:hover,
  .gal__gross:hover {
    background: rgb(10 12 24 / 0.68);
  }
}
/* Fix s7: zwischen 1101 und 1359 px steht der Ruf-Reiter rechts an der Kante (site.css §23) — nicht links über dem Text */
@media (min-width: 1101px) and (max-width: 1359.98px) {
  .ruf-fix {
    left: auto;
    right: 0;
  }
}
