/* ============================================================================
   CPC Hannover — dunkle Fahrzeugwelt (Startseite, Bestand, Fahrzeug, Service,
   Unternehmen, Kontakt, Rechtstexte). Setzt basis.css voraus.
   ========================================================================= */

/* ----------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  /* KEIN overflow:hidden hier: die Reiterleiste ragt mit negativem Aussenabstand
     absichtlich unten heraus und wuerde sonst abgeschnitten. Geclippt wird nur
     die Bildebene. */
  background: var(--grund-tief);
  min-height: min(76vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-bilder { position: absolute; inset: 0; overflow: hidden; }
.hero-bild {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1);
}
.hero-bild[data-aktiv="ja"] { opacity: 1; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; }
/* Textseite abdunkeln, damit weisse Schrift auf jedem Foto sitzt. */
.hero-bilder::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 8, 10, .9) 0%, rgba(8, 8, 10, .58) 38%,
      rgba(8, 8, 10, .12) 62%, rgba(8, 8, 10, .38) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, .5) 0%, transparent 30%,
      rgba(8, 8, 10, .55) 100%);
}

.hero-inhalt {
  position: relative;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: 2rem;
}
.hero-vorzeile {
  font-size: clamp(1.05rem, 2.6vw, 1.9rem);
  font-weight: 300; font-stretch: 118%;
  letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65);
}
.hero-titel {
  margin: .08em 0 .04em;
  font-size: clamp(2.3rem, 8vw, 5.4rem);
  font-weight: 800; font-stretch: 125%;
  letter-spacing: .04em; line-height: .95;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}
.hero-nachzeile {
  font-size: clamp(.95rem, 2.4vw, 1.7rem);
  font-weight: 300; font-stretch: 118%;
  letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65);
}
.hero-aktion {
  position: relative;
  display: flex; justify-content: flex-end;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}
.hero-aktion .knopf {
  background: rgba(12, 12, 14, .55);
  border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
}
.hero-aktion .knopf:hover { background: rgba(12, 12, 14, .82); border-color: #fff; }

/* Reiterleiste, sitzt wie in der Vorlage weiss auf der Bildkante */
.hero-reiter {
  position: relative;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-bottom: clamp(-2.5rem, -3vw, -1.5rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.hero-reiter button {
  border: 0; background: #fff; color: #101012;
  padding: 1.35rem .75rem; min-height: 64px;
  font-weight: 600; font-stretch: 108%;
  letter-spacing: .1em; text-transform: uppercase;
  font-size: clamp(.75rem, 1vw, .9375rem);
  cursor: pointer; white-space: nowrap;
  border-right: 1px solid #e1e4e8;
  transition: background var(--zeit), color var(--zeit);
}
.hero-reiter button:last-child { border-right: 0; }
.hero-reiter button:hover { background: #eceef1; }
.hero-reiter button[aria-selected="true"] { background: #101012; color: #fff; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-inhalt { padding-top: 3rem; padding-bottom: 7rem; }
  .hero-aktion { justify-content: flex-start; }
  .hero-reiter {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-bottom: -1.5rem; border-radius: var(--r-klein);
  }
  .hero-reiter button { flex: 0 0 auto; scroll-snap-align: start; padding-inline: 1.25rem; }
}

/* ------------------------------------------------------- Bestandsschieber - */
.schieber-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.schieber-kopf .ueberschrift { flex: 1; text-align: center; }
.schieber {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 3);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .5rem;
}
.schieber::-webkit-scrollbar { display: none; }
.schieber > * { scroll-snap-align: start; }

.schieber-pfeile { display: flex; gap: .75rem; }
.schieber-punkte { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.schieber-punkte button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px;
  border: 1px solid var(--linie-stark); background: transparent; cursor: pointer;
}
.schieber-punkte button[aria-current="true"] { background: #fff; border-color: #fff; }

@media (max-width: 1023px) { .schieber { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 700px)  { .schieber { grid-auto-columns: 84%; } }
@media (max-width: 560px)  {
  .schieber-kopf { flex-wrap: wrap; }
  .schieber-kopf .ueberschrift { order: -1; flex-basis: 100%; }
}

/* Fahrzeugkarte: helles Bildfeld oben, dunkler Fuss unten (wie Vorlage) */
.fkarte {
  display: flex; flex-direction: column;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color var(--zeit), transform var(--zeit);
}
.fkarte:hover { border-color: var(--linie-stark); transform: translateY(-3px); }
.fkarte-bild { background: #fff; aspect-ratio: 3 / 2; }
.fkarte-bild img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.fkarte-text { padding: 1.35rem 1.4rem 1.5rem; display: grid; gap: .45rem; }
.fkarte-name { font-size: 1.05rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; }
.fkarte-art { color: var(--text-leise); font-size: .9375rem; }
.fkarte-zeile { font-size: .9375rem; color: var(--text-leise); }
.fkarte-zeile b { color: var(--akzent); font-weight: 600; }
.fkarte-preis { font-size: 1.05rem; font-weight: 700; margin-top: .3rem;
  font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- Vorteile --- */
.vorteile {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
}
.vorteil {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.75rem;
  border: 1px solid var(--linie);
  border-radius: var(--r);
}
.vorteil-mal { flex: none; width: 44px; height: 44px; color: var(--text); }
.vorteil-mal svg { width: 100%; height: 100%; }
.vorteil h3 { font-size: .9375rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .6rem; }
.vorteil p { color: var(--text-leise); font-size: .9375rem; }

@media (max-width: 760px) { .vorteile { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Neuigkeiten - */
.news-raster {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}
.news {
  display: flex; flex-direction: column;
  border: 1px solid var(--linie); border-radius: var(--r);
  background: var(--flaeche); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color var(--zeit);
}
.news:hover { border-color: var(--linie-stark); }
.news-bild { aspect-ratio: 16 / 9; }
.news-bild img { width: 100%; height: 100%; object-fit: cover; }
.news-text { padding: 1.4rem; display: flex; flex-direction: column; gap: .75rem;
  flex: 1; }
.news-datum { font-size: .8125rem; color: var(--text-leise);
  font-variant-numeric: tabular-nums; }
.news h3 { font-size: 1rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; }
.news p { color: var(--text-leise); font-size: .9375rem; }
.news-marken { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto;
  padding-top: .5rem; }
.news-marke { border: 1px solid var(--linie-stark); border-radius: var(--r-klein);
  padding: .3rem .75rem; font-size: .8125rem; color: var(--text-leise); }

/* dritte Kachel: Bild mit Ueberlagerung „Alle Neuigkeiten" */
.news-alle { position: relative; min-height: 320px; display: flex;
  flex-direction: column; }
.news-alle img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; }
.news-alle-fuss {
  position: relative; margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, .94) 55%);
}
.news-alle-fuss span { font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; }

@media (max-width: 980px) { .news-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news-raster { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- Probefahrt ------ */
.probefahrt { background: var(--grund-tief); }
.probefahrt-form { max-width: 640px; margin: 2.5rem auto 0; }
.probefahrt-form .knopf { margin-top: 1.5rem; }
.haken + .haken { margin-top: .9rem; }
.erfolg {
  border: 1px solid var(--akzent); border-radius: var(--r);
  padding: 1.25rem 1.5rem; display: flex; gap: .9rem; align-items: flex-start;
  margin-top: 1.5rem;
}
.erfolg[hidden] { display: none; }      /* schlaegt die eigene display-Regel */
.erfolg svg { width: 22px; height: 22px; flex: none; color: var(--akzent); }

/* -------------------------------------------------------- Aktionsband ----- */
.aktionsband { background: var(--flaeche); border-top: 1px solid var(--linie); }
.kleingedrucktes { font-size: .75rem; line-height: 1.65; color: var(--text-leise); }
.kleingedrucktes a { color: var(--akzent); }
.band-knoepfe {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}
@media (max-width: 880px) { .band-knoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .band-knoepfe { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- Bestandsseite -- */
.seitenkopf { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.brotkrumen { font-size: .8125rem; color: var(--text-leise); margin-bottom: 1rem; }
.brotkrumen a { text-decoration: none; }
.brotkrumen a:hover { color: var(--text); }

.filterleiste {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1.5rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
}
.filterleiste .feldgruppe { margin: 0; }
.filter-fuss { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem; }
.treffer { color: var(--text-leise); font-size: .9375rem; }
.treffer b { color: var(--text); font-variant-numeric: tabular-nums; }

.bestand-raster {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}
@media (max-width: 1023px) {
  .filterleiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bestand-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .filterleiste { grid-template-columns: 1fr; }
  .bestand-raster { grid-template-columns: 1fr; }
}

.leerzustand {
  border: 1px dashed var(--linie-stark); border-radius: var(--r);
  padding: 3rem 1.5rem; text-align: center; color: var(--text-leise);
  margin-top: 2rem;
}
.leerzustand[hidden] { display: none; }

/* ------------------------------------------------------- Fahrzeugdetail --- */
.detail {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.detail-bild { background: #fff; border-radius: var(--r); overflow: hidden; }
.detail-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; padding: 5%; }
.detail-daten { display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--linie); border: 1px solid var(--linie); border-radius: var(--r);
  overflow: hidden; margin-top: 2rem; }
.detail-daten > div { background: var(--grund); padding: 1.1rem 1.25rem; }
.detail-daten dt { font-size: .8125rem; color: var(--text-leise); }
.detail-daten dd { margin: .25rem 0 0; font-weight: 600; }
.detail-karte {
  position: sticky; top: 96px;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--r); padding: 1.75rem;
}
.detail-preis { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-karte .knopf { margin-top: 1rem; }
.detail-liste { margin-top: 1.5rem; display: grid; gap: .6rem; }
.detail-liste li { display: flex; gap: .6rem; font-size: .9375rem;
  color: var(--text-leise); }
.detail-liste svg { width: 18px; height: 18px; flex: none; color: var(--akzent); }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail-karte { position: static; }
  .detail-daten { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- Textseiten - */
.textseite { max-width: 760px; }
.textseite h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; letter-spacing: .04em; }
.textseite h3 { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }
.textseite p, .textseite li { color: var(--text-leise); }
.textseite p + p { margin-top: 1rem; }
.textseite ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.textseite li + li { margin-top: .4rem; }
.textseite a { color: var(--akzent); }

/* ----------------------------------------------------------- Oeffnungen --- */
.zeiten { border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden;
  margin: 0; }
.zeiten > div { display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.25rem; font-size: .9375rem; }
.zeiten > div + div { border-top: 1px solid var(--linie); }
.zeiten dt { color: var(--text-leise); }
.zeiten dd { margin: 0; font-variant-numeric: tabular-nums; }
.zeiten > div[data-heute="ja"] { background: var(--flaeche); }
.zeiten > div[data-heute="ja"] dt { color: var(--text); font-weight: 600; }

.kontaktraster { display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) { .kontaktraster { grid-template-columns: 1fr; } }

.karte-flaeche { border: 1px solid var(--linie); border-radius: var(--r);
  overflow: hidden; background: var(--flaeche); }
.karte-flaeche img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ------------------------------------------------------------- 404 -------- */
.fehlerseite { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.fehler-zahl {
  font-size: clamp(5rem, 20vw, 13rem); font-weight: 800; font-stretch: 125%;
  line-height: .9; letter-spacing: .04em;
}
.fehler-knoepfe { display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem; }
