/* Automobile P&V – öffentliches Design
   Farben: Dunkelblau / Anthrazit mit rotem Akzent. Stil: modern & clean. */

:root {
  --navy: #14243b;
  --navy-700: #1d3352;
  --anthracite: #2b2f36;
  --text: #1f242c;
  --muted: #5b6472;
  --line: #e3e7ed;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --red: #c8102e;
  --red-700: #a50d26;
  --green: #1b7a3d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 36, 59, .06), 0 6px 20px rgba(20, 36, 59, .08);
  --container: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border: 2px solid transparent; border-radius: var(--radius-sm); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover { background: var(--red-700); color: #fff; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--bg-alt); color: var(--navy); }
.btn--block { width: 100%; }
.btn--small { min-height: 36px; padding: .4em .9em; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--navy); color: #d6deea; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar__phone { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; gap: .4em; align-items: center; }
.topbar__phone:hover { color: #fff; text-decoration: underline; }
@media (max-width: 480px) { .topbar__hours { font-size: .8rem; } }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: block; text-decoration: none; color: var(--navy); position: relative; z-index: 1; margin-bottom: -1px; }

.logo { height: 125px; width: auto; aspect-ratio: 542 / 324; display: block; margin: 0; }
.logo__name { font-family: "Times New Roman", Times, Georgia, serif; font-size: 72px; }
.logo__tag { font-family: Arial, Helvetica, sans-serif; font-size: 41px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; width: 48px; height: 48px; border-radius: var(--radius-sm); }
.nav-toggle__bar { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a:not(.btn) { display: block; padding: .6em .8em; text-decoration: none; color: var(--anthracite); font-weight: 500; border-radius: var(--radius-sm); }
.main-nav a:not(.btn):hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }

@media (max-width: 900px) {
  .logo { height: 105px; }
  .nav-toggle { display: block; }
  .js .main-nav { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; gap: .5rem; box-shadow: var(--shadow); }
  .js .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { padding: .85em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: .9em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,36,59,.92) 0%, rgba(20,36,59,.75) 45%, rgba(20,36,59,.25) 100%); }
.hero__inner { position: relative; z-index: 1; padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(48px, 9vw, 120px); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; font-weight: 600; color: #ffb3bf; margin-bottom: .75rem; }
/* Beständigkeits-Siegel */
.seal { display: block; flex: none; aspect-ratio: 1; }
.seal--hero { width: 90px; height: 90px; margin: 0 0 1rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.seal--footer { width: 85px; height: 85px; }
@media (min-width: 900px) { .seal--hero { position: absolute; top: clamp(48px, 9vw, 120px); right: 24px; width: 140px; height: 140px; margin: 0; } }
.hero__title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.2rem); max-width: 18ch; margin-bottom: 1rem; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 52ch; color: #e6ebf2; }

.quicksearch { margin-top: 2rem; background: #fff; color: var(--text); border-radius: var(--radius); padding: 1rem; display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; align-items: end; max-width: 720px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.quicksearch .field { margin: 0; }
@media (max-width: 640px) { .quicksearch { grid-template-columns: 1fr; } }

/* ---------- USPs ---------- */
.usps { border-bottom: 1px solid var(--line); }
.usps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.usp .icon { width: 36px; height: 36px; color: var(--red); margin-bottom: .5rem; }
.usp__title { font-size: 1.1rem; margin-bottom: .35rem; }
.usp p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .usps__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Sections ---------- */
.section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; color: var(--red); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.cta { background: var(--navy); color: #e6ebf2; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.cta__title { color: #fff; font-size: 1.6rem; margin-bottom: .25rem; }
.cta p { margin: 0; }
.cta__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 2rem 0 1.5rem; }
.page-head__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.page-head__lead { color: var(--muted); margin: .35rem 0 0; }

/* ---------- Fahrzeugkarten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__count { position: absolute; right: 10px; bottom: 10px; background: rgba(20,36,59,.8); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 99px; }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.15rem; margin: 0; }
.card__title a { text-decoration: none; color: var(--navy); }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.card__title a:hover { color: var(--red); }
.card__variant { color: var(--muted); font-size: .9rem; margin: .15rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__facts { list-style: none; padding: 0; margin: .8rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .75rem; font-size: .88rem; color: var(--anthracite); }
.card__facts li { display: flex; gap: .4em; align-items: center; }
.card__facts .icon { color: var(--muted); }
.card__price { margin-top: auto; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: .75rem; }
.card__price strong { font-size: 1.4rem; color: var(--navy); }
.card__price small { color: var(--muted); font-size: .8rem; }
.card__envkv { font-size: .72rem; color: var(--muted); margin: .5rem 0 0; line-height: 1.4; }

.badge { position: absolute; left: 10px; top: 10px; background: var(--red); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; z-index: 2; }
.badge--reserved { background: #b45309; }
.badge--lg { font-size: .95rem; }

/* ---------- Liste & Filter ---------- */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 3rem; align-items: start; }
.filters__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; position: sticky; top: 146px; }
.filters__toggle { font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters__toggle::after { content: "▾"; color: var(--muted); }
details[open] > .filters__toggle::after { content: "▴"; }
.filters__form { margin-top: .75rem; }
.filters__reset { display: block; text-align: center; margin-top: .75rem; font-size: .9rem; }
@media (min-width: 961px) { .filters__toggle { pointer-events: none; } .filters__toggle::after { display: none; } }
@media (max-width: 960px) { .listing { grid-template-columns: 1fr; gap: 1rem; } .filters__panel { position: static; } }

.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.results__count { margin: 0; font-weight: 600; }
.sort { display: flex; align-items: center; gap: .5rem; }
.sort select { width: auto; min-height: 40px; }
.grid--results { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.pagination [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.pagination__gap { border: 0 !important; }

.empty { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; text-align: center; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 1rem; }
.field label, .field-group legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--anthracite); }
.field-group { border: 0; padding: 0; margin: 0 0 .25rem; }
.field-group .field { margin-bottom: .75rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 46px; padding: .6em .8em; border: 1px solid #c5ccd6; border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-700); outline: 3px solid rgba(29,51,82,.2); outline-offset: 0; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--red); }
.field__error { color: var(--red-700); font-size: .875rem; margin: .3rem 0 0; }
.field__opt { font-weight: 400; color: var(--muted); }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.field--check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--navy); }
.field--check label { font-weight: 400; font-size: .9rem; }
.field--check .field__error { grid-column: 1 / -1; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .form__row--2:not(.filters .form__row--2) { grid-template-columns: 1fr; } }
.form__note { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border-left: 4px solid; }
.alert--success { background: #ecf8f0; border-color: var(--green); color: #0f4d26; }
.alert--error { background: #fdecef; border-color: var(--red); color: #7a0a1c; }
.alert--info { background: #eef3fa; border-color: var(--navy-700); }

/* ---------- Detailseite ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1rem 0; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; }
.breadcrumb a { color: var(--muted); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; padding-bottom: 3rem; grid-template-areas: "gallery summary" "main summary"; align-items: start; }
.detail__gallery { grid-area: gallery; min-width: 0; }
.detail__summary { grid-area: summary; position: sticky; top: 146px; }
.detail__main { grid-area: main; min-width: 0; }
@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; grid-template-areas: "gallery" "summary" "main"; gap: 1.25rem; }
  .detail__summary { position: static; }
}

.gallery__stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #0d1726; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; aspect-ratio: 4 / 3; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.gallery__nav .icon { width: 28px; height: 28px; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__counter { position: absolute; left: 12px; bottom: 12px; background: rgba(13,23,38,.75); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: .85rem; }
.gallery__expand, .gallery__close { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: rgba(13,23,38,.75); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery__close { display: none; top: 12px; bottom: auto; }
.gallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg-alt); opacity: .7; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--red); opacity: 1; }
.gallery--empty img { border-radius: var(--radius); }
@media (hover: none) { .gallery__nav { display: none; } }

.gallery.is-fullscreen { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; padding: 0; }
.gallery.is-fullscreen .gallery__stage { flex: 1; border-radius: 0; background: #000; }
.gallery.is-fullscreen .gallery__track { height: 100%; aspect-ratio: auto; }
.gallery.is-fullscreen .gallery__expand { display: none; }
.gallery.is-fullscreen .gallery__close { display: flex; }
.gallery.is-fullscreen .gallery__thumbs { padding: .6rem; background: #000; }
body.no-scroll { overflow: hidden; }

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.summary__title { font-size: 1.6rem; margin: 0; }
.summary__variant { color: var(--muted); margin: .25rem 0 0; }
.summary__price { display: flex; flex-direction: column; margin: 1rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary__amount { font-size: 2.1rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.summary__net { font-size: .9rem; color: var(--anthracite); margin-top: .2rem; }
.summary__vat { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.keyfacts { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.keyfacts li { display: flex; flex-direction: column; background: var(--bg-alt); border-radius: var(--radius-sm); padding: .55rem .75rem; }
.keyfacts span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.keyfacts strong { color: var(--navy); }
.summary__actions { display: grid; gap: .6rem; }
.envkv-short { margin-top: 1rem; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.envkv-short p { margin: 0; }
.summary__id { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }

.block { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block__title { font-size: 1.35rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } }
.features { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.features li { break-inside: avoid; padding: .3rem 0; display: flex; gap: .5em; align-items: baseline; }
.features .icon { color: var(--green); }
@media (max-width: 560px) { .features { columns: 1; } }
.prose { max-width: 75ch; }
.prose--narrow { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.note { font-size: .85rem; color: var(--muted); }

.co2 { margin: 1.25rem 0; }
.co2__label { font-size: .9rem; margin-bottom: .5rem; }
.co2__scale { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-direction: column; gap: 4px; max-width: 340px; }
.co2__step { color: #fff; font-weight: 700; padding: 2px 12px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); opacity: .45; }
.co2__step.is-active { opacity: 1; outline: 0; box-shadow: none; position: relative; }
.co2__step.is-active::after { content: "◀ dieses Fahrzeug"; font-weight: 600; font-size: .8rem; margin-left: .75rem; }
.co2__step--a { width: 40%; background: #00a651; } .co2__step--b { width: 50%; background: #4cb748; } .co2__step--c { width: 60%; background: #bed630; color: #1f242c; }
.co2__step--d { width: 70%; background: #fff200; color: #1f242c; } .co2__step--e { width: 80%; background: #fdb913; color: #1f242c; }
.co2__step--f { width: 90%; background: #f37021; } .co2__step--g { width: 100%; background: #ed1c24; }

.block--form { background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; border-top: 0; margin-top: 1rem; scroll-margin-top: 150px; }

.sticky-actions { display: none; }
@media (max-width: 960px) {
  .sticky-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  body:has(.sticky-actions) .call-fab { display: none; }
  body:has(.sticky-actions) .site-footer { padding-bottom: 80px; }
}

/* ---------- Kontakt / Anfahrt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: .9rem; }
.contact-list .icon { width: 26px; height: 26px; color: var(--red); margin-top: .2rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .3rem 0 1rem; }
.hours dd { margin: 0; }
.address-lg { font-size: 1.1rem; margin-bottom: 1rem; }

.map-consent { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 12px, #e6eaf0 12px, #e6eaf0 24px); border: 1px solid var(--line); }
.map-consent__box { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; gap: .25rem; }
.map-consent__box .icon { width: 40px; height: 40px; color: var(--red); }
.map-consent__box p { max-width: 46ch; font-size: .92rem; }
.map-consent__remember { font-size: .85rem; margin-top: .75rem; display: flex; gap: .4rem; align-items: center; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--anthracite); color: #c9d0da; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3bf; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.site-footer__brand { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; margin-bottom: 1rem; }
.site-footer__brand .logo { height: 135px; margin: 0; }
.site-footer__brand + p { margin-top: 0; }
.site-footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; padding-bottom: 1.5rem; font-size: .85rem; color: #9aa4b2; }
.site-footer .hours dd { color: #fff; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.call-fab { display: none; }
@media (max-width: 760px) {
  .call-fab { display: flex; position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(200,16,46,.4); z-index: 40; }
  .call-fab .icon { width: 26px; height: 26px; }
  .call-fab:hover { color: #fff; }
}

@media print {
  .topbar, .site-header, .site-footer, .call-fab, .sticky-actions, .gallery__thumbs, .gallery__nav, .block--form { display: none !important; }
  .detail { display: block; }
}
.btn--lg { min-height: 56px; padding: .9em 1.8em; font-size: 1.1rem; }
.empty--mobilede { padding: 2.5rem 1.5rem; }
.empty--mobilede .btn { margin-top: .5rem; }
.listing--single { grid-template-columns: 1fr; }
.hero__cta { margin-top: 2rem; }

/* ---------- Autoankauf ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps__item { display: flex; gap: .9rem; align-items: flex-start; background: var(--bg-alt); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.steps__item p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.steps__no { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.purchase__form { max-width: 820px; margin: 0 auto; scroll-margin-top: 150px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem .4rem; margin: 0 0 1.5rem; min-width: 0; }
.form fieldset legend { font-weight: 700; font-size: 1.05rem; color: var(--navy); padding: 0 .5rem; }
.form__row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 640px) { .form__row--3 { grid-template-columns: 1fr; } }
.form__note--top { margin: 0 0 .6rem; }
.hint-box { background: #eef3fa; border-left: 4px solid var(--navy-700); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1rem; font-size: .93rem; }
input[type="month"], input[type="file"] { width: 100%; min-height: 46px; padding: .6em .8em; border: 1px solid #c5ccd6; border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; }
.field--error input[type="month"], .field--error input[type="file"] { border-color: var(--red); }
/* FAQ (Startseite) */
.faq { max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .75rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details[open] summary { margin-bottom: .5rem; }
.faq details p { margin: 0; }

/* Suchauftrag */
.search-hint { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; background: #eef3fa; border-left: 4px solid var(--navy-700); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-top: 2rem; }
.search-hint p { margin: 0; }
.empty__alt { margin: 1.25rem 0 0; font-size: .95rem; }

/* Probefahrt & Finanzierung */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; margin: 0; }
.field-group .pill, .anliegen .pill { font-weight: 400; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: .55em 1.1em; border: 1.5px solid #c5ccd6; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: .95rem; cursor: pointer; min-height: 44px; line-height: 1.6; }
.pill:hover span { border-color: var(--navy-700); }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid rgba(29,51,82,.35); outline-offset: 2px; }
.anliegen { margin-bottom: 1rem; }
.probe { background: var(--bg-alt); border-radius: var(--radius); padding: 1rem 1.1rem .4rem; margin-bottom: 1rem; }
.probe[hidden], .field__error[hidden] { display: none; }
.probe__label { font-weight: 700; color: var(--navy); margin: 0 0 .6rem; }
.nojs-hint { font-weight: 400; color: var(--muted); }
.js .nojs-hint { display: none; }
.finance__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.finance__range { padding: 0; min-height: 0; margin-top: .6rem; accent-color: var(--navy); border: 0; }
input[type="range"].finance__range { width: 100%; }
.finance__result { background: var(--bg-alt); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.finance__label { font-size: .9rem; color: var(--muted); }
.finance__rate { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.finance__example { margin: 1.25rem 0 .75rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; font-size: .88rem; color: var(--muted); }
.finance__example div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.finance__example dt { margin: 0; }
.finance__example dd { margin: 0; text-align: right; color: var(--text); font-weight: 600; }
.finance--info .btn { margin-top: .5rem; }
.finance__more { margin-top: 1rem; }
.finance__more p { margin: 0 0 .6rem; }
.js .fin-nojs { display: none; }
html:not(.js) .fin-js { display: none; }
.fdialog__title { margin: 0; font-size: 1.25rem; color: var(--navy); }
.fdialog__text p { margin: 0 0 .7rem; max-width: none; line-height: 1.55; }
.fdialog__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
@media (max-width: 520px) { .fdialog__actions .btn { width: 100%; justify-content: center; } }
@media (max-width: 700px) { .finance__grid, .finance__example { grid-template-columns: 1fr; } }
#anfrage, #finanzierung { scroll-margin-top: 150px; }

/* Leistungen & Bewertungen */
.services__intro { max-width: 760px; margin: 0 0 1.75rem; color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; display: flex; flex-direction: column; scroll-margin-top: 150px; }
.service p { margin: 0 0 .75rem; color: var(--muted); }
.service .link-arrow { margin-top: auto; }
.service__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #eef3fa; color: var(--red); margin-bottom: .8rem; }
.service__icon .icon { width: 26px; height: 26px; }
.service__title { font-size: 1.15rem; margin: 0 0 .4rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .85rem; }
.tile { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 600; height: 100%; transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--red); }
.tile .icon { flex: none; width: 26px; height: 26px; color: var(--red); }
.hint-box--tow { margin-bottom: 1.75rem; font-size: 1rem; }
.form fieldset .field--check { margin-bottom: 1rem; }
.reviews { text-align: left; }
.reviews p { max-width: 640px; }
@media (min-width: 901px) and (max-width: 1180px) {
  .main-nav { gap: .75rem; }
  .main-nav a:not(.btn) { padding: .6em .55em; font-size: .95rem; }
}
input[type="date"] { width: 100%; min-height: 46px; padding: .6em .8em; border: 1px solid #c5ccd6; border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; }
.field--error input[type="date"] { border-color: var(--red); }

/* Kundenstimmen */
.reviews__grid { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.review__text { margin: 0; flex: 1; }
.review__text p { margin: 0; max-width: none; font-style: italic; overflow-wrap: anywhere; }
.review__meta { margin: 0; max-width: none; display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.review__meta strong { color: var(--navy); }
.stars { display: inline-flex; gap: 2px; }
.stars__s { display: inline-flex; color: #d3d8e0; }
.stars__s.is-on { color: #e8a317; }
.stars .icon { width: 20px; height: 20px; }
.reviews__links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.reviews__note { margin: 1rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--muted); max-width: 70ch; }
.reviews--compact .reviews__links { margin-top: .5rem; }
.summary__reviews { margin: .9rem 0 0; font-size: .88rem; display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.summary__reviews .icon { flex: none; width: 16px; height: 16px; color: #e8a317; }
@media (max-width: 960px) { .reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews__grid { grid-template-columns: 1fr; } .reviews__links .btn { width: 100%; justify-content: center; } }

/* Kundenstimmen kompakt */
.rcard { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; min-width: 0; }
.rcard__btn { appearance: none; background: none; border: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; padding: .75rem .85rem; border-radius: var(--radius); }
.rcard__btn:hover { background: #f7f9fc; }
.rcard__stars .icon { width: 14px; height: 14px; }
.rcard__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: .88rem; line-height: 1.45; font-style: italic; overflow-wrap: anywhere; flex: 0 0 auto; }
.rcard--head .rcard__meta { margin-top: auto; }
.rcard__meta { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.rcard__meta strong { color: var(--navy); }
.rcard__more { font-size: .85rem; font-weight: 600; color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }
.rcard__full { display: none; }
.rcard--home .rcard__btn { padding: 1.2rem 1.2rem 1.1rem; gap: .7rem; }
.rcard--home .rcard__stars .icon { width: 20px; height: 20px; }
.rcard--home .rcard__text { -webkit-line-clamp: 4; line-clamp: 4; font-size: 1rem; line-height: 1.55; flex: 0 0 auto; min-height: calc(4 * 1.55em); }
.rcard--home .rcard__meta { font-size: .9rem; margin-top: auto; }
.rcard--home .rcard__more { margin-top: auto; }
.rcard--home .rcard__more + .rcard__meta { margin-top: 0; }
.rcard--home .rcard__btn { flex: 1; }

/* ohne JavaScript: Volltext statt Kurzfassung, Karte nicht klickbar */
html:not(.js) .rcard__text, html:not(.js) .rcard__more { display: none; }
html:not(.js) .rcard__full { display: block; font-size: .88rem; font-style: italic; padding: 0 .85rem; margin-top: -.2rem; order: 1; }
html:not(.js) .rcard { flex-direction: column; }
html:not(.js) .rcard__btn { cursor: default; pointer-events: none; padding-bottom: .2rem; }
html:not(.js) .rcard__meta { order: 3; }
html:not(.js) .rcard--head .rcard__full { padding-bottom: .75rem; }
html:not(.js) .rcard--home .rcard__full { font-size: 1rem; padding: 0 1.2rem 1.1rem; }

/* Seitenkopf Fahrzeugliste */
.page-head__reviews-link { margin: .5rem 0 0; max-width: none; font-size: .88rem; font-weight: 600; }
.page-head__reviews-link a { margin-left: .5rem; }
.page-head__reviews-note { margin: .25rem 0 0; max-width: none; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.rstrip { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: .35rem; -webkit-overflow-scrolling: touch; }
.rstrip .rcard { flex: 0 0 80%; scroll-snap-align: start; }
.page-head__grid { display: flex; flex-direction: column; gap: 1rem; }
.page-head__reviews { min-width: 0; }
@media (min-width: 1000px) {
  .page-head__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2rem; }
  .page-head__reviews { justify-self: end; width: 100%; max-width: 780px; }
  .rstrip { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .rstrip .rcard { flex: 1 1 0; min-width: 0; }
}

/* Dialog */
.rdialog { border: 0; padding: 0; border-radius: var(--radius); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--text, inherit); box-shadow: 0 20px 60px rgba(20,36,59,.35); }
.rdialog::backdrop { background: rgba(20,36,59,.55); }
.rdialog__box { padding: 1.5rem 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .8rem; }
.rdialog__stars .icon { width: 22px; height: 22px; }
.rdialog__text { margin: 0; font-style: italic; line-height: 1.6; overflow-wrap: anywhere; max-height: 55vh; overflow-y: auto; }
.rdialog__meta { margin: 0; color: var(--muted); font-size: .92rem; max-width: none; }
.rdialog__meta strong { color: var(--navy); }
.rdialog__close { align-self: flex-end; }
@media (max-width: 620px) { .rcard--home .rcard__btn { padding: 1rem; } }

/* Fahrzeugbeschreibung */
.desc { max-width: none; }
.desc p { max-width: 75ch; margin: 0 0 1rem; }
.desc__h { font-size: 1.1rem; margin: 1.6rem 0 .6rem; color: var(--navy); }
.desc__h:first-child { margin-top: 0; }
.desc__list { list-style: none; margin: 0 0 1rem; padding: 0; columns: 2 20rem; column-gap: 2rem; }
.desc__list li { position: relative; padding: .25rem 0 .25rem 1.1rem; break-inside: avoid; overflow-wrap: anywhere; line-height: 1.45; }
.desc__list li::before { content: ""; position: absolute; left: 0; top: .85em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--muted); }
.desc__list--plain { columns: 1; }
.desc__more { margin: -.25rem 0 1rem; }
.desc__more summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: .35rem 0; }
.desc__more[open] summary { margin-bottom: .35rem; }
.desc__note { font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .desc__list { columns: 1; } }
