/* EV Inspector — evinspector.de
   Tokens nach docs/DESIGN.md: Electric Blue als einzige Aktionsfarbe,
   weiß-dominant, keine Shadows/Gradients, Weights 400/500, Radius 4/12.
   Kein JavaScript, keine externen Ressourcen (Fonts = Systemschrift). */

:root {
  --action: #3E6AE1;
  --action-hover: #3457B1;
  --surface: #FFFFFF;
  --surface-alt: #F4F4F4;
  --surface-dark: #171A20;
  --text: #171A20;
  --text-2: #393C41;
  --text-3: #5C5E62;
  --text-placeholder: #8E8E8E;
  --border: #D0D1D2;
  --border-soft: #EEEEEE;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9CBD0;
  --ok: #2E7D32;
  --warn: #B45309;
  --fail: #C0392B;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-ctl: 4px;
  --radius-card: 12px;
  --motion: 330ms;
  --ease: cubic-bezier(0.5, 0, 0, 0.75);

  --container: 1120px;
  --gutter: 20px;
  --section: 72px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 112px; }
}

*, *::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: 17px;
  line-height: 1.55;
  color: var(--text-2);
  background: var(--surface);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; color: var(--text); }
small { font-size: 14px; }

a {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--motion) var(--ease);
}
a:hover { color: var(--action-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: var(--radius-ctl);
}

ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--action);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-ctl);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.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;
}
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 17px;
}
.brand:hover { color: var(--text); }
.brand { white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 7px; display: block; }
.site-nav { display: none; gap: 28px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
@media (min-width: 900px) { .site-nav { display: flex; } }
.status-pill {
  font-size: 13px;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
@media (min-width: 480px) { .status-pill { font-size: 14px; padding: 6px 12px; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--surface-dark); color: var(--on-dark-2); }
.section-dark h2, .section-dark h3, .section-dark strong { color: var(--on-dark); }
.section-dark a { color: var(--on-dark); }
.section-lead {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-lead p { font-size: 18px; }
@media (min-width: 768px) { .section-lead { margin-bottom: 56px; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 var(--section); }
@media (min-width: 900px) {
  .hero { padding-top: 88px; }
  .hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: center;
  }
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { font-size: 19px; color: var(--text-2); max-width: 520px; margin-bottom: 28px; }
@media (min-width: 768px) { .hero-copy .lead { font-size: 21px; } }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--text-3); }
.hero-facts li { padding-left: 22px; position: relative; margin: 0; }
.hero-facts li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--action);
  border-bottom: 2px solid var(--action);
  transform: rotate(-45deg);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-ctl);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--motion) var(--ease), color var(--motion) var(--ease), border-color var(--motion) var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--text-3); }
.section-dark .btn-secondary { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.4); }
.section-dark .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-note { font-size: 14px; color: var(--text-3); margin: 0; }

/* Store-Verfügbarkeit: bewusst keine Fake-Store-Buttons */
.store-status {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.store-status .store {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  color: var(--text-3);
  font-size: 15px;
  background: var(--surface);
}
.store-status .store svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.store-status .store span { color: var(--text-2); }
@media (min-width: 480px) { .store-status { grid-template-columns: 1fr 1fr; } }

/* ---------- Profil-Panel (Hero-Visual, reines HTML) ---------- */
.profile {
  background: var(--surface-alt);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-top: 40px;
  font-size: 15px;
  color: var(--text-2);
}
@media (min-width: 900px) { .profile { margin-top: 0; padding: 28px; } }
.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-head span:first-child { color: var(--text); font-weight: 500; }
.profile-head span:last-child { font-size: 13px; color: var(--text-3); }
.profile-vin {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  background: var(--surface);
  border-radius: var(--radius-ctl);
  padding: 10px 12px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.profile-vin b { color: var(--text); font-weight: 500; }
.profile dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.profile dt { color: var(--text-3); }
.profile dd { margin: 0; color: var(--text); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: var(--radius-ctl);
  background: var(--surface);
  color: var(--text-3);
  white-space: nowrap;
}
.tag-confirm { color: var(--action); }
.profile-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.profile-checks li {
  background: var(--surface);
  border-radius: var(--radius-ctl);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.profile-checks li span:last-child { color: var(--text-3); white-space: nowrap; font-size: 13px; }
.profile-checks .st-ok { color: var(--ok); }
.profile-checks .st-warn { color: var(--warn); }
.profile-checks .st-fail { color: var(--fail); }
.profile-foot { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  background: var(--surface-alt);
  border-radius: var(--radius-card);
  padding: 24px;
}
.section-alt .card { background: var(--surface); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 16px; }
.card .meta { font-size: 14px; color: var(--text-3); margin-top: 12px; }

.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-ctl);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.section-alt .feature-icon { background: var(--surface-alt); }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--action); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Ablauf (echte Sequenz, daher nummeriert) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.steps li { margin: 0; padding-top: 18px; border-top: 2px solid var(--text); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 19px; }
.steps p { font-size: 16px; }

/* ---------- Tabelle (Fahrzeuge) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card); background: var(--surface-alt); }
.section-alt .table-wrap { background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { font-weight: 500; color: var(--text); }
tbody th { white-space: nowrap; }
thead th { font-size: 14px; color: var(--text-3); font-weight: 400; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td .yes { color: var(--text); }
td .part { color: var(--warn); }
td .no { color: var(--text-3); }
.table-note { font-size: 14px; color: var(--text-3); margin-top: 16px; }

/* ---------- Preis ---------- */
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .price-list { grid-template-columns: 1fr 1fr; gap: 24px; } }
.price-list li { margin: 0; }
.price-list .card p { margin-bottom: 8px; }

/* ---------- Grenzen (dunkel) ---------- */
.limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 768px) { .limits { grid-template-columns: 1fr 1fr; gap: 28px 48px; } }
.limits li { margin: 0; padding-left: 20px; border-left: 2px solid rgba(255,255,255,0.25); }
.limits strong { display: block; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--motion) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; font-size: 16px; max-width: 680px; }

/* ---------- Abschluss ---------- */
.final h2 { max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 32px;
  font-size: 14px;
  color: var(--text-3);
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; } }
.site-footer h2 { font-size: 14px; color: var(--text); margin-bottom: 10px; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text-3); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 13px; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 48px 0 var(--section); }
.legal .container { max-width: 800px; }
.legal h1 { margin-bottom: 8px; }
.legal .doc-meta { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal h3 { font-size: 18px; margin-top: 24px; }
.legal p, .legal li { font-size: 16px; }
.legal table { min-width: 0; font-size: 15px; }
.legal .table-wrap { background: transparent; }
.legal address { font-style: normal; }
.legal .toc { background: var(--surface-alt); border-radius: var(--radius-card); padding: 20px 24px; margin-bottom: 32px; }
.legal .toc ol { margin: 0; padding-left: 20px; }
/* Auf surface-alt (#F4F4F4) erreicht #3E6AE1 nur 4,38:1 → dunklerer Blauton (≥ 4,5:1) */
.legal .toc a, .notice a { color: var(--action-hover); }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.notice {
  border-left: 3px solid var(--action);
  background: var(--surface-alt);
  padding: 14px 18px;
  border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0;
  font-size: 15px;
  margin: 24px 0;
}

/* ---------- 404 ---------- */
.error-page { padding: 96px 0; }
.error-page h1 { margin-bottom: 12px; }
