/* ---------------------------------------------------------
   index.html and fahrzeugbestand.html. Requires base.css for
   tokens, reset, .container, .eyebrow, .btn, .icon, header
   basics and the footer.
--------------------------------------------------------- */

html { scroll-behavior: smooth; }
/* Anchor jumps land below the sticky header. */
section[id] { scroll-margin-top: var(--header-height); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------
   Header navigation
--------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.main-nav__link:hover,
.main-nav__link[aria-current="page"] { color: var(--color-ink); }
.main-nav .btn {
  margin-left: 12px;
  padding: 11px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--color-ink);
}
/* Call button next to the menu button; only while the menu is collapsed. */
.header-call {
  display: none;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  /* Sits 12px from the menu button instead of the header's 24px gap
     (on phones the header gap itself is 12px, see base.css). */
  margin-right: -12px;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
}
.header-call .icon { width: 20px; height: 20px; }
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------
   Sections generic
--------------------------------------------------------- */
section { padding: 80px 0; }
.section--tint { background: var(--color-bg-soft); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head__lead {
  font-size: 1.02rem;
  color: var(--color-ink-soft);
  margin-bottom: 0;
}
.section-head__lead + .section-head__lead,
.section-head__promise + .section-head__lead { margin-top: 0; }
/* Short promise between two lead paragraphs, set in black. */
.section-head__promise {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0.8em 0;
}
/* Heading on the left, a "see all" link on the right. */
.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.section-row h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-ink);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { width: 16px; height: 16px; }

/* ---------------------------------------------------------
   Hero: full-width photo with the text on top of it
--------------------------------------------------------- */
.hero {
  position: relative;
  /* Room at the bottom for the search card that overlaps the photo. */
  padding: 0 0 72px;
  min-height: clamp(460px, 44vw, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 58%;
}
/* Light veil on the left so dark text stays readable on any photo. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.84) 38%,
    rgba(255, 255, 255, 0.35) 56%,
    rgba(255, 255, 255, 0) 72%);
}
.hero__inner {
  width: 100%;
  padding-top: 48px;
}
.hero__content { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 0.4em;
}
.hero__lead {
  /* Narrow enough to stay on the light part of the veil. */
  max-width: 640px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.45;
  /* No lone word on the last line of the lead. */
  text-wrap: pretty;
  margin-bottom: 0.7em;
}
/* The three promises above the lead, set like a sub-headline. */
.hero__claims {
  max-width: 640px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.35;
  margin-bottom: 0.6em;
}
/* Break only between the promises, never inside one. */
.hero__claims span { white-space: nowrap; }
/* After-sales line: bold, with a Renault-yellow bar (layout draft
   2026-11; besides the stars the only place where yellow appears). */
.hero__note {
  max-width: 460px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.35;
  text-wrap: pretty;
  padding-left: 20px;
  border-left: 4px solid var(--color-star);
  margin: 1.1em 0 1.4em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------
   Vehicle search card (overlaps the hero photo)
--------------------------------------------------------- */
.finder {
  position: relative;
  z-index: 1;
  padding: 0;
  margin-top: -44px;
}
.finder__form {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr auto;
  gap: 10px;
  padding: 12px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(17, 17, 17, 0.12);
}
.finder__text {
  position: relative;
  display: flex;
  align-items: center;
}
.finder__text .icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.finder__form input,
.finder__form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-sm);
}
.finder__text input { padding-left: 44px; }
.finder__form select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
/* The border darkens; the 3px focus ring from base.css stays on top. */
.finder__form input:focus,
.finder__form select:focus {
  border-color: var(--color-ink);
}
.finder__form .btn { height: 48px; white-space: nowrap; }
/* Live results under the search fields, inside the same white card. */
.finder-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 14px 4px 4px;
  border-top: 1px solid var(--color-border);
}
.finder-results__summary {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.finder-results__summary:focus { outline: none; }
.finder-results__read {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.finder-results__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* Same look as the tags on the vehicle cards. */
.finder-tag {
  font-size: 0.78rem;
  color: var(--color-ink);
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}
.finder-results__list {
  display: grid;
  gap: 2px;
}
.finder-hit {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  transition: background-color var(--transition-fast);
}
.finder-hit:hover { background: var(--color-bg-soft); }
.finder-hit__img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
}
.finder-hit__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.finder-hit__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.finder-hit__version,
.finder-hit__meta {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finder-hit__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.finder-results__more { justify-self: start; font-weight: 600; }
.finder-results__note,
.finder-results__ignored {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
}
.finder-results__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  font-weight: 600;
}
.finder-results__retry {
  justify-self: start;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-sm);
}
.finder-results__retry:hover { background: var(--color-bg-soft); }

/* Routes for everyone who is not here to search: plain text links
   under the search card, quieter than the search itself. */
.routes { margin-top: 12px; }
.routes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  padding: 0 12px;
}
.routes__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink);
  text-underline-offset: 4px;
}
.routes__link:hover { text-decoration: underline; }
.routes__link .icon { width: 18px; height: 18px; }
/* A phone number must never break across lines. */
.routes__link[href^="tel:"] { white-space: nowrap; }

/* ---------------------------------------------------------
   Aktuelle Fahrzeuge (live from the Carbando inventory)
--------------------------------------------------------- */
.vehicles { padding: 56px 0 64px; }
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.vehicle-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}
.vehicle-card > a:hover { box-shadow: var(--shadow-soft); }
.vehicle-card__img {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
}
.vehicle-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  flex: 1;
}
.vehicle-card__title {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 0;
}
.vehicle-card__meta {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin: 0;
}
.vehicle-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 6px 0 8px;
}
.vehicle-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.vehicle-card__tags li {
  font-size: 0.74rem;
  color: var(--color-ink-soft);
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}
/* Grey stand-ins while the inventory loads. */
.vehicle-card--skeleton {
  min-height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--color-bg-soft) 0%, #ECECEC 50%, var(--color-bg-soft) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}
@keyframes skeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.vehicles__fallback {
  margin: 0;
  color: var(--color-ink-soft);
}
.vehicles__fallback a { color: var(--color-ink); text-decoration: underline; }

/* ---------------------------------------------------------
   So einfach funktioniert's
--------------------------------------------------------- */
.steps { padding: 48px 0 56px; }
.steps h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-bottom: 28px;
}
.steps-list {
  /* An <ol>: drop the browser's 40px indent so the steps line up with
     their heading. */
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  /* Four steps in a row; delivery and pickup share the last one. */
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 14px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.08);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}
.step .icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  margin-top: 6px;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  margin: 2px 0 4px;
}
.step__text {
  font-size: 0.9rem;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--color-ink-soft);
  margin: 0;
}
/* Kundenversprechen: four checks below the steps, same grey band. */
/* A <section> inside the steps band: no band padding of its own. */
.promise {
  margin-top: 40px;
  padding: 32px 0 0;
  border-top: 1px solid var(--color-border);
}
.promise h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-bottom: 24px;
}
.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.promise-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 0 24px;
}
.promise-list li:first-child { padding-left: 0; }
.promise-list li + li { border-left: 1px solid var(--color-border); }
.promise-list .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.promise-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}
.promise-list span {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.promise__note {
  max-width: 68ch;
  margin: 24px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Image-and-text bands (Qualitätsversprechen, Inzahlungnahme)
--------------------------------------------------------- */
.band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 400px;
  padding: 0;
  overflow: hidden;
}
.band__image {
  position: absolute;
  inset: 0 50% 0 0;
}
.band__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The photo fades out towards the text. */
.band__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 55%, var(--color-white) 100%);
}
.band__text {
  grid-column: 2;
  max-width: 520px;
  padding: 56px 24px 56px 48px;
}
.band--reverse .band__image { inset: 0 0 0 50%; }
.band--reverse .band__image::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0) 55%, var(--color-white) 100%);
}
/* Text starts on the container's left edge, like every other section:
   the column is half the band, so the inset is what the 1200px container
   leaves on the left (100% here = the column's width). */
.band--reverse .band__text {
  grid-column: 1;
  justify-self: stretch;
  max-width: none;
  padding: 56px 48px 56px max(24px, calc(100% - var(--max-width) / 2 + 24px));
}
.band--reverse .band__text > * { max-width: 520px; }
.band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.08;
  margin-bottom: 0.3em;
}
.band__text p { color: var(--color-ink-soft); }
.band__text .btn { margin-top: 8px; }
/* The promise stands out from the grey body copy. */
.band__text .band__promise {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-ink);
  margin: 0.4em 0 0.6em;
}
/* Cut-out cars on white instead of a photo: no fade, the whole image
   visible, body copy in full ink as in the layout draft. */
.band--cutout { background: var(--color-white); }
.band--cutout .band__image { display: flex; align-items: center; padding: 32px 24px 32px 0; }
.band--cutout .band__image img { height: auto; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.band--cutout .band__image::after { content: none; }
.band--cutout .band__text p:not([class]) { color: var(--color-ink); font-size: 1.02rem; }
/* Condition for the binding offer, directly under the promise it limits,
   upright and readable, not small print. */
.band__text .band__condition {
  margin: -0.2em 0 1.1em;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

/* ---------------------------------------------------------
   Fahrzeugbestand page
--------------------------------------------------------- */
.page-hero {
  background: var(--color-bg-soft);
  padding: 36px 0 24px;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 0.25em;
}
.page-hero p.lead {
  font-size: 1.02rem;
  color: var(--color-ink-soft);
  max-width: 620px;
  margin-bottom: 0;
}

/* The showroom widget brings its own top spacing, so the section only
   needs a small gap to the hero — the vehicles should be visible early. */
#bestand { padding: 24px 0 64px; }

/* The widget renders inside its own MUI container (capped at 1536px).
   We lift that cap and set our own: on desktop the showroom keeps a gap
   to the window edge and stops growing at 1440px, so on very wide screens
   it sits centred instead of running edge to edge. Reaching into
   third-party markup; if a Carbando update renames the class the widget
   falls back to its own centred width — nothing breaks. */
#carbando-root { background: var(--color-white); }
#bestand .MuiContainer-root { max-width: none; }
@media (min-width: 1000px) {
  #carbando-root { max-width: 1440px; margin-inline: auto; padding-inline: 32px; }
}

/* ---------------------------------------------------------
   Centered call-to-action band
--------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p {
  color: var(--color-ink-soft);
  max-width: 540px;
  margin: 0 auto 28px;
}

/* ---------------------------------------------------------
   Über uns: confirmed facts as a ruled list, no photo
--------------------------------------------------------- */
.facts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  align-items: start;
}
.facts__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-wrap: balance;
}
.facts__lead {
  max-width: 440px;
  font-size: 1.02rem;
  color: var(--color-ink-soft);
  margin: 0 0 0.8em;
}
/* The two short claims around the story, set in black. */
.facts__claim {
  max-width: 480px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  margin: 0.2em 0 0.8em;
}
.facts__claim--end { margin: 1.2em 0 0; }
.facts__list {
  margin: 0;
  border-top: 1px solid var(--color-border);
}
.facts__list > div {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--color-border);
}
.facts__list dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.facts__list dd {
  margin: 0;
  color: var(--color-ink-soft);
}

/* ---------------------------------------------------------
   Google-Bewertungen (static copy, see index.html)
--------------------------------------------------------- */
.reviews {
  background: var(--color-bg-soft);
  padding: 56px 0;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.reviews-head .section-head { margin-bottom: 0; }
.reviews-head h2 { margin-bottom: 0; }

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 12px 18px;
}
.reviews-summary > img { width: 32px; height: 32px; }
.reviews-summary__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  margin: 0 0 4px;
}
.reviews-summary__label span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.reviews-summary__count {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin: 4px 0 0;
}

/* Stars: one SVG row used as a mask over a two-tone gradient, so
   --rating can fill any fraction (4.4 fills most of the fifth star). */
.stars {
  --star-size: 16px;
  display: block;
  width: calc(var(--star-size) * 5);
  height: var(--star-size);
  background: linear-gradient(90deg, var(--color-star) calc(var(--rating, 5) * 20%), var(--color-star-empty) 0);
  -webkit-mask: url("../img/stars.svg") no-repeat 0 0 / 100% 100%;
  mask: url("../img/stars.svg") no-repeat 0 0 / 100% 100%;
}
.stars--lg { --star-size: 18px; }

/* Horizontal slider: native scrolling with snap points, the buttons
   only scroll by one card (assets/js/reviews.js). */
.reviews-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 4px 4px 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 4px;
  border-radius: var(--radius);
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { scroll-behavior: auto; }
}

.review-card {
  flex: 0 0 min(360px, 85%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}
.review-card__avatar--1,
.review-card__avatar--3 { background: var(--color-ink); color: var(--color-white); }
.review-card__avatar--2,
.review-card__avatar--4 { background: var(--color-bg-soft); color: var(--color-ink); }
.review-card__name {
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.review-card__date {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  margin: 0;
}
.review-card__source { margin-left: auto; flex: none; }
.review-card__text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}
/* Long reviews start folded to four lines; reviews.js adds the toggle
   only where text is actually cut off. */
.review-card__text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.review-card__more {
  align-self: flex-start;
  margin-top: -4px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.reviews-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--color-ink);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-ink);
  transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}
.reviews-btn:hover:not(:disabled) { background: var(--color-ink); color: var(--color-white); }
.reviews-btn:disabled { opacity: 0.3; cursor: default; }
.reviews-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reviews-more {
  margin-left: auto;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------
   Ansprechpartner
--------------------------------------------------------- */
/* Department title with the number everyone in it shares, so the cards
   only carry what is personal. */
.team-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 24px;
  margin-bottom: 20px;
}
.team-group__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-ink);
  display: inline-block;
}
.team-group__contact {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-ink-soft);
}
.team-group__contact a {
  color: var(--color-ink);
  font-weight: 600;
  margin-left: 4px;
}
.team-group__contact a:hover { text-decoration: underline; }
.team-group + .team-grid { margin-bottom: 8px; }
.team-grid + .team-group { margin-top: 48px; }

.team-grid {
  display: grid;
  /* auto-fill (not auto-fit) keeps empty tracks, so the three-person
     Verkauf row keeps the same card width as the four-person row. */
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.person-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
}
.person-card__photo {
  /* Cut-out portraits on a transparent background: let each figure
     stand on the bottom edge of a white panel. */
  margin: 0 -20px 18px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.person-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 2px;
}
.person-card__role {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  margin: 0 0 16px;
}

.person-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: auto 0 0;
  font-size: 0.86rem;
}
/* Long addresses break before the "@" (<wbr> in the markup), and only
   mid-word if even that does not fit. */
.person-contact li { overflow-wrap: break-word; }
/* Phone and mail are the main actions here: taller tap areas, same look. */
.person-contact a { display: inline-block; padding-block: 8px; }
.person-contact a:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   Contact section
--------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-card {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1em;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.96rem;
  margin-bottom: 0;
}
.contact-list dt,
.hours-list dt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--color-ink-soft);
  margin-bottom: 2px;
}
.contact-list dd { margin: 0; color: var(--color-ink); }
.contact-list a:hover { text-decoration: underline; }

.contact-card + .contact-card { margin-top: 20px; }

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 0.96rem;
  margin-bottom: 0;
}
.hours-list dt { margin-bottom: 6px; }
.hours-list dd { margin: 0; }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}
.hours-row + .hours-row { border-top: 1px solid var(--color-border); }
.hours-row span:first-child { color: var(--color-ink-soft); }

.map-wrap {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.contact-form {
  /* Topic links jump here; keep the topic choice clear of the header. */
  scroll-margin-top: calc(var(--header-height) + 16px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-ink);
}
.form-row .optional {
  color: var(--color-ink-soft);
  font-weight: 500;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--transition-fast);
}
/* The border darkens; the 3px focus ring from base.css stays on top. */
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-ink);
}
/* A field with an error shows it in its border too, not only below. */
.form-row [aria-invalid="true"],
.finder__form [aria-invalid="true"] {
  border-color: var(--color-error);
}
.form-row textarea { resize: vertical; min-height: 120px; }
/* Fieldsets (topic, preferred slot) look like the other rows. */
.form-choice,
.form-slot,
.form-vehicle {
  border: 0;
  padding: 0;
  min-width: 0;
}
.form-choice legend,
.form-slot legend,
.form-vehicle legend {
  padding: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-ink);
}

/* Topic: radio buttons shown as toggle buttons. */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-row .choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-row .choice {
  display: inline-block;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.form-row .choice:hover { border-color: var(--color-ink); }
.choice-input:checked + .choice {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-white);
}
.choice-input:focus-visible + .choice {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

/* Trade-in: make and model on top, registration and mileage below. */
.form-vehicle__model { margin-bottom: 12px; }
.form-vehicle__model .field-error { margin-bottom: -6px; }

/* Preferred date and time, side by side. */
.form-slot__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row .form-slot__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  margin-bottom: 6px;
}
.form-slot__hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}
.field-error {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-error);
  margin-top: 6px;
  min-height: 1em;
}
/* Always in the page, so screen readers already know the live region
   when the first message arrives; it only takes up space with text. */
.form-status {
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status:empty { margin: 0; padding: 0; }
.form-status.is-success {
  display: block;
  background: var(--color-success-bg);
  color: var(--color-success-text);
}
.form-status.is-error {
  display: block;
  background: var(--color-error-bg);
  color: var(--color-error-text);
}
/* Shown when sending failed: names the direct routes instead of
   leaving the visitor with nothing. */
.form-status.is-notice {
  display: block;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-ink);
  color: var(--color-ink);
}
.form-status__text {
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 16px;
}
.form-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.form-status__actions .btn {
  padding: 11px 18px;
  font-size: 0.88rem;
}
/* Honeypot field: out of sight and out of the tab order. */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}
.form-note a { color: inherit; text-decoration: underline; }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 1120px) {
  /* The links and the button no longer fit next to the brand. */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    /* Closed means gone for keyboard and screen readers too, not just
       invisible; visibility flips after the fade-out has run. */
    visibility: hidden;
    transition: transform var(--transition-fast), opacity var(--transition-fast), visibility 0s linear 0.18s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }
  .main-nav__link {
    padding: 12px 4px;
    font-size: 1rem;
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav .btn {
    margin: 12px 0 0;
    padding: 14px 18px;
    font-size: 0.92rem;
  }
  .nav-toggle { display: block; }
  .header-call { display: grid; }
}

@media (max-width: 1000px) {
  .finder__form { grid-template-columns: 1fr 1fr 1fr; }
  .finder__text { grid-column: 1 / -1; }
  .finder__form .btn { grid-column: 1 / -1; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  /* Routes become thumb-sized targets framed like the other controls:
     four across here, two across on phones. */
  .routes__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
  }
  .routes__link {
    width: 100%;
    min-height: 52px;
    padding: 8px 12px;
    font-size: 0.88rem;
    line-height: 1.25;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }
  .routes__link:hover { text-decoration: none; border-color: var(--color-ink); }
  /* The text column takes up more of the width here, so the veil has to
     reach further right to keep the lead readable on the photo. */
  .hero::before {
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.88) 50%,
      rgba(255, 255, 255, 0.3) 72%,
      rgba(255, 255, 255, 0) 85%);
  }
  /* Four columns get too narrow for the step texts below this width. */
  .steps-list { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .promise-list { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .promise-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .facts__inner { grid-template-columns: 1fr; }
  /* "Renault-Vertragswerkstatt" stays on one line, so it must fit a phone. */
  .facts__head h2 { font-size: clamp(1.4rem, 5.6vw, 2.3rem); }
  .contact-grid { grid-template-columns: 1fr; }
  /* Stacked, the form comes first: links that preselect a topic should
     land on it, not on the address card above it. */
  .contact-form { order: -1; }

  /* Bands stack: photo on top, text below. */
  .band { grid-template-columns: 1fr; min-height: 0; }
  .band__image,
  .band--reverse .band__image {
    position: relative;
    inset: auto;
    height: 240px;
  }
  .band__image::after,
  .band--reverse .band__image::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, var(--color-white) 100%);
  }
  .band--cutout .band__image,
  .band--reverse.band--cutout .band__image { height: auto; padding: 24px 24px 8px; }
  .band--cutout .band__image img { width: 100%; }
  .band__text,
  .band--reverse .band__text {
    grid-column: 1;
    justify-self: start;
    max-width: none;
    padding: 8px 24px 48px;
  }
}

@media (max-width: 720px) {
  .steps-list { grid-template-columns: 1fr; row-gap: 20px; }
  .promise-list { grid-template-columns: 1fr; row-gap: 16px; }
  .promise-list li,
  .promise-list li + li { padding: 0; border-left: 0; }
  /* Phones: the after-sales line may break anywhere. */
  .hero__note .nowrap { white-space: normal; }
  section { padding: 56px 0; }
  .reviews { padding: 44px 0; }
  .page-hero { padding: 28px 0 20px; }

  /* Photo as its own block on top, text on white below it. Laid under
     the text, the veil needed to keep the headline readable washed the
     photo out almost completely. */
  .hero {
    display: block;
    min-height: 0;
    padding-bottom: 64px;
  }
  .hero::before { content: none; }
  .hero__image {
    position: relative;
    inset: auto;
    z-index: auto;
    aspect-ratio: 3 / 2;
  }
  .hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, var(--color-white) 100%);
  }
  .hero__inner { padding-top: 8px; }

  .finder { margin-top: -40px; }
  .finder__form { grid-template-columns: 1fr; }
  .finder-hit {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }
  .finder-hit__img { width: 80px; height: 60px; }
  .finder-hit__price { grid-column: 2; font-size: 0.98rem; }
  .routes__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* 32px of inner padding leaves too little width for the fields here. */
  .contact-card,
  .contact-form { padding: 20px; }
  /* Four topics of very different length: an even 2×2 grid instead of
     four ragged buttons stacked one per line. */
  .choice-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .form-row .choice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.25;
  }
  .vehicle-grid { grid-template-columns: 1fr; }

  /* Team: one row per person (portrait left, details right) instead of
     a full-width portrait card each, which made the section several
     screens long. */
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .person-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 16px;
    padding: 14px 16px 14px 0;
  }
  .person-card__photo {
    grid-row: 1 / -1;
    margin: -14px 0;
    aspect-ratio: auto;
    min-height: 120px;
    border-bottom: 0;
    border-right: 1px solid var(--color-border);
    border-radius: var(--radius) 0 0 var(--radius);
  }
  .person-card__role { margin-bottom: 8px; }
  .person-contact { gap: 4px; }
}

/* "Renault-Vertragswerkstatt" alone is wider than a 320px screen. */
@media (max-width: 360px) {
  .facts__head .nowrap { white-space: normal; hyphens: auto; }
}
