/*
 * Struktur des Basis-Themes — Gerüst, keine Markenoptik.
 *
 * Was hier steht: Layout-Hooks, Raster, Typo-Stufen, Zustände.
 * Was hier NICHT steht: Card-Look, Hover-Effekte, Panel-Chrome, Logo-Styling.
 *
 * Child-Themes gestalten über Tokens + eigene CSS. Klassen (.wlf-*) bleiben stabil.
 */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wlf-color-bg);
  color: var(--wlf-color-ink);
  font-family: var(--wlf-font-body);
  font-size: var(--wlf-text-base);
  line-height: var(--wlf-leading-base);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--wlf-color-accent); }
a:hover { color: var(--wlf-color-accent-hover); }

:focus-visible {
  outline: 2px solid var(--wlf-color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--wlf-font-display);
  line-height: var(--wlf-leading-tight);
  text-wrap: balance;
  margin: 0 0 var(--wlf-space-4);
}
h1 { font-size: var(--wlf-text-3xl); }
h2 { font-size: var(--wlf-text-2xl); }
h3 { font-size: var(--wlf-text-xl); }

p { margin: 0 0 var(--wlf-space-4); }

/* ── Layout ───────────────────────────────────────── */

.wlf-container {
  width: 100%;
  max-width: var(--wlf-container);
  margin-inline: auto;
  padding-inline: var(--wlf-gutter);
}
.wlf-container--narrow { max-width: var(--wlf-container-narrow); }
.wlf-container--wide { max-width: var(--wlf-container-wide, 1400px); }

.wlf-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wlf-site-main { flex: 1 0 auto; }

.wlf-skip-link {
  position: absolute;
  left: -9999px;
}
.wlf-skip-link:focus {
  left: var(--wlf-space-4);
  top: var(--wlf-space-4);
  z-index: 100;
  background: var(--wlf-color-bg);
  color: var(--wlf-color-ink);
  padding: var(--wlf-space-2) var(--wlf-space-4);
}

/* ── Kopf / Fuß: nur Hook-Klassen, kein Look ──────── */

.wlf-site-header__inner,
.wlf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wlf-space-5);
  flex-wrap: wrap;
}

.wlf-logo-text {
  font-family: var(--wlf-font-display);
  font-weight: var(--wlf-weight-bold);
  text-decoration: none;
  color: inherit;
}

.wlf-nav ul {
  display: flex;
  gap: var(--wlf-space-5);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.wlf-nav a { text-decoration: none; color: inherit; }

/* ── Hero-Gerüst (Varianten via Modifier) ─────────── */

.wlf-hero {
  position: relative;
  isolation: isolate;
}

.wlf-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.wlf-hero__media img,
.wlf-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wlf-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--wlf-hero-shade, transparent);
  pointer-events: none;
}

.wlf-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--wlf-space-6);
  align-items: center;
  padding-block: var(--wlf-hero-pad, var(--wlf-space-7));
}

/* split: Copy | Suche/Nebenfläche */
.wlf-hero--split .wlf-hero__inner {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .wlf-hero--split .wlf-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* bleed: Full-Bleed-Bühne, Inhalt über Medien */
.wlf-hero--bleed {
  min-height: var(--wlf-hero-min-height, min(78vh, 720px));
  display: flex;
  align-items: flex-end;
}
.wlf-hero--bleed .wlf-hero__inner {
  width: 100%;
  max-width: var(--wlf-container);
  margin-inline: auto;
  padding-inline: var(--wlf-gutter);
  padding-block: var(--wlf-hero-pad, clamp(3rem, 8vw, 5.5rem));
}

/* stack: eine Spalte, kompakt */
.wlf-hero--stack .wlf-hero__inner {
  grid-template-columns: 1fr;
  max-width: var(--wlf-container-narrow);
}

.wlf-hero__copy,
.wlf-hero__aside { min-width: 0; }

.wlf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wlf-space-3);
}

/* ── Footer-Gerüst ────────────────────────────────── */

.wlf-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--wlf-space-6);
}

.wlf-footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wlf-space-2);
}

.wlf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wlf-space-3) var(--wlf-space-5);
  justify-content: space-between;
  margin-top: var(--wlf-space-6);
  padding-top: var(--wlf-space-5);
}

/* ── Modell-Raster: Struktur ohne Card-Skin ───────── */

.wlf-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--wlf-card-min, 260px), 1fr));
  gap: var(--wlf-space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wlf-model-card {
  display: flex;
  flex-direction: column;
  gap: var(--wlf-space-3);
  background: var(--wlf-color-surface);
  /* Look kommt vom Child — hier nur Fläche */
}

.wlf-model-card__media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.wlf-model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wlf-model-card__title {
  font-size: var(--wlf-text-xl);
  margin: 0;
}
.wlf-model-card__title a { text-decoration: none; color: inherit; }

.wlf-model-card__meta {
  font-size: var(--wlf-text-sm);
  color: var(--wlf-color-ink-muted);
  display: flex;
  gap: var(--wlf-space-3);
  flex-wrap: wrap;
}

.wlf-model-card__price {
  font-weight: var(--wlf-weight-medium);
  margin-top: auto;
}

.wlf-swatches {
  display: flex;
  gap: var(--wlf-space-2);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wlf-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: var(--wlf-radius-pill);
  background: var(--wlf-color-surface-alt);
}

/* ── Hinweise / Woo / Fitment: Struktur ───────────── */

.wlf-notice {
  padding: var(--wlf-space-4);
  background: var(--wlf-color-surface);
  color: var(--wlf-color-ink-muted);
}

.wlfc-catalog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.wlf-fitment-search {
  display: flex;
  flex-direction: column;
  gap: var(--wlf-space-4);
}

.wlf-fitment-search__title {
  font-family: var(--wlf-font-display);
  font-size: var(--wlf-text-xl);
  margin: 0;
}
.wlf-fitment-search__hint {
  margin: 0;
  font-size: var(--wlf-text-sm);
  color: var(--wlf-color-ink-muted);
}

.wlf-fitment-search__fields {
  display: flex;
  gap: var(--wlf-space-4);
  align-items: flex-end;
  flex-wrap: wrap;
}

.wlf-field {
  display: flex;
  flex-direction: column;
  gap: var(--wlf-space-1);
}
.wlf-field__label {
  font-size: var(--wlf-text-xs);
  letter-spacing: var(--wlf-tracking-wide);
  color: var(--wlf-color-ink-muted);
}
.wlf-field__input {
  font: inherit;
  font-family: var(--wlf-font-mono);
  color: var(--wlf-color-ink);
  background: var(--wlf-color-bg);
  border: 1px solid var(--wlf-color-line);
  padding: var(--wlf-space-2) var(--wlf-space-3);
  width: 7ch;
}

.wlf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wlf-space-2);
  font: inherit;
  font-weight: var(--wlf-weight-medium);
  text-decoration: none;
  cursor: pointer;
  background: var(--wlf-color-accent);
  color: var(--wlf-color-accent-ink);
  border: 1px solid var(--wlf-color-accent);
  padding: var(--wlf-space-2) var(--wlf-space-5);
  transition: background var(--wlf-transition), border-color var(--wlf-transition);
}
.wlf-button:hover {
  background: var(--wlf-color-accent-hover);
  border-color: var(--wlf-color-accent-hover);
  color: var(--wlf-color-accent-ink);
}
.wlf-button--quiet {
  background: transparent;
  color: var(--wlf-color-ink);
  border-color: var(--wlf-color-line);
}
.wlf-button--quiet:hover {
  background: var(--wlf-color-surface-alt);
  color: var(--wlf-color-ink);
}

.wlf-vehicle-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wlf-space-4);
  flex-wrap: wrap;
  background: var(--wlf-color-surface);
  padding: var(--wlf-space-4) var(--wlf-space-5);
  margin-block: var(--wlf-space-5);
}
.wlf-vehicle-banner__vehicle,
.wlf-vehicle-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--wlf-space-3);
  margin: 0;
  flex-wrap: wrap;
}
.wlf-vehicle-banner__label {
  font-size: var(--wlf-text-xs);
  letter-spacing: var(--wlf-tracking-wide);
  color: var(--wlf-color-ink-muted);
}
.wlf-vehicle-banner__reset { font-size: var(--wlf-text-sm); }

.wlf-fit-badge {
  display: inline-flex;
  align-items: baseline;
  gap: var(--wlf-space-2);
  align-self: flex-start;
  font-size: var(--wlf-text-xs);
  font-weight: var(--wlf-weight-medium);
  letter-spacing: var(--wlf-tracking-wide);
  padding: var(--wlf-space-1) var(--wlf-space-3);
}
.wlf-fit-badge--yes {
  color: var(--wlf-color-success);
  background: color-mix(in srgb, var(--wlf-color-success) 12%, transparent);
}
.wlf-fit-badge--no {
  color: var(--wlf-color-ink-muted);
  background: var(--wlf-color-surface-alt);
}
.wlf-fit-badge__status {
  font-weight: var(--wlf-weight-normal);
  letter-spacing: 0;
}
