/* ============================================================
   GE — FUHRPARK-SEITE
   Eine Kachel je Klasse: Zeigen lässt die Kachel wachsen und schiebt die
   Nachbarn zusammen, ein Klick öffnet die Fahrzeugliste darunter.
   Baut auf styles.css (Brand) + homepage.css (.home Nav, .reveal).
   ============================================================ */

/* Hintergrund liefert .brand-fill-hero aus styles.css — hier kein background
   setzen, sonst überschreibt es das Markenmuster. */
.fp-hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(150px, 22vh, 240px) 0 clamp(60px, 9vh, 110px);
}
.fp-hero .inner { position: relative; z-index: 2; }
.fp-hero .crumb { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 22px; display: flex; gap: 12px; }
.fp-hero .crumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.fp-hero .crumb a:hover { color: var(--c-primary); }
.fp-hero h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 11vw, 184px); line-height: .84; letter-spacing: -.02em; margin: 0; }
.fp-hero h1 .y { color: var(--c-primary); }
.fp-hero p { margin: 26px 0 0; max-width: 52ch; font-size: clamp(17px,1.5vw,21px); color: rgba(255,255,255,.78); }

/* count row */
.fp-counts { display: flex; flex-wrap: wrap; gap: clamp(28px,5vw,72px); margin-top: 44px; }
.fp-count .v { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px,4vw,58px); line-height: 1; }
.fp-count .v .u { color: var(--c-primary); font-size: .55em; vertical-align: super; margin-left: 2px; }
.fp-count .l { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 8px; }

/* ============================================================
   KLASSENLEISTE
   ============================================================ */

/* --schnitt setzt hart an und bremst spät: die Kachel rastet ein, statt zu
   gleiten. Beide Kurven stammen aus homepage.css. */
.fp-flotte {
  --schnitt: cubic-bezier(.7, 0, .2, 1);
  --weich: cubic-bezier(.16, .84, .44, 1);
  background: var(--c-bg-deep);
  color: #fff;
}

.fp-streifen {
  display: flex;
  height: clamp(380px, 58vh, 620px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.fp-klasse {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: flex-grow .34s var(--schnitt);
}
/* Eigener dunkler Grund NUR, wenn die Kachel nicht die Markenfläche trägt —
   die background-Kurzschreibweise würde deren Chevron-Raster sonst löschen.
   Denselben Umweg geht team.css. */
.fp-klasse:not(.brand-fill) { background-color: #0A0A0B; }

/* Klasse ohne Fahrzeuge: Das Foto kommt beim Darüberfahren genauso in Farbe
   wie überall sonst — die Kachel wird ja auch breiter, ein dunkel bleibendes
   Bild sähe daneben nach Fehler aus. Was das Versprechen zurücknimmt, ist
   nicht das Licht, sondern der Mauszeiger und das fehlende <button>: kein
   Zeigefinger, kein Pfeil, statt einer Fahrzeugzahl steht „Auf Anfrage". */
.fp-klasse.ist-leer { cursor: default; }
.fp-auf-anfrage { opacity: .72; }
.fp-klasse + .fp-klasse { border-left: 1px solid rgba(255, 255, 255, .14); }

/* ---------- Das Foto ---------- */
.fp-klasse img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.05);
  /* Ruhezustand: gedämpft. Die Farbe kommt erst zurück, wenn die Klasse
     angesteuert wird — dadurch entsteht die Hierarchie von selbst. */
  filter: saturate(.35) brightness(.62) contrast(1.1);
  transition: filter .5s var(--weich), transform .7s var(--weich);
}

/* Freigestelltes Fahrzeug: kein flächenfüllendes Motiv, sondern ein Fahrzeug,
   das im schwarzen Grund steht. Unten verankert, damit es aufsitzt. */
.fp-klasse.freigestellt img {
  object-fit: contain;
  object-position: 50% 88%;
  transform: scale(1);
  filter: saturate(.5) brightness(.72);
}

/* ---------- Lichtkegel über der Kachel ---------- */
/* Nur der Lichtkegel von oben, KEIN Chevron-Raster: über einem Foto legt sich
   die Schraffur wie Schmutz über das Motiv. Klassen ohne Foto bekommen das
   Raster weiterhin — aber von .brand-fill auf der Fläche selbst, dort liegt
   es unter nichts. */
.fp-klasse::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .75;
  background: radial-gradient(90% 60% at 50% 0%, rgba(250,223,0,.1), rgba(250,223,0,0) 58%);
  transition: opacity .4s var(--weich);
}

.fp-schatten {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 34%,
    rgba(0,0,0,.25) 60%, rgba(0,0,0,.9) 100%);
  transition: background .4s var(--weich);
}

/* ---------- Die Ziffer als Kontur ---------- */
.fp-nr {
  position: absolute;
  top: 6px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 6vw, 104px);
  line-height: .9;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
  transition: -webkit-text-stroke-color .4s var(--weich);
}

/* ---------- Beschriftung ---------- */
.fp-text {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fp-rang {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000;
  background: var(--c-primary);
  padding: 5px 10px;
}
.fp-name {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: .98;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.fp-klasse-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
  transition: color .3s;
}
.fp-klasse-cta svg { width: 18px; height: 12px; flex: none; transition: transform .3s; }
.fp-klasse-cta b { color: var(--c-primary); font-weight: 700; }

/* ---------- Zeigen: eine Klasse im Licht, die übrigen treten zurück ---------- */
@media (hover: hover) and (min-width: 861px) {
  .fp-streifen:hover .fp-klasse { flex-grow: .86; }
  .fp-streifen .fp-klasse:hover { flex-grow: 1.62; }

  /* Der Lichtkegel im Wortsinn: beim Zeigen verdunkeln die Nachbarn. Das läuft
     über den Schatten und nicht über einen Filter, damit sich die Kachel ohne
     Foto genauso verhält wie die anderen. */
  .fp-streifen:hover .fp-klasse .fp-schatten {
    background: linear-gradient(180deg, rgba(10,10,11,.72) 0%, rgba(10,10,11,.6) 45%, rgba(10,10,11,.92) 100%);
  }
  .fp-streifen .fp-klasse:hover .fp-schatten {
    background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.88) 100%);
  }
  .fp-klasse:hover .fp-klasse-cta { color: var(--c-primary); }
  .fp-klasse:hover .fp-klasse-cta svg { transform: translateX(5px); }
}

/* Angesteuert oder geöffnet: das Foto kommt in Farbe zurück. */
.fp-klasse:hover img,
.fp-klasse:focus-visible img,
.fp-klasse[aria-expanded="true"] img {
  filter: saturate(1) brightness(.96) contrast(1.02);
  transform: scale(1);
}
.fp-klasse.freigestellt:hover img,
.fp-klasse.freigestellt[aria-expanded="true"] img {
  filter: saturate(1) brightness(1);
  transform: scale(1.04);
}
.fp-klasse:hover::before,
.fp-klasse[aria-expanded="true"]::before { opacity: 1; }
.fp-klasse:hover .fp-nr,
.fp-klasse[aria-expanded="true"] .fp-nr { -webkit-text-stroke-color: rgba(250, 223, 0, .8); }

/* Die geöffnete Klasse bleibt breiter und trägt das Chevron-Band — sie gehört
   sichtbar zur Liste darunter. */
.fp-klasse[aria-expanded="true"] { flex-grow: 1.45; }
.fp-klasse[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--c-primary) 0 18px, #0A0A0B 18px 36px);
}
.fp-klasse[aria-expanded="true"] .fp-klasse-cta { color: var(--c-primary); }
.fp-klasse:focus-visible { outline: 3px solid var(--c-primary); outline-offset: -3px; }

/* Quittung für den Klick: ein einmaliger gelber Aufblitzer dort, wo geklickt
   wurde — sonst bleibt der Klick auf großen Schirmen scheinbar folgenlos. */
.fp-schatten::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, rgba(250,223,0,.4), rgba(250,223,0,0) 55%);
}
.fp-klasse[aria-expanded="true"] .fp-schatten::after { animation: fp-schnitt .38s ease-out; }
@keyframes fp-schnitt {
  0% { opacity: 0; }
  16% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-klasse, .fp-klasse img, .fp-klasse-cta svg, .fp-schatten, .fp-klasse::before { transition: none; }
  .fp-streifen:hover .fp-klasse,
  .fp-streifen .fp-klasse:hover { flex-grow: 1; }
  .fp-klasse:hover img { transform: scale(1.05); }
  .fp-klasse[aria-expanded="true"] .fp-schatten::after { animation: none; }
}

/* ---------- Fahrzeugliste ----------
   Kein Kärtchenraster, sondern ein Registerblatt: rahmenlose Zeilen, die Werte
   in Barlow Condensed 900 mit gelber Einheit. Dadurch fluchten die Zahlen über
   alle Zeilen, statt als Fließtext zu laufen. */
.fp-liste { background: #131518; padding: clamp(30px, 4vw, 54px) 0 clamp(40px, 5vw, 70px); }

/* Der Klassenname steht groß auf der Kachel direkt darüber — hier genügt die
   Auszeichnungszeile, sonst steht dasselbe zweimal groß da. */
.fp-liste-titel {
  display: inline-flex; align-items: center; gap: 14px; margin: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: #fff;
}
.fp-liste-titel::before {
  content: ""; width: 28px; height: 3px; background: var(--c-primary); flex: none;
}
.fp-liste-titel .zahl { color: rgba(255, 255, 255, .55); font-weight: 600; }
.fp-liste-kopf p {
  margin: 14px 0 0; max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .74);
}

.fp-fahrzeuge { list-style: none; margin: clamp(26px, 3.4vw, 40px) 0 0; padding: 0; }
.fp-fahrzeuge li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px clamp(22px, 3.6vw, 60px);
  padding: 18px 8px 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  transition: background .25s ease;
}
.fp-fahrzeuge li:first-child { border-top: 1px solid rgba(255, 255, 255, .09); }
/* Gelbkante, die von oben einläuft — dasselbe Mittel wie bei .job-perk. */
.fp-fahrzeuge li::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c-primary);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--weich);
}
.fp-fahrzeuge li:hover { background: rgba(255, 255, 255, .035); }
.fp-fahrzeuge li:hover::before,
.fp-fahrzeuge li.flaggschiff::before { transform: scaleY(1); }

/* Foto und Beschriftung bilden eine Einheit: ohne Foto rückt die Bezeichnung
   nach links, statt eine leere Spalte stehen zu lassen. */
.fz-haupt { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 26px); min-width: 0; }
.fz-bild {
  flex: none; width: clamp(96px, 11vw, 148px); aspect-ratio: 16/10;
  object-fit: cover; background: #0A0A0B;
  border: 1px solid rgba(255, 255, 255, .12);
}
.fz-kopf { min-width: 0; }
.fz-rang {
  display: inline-block; margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: #000; background: var(--c-primary); padding: 4px 9px;
}
.fz-name {
  display: block;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 1.8vw, 25px); line-height: 1.08; letter-spacing: .01em; color: #fff;
}
.fz-cls { display: block; margin-top: 5px; font-size: 14px; color: rgba(255, 255, 255, .5); }

/* Dokumente am Fahrzeug — Datenblatt, Traglasttabelle, Maßblatt.
   Bewusst klein und unter dem Typ: Sie sind ein Angebot, keine Ansage.
   Ohne Dokument entfällt die Zeile ganz; das sieht nach Absicht aus und
   nicht nach Lücke. */
.fz-doks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 9px; }
.fz-doks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.fz-doks a:hover, .fz-doks a:focus-visible { border-bottom-color: var(--c-primary); }
.fz-doks svg { width: 13px; height: 13px; fill: currentColor; flex: none; }

@media (prefers-reduced-motion: reduce) { .fz-doks a { transition: none; } }

.fz-specs { display: flex; gap: clamp(20px, 2.8vw, 48px); }
.fz-spec { text-align: right; }
.fz-spec .k {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.fz-spec .v {
  display: block; margin-top: 4px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1;
  font-variant-numeric: tabular-nums; color: #fff;
}
.fz-spec .v .u { color: var(--c-primary); font-size: .6em; margin-left: 2px; }

/* ---------- Schmale Geräte ---------- */
@media (max-width: 860px) {
  .fp-streifen { flex-direction: column; height: auto; }
  .fp-klasse { flex: none; height: 200px; }
  .fp-klasse + .fp-klasse { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .fp-nr { font-size: 64px; }
  .fp-fahrzeuge li { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 8px 20px 18px; }
  .fz-specs { gap: 26px; }
  .fz-spec { text-align: left; }
}
@media (max-width: 460px) {
  .fz-haupt { gap: 14px; }
  .fz-bild { width: 84px; }
}

/* ============================================================
   RAUPEN-FALTKRÄNE: EINORDNUNG (redaktionell, ohne Fahrzeuge)
   ============================================================ */
.fp-sec { padding: clamp(64px, 9vw, 120px) 0; background: #0A0A0B; color: #fff; }
.fp-sec.raupe { position: relative; }
/* Eyebrows, die frei auf der dunklen Fläche stehen (Raupen-Band, Vorteile),
   tragen dieselbe gelbe Auszeichnung wie die Bereichsköpfe. */
.fp-sec .eyebrow { color: var(--c-primary); }
.fp-sec .eyebrow::before { background: var(--c-primary); }

.raupe-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.raupe-band .lead { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(20px,2.2vw,30px); line-height: 1; color: #fff; margin: 14px 0 0; }
.raupe-band .lead .y { color: var(--c-primary); }
.raupe-band p { color: rgba(255,255,255,.7); font-size: 16px; margin: 0; }
@media (max-width: 760px) { .raupe-band { grid-template-columns: 1fr; gap: 18px; } }

/* ---- Vorteile Faltkran vs. Mobilkran ---- */
.rv-adv { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px,5vw,64px); border-top: 1px solid rgba(255,255,255,.14); }
.rv-adv-head { max-width: 760px; margin-bottom: clamp(32px,4vw,52px); }
.rv-adv-head h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(28px,3.6vw,52px); line-height: .92; letter-spacing: -.02em; margin: 14px 0 0; color: #fff; }
.rv-adv-head h3 .y { color: var(--c-primary); }
.rv-adv-head p { margin: 18px 0 0; color: rgba(255,255,255,.68); font-size: 16.5px; line-height: 1.6; }
.rv-adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; overflow: hidden; }
.rv-adv-card { background: #0A0A0B; padding: 32px 28px; transition: background .3s; }
.rv-adv-card:hover { background: #15171a; }
.rv-ic { width: 48px; height: 48px; color: var(--c-primary); margin-bottom: 18px; }
.rv-ic svg { width: 100%; height: 100%; }
.rv-adv-card h4 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: .01em; margin: 0; color: #fff; }
.rv-adv-card p { margin: 10px 0 0; color: rgba(255,255,255,.62); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) { .rv-adv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rv-adv-grid { grid-template-columns: 1fr; } }

/* CTA */
.fp-cta { background: var(--c-primary); color: #000; padding: clamp(56px,8vw,110px) 0; }
.fp-cta .row { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.fp-cta h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px,5vw,76px); line-height: .86; letter-spacing: -.02em; margin: 0; }
@media (max-width: 760px) { .fp-cta .row { grid-template-columns: 1fr; gap: 22px; } }
