/* Auto Prommegger — Design System */

/* Manrope lokal gehostet (kein Abruf bei Google — DSGVO) */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --red: #9E1B20;          /* Logo-Rot */
  --red-bright: #C2242B;
  --red-tint: #F8ECEC;
  --ink: #1d1d1f;
  --ink-2: #55565a;
  --ink-3: #86868b;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #eeeef0;
  --line: rgba(0,0,0,.08);
  --good: #1E7B3C;
  --bad: #B3261E;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lift: 0 24px 48px rgba(0,0,0,.13);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55; font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, .h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.032em; line-height: 1.04; }
h2, .h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.028em; line-height: 1.1; }
h3, .h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.accent-dot { color: var(--red); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.nav-links a { padding: 6px 0; position: relative; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); border-radius: 2px;
}
.nav-cta {
  font-size: 14px; font-weight: 700; background: var(--red); color: #fff;
  padding: 9px 18px; border-radius: 980px; transition: background .2s, transform .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-bright); transform: translateY(-1px); }
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-mobile {
  display: none; flex-direction: column; padding: 12px 24px 20px; gap: 4px;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.97);
}
.nav-mobile a { padding: 12px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: 0; }
.nav.open .nav-mobile { display: flex; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 980px; font-size: 16px; font-weight: 700;
  transition: all .2s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(158,27,32,.28); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #333; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.16); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost { color: var(--red); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { text-decoration: underline; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.gray { background: var(--bg-2); }

/* ---------- Cards / vehicle grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 980px;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; min-height: 2.6em; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.spec { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); padding: 4px 10px; border-radius: 7px; }
.card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 12px; font-weight: 600; color: var(--ink-3); display: block; letter-spacing: 0; }
.card-link { font-size: 14px; color: var(--red); font-weight: 700; }

/* ---------- Filter chips ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  padding: 8px 18px; border-radius: 980px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); transition: all .15s;
}
.chip:hover { color: var(--ink); border-color: rgba(0,0,0,.25); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-awd.active { background: var(--red); border-color: var(--red); }
.spec-awd { background: var(--red-tint); color: var(--red); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--red); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=number],
.field select, .field textarea {
  font-family: inherit; font-size: 15.5px; color: var(--ink);
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,0,0,.14); background: #fff;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(158,27,32,.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  cursor: pointer; padding: 10px 20px; border-radius: 980px; font-size: 14.5px; font-weight: 600;
  border: 1.5px solid rgba(0,0,0,.14); color: var(--ink-2); transition: all .15s; background: #fff;
}
.seg input:checked + label { background: var(--red); border-color: var(--red); color: #fff; }
.seg input:focus-visible + label { box-shadow: 0 0 0 3px rgba(158,27,32,.25); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
table.data th {
  text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap; cursor: pointer; user-select: none;
}
table.data th.sorted { color: var(--red); }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg-2); }
.delta-good { color: var(--good); font-weight: 800; }
.delta-bad { color: var(--bad); font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 980px; white-space: nowrap; }
.badge-top { background: #E3F2E7; color: var(--good); }
.badge-ok { background: #FFF4E0; color: #8A5A00; }
.badge-neutral { background: var(--bg-2); color: var(--ink-3); }
.badge-over { background: #FBE9E7; color: var(--bad); }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.tile .t-label { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.tile .t-value { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.tile .t-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; }
.footer-logo img { height: 34px; width: auto; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-logo-row { display: flex; justify-content: center; padding: 34px 0 10px; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-meta a:hover { color: #fff; }

/* ---------- WhatsApp ---------- */
.btn-wa { background: #1FAF53; color: #fff; }
.btn-wa:hover { background: #179947; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,175,83,.3); }
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1FAF53; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(31,175,83,.45); }
.call-float {
  position: fixed; bottom: 92px; right: 22px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .2s, box-shadow .2s;
}
.call-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(158,27,32,.45); }
@media (max-width: 900px) { .call-float { display: flex; } }
@media (max-width: 560px) {
  .wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .call-float { bottom: 80px; right: 16px; width: 52px; height: 52px; }
}

/* ---------- Cookie-Banner ---------- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  padding: 16px; pointer-events: none;
}
.cb-card {
  pointer-events: auto; max-width: 680px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.22); padding: 22px 24px;
}
.cb-card h3 { font-size: 17px; margin-bottom: 6px; }
.cb-card p { font-size: 13.5px; color: var(--ink-2); }
.cb-card a { color: var(--red); font-weight: 700; }
.cb-card a:hover { text-decoration: underline; }
.cb-settings { margin: 14px 0 4px; display: grid; gap: 8px; }
.cb-settings[hidden], .cb-actions .btn[hidden] { display: none; }
.cb-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.cb-opt input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--red); }
.cb-opt b { color: var(--ink); }
.cb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 560px) {
  .consent-banner { padding: 10px; }
  .cb-actions .btn { flex: 1; justify-content: center; }
}

/* Consent-Platzhalter (Google Maps) */
.map-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: var(--bg-2); padding: 28px; color: var(--ink-2); font-size: 14.5px;
}

/* Aktionspreis in Fahrzeugkarten */
.price-old { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-3); text-decoration: line-through; letter-spacing: 0; }
.price-action { color: var(--red); }
.card-badge-offer { background: var(--red); color: #fff; }

/* ---------- Foto-Upload (Ankauf) ---------- */
.dropzone {
  border: 2px dashed rgba(0,0,0,.18); border-radius: var(--radius-sm);
  padding: 28px 20px; text-align: center; color: var(--ink-2); font-size: 14.5px;
  cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: var(--red-tint); }
.dropzone b { color: var(--red); }
.upload-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 12px; }
.upload-previews .up {
  position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.upload-previews .up img { width: 100%; height: 100%; object-fit: cover; }
.upload-previews .up button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 13px; line-height: 1;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card, .card-img img, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav .nav-cta.desktop { display: none; }
  .nav-burger { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr; }
  .nav-logo img { height: 30px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, .chip:focus-visible {
  outline: 2.5px solid var(--red); outline-offset: 2px; border-radius: 6px;
}
