/* seiten.css — Unterseiten fahrzeuge/werkstatt/vermietung
   Erweitert app-a.css (nicht ersetzt). Gleiche Tokens, gleiche Grammatik. */

/* ============ Bestandsliste (fahrzeuge.html) ============ */
.bestand {
  margin: 4rem 0 13rem;
  padding: 0 7vw;
  scroll-margin-top: 5rem;
}
.bestand__kopf {
  max-width: 62ch;
  margin-bottom: 3rem;
}
.bestand__kopf h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  color: var(--chrom);
  margin: 0.8rem 0 1rem;
}
.bestand__kopf p {
  color: var(--stahl);
  max-width: 58ch;
}

/* Fremd-Blick #1: Fahrzeuge ohne Foto bekommen NIE einen Hero-/Breit-Slot. Die alte Regel
   setzte hier nur Hintergrund/Ausrichtung, die geerbte Höhe aus .fbahn--gross (88vh) bzw.
   .fbahn--klein (62vh) blieb aktiv -> ein leerer ~750px-Kasten. Fahrzeuge ohne Foto laufen
   jetzt als kompakte Listenzeile in der dichten Reihe (.fbahn--zeile), niemals im
   Hero-/Paar-Slot -> Höhe wird hier hart auf auto zurückgesetzt (falls die Klasse doch
   irgendwo mit --gross/--klein kombiniert würde). */
.fbahn--foto-folgt {
  height: auto;
}
.fbahn--zeile {
  grid-column: 1 / -1;
  height: auto;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.6rem;
  padding: 1.1rem clamp(1.2rem, 3vw, 2rem);
  background: var(--nacht-2);
  border: 1px solid var(--nacht-3);
}
.fbahn--zeile .fbahn__foto-hinweis {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stahl);
}
.fbahn--zeile .fbahn__foto-hinweis .balken {
  width: 22px;
  background: var(--stahl);
}
.fbahn--zeile .fbahn__zeile-fahrzeug {
  flex: 1 1 260px;
  min-width: 0;
}
.fbahn--zeile .fbahn__titel {
  font-size: 1.05rem;
}
.fbahn--zeile .fbahn__zusatz {
  white-space: normal;
}
.fbahn--zeile .fbahn__preis {
  flex: 0 0 auto;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}
.fbahn--zeile .fbahn__anfrage {
  flex: 0 0 auto;
  color: var(--ford-hell);
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .fbahn--zeile {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.7rem;
  }
  /* flex-basis wirkt in Spalten-Richtung auf die Höhe, nicht die Breite — die
     260px aus der Zeilen-Variante würden hier eine Zwangshöhe erzeugen. */
  .fbahn--zeile .fbahn__zeile-fahrzeug {
    flex: 0 0 auto;
  }
  .fbahn--zeile .fbahn__preis,
  .fbahn--zeile .fbahn__anfrage {
    align-self: flex-start;
  }
}

/* Mittlere Paar-Reihe wiederverwendet .fbahn-paar aus app-a.css */

/* Dichte Reihe — 3 Spalten, Waisen-Regel §0e-140 */
.bestand__dicht {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.bestand__dicht .fbahn {
  height: 46vh;
  margin-bottom: 0;
}
.bestand__dicht .fbahn__info {
  padding: 1.4rem clamp(1rem, 2vw, 1.6rem);
}
.bestand__dicht .fbahn__titel {
  font-size: 1.1rem;
}
/* Waise: letzte Karte in Reihe 3n+1 -> volle Breite, liegend */
.bestand__dicht .fbahn:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
  height: 40vh;
}
/* Kompakte "Foto folgt"-Zeilen (Fremd-Blick #1) leben selbst in .bestand__dicht — Spezifität
   der Grid-Regeln oben (.bestand__dicht .fbahn) sonst höher als .fbahn--zeile allein. */
.bestand__dicht .fbahn--zeile {
  height: auto;
  min-height: 0;
}
.bestand__dicht .fbahn--zeile .fbahn__info {
  padding: 0;
}
.bestand__dicht .fbahn--zeile .fbahn__titel {
  font-size: 1.05rem;
}
@media (max-width: 900px) {
  .bestand__dicht {
    grid-template-columns: 1fr 1fr;
  }
  .bestand__dicht .fbahn:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .bestand__dicht {
    grid-template-columns: 1fr;
  }
  .bestand__dicht .fbahn {
    height: 52vh;
  }
  .bestand__dicht .fbahn--zeile {
    height: auto;
  }
}

.bestand__hinweis {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--nacht-3);
  color: var(--stahl);
  font-size: 0.92rem;
  max-width: 62ch;
}
.bestand__hinweis a {
  color: var(--ford-hell);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ ⭐ Das Preisschild (werkstatt.html) ============ */
.preisschild {
  height: 88vh;
}
.preisschild__feld {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-top: auto;
  padding: 0 7vw 4rem;
  max-width: 720px;
}
.preisschild__feld h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  color: var(--chrom);
  margin-bottom: 1.6rem;
}
.preisschild__zeilen {
  display: grid;
  gap: 0.15rem;
}
.preisschild__zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(232, 237, 243, 0.14);
  opacity: 0;
  transform: translateY(10px);
  filter: brightness(0.32);
  transition:
    opacity 0.6s var(--ease-zuendung),
    transform 0.6s var(--ease-zuendung),
    filter 0.6s var(--ease-zuendung);
}
.preisschild__zeile.ist-sichtbar {
  opacity: 1;
  transform: translateY(0);
  filter: brightness(1);
}
.preisschild__zeile:last-child {
  border-bottom: 0;
}
.preisschild__label {
  color: var(--chrom);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.preisschild__wert {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  color: var(--natrium);
  font-feature-settings: "tnum";
  white-space: nowrap;
  line-height: 1;
}
.preisschild__inklusive {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--stahl);
}
@media (prefers-reduced-motion: reduce) {
  .preisschild__zeile {
    transition: opacity 0.3s ease;
    transform: none !important;
    filter: none !important;
    opacity: 1;
  }
}

/* ============ Leistungsliste (werkstatt.html) ============ */
.leistungen {
  height: 82vh;
}
/* Auf schmalen Viewports ist der Inhalt höher als 82vh — Bühne wächst mit,
   Bild deckt dank inset:0/height:100% trotzdem vollständig ab (kein Clip). */
@media (max-width: 640px) {
  .leistungen {
    height: auto;
    min-height: 82vh;
    padding-bottom: 2rem;
  }
}
.leistungen__feld {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-top: auto;
  padding: 0 7vw 3.5rem;
  max-width: 720px;
}
.leistungen__feld h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  color: var(--chrom);
  margin-bottom: 1.4rem;
}
.leistungen__gruppe {
  margin-bottom: 1.6rem;
}
.leistungen__gruppe:last-child {
  margin-bottom: 0;
}
.leistungen__gruppe-titel {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--natrium);
  margin-bottom: 0.7rem;
}
.leistungen__zeile {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.45rem 0;
  color: var(--chrom);
  font-size: 0.98rem;
}
.leistungen__zeile .balken {
  width: 20px;
  height: 3px;
  flex: none;
  transform: translateY(-3px);
}

/* ============ Preistafeln (vermietung.html) — nutzt .preisliste-Muster ============ */
.miettafel {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-top: auto;
  padding: 0 7vw 4rem;
  max-width: 680px;
}
.miettafel h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  color: var(--chrom);
  margin-bottom: 1.2rem;
}
.miettafel__text {
  color: var(--stahl);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}
.miettarif {
  display: grid;
  gap: 0.1rem;
}
.miettarif__zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(232, 237, 243, 0.14);
}
.miettarif__zeile:last-child {
  border-bottom: 0;
}
.miettarif__label {
  color: var(--chrom);
  font-size: 0.98rem;
}
.miettarif__label span {
  display: block;
  color: var(--stahl);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}
.miettarif__wert {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  color: var(--natrium);
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.miettafel__fuss {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--stahl);
  max-width: 52ch;
}
.miettafel__cta {
  margin-top: 1.6rem;
}

/* ============ Mietbedingungen (vermietung.html, textlastige Abschluss-Insel) ============ */
.bedingungen {
  height: 74vh;
}
.bedingungen__feld {
  position: relative;
  z-index: 2;
  max-width: 46ch;
  margin-top: auto;
  padding: 0 7vw 3.5rem;
}
.bedingungen__feld h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--chrom);
  margin-bottom: 1.2rem;
}
.bedingungen__liste {
  display: grid;
  gap: 0.55rem;
  color: var(--stahl);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}
.bedingungen__liste strong {
  color: var(--chrom);
}

/* Ford-Blau-Grading für türkis-stichige Altbilder (design.md §2.1) */
.buehne__bild--gegradet {
  filter: contrast(1.06) saturate(0.85) brightness(0.9) hue-rotate(6deg);
}

/* ============ Unterseiten-Manifest (wiederverwendet .buehne--a2-Höhe) ============ */
.buehne--u2 {
  height: 74vh;
  align-items: flex-end;
}
.buehne--u2 .buehne__insel .manifest__zusatz {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.manifest__zusatz div strong {
  display: block;
  color: var(--chrom);
  font-size: 0.98rem;
}
.manifest__zusatz div span {
  color: var(--stahl);
  font-size: 0.82rem;
}



/* Härtetest 15.08.: Landet man exakt am Szenen-Anfang, stand die H2 halb hinter der
   festen Kopfleiste. */
.durchfahrt__head,
.bestand__kopf,
section[id] > .buehne__insel {
  scroll-margin-top: 6.5rem;
}

/* Fremd-Blick-Nachlauf M2 (15.08., §0e-140): Die erste Waisen-Regel
   (.fbahn:last-child:nth-child(3n+1)) zählte die beiden vollbreiten
   "Fotos auf Anfrage"-Zeilen mit und traf Kind 7 — die Waise war Kind 6.
   Ergebnis: eine einzelne Karte mit ~940 × 410 px Leere daneben.
   Robuster Weg ohne Zählakrobatik: 6-Spalten-Basis. Normale Karten belegen
   2 Spalten (= 3 pro Reihe), vollbreite Zeilen 6, und die letzten beiden
   Karten teilen sich die Schlussreihe zu je 3 — es kann keine Waise mehr geben. */
.bestand__dicht {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bestand__dicht > .fbahn {
  grid-column: span 2;
}
.bestand__dicht > .fbahn--zeile {
  grid-column: 1 / -1;
}
.bestand__dicht > .fbahn:not(.fbahn--zeile):nth-last-of-type(2),
.bestand__dicht > .fbahn:not(.fbahn--zeile):last-of-type {
  grid-column: span 3;
}
@media (max-width: 900px) {
  .bestand__dicht {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bestand__dicht > .fbahn,
  .bestand__dicht > .fbahn:not(.fbahn--zeile):nth-last-of-type(2),
  .bestand__dicht > .fbahn:not(.fbahn--zeile):last-of-type {
    grid-column: span 1;
  }
  .bestand__dicht > .fbahn--zeile {
    grid-column: 1 / -1;
  }
}
@media (max-width: 599px) {
  .bestand__dicht {
    grid-template-columns: 1fr;
  }
  .bestand__dicht > .fbahn,
  .bestand__dicht > .fbahn--zeile,
  .bestand__dicht > .fbahn:not(.fbahn--zeile):nth-last-of-type(2),
  .bestand__dicht > .fbahn:not(.fbahn--zeile):last-of-type {
    grid-column: 1 / -1;
  }
}

/* Fremd-Blick-Nachlauf M4 (15.08.): Der Eyebrow "ZWEI STANDORTE" saß nur 23 px
   unter der Sektionsoberkante (Hausmaß der anderen Bühnen: 100–200 px) und lag
   genau im Sonnenfleck. Gilt für beide a7-Bühnen (werkstatt + ueber-uns). */
.buehne--a7 .buehne__insel {
  padding-top: clamp(4rem, 9vh, 8rem);
}
