/* ==========================================================================
   Fahrzeugbestand – Ausgabe

   Vorbild ist die Fahrzeug-Demo von Uncode. Deren Bausteine kommen, wo es
   geht, aus dem Theme selbst und werden hier nur zusammengesetzt:

     .data-fields / .data-field-icon--rounded   Eckdaten mit Icon-Kacheln
     .text-accent-color                         Preis in der Akzentfarbe
     .h3 / .h4 / .font-weight-700               Schriftgroessen des Themes
     .separator-extra                           duenne Trennlinie
     .btn .btn-lg .btn-accent .btn-square       Schaltflaeche wie im Rest der Seite
     .style-color-pgsgrnd-bg                    Grundflaeche der Palette

   Grundsatz wie im Child-Theme: KEINE font-family. Schriftarten kommen
   ausschliesslich aus Uncode. Hier stehen nur Groesse, Abstaende und Linien.
   ========================================================================== */

.tfz-vehicles,
.tfz-single {
  --tfz-rule:   var(--pgs-rule, #C6CDBC);
  --tfz-accent: var(--pgs-moss, #435331);
  --tfz-grnd:   var(--pgs-grnd, #E7EAE2);
  --tfz-tint:   rgba(67, 83, 49, .07);
  --tfz-radius: 8px;
  /* Abstand des klebenden Kontaktkastens von oben: er muss unter dem
     Sticky-Menue des Themes stehen bleiben. Im Child-Theme anpassbar. */
  --tfz-sticky-top: 140px;
  --tfz-ease:   cubic-bezier(.22, .61, .36, 1);

  color: inherit;
}

.tfz-vehicles *,
.tfz-vehicles *::before,
.tfz-vehicles *::after,
.tfz-single *,
.tfz-single *::before,
.tfz-single *::after { box-sizing: border-box; }

.tfz-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Die Icons sitzen auf der Grundlinie und tragen die Farbe des Textes */
.tfz-icon { display: block; }

/* --------------------------------------------------------------- Kopfzeile */

.tfz-vehicles__head { margin-bottom: 30px; }

.tfz-vehicles__eyebrow {
  font-size: .78em;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .62;
  margin: 0 0 .9em;
}

/* Die Ueberschrift bleibt bewusst ungestylt – sie erbt h2 aus dem Theme */
.tfz-vehicles__heading { margin: 0; }

/* ------------------------------------------------------------ Markenfilter */

.tfz-vehicles .tfz-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0 34px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--tfz-rule);
}

.tfz-vehicles .tfz-filter__item {
  color: inherit;
  text-decoration: none;
  font-size: .82em;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: opacity .35s var(--tfz-ease), border-color .35s var(--tfz-ease);
}

.tfz-vehicles .tfz-filter__item:hover,
.tfz-vehicles .tfz-filter__item:focus-visible { opacity: .9; }

.tfz-vehicles .tfz-filter__item.is-active {
  opacity: 1;
  border-bottom-color: currentColor;
}

.tfz-filter__count {
  font-size: .82em;
  opacity: .6;
  margin-left: .35em;
}

/* ================================================================== Karten */

/* Uncode setzt Listen im Textkontext auf disc mit Einzug – hier bewusst
   mit hoeherer Spezifitaet zurueckgenommen. */
.tfz-vehicles .tfz-vehicles__list,
.tfz-single .tfz-vehicles__list {
  list-style: none;
  margin: 0;
  padding: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(var(--tfz-cols, 3), minmax(0, 1fr));
  gap: 48px 34px;
}

.tfz-single .tfz-vehicles__list--drei { --tfz-cols: 3; }

.tfz-vehicles .tfz-vehicles__list > li::before,
.tfz-vehicles .tfz-vehicles__list > li::marker,
.tfz-single .tfz-vehicles__list > li::marker { content: none; }

.tfz-card { position: relative; margin: 0; padding: 0; }
.tfz-card[hidden] { display: none; }

.tfz-card__visual { position: relative; }

/* Abgerundetes Bild im Seitenverhaeltnis 3:2 – wie die Karten der Demo */
.tfz-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--tfz-radius);
  background: var(--tfz-grnd);
  aspect-ratio: 3 / 2;
}

.tfz-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--tfz-ease);
}

.tfz-card:hover .tfz-card__media img { transform: scale(1.04); }

.tfz-card__text { padding-top: 20px; }

.tfz-card__brand {
  margin: 0 0 .4em;
  font-size: .72em;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .5;
}

/* Titel und Preis stehen in einer Zeile, wie in der Demo */
.tfz-card__title {
  display: inline;
  margin: 0;
  line-height: 1.25;
}

.tfz-vehicles .tfz-card__title a,
.tfz-single .tfz-card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--tfz-ease);
}

.tfz-vehicles .tfz-card:hover .tfz-card__title a,
.tfz-vehicles .tfz-card__title a:focus-visible { background-size: 100% 1px; }

.tfz-card__price {
  margin-left: .5em;
  white-space: nowrap;
}


.tfz-card__excerpt { margin-top: .7em; }

.tfz-card__excerpt p {
  margin: 0;
  font-size: .92em;
  opacity: .8;
}

.tfz-single .tfz-card__rule,
.tfz-vehicles .tfz-card__rule {
  margin: 18px 0 14px;
  border: 0;
  border-top: 1px solid var(--tfz-rule);
}

/* Eckdaten der Karte: Icon und Wert, ohne Beschriftung */
.tfz-card__fields {
  font-size: .82em;
  opacity: .72;
}

.tfz-vehicles .data-fields--flex,
.tfz-single .data-fields--flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.tfz-card__fields .data-field-icon { opacity: .7; }

/* Kennzeichnung am Bild */
.tfz-flag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: .68em;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 4px;
  background: var(--tfz-accent);
  color: #fff;
}

.tfz-flag--hell {
  background: rgba(255, 255, 255, .9);
  color: #303133;
}

.tfz-card__media--leer {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--tfz-radius);
  background: var(--tfz-grnd);
}

/* --------------------------------------------------------- Liste (Zeilen) */

.tfz-vehicles--liste .tfz-vehicles__list {
  display: block;
  padding-top: 8px;
}

.tfz-vehicles--liste .tfz-card {
  display: flex;
  align-items: flex-start;
  gap: 12px 34px;
  padding: 26px 0;
  border-bottom: 1px solid var(--tfz-rule);
}

.tfz-vehicles--liste .tfz-card:first-child { border-top: 1px solid var(--tfz-rule); }

.tfz-vehicles--liste .tfz-card__visual { flex: 0 0 clamp(160px, 20vw, 260px); }
.tfz-vehicles--liste .tfz-card__text { flex: 1 1 20rem; padding-top: 0; }

/* ------------------------------------------------------ Gruppen je Marke */

.tfz-group + .tfz-group { margin-top: 60px; }

.tfz-group__title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tfz-rule);
  font-size: 1.05em;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tfz-group__count {
  font-size: .74em;
  opacity: .5;
  margin-left: .5em;
}

/* --------------------------------------------------------- Leerer Zustand */

.tfz-empty,
.tfz-vehicles__none {
  margin: 0;
  font-size: .82em;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .62;
  padding: 26px 0;
  border-top: 1px solid var(--tfz-rule);
}

/* ============================================================ Detailseite */

/* ------------------------------------------------------------ Bildbuehne */

/* Der Rahmen traegt die Absolutpositionen, damit Schaltflaeche und Zaehlwerk
   nicht mit der Schiebebuehne wegscrollen. */
.tfz-hero-wrap {
  position: relative;
  margin: 0 0 44px;
}

/* Ein grosses Bild links, zwei kleine rechts – der Aufbau der Demo */
.tfz-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  aspect-ratio: 16 / 9;
}

/* Im Markup stehen alle Bilder; am Schreibtisch zeigt das Raster die ersten
   drei. Die verdeckten haben keine Box und werden deshalb auch nicht geladen. */
.tfz-hero__cell:nth-child(n + 4) { display: none; }

/* Die Schaltflaeche klappt die uebrigen als gleichmaessiges Raster auf. */
.tfz-hero.is-open {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-template-rows: auto;
  aspect-ratio: auto;
}

.tfz-hero.is-open .tfz-hero__cell {
  display: block;
  aspect-ratio: 3 / 2;
}

.tfz-hero.is-open .tfz-hero__cell--gross { grid-row: auto; }

.tfz-hero__cell {
  display: block;
  overflow: hidden;
  border-radius: var(--tfz-radius);
  background: var(--tfz-grnd);
}

.tfz-hero__cell--gross { grid-row: span 2; }

.tfz-hero__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--tfz-ease);
}

.tfz-hero__cell:hover img { transform: scale(1.03); }

/* Bei ein oder zwei Bildern bleibt keine Luecke stehen */
.tfz-hero:has(.tfz-hero__fill) { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.tfz-hero__fill { display: none; }

.tfz-single .tfz-hero__more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  color: #303133;
  font-size: .78em;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s var(--tfz-ease);
}

.tfz-single .tfz-hero__more:hover { background: #fff; }

/* Das Zaehlwerk gehoert zur Schiebebuehne und erscheint erst auf dem Telefon */
.tfz-hero__counter {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 18, 14, .7);
  color: #fff;
  font-size: .74em;
  letter-spacing: .08em;
  pointer-events: none;
}

/* ---------------------------------------------------------------- Spalten */

.tfz-single__columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 56px;
  /* Bewusst ohne align-items: start. Die Spalten muessen sich auf die volle
     Zeilenhoehe strecken, sonst ist die rechte Spalte genau so hoch wie der
     Kontaktkasten – und ein sticky-Element ohne Weg bleibt einfach stehen. */
}

/* Raster- und Flexkinder haben von Haus aus eine Mindestbreite in Hoehe ihres
   min-content. Das hier nimmt sie zurueck, damit breiter Inhalt im Kasten
   scrollt, statt das Layout auseinanderzudruecken. */
.tfz-single__main,
.tfz-single__aside,
.tfz-card,
.tfz-card__text,
.tfz-facts .data-field { min-width: 0; }

/* ---------------------------------------------------------------- Kopf */

.tfz-single__brand {
  margin: 0 0 .5em;
  font-size: .76em;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .5;
}

/* Titel und Preis in einer Zeile, der Preis in der Akzentfarbe */
.tfz-single__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}

.tfz-single__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -.01em;
}

.tfz-single__price { white-space: nowrap; }

.tfz-single__sub {
  margin: .8em 0 0;
  font-size: .82em;
  opacity: .58;
}

.tfz-single__badges { margin: 1em 0 0; }

.tfz-badge {
  display: inline-block;
  font-size: .68em;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: .7;
  margin-right: 6px;
}

.tfz-badge--hinweis {
  background: var(--tfz-accent);
  border-color: var(--tfz-accent);
  color: #fff;
  opacity: 1;
}

.tfz-single .tfz-single__rule {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid var(--tfz-rule);
}

/* ------------------------------------------------------------------ Text */

.tfz-lead {
  margin: 0 0 1.2em;
  font-size: 1.16em;
  line-height: 1.55;
}

.tfz-text p { margin: 0 0 1em; }
.tfz-text p:last-child { margin-bottom: 0; }

/* ------------------------------------------- Eckdaten mit Icon-Kacheln */

.tfz-facts { margin: 40px 0 8px; }

/* Die Kachel bekommt hier ihre Flaeche – im Theme ist nur die Form gesetzt */
.tfz-single .data-field-icon--rounded {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tfz-tint);
  color: var(--tfz-accent);
}

.tfz-single .data-field-label {
  opacity: .55;
  font-size: .82em;
}

/* Uncode bringt fuer zwei Spalten auf dem Telefon repeat(21, 1fr) mit –
   ein Tippfehler im Theme. Hier gerade gerueckt. */
@media (max-width: 569px) {
  .tfz-single .data-fields.data-fields--columns-mobile-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------- Reiter / Aufklapp-Menue */

/* Ein Markup, zwei Darstellungen. Auf dem Telefon steht jede Ueberschrift
   ueber ihrem Inhalt – ein Aufklapp-Menue, bei dem keine Ueberschrift
   verborgen ist. Ab 960 px loesen sich die Paare auf und alle Ueberschriften
   ruecken in eine Zeile: die Reiterzeile.

   Eine waagerecht schiebbare Reiterzeile waere auf dem Telefon die falsche
   Loesung – man sieht ihr nicht an, dass sie schiebbar ist, und der dritte
   Punkt bliebe unentdeckt. */

.tfz-tabs { margin-top: 46px; }

.tfz-tabs__head { margin: 0; }

.tfz-single .tfz-tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: .84em;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: opacity .3s var(--tfz-ease), border-color .3s var(--tfz-ease);
}

/* -------- bis 959 px: Aufklapp-Menue -------- */

.tfz-tabs__item { border-top: 1px solid var(--tfz-rule); }
.tfz-tabs__item:last-child { border-bottom: 1px solid var(--tfz-rule); }

.tfz-single .tfz-tabs__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 17px 0;
  text-align: left;
  opacity: .75;
}

.tfz-single .tfz-tabs__tab:hover,
.tfz-single .tfz-tabs__tab.is-active { opacity: 1; }

.tfz-tabs__tab .tfz-icon {
  flex: 0 0 auto;
  color: var(--tfz-accent);
  transition: transform .3s var(--tfz-ease);
}

.tfz-tabs__tab.is-active .tfz-icon { transform: rotate(180deg); }

.tfz-tabs__panel { padding: 2px 0 26px; }

/* -------- ab 960 px: Reiterzeile -------- */

@media (min-width: 960px) {
  /* Die Paare geben ihre Box auf; Ueberschriften und Inhalt liegen dann
     direkt im Flex-Kasten. Die Reihenfolge zieht alle Ueberschriften nach
     vorne, der Inhalt nimmt die volle Breite und faellt in die naechste
     Zeile. */
  .tfz-tabs {
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
    /* Kein Zeilenabstand: sonst kaeme die Markierung des aktiven Reiters
       nicht mehr auf der Haarlinie des Inhalts zu liegen. Die drei
       Beschriftungen sind zusammen rund 480 px breit und passen in die
       Spalte – unterhalb von 960 px greift ohnehin das Aufklapp-Menue. */
    row-gap: 0;
  }

  .tfz-tabs__item { display: contents; }

  .tfz-tabs__head {
    order: 1;
    /* Ein Pixel Ueberlappung, damit die Markierung des aktiven Reiters
       auf der Haarlinie sitzt statt darueber. */
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
  }

  .tfz-single .tfz-tabs__tab {
    display: block;
    width: auto;
    padding: 0 0 12px;
    border-bottom: 2px solid transparent;
    opacity: .5;
  }

  .tfz-single .tfz-tabs__tab:hover { opacity: .85; }

  .tfz-single .tfz-tabs__tab.is-active {
    opacity: 1;
    border-bottom-color: var(--tfz-accent);
  }

  .tfz-tabs__tab .tfz-icon { display: none; }

  .tfz-tabs__panel {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    border-top: 1px solid var(--tfz-rule);
    padding: 26px 0 0;
  }
}

/* Technische Daten */

.tfz-specs__group {
  margin: 1.8em 0 .5em;
  font-size: .76em;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
}

.tfz-tabs__panel > .tfz-specs__group:first-child { margin-top: 0; }

.tfz-specs {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tfz-rule);
}

.tfz-specs__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 11px 0;
  border-bottom: 1px solid var(--tfz-rule);
}

.tfz-specs dt {
  flex: 0 0 15rem;
  margin: 0;
  font-size: .86em;
  opacity: .55;
  padding-top: .1em;
}

.tfz-specs dd { flex: 1 1 12rem; margin: 0; }

/* Ausstattung – zwei Spalten mit Haken, wie die Serviceliste der Demo */

.tfz-single .tfz-features,
.tfz-single .tfz-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tfz-single .tfz-features {
  columns: 2;
  column-gap: 40px;
  font-size: .94em;
}

.tfz-single .tfz-features li,
.tfz-single .tfz-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 .55em;
  padding: 0;
  break-inside: avoid;
}

.tfz-single .tfz-features li::marker,
.tfz-single .tfz-checklist li::marker { content: none; }

.tfz-features .tfz-icon,
.tfz-checklist .tfz-icon {
  flex: 0 0 auto;
  margin-top: .28em;
  color: var(--tfz-accent);
}

/* ---------------------------------------------------------------- Kontakt */

/* Abgesetzte Flaeche statt Haarlinie – so loest es auch die Demo */
.tfz-contact {
  position: sticky;
  top: var(--tfz-sticky-top, 140px);
  padding: 34px 30px;
  border-radius: var(--tfz-radius);
}

.tfz-contact__title { margin: 0 0 .6em; font-size: 1.15em; }

.tfz-contact__intro {
  margin: 0 0 1.4em;
  font-size: .9em;
  opacity: .75;
}

.tfz-single .tfz-checklist { font-size: .9em; }

.tfz-contact hr.separator-extra {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid var(--tfz-rule);
}

.tfz-contact__name { margin: 0 0 .2em; font-weight: 600; }

.tfz-contact__phone { margin: 0 0 1.4em; font-size: 1.05em; }

.tfz-single .tfz-contact__phone a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--tfz-rule);
}

/* Die Schaltflaeche traegt die Theme-Klassen, hier nur die volle Breite */
.tfz-single .tfz-contact__btn {
  display: block;
  width: 100%;
  text-align: center;
}

.tfz-single .tfz-contact__extern {
  display: block;
  margin-top: 14px;
  font-size: .76em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: inherit;
  opacity: .55;
  text-decoration: none;
}

.tfz-single .tfz-contact__extern:hover { opacity: .85; }

/* ------------------------------------------------------ Weitere Fahrzeuge */

.tfz-related {
  margin-top: 76px;
  padding-top: 34px;
  border-top: 1px solid var(--tfz-rule);
}

.tfz-related__title {
  margin: 0;
  font-size: .84em;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .6;
}

/* --------------------------------------------- Der Kontaktkasten bleibt stehen */

/* Uncode setzt .box-wrapper auf overflow: hidden. Damit wird der Wrapper zum
   Scroll-Container fuer alles darin – ein sticky-Element richtet sich dann
   nach ihm statt nach dem Fenster und klebt nie.

   Einfach auf visible stellen geht nicht: das hidden verdeckt rund 3 px
   Ueberhang der Theme-Container, sonst bekommt die Seite einen waagerechten
   Rollbalken. "clip" klippt genauso, erzeugt aber keinen Scroll-Container –
   damit stimmt beides. Versteht ein Browser clip nicht, bleibt es bei hidden:
   der Kasten scrollt dann einfach mit, nichts geht kaputt.

   Der Griff bleibt so eng wie moeglich: nur auf Fahrzeugseiten und nur dort,
   wo es die zweispaltige Ansicht ueberhaupt gibt. */
@media (min-width: 1200px) {
  body.single-fahrzeug .box-wrapper { overflow: clip; }
}

/* ------------------------------------------ Beitragsnavigation des Themes */

/* Uncode stellt die Zurueck/Weiter-Zeile auf eine graue Flaeche
   (.row-navigation-light, #f7f7f7). Auf den Fahrzeugseiten traegt sie
   stattdessen eine Haarlinie – wie alles andere hier auch. */
body.single-fahrzeug .row-container.row-navigation,
body.single-fahrzeug .row-container.row-navigation-light {
  background: transparent;
  border-top: 1px solid var(--pgs-rule, #C6CDBC);
}

/* ------------------------------------------------------------- Lightbox */

.tfz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5vh 6vw;
  background: rgba(16, 18, 14, .93);
}

.tfz-lightbox[hidden] { display: none; }

body.tfz-lightbox-open { overflow: hidden; }

.tfz-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.tfz-lightbox__close,
.tfz-lightbox__nav {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  flex: 0 0 auto;
  transition: background .3s var(--tfz-ease);
}

.tfz-lightbox__close:hover,
.tfz-lightbox__nav:hover { background: rgba(255, 255, 255, .24); }

.tfz-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.tfz-lightbox__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: .8em;
  letter-spacing: .12em;
}

/* ------------------------------------------- Dunkler Sektionshintergrund */

/* Auf dunklem Grund traegt die Textfarbe der Sektion: Linien und Akzent
   leiten sich davon ab, damit nichts gegen das Theme laeuft. */
.style-dark .tfz-vehicles,
.style-dark .tfz-single,
.tfz-vehicles--dark {
  --tfz-rule:   rgba(255, 255, 255, .18);
  --tfz-accent: currentColor;
  --tfz-grnd:   rgba(255, 255, 255, .06);
  --tfz-tint:   rgba(255, 255, 255, .1);
}

.style-dark .tfz-flag,
.tfz-vehicles--dark .tfz-flag {
  background: rgba(255, 255, 255, .9);
  color: #303133;
}

.style-dark .tfz-badge--hinweis {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

/* --------------------------------------------------------------- Responsive */

@media (max-width: 1199px) {
  /* minmax(0, 1fr) statt 1fr: eine 1fr-Spur darf sonst nie unter die
     min-content-Breite ihres Inhalts – die schiebbare Reiterzeile hat die
     auf ihre volle Laenge gehoben und die Seite breiter gemacht als das
     Fenster. */
  .tfz-single__columns { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tfz-contact { position: static; }
  .tfz-vehicles .tfz-vehicles__list { --tfz-cols: 2; }
}

@media (max-width: 959px) {
  /* Auf dem Telefon wird aus dem Raster eine Schiebebuehne: alle Bilder in
     einer Reihe, mit Einrasten. Der Anschnitt des naechsten Bildes zeigt,
     dass es weitergeht. */
  .tfz-hero {
    display: flex;
    gap: 8px;
    grid-template-columns: none;
    aspect-ratio: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tfz-hero::-webkit-scrollbar { display: none; }

  .tfz-hero .tfz-hero__cell,
  .tfz-hero.is-open .tfz-hero__cell {
    display: block;
    flex: 0 0 92%;
    aspect-ratio: 3 / 2;
    scroll-snap-align: start;
  }

  .tfz-hero .tfz-hero__cell:last-child { scroll-snap-align: end; }
  .tfz-hero__cell--gross { grid-row: auto; }

  /* Gewischt wird ohnehin – statt der Schaltflaeche zeigt das Zaehlwerk,
     an welcher Stelle man ist. */
  .tfz-single .tfz-hero__more { display: none; }

  /* Das Zaehlwerk sitzt im sichtbaren Bild, nicht im Anschnitt daneben:
     die Folie ist 92 % breit, also 8 % plus Innenabstand vom Rand weg. */
  .tfz-hero__counter {
    display: block;
    right: calc(8% + 12px);
  }

  .tfz-vehicles--liste .tfz-card { display: block; }
  .tfz-vehicles--liste .tfz-card__text { padding-top: 18px; }

  .tfz-single .tfz-features { columns: 1; }
  .tfz-specs dt { flex: 0 0 100%; padding-top: 0; }

}

@media (max-width: 599px) {
  .tfz-vehicles .tfz-vehicles__list,
  .tfz-single .tfz-vehicles__list { --tfz-cols: 1; gap: 40px; }

  .tfz-vehicles .tfz-filter { gap: 0 22px; }
  .tfz-contact { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .tfz-card__media img,
  .tfz-hero__cell img,
  .tfz-vehicles .tfz-card__title a { transition: none; }

  .tfz-card:hover .tfz-card__media img,
  .tfz-hero__cell:hover img { transform: none; }
}
