/* mcf-auto.de — Grundstil und website-eigene Ergänzungen zum Design-System.
   Reihenfolge: fonts.css → ds/tokens.css → ds/components.css → site.css.
   Alles, was nur diese Website braucht (JAC-Co-Branding, Hero-Slideshow, Aktions-Slide, mobiles Menü),
   steht hier; allgemeine Bausteine gehören ins Design-System. */

:root {
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 240ms;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--mcf-blue-hover); }
h1, h2, h3, h4 { font-family: var(--font-sans); }
::selection { background: var(--mcf-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--mcf-blue); outline-offset: 2px; }

/* ---------- Header: JAC-Co-Branding + mobiles Menü ---------- */
.site-header__dealer {
  display: flex; align-items: center; gap: 10px; padding-left: var(--sp-4);
  border-left: 1px solid var(--line); text-decoration: none; flex-shrink: 0;
}
.site-header__dealer img { display: block; height: 24px; width: auto; min-width: 12px; } /* JAC-CI: Mindestgröße 11,3 px */
.site-header__dealer span {
  font-size: 10px; font-weight: var(--fw-bold); line-height: 1.25; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.site-header__dealer:hover { text-decoration: none; opacity: .75; }
.site-nav__link.active { color: var(--mcf-blue-hover); border-bottom-color: var(--mcf-blue); }
.site-nav__phone { display: none; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }

@media (max-width: 1180px) {
  .site-header__phone { display: none; }
  .site-nav { gap: var(--sp-5); }
}
@media (max-width: 960px) {
  .site-header__dealer span { display: none; }
  .site-nav.active {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: var(--sp-2) var(--sp-5) var(--sp-5);
  }
  .site-nav.active .site-nav__link { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-body); }
  .site-nav.active .site-nav__link.active { border-bottom-color: var(--line-2); }
  .site-nav.active .site-nav__phone {
    display: block; margin-top: var(--sp-4); font-weight: var(--fw-bold); color: var(--ink); text-decoration: none;
  }
}

/* ---------- Footer / Cookie ---------- */
.site-footer__legal a { color: var(--on-dark); text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }
.cookie { display: none; }
.cookie.show { display: flex; }

/* ---------- Startseite: Hero-Slideshow ---------- */
.hero--slides { min-height: 620px; }
.hero--slides .hero__photo, .hero-slide { opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero--slides .hero__scrim { z-index: 2; transition: opacity var(--dur-slow) var(--ease-out); }
.hero--slides .hero__inner { z-index: 3; transition: opacity var(--dur-slow) var(--ease-out); }
.hero-dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: var(--sp-5); display: flex; justify-content: center; gap: var(--sp-2); }
.hero-dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: var(--radius-sm); background: rgba(255,255,255,0.45); cursor: pointer; }
.hero-dot.is-active { background: var(--on-dark); }
.hero-dot:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }

/* Aktions-Slide JAC JS8 PRO (JAC-Markenfarben aus jac-tokens.css) */
.promo-slide { display: flex; align-items: center; background: #0b0d10; color: #fff; }
.promo-slide picture, .promo-slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%); }
.promo-slide__inner { position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: var(--sp-9) var(--sp-5); }
.promo-slide__logo { display: block; width: 120px; height: auto; margin-bottom: var(--sp-5); }
.promo-slide__kicker { font-size: var(--fs-small); font-weight: 800; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: rgba(255,255,255,0.85); margin: 0 0 var(--sp-3); }
.promo-slide__title { font-size: var(--fs-display); font-weight: var(--fw-light); line-height: var(--lh-tight); margin: 0 0 var(--sp-4); }
.promo-slide__offer { display: flex; align-items: baseline; gap: var(--sp-4); margin: 0 0 var(--sp-3); }
.promo-slide__rate { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: var(--tracking-tight); }
.promo-slide__label { font-size: var(--fs-lead); font-weight: var(--fw-bold); line-height: 1.3; }
.promo-slide__label small { display: block; font-size: var(--fs-small); font-weight: var(--fw-regular); opacity: .85; }
.promo-slide__valid { font-size: var(--fs-small); margin: 0 0 var(--sp-6); opacity: .9; }

/* Jubiläums-Slide */
.jubilee-slide { display: flex; align-items: center; background: var(--surface-2); color: var(--ink); }
.jubilee-slide__inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: var(--sp-9) var(--sp-5); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-7); }
.jubilee-slide__title { font-size: var(--fs-display); font-weight: var(--fw-light); line-height: var(--lh-tight); margin: 0 0 var(--sp-4); }
.jubilee-slide__title b { font-weight: 800; color: var(--mcf-blue-hover); }
.jubilee-slide__text { font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--ink-2); margin: 0; max-width: 560px; }
.jubilee-slide__num { font-size: 240px; font-weight: 800; line-height: .85; letter-spacing: -0.04em; color: var(--mcf-blue); }
.jubilee-slide__years { display: block; text-align: center; font-size: var(--fs-small); font-weight: 800; letter-spacing: .6em; color: var(--ink-2); margin-top: var(--sp-3); }

/* Pflichtangaben unter dem Slider */
.promo-legal { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.promo-legal p { font-size: 12px; line-height: var(--lh-normal); color: var(--ink-2); margin: 0 0 var(--sp-2); }
.promo-legal p:last-child { margin-bottom: 0; }
.promo-legal strong { color: var(--ink); }

/* Kundenstimmen */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.quote { margin: 0; padding: var(--sp-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--sp-4); }
.quote__stars { color: var(--ink); letter-spacing: 2px; font-size: var(--fs-body); }
.quote__text { margin: 0; font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--ink-2); }
.quote__who { font-size: var(--fs-small); color: var(--ink-3); }
.quote__who b { color: var(--ink); }
.trust__widget { padding: 0; overflow: hidden; min-height: 300px; align-items: stretch; }

@media (max-width: 960px) {
  .hero--slides { min-height: 560px; }
  .promo-slide__title, .jubilee-slide__title { font-size: var(--fs-h2); }
  .promo-slide__rate { font-size: 52px; }
  .jubilee-slide__num { font-size: 120px; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .jubilee-slide__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-5); }
  .jubilee-slide__right { display: none; }
}

/* style.css/compat färben jedes <p> grau – im dunklen Footer gilt die Schriftfarbe des Footers */
.site-footer p, .site-footer li { color: var(--on-dark); }

/* Fahrzeugkarte: CO2-Klasse mit ausgeschriebener Beschriftung, Werte nebeneinander */
.vcard .envkv__class { flex-basis: 52px; }
.vcard .envkv__class small { font-size: 7px; text-align: center; line-height: 1.1; }

/* ---------- Bestandsliste ---------- */
.page-stock { background: var(--surface-2); }
.list-bar__tools { display: flex; gap: var(--sp-2); align-items: center; }
.list-empty { grid-column: 1 / -1; padding: var(--sp-8) var(--sp-5); text-align: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filter__close { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; }
.filter__head .btn--ghost { margin-left: auto; margin-right: var(--sp-2); }
.vf-overlay { display: none; }
@media (max-width: 960px) {
  .layout-stock .filter.is-open {
    display: flex; position: fixed; z-index: 120; top: 0; bottom: 0; left: 0; width: min(360px, 88vw);
    border-radius: 0; border: 0; overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .filter__close { display: inline-flex; }
  .vf-overlay.is-active { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(31,35,40,0.6); }
}
.page-stock .container { max-width: var(--container-wide); }
.vcard .envkv__val { border-right: 0; margin-right: var(--sp-4); padding-right: 0; }

/* Fahrzeugsuche unter dem Slider (Startseite) */
.searchbar { background: var(--ink); padding: var(--sp-5) 0; }
.searchbar .hero-search { margin: 0; max-width: none; box-shadow: none; }
