/* ==========================================================================
   Autohandel — "Hell & Sachlich"
   Helles, konservatives Layout für den normalen Autoverkauf (2.000–5.000 €).
   Weiß + Petrolblau, Manrope, ruhige Flächen, keine Effekthascherei.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

/* ---------- Tokens ---------- */
:root {
  --paper:     #FFFFFF;
  --bg:        #FFFFFF;
  --bg-2:      #F4F7F8;   /* ruhiger Grauton für Panels */
  --bg-3:      #EDF2F4;
  --surface:   #FFFFFF;
  --surface-2: #F8FAFB;

  --line:      #D8E2E6;
  --line-soft: #E7EDF0;

  --ink:       #10242C;   /* Überschriften */
  --ink-dim:   #43585F;   /* Fließtext */
  --ink-faint: #6E8189;   /* Sekundär */

  --blue:      #0B4A63;   /* Primärfarbe */
  --blue-700:  #0E5D7C;
  --blue-900:  #082F3F;
  --blue-tint: #E8F1F5;
  --green:     #17794C;   /* Häkchen / „kostenlos" */
  --wa:        #25D366;
  --focus:     #0E7FA6;

  --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --r:    10px;
  --r-lg: 14px;
  --r-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16,36,44,.06), 0 2px 8px -4px rgba(16,36,44,.10);
  --shadow:    0 2px 6px -2px rgba(16,36,44,.08), 0 12px 28px -18px rgba(16,36,44,.22);
  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-dim);
  line-height: 1.65;
  font-size: clamp(1rem, .97rem + .16vw, 1.06rem);
  overflow-x: hidden;
}
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3rem, 6vw, 5.2rem); position: relative; }
.section--tint  { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.hairline { height: 1px; border: 0; background: var(--line); margin: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.display { font-family: var(--font-body); font-weight: 800; line-height: 1.13; letter-spacing: -.02em; }
.h-xl { font-size: clamp(1.95rem, 1.4rem + 2.3vw, 3rem); }
.h-lg { font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.3rem); }
.h-md { font-size: clamp(1.32rem, 1.15rem + .7vw, 1.65rem); }
.accent { color: var(--blue); }
.eyebrow {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow svg { width: 1.05em; height: 1.05em; }
.lead { font-size: clamp(1.04rem, 1rem + .35vw, 1.18rem); color: var(--ink-dim); }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
strong, b { color: var(--ink); font-weight: 700; }
p + p { margin-top: .9em; }
.section-head { max-width: 66ch; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.section-head .lead { margin-top: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: var(--r-sm);
  font-weight: 700; font-size: .97rem; border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-700); }
.btn--ghost { border-color: var(--line); color: var(--blue); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-tint); }
.btn--wa { background: var(--wa); color: #06331a; }
.btn--wa:hover { background: #1fbe5c; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(16,36,44,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: var(--blue); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
}
.brand__name { font-size: 1rem; line-height: 1.15; color: var(--ink); }
.brand__name small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { font-size: .95rem; font-weight: 600; color: var(--ink-dim); }
.nav__links a:hover { color: var(--blue); }
.nav__cta { display: flex; align-items: center; gap: .7rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.nav__toggle svg { width: 22px; height: 22px; margin-inline: auto; }

/* ---------- Hero (hell, zweispaltig) ---------- */
.hero { background: linear-gradient(180deg, var(--bg-2), #fff); border-bottom: 1px solid var(--line-soft); padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(2rem, 4vw, 3.2rem); }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.hero__inner { max-width: 34rem; }
.hero h1 { margin-top: .9rem; }
.hero .lead { margin-top: 1rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.hero__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.hero__trust {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  gap: .9rem 2rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink-dim); }
.trust-item svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.trust-item b { color: var(--ink); font-weight: 700; }

/* ---------- Kennzahlen-Leiste ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-bottom: 1px solid var(--line-soft); }
.stat { padding: clamp(1.2rem,2.6vw,1.8rem) var(--pad); text-align: center; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 800; line-height: 1.1; color: var(--blue); }
.stat__lbl { display: block; margin-top: .3rem; font-size: .82rem; color: var(--ink-faint); font-weight: 600; }

/* ---------- Ablauf-Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.3rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); font-size: .88rem; font-weight: 800;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.step p { font-size: .93rem; }
.step__ico { width: 24px; height: 24px; color: var(--blue); position: absolute; top: 1.5rem; right: 1.2rem; opacity: .3; }

/* ---------- Karten ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card { padding: 1.5rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #BFD2D9; box-shadow: var(--shadow-sm); }
.card__ico { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; margin-bottom: .9rem; background: var(--blue-tint); color: var(--blue); }
.card__ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { font-size: .95rem; }

/* ---------- Split / Checkliste ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.split__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.checklist { margin-top: 1.3rem; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { width: 21px; height: 21px; color: var(--green); flex: none; margin-top: .15rem; }
.checklist b { display: block; color: var(--ink); font-weight: 700; }

/* ---------- Anfrageformular ---------- */
.form-wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(1.6rem,4vw,2.8rem); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 2.2vw, 1.7rem); box-shadow: var(--shadow); }
.form-card__head { padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line-soft); }
.form-side .checklist { margin-top: 1.5rem; }
.assurance { display: flex; align-items: center; gap: .55rem; margin-top: 1.3rem; font-size: .87rem; color: var(--ink-faint); }
.assurance svg { width: 18px; height: 18px; color: var(--green); flex: none; }

.lead-form { display: grid; gap: .9rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fld { display: grid; gap: .3rem; }
.fld > label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.fld .hint { font-size: .8rem; color: var(--ink-faint); font-weight: 400; }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: .72rem .85rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.fld textarea { min-height: 116px; resize: vertical; }
.fld select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343585F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px; padding-right: 2.2rem; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,74,99,.13); }
.fld input:invalid:not(:placeholder-shown) { border-color: #B3261E; }
.fld .req { color: #B3261E; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--ink-dim); }
.consent input { width: 19px; height: 19px; margin-top: .18rem; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--ink-faint); text-align: center; }
.form-alt { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); font-size: .89rem; color: var(--ink-faint); text-align: center; }
.form-alt a { color: var(--blue); font-weight: 700; }

/* ---------- Link-Raster (Orte / Marken) ---------- */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .6rem; }
.linkcard {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .85rem 1rem; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .18s, background .18s; font-size: .95rem;
}
.linkcard:hover { border-color: var(--blue); background: var(--blue-tint); }
.linkcard span { color: var(--ink); font-weight: 700; }
.linkcard small { display: block; color: var(--ink-faint); font-weight: 500; font-size: .79rem; }
.linkcard svg { width: 17px; height: 17px; color: var(--blue); flex: none; opacity: .6; }
.group-label { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin: 1.8rem 0 .8rem; }
.group-label:first-child { margin-top: 0; }

/* ---------- Leistungsversprechen ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.quote { padding: 1.6rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.quote p { font-size: 1.02rem !important; line-height: 1.6; color: var(--ink-dim); }
.quote footer { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.quote .who { font-size: .87rem; }
.quote .who b { display: block; color: var(--ink); }
.quote .who small { color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.4rem 1.15rem 0; position: relative; font-weight: 700; font-size: 1.04rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: 1.45rem; font-weight: 600; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding-bottom: 1.2rem; max-width: 72ch; }

/* ---------- CTA-Band ---------- */
.cta-band { border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); background: var(--blue); color: #D7E7EE; text-align: center; }
.cta-band h2, .cta-band .accent { color: #fff; }
.cta-band .eyebrow { color: #9BC4D5; }
.cta-band .sub { margin-top: .7rem; color: #C3DBE4; }
.cta-band .btn { margin-top: 1.5rem; }
.cta-band .btn--primary { background: #fff; color: var(--blue); }
.cta-band .btn--primary:hover { background: var(--blue-tint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(2.4rem,4vw,3.4rem) 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand p { font-size: .92rem; margin-top: .9rem; max-width: 34ch; }
.footer h4 { font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; font-weight: 800; }
.footer ul { display: grid; gap: .5rem; }
.footer a { color: var(--ink-dim); font-size: .93rem; }
.footer a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .86rem; }
.footer-bottom a { color: var(--ink-faint); font-size: .86rem; }
.disclaimer { font-size: .8rem; color: var(--ink-faint); line-height: 1.55; margin-top: 1.6rem; max-width: 92ch; }

/* ---------- WhatsApp-Button ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 22px -6px rgba(37,211,102,.55); transition: transform .18s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; color: #fff; }

/* ---------- Unterseiten-Kopf ---------- */
.subhero { background: var(--bg-2); border-bottom: 1px solid var(--line-soft); padding-block: clamp(1.6rem,3.5vw,2.6rem) clamp(1.8rem,4vw,3rem); }
.subhero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.4rem,3.5vw,2.6rem); align-items: center; }
.subhero__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.subhero__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.breadcrumb { font-size: .84rem; color: var(--ink-faint); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.subhero h1 { max-width: 22ch; }
.subhero .lead { margin-top: .9rem; max-width: 52ch; }
.subhero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ---------- Fließtext ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem,1.15rem + .8vw,1.75rem); margin: 2.1rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.prose ul.bullets { display: grid; gap: .6rem; margin: 1rem 0; }
.prose ul.bullets li { display: flex; gap: .65rem; }
.prose ul.bullets svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: .2rem; }
.prose a { color: var(--blue); text-decoration: underline; }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.tag { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); background: #fff; }

.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.sidebar-card p { font-size: .93rem; margin-bottom: 1.1rem; }
.layout-2col { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(1.6rem,4vw,2.8rem); align-items: start; }

/* ---------- 404 / Danke ---------- */
.error-page { min-height: 56vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-size: clamp(3.4rem,12vw,6rem); font-weight: 800; line-height: 1; color: var(--blue); }
.notice { max-width: 640px; margin-inline: auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.8rem,4vw,2.8rem); box-shadow: var(--shadow-sm); }
.notice__ico { width: 58px; height: 58px; border-radius: 50%; background: #E6F4EC; color: var(--green); display: grid; place-items: center; margin: 0 auto 1.1rem; }
.notice__ico svg { width: 30px; height: 30px; }

/* ---------- Reveal (nur mit JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .grid-3, .quotes { grid-template-columns: 1fr 1fr; }
  .split, .form-wrap, .layout-2col, .hero__grid, .subhero__grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .hero__media, .subhero__media { order: -1; }
  .hero__trust { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-card { position: static; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fld-row { grid-template-columns: 1fr; }
  .hero__cta .btn, .subhero__cta .btn { flex: 1 1 auto; }
}

/* ---------- Mobile-Menü ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: #fff; display: none; flex-direction: column; padding: 1.6rem var(--pad); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu .mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; }
.mobile-menu a { font-size: 1.25rem; font-weight: 700; color: var(--ink); padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 1.2rem; }
.mm-close { width: 44px; height: 44px; color: var(--ink); }

/* ---------- Druck ---------- */
@media print {
  .site-header, .wa-float, .mobile-menu, .cta-band, .form-card { display: none !important; }
  body { color: #000; }
}
