/* Stilblatt fahrzeugscheinscan.de
 *
 * Ausgelagert aus dem <style>-Block der Seite, damit die Marken-Token an genau einer
 * Stelle stehen und die Nebenseiten (VIN, Kennzeichen) dieselbe Datei laden statt eine
 * Kopie zu pflegen. Bewusst unminifiziert: Die Seite hat keinen Build-Schritt, also ist
 * die Quelle auch das Auslieferungsformat - und muss lesbar bleiben.
 */

/* ---------------------------------------------------------------------------
 * Marken-Token
 * ------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --navy: #071726;
  --navy-soft: #0d2237;
  --paper: #f5f8fb;
  --white: #fff;
  --ink: #10263a;
  --muted: #607387;
  --line: #d7e1eb;
  --blue: #2f7cff;
  --cyan: #79d7ff;
  --green: #3cc99a;

  /* Abgeleitete Textfarben. --blue und --green sind Flächenfarben: als Schrift auf Weiß
   * bleiben sie unter 4.5:1 und wären damit für Fließtext unzulässig. Die dunkleren
   * Varianten tragen dieselbe Farbaussage und bestehen die Kontrastprüfung. */
  --blue-ink: #1a5fd6;
  --green-ink: #0f7a58;
  --green-tint: #e8f7f1;
  --blue-tint: #e9f1ff;

  --shadow: 0 28px 70px rgba(8, 28, 47, .16);
  --shadow-card: 0 18px 44px rgba(8, 28, 47, .09);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------------------------
 * Grundlagen
 * ------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sprungziele aus der Navigation dürfen nicht unter dem Seitenrand kleben. */
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* 360px Gerätebreite ist die Untergrenze: Nichts darf waagerecht herausragen. */
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

/* Ein sichtbarer Fokusrahmen für jedes bedienbare Element. Ohne ihn ist die Seite mit
 * der Tastatur nicht benutzbar - der Nutzer sieht nicht, wo er steht. */
:focus-visible {
  outline: 3px solid var(--blue-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero-wrap :focus-visible {
  outline-color: var(--cyan);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.section-kicker {
  color: var(--blue-ink);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
 * Kopfzeile und Navigation
 * ------------------------------------------------------------------------- */

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 1px solid rgba(121, 215, 255, .65);
  border-radius: 9px;
}

.brand-mark:before,
.brand-mark:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--cyan);
  border-left-color: transparent;
  border-right-color: transparent;
}

.brand-mark:after {
  inset: 12px 7px 11px;
  border-width: 1px 0 0;
  border-top-color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: #cddcea;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease;
}

.nav a:hover {
  color: var(--white);
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav .button {
  min-height: 42px;
  padding: 0 17px;
  font-size: .8rem;
}

/* ---------------------------------------------------------------------------
 * Schaltflächen
 * ------------------------------------------------------------------------- */

.button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  font-size: .84rem;
  font-weight: 820;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

/* Nicht --blue, sondern der dunklere Ton: Weiße Schrift auf #2f7cff erreicht nur
 * 3.9:1 und wäre auf einer Schaltfläche schlecht lesbar. */
.button-primary {
  border-color: var(--blue-ink);
  background: var(--blue-ink);
}

.button-primary:hover {
  background: #164fb4;
  border-color: #164fb4;
}

.button-light {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--blue-ink);
}

.button-ghost {
  border-color: rgba(16, 38, 58, .22);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--blue-ink);
}

.button-block {
  width: 100%;
}

/* ---------------------------------------------------------------------------
 * Hero mit Scan-Vorschau
 * ------------------------------------------------------------------------- */

.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(47, 124, 255, .29), transparent 27rem),
    radial-gradient(circle at 12% 86%, rgba(121, 215, 255, .11), transparent 26rem),
    var(--navy);
}

.hero-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 49.8%, rgba(255, 255, 255, .03) 50%, transparent 50.2%);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 72px;
  align-items: center;
  padding: 78px 0 92px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: clamp(3.1rem, 6.4vw, 6.4rem);
  line-height: .91;
  letter-spacing: -.075em;
}

h1 em {
  font-style: normal;
  color: var(--cyan);
}

.lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: #b8c8d7;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #a9bccd;
  font-size: .8rem;
}

.hero-note li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note li:before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.scanner {
  position: relative;
  min-height: 475px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 27px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.scanner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a8bccd;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.live {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.document {
  position: relative;
  margin-top: 28px;
  padding: 25px 25px 23px 45px;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff, #edf5fb);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  overflow: hidden;
}

.document:before {
  content: "D";
  position: absolute;
  inset: 0 auto 0 0;
  width: 28px;
  display: grid;
  place-items: center;
  background: #1d58b7;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.document-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid #cedbe6;
}

.document-top small {
  display: block;
  color: #64788a;
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.document-top strong {
  display: block;
  margin-top: 5px;
  color: #17334b;
  font-size: .92rem;
}

.seal {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px dashed #7f9cb5;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5d7387;
  font-size: .47rem;
  text-align: center;
}

.fields {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
  margin-top: 16px;
}

.field {
  padding: 10px 11px;
  border: 1px solid #d4e0e9;
  border-radius: 8px;
  background: rgba(255, 255, 255, .61);
}

.field span {
  display: block;
  color: #647889;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field b {
  display: block;
  margin-top: 4px;
  color: #18364f;
  font-size: .75rem;
}

.confidence {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0d6f50 !important;
}

.confidence:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.scan-line {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 51%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px var(--cyan);
  animation: scan 3.2s ease-in-out infinite;
}

.result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.result span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  color: #9db3c5;
  font-size: .61rem;
}

.result b {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: .78rem;
}

.result b.ok {
  color: #70e3bd;
}

@keyframes scan {
  0%, 100% {
    transform: translateY(-98px);
    opacity: .2;
  }
  50% {
    transform: translateY(105px);
    opacity: 1;
  }
}

/* ---------------------------------------------------------------------------
 * Einleitung und Ablauf
 * ------------------------------------------------------------------------- */

.intro {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  padding: 100px 0 60px;
}

.intro h2 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4.5vw, 4.35rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.intro-copy {
  padding-top: 32px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.intro-copy p {
  margin: 0 0 18px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 0 90px;
}

.step {
  position: relative;
  min-height: 245px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
}

.step-number {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-size: .72rem;
  font-weight: 900;
}

.step h3 {
  margin: 44px 0 10px;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}

.step:after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue-ink);
}

.step:last-child:after {
  display: none;
}

/* ---------------------------------------------------------------------------
 * Abschnittsköpfe
 * ------------------------------------------------------------------------- */

.section-head {
  max-width: 760px;
  margin: 0 0 34px;
}

.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* ---------------------------------------------------------------------------
 * Produktmerkmale
 * ------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 0 28px;
}

.feature {
  padding: 24px;
  min-height: 205px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.feature span {
  color: var(--blue-ink);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.feature h3 {
  margin: 23px 0 9px;
  font-size: .98rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.62;
}

/* ---------------------------------------------------------------------------
 * Schnittstelle
 * ------------------------------------------------------------------------- */

.api {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin: 0 0 95px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.api > *,
.payg > * {
  min-width: 0;
}

.api h2 {
  margin: 14px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.045em;
}

.api p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.72;
}

/* min-width:0, weil ein Rasterkind sonst auf seine Inhaltsbreite wächst: Ohne die Zeile
 * schiebt die längste Codezeile die ganze Seite auseinander, statt im Kasten zu scrollen. */
.api-code {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--navy);
  color: #cfe0ee;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.75;
  /* Codezeilen brechen nicht - der Kasten scrollt für sich, damit die Seite es nicht tut. */
  overflow-x: auto;
}

.api-code b {
  color: var(--cyan);
  font-weight: 600;
}

.api-code i {
  color: #7fe3bd;
  font-style: normal;
}

/* ---------------------------------------------------------------------------
 * Preise - der Kern der Seite
 * ------------------------------------------------------------------------- */

.pricing {
  padding: 0 0 20px;
}

.pricing-reference {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 28px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
}

.pricing-reference b {
  font-weight: 850;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cyan);
  color: #06283a;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.plan h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.03em;
}

.plan-tagline {
  margin: 8px 0 0;
  min-height: 42px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.plan-price strong {
  font-size: 2.3rem;
  letter-spacing: -.055em;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.plan-quota {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  font-size: .88rem;
  font-weight: 800;
}

.plan-quota small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
}

/* Der Ersparnis-Block ist die Kaufaussage: Prozent und Eurobetrag stehen zusammen, weil
 * der Betrag wirkt und der Prozentsatz vergleichbar macht. Getrennt wirkt keins von
 * beidem. */
.plan-saving {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 122, 88, .22);
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-ink);
}

.plan-saving b {
  display: block;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

.plan-saving span {
  display: block;
  margin-top: 4px;
  font-size: .77rem;
  font-weight: 600;
  line-height: 1.5;
}

.plan-unit {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.plan-features {
  margin: 18px 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.5;
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-ink);
  font-weight: 900;
}

.plan .button {
  margin-top: auto;
}

/* Die hervorgehobene Karte trägt die Markenfarbe als Fläche. Auf Navy erreicht jede
 * verwendete Schriftfarbe mehr als 8:1 - eine hellblaue Tönung täte das nicht. */
.plan-highlight {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 30px 60px rgba(7, 23, 38, .3);
}

.plan-highlight .plan-tagline,
.plan-highlight .plan-price span,
.plan-highlight .plan-unit {
  color: #b8c8d7;
}

.plan-highlight .plan-quota {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.plan-highlight .plan-quota small {
  color: #b8c8d7;
}

.plan-highlight .plan-saving {
  border-color: rgba(60, 201, 154, .38);
  background: rgba(60, 201, 154, .12);
  color: #7fe3bd;
}

.plan-highlight .plan-features {
  border-top-color: rgba(255, 255, 255, .16);
}

.plan-highlight .plan-features li {
  color: #e2ecf5;
}

.plan-highlight .plan-features li:before {
  color: var(--green);
}

.pricing-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------------
 * Guthaben ohne Vertrag
 * ------------------------------------------------------------------------- */

.payg {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  margin: 34px 0 95px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.payg h2 {
  margin: 14px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.045em;
}

.payg p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.75;
}

.payg-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.payg-facts li {
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
}

.payg-facts b {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -.03em;
}

.payg-facts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.tier-table caption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
}

.tier-table th,
.tier-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.tier-table th {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tier-table td:last-child,
.tier-table th:last-child {
  text-align: right;
  font-weight: 800;
}

.tier-table tr:last-child td {
  border-bottom: 0;
}

.quality {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.quality li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .8rem;
}

.quality b {
  display: block;
  color: var(--blue-ink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quality span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
 * Nebenprodukte
 * ------------------------------------------------------------------------- */

.siblings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 0 95px;
}

.sibling {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.sibling span {
  color: var(--blue-ink);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sibling h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
  letter-spacing: -.035em;
}

.sibling p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.7;
}

.sibling .button {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------------------------------------------------------------------------
 * Häufige Fragen - reines <details>, kein JavaScript
 * ------------------------------------------------------------------------- */

.faq {
  padding: 0 0 95px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: .96rem;
  font-weight: 750;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:after {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue-ink);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary:after {
  content: "–";
}

.faq p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.75;
}

/* ---------------------------------------------------------------------------
 * Abschluss und Fußzeile
 * ------------------------------------------------------------------------- */

.closing {
  margin-bottom: 85px;
  padding: 42px;
  border-radius: 24px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.closing h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: -.045em;
}

.closing p {
  max-width: 590px;
  margin: 12px 0 0;
  color: #b8c8d7;
  line-height: 1.65;
}

.closing .actions {
  margin-top: 0;
  flex: 0 0 auto;
}

.closing :focus-visible {
  outline-color: var(--cyan);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .73rem;
}

.footer p {
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 17px;
  white-space: nowrap;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Umbrüche
 * ------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-tagline {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
  }

  .scanner {
    max-width: 620px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
  }

  .step h3 {
    margin-top: 25px;
  }

  .step:after {
    display: none;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .api,
  .payg {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .siblings {
    grid-template-columns: 1fr;
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .plan-flag {
    left: 20px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  /* Marke und Kontobereich passen unter 400px nicht nebeneinander. Statt beides zu
   * stauchen, rutscht die Navigation in eine zweite Zeile - der Anmeldeweg bleibt
   * vollständig sichtbar. */
  .topbar {
    min-height: 72px;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .nav {
    width: 100%;
    gap: 12px;
  }

  .nav-account {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-account a:not(.button) {
    font-size: .8rem;
  }

  .nav .button {
    padding: 0 13px;
    font-size: .76rem;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4.8rem);
  }

  .hero {
    padding: 56px 0 64px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }

  .scanner {
    width: 100%;
    min-width: 0;
    min-height: 435px;
    padding: 20px;
  }

  .document {
    min-width: 0;
    padding: 20px 17px 19px 39px;
  }

  .fields {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Auf schmalen Geräten zeigt die Vorschau vier Felder statt sechs: Die Aussage bleibt,
   * die Karte bleibt bedienbar hoch. */
  .field:nth-child(n+5) {
    display: none;
  }

  .result {
    grid-template-columns: 1fr;
  }

  .scan-line {
    left: 20px;
    right: 20px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .intro {
    padding-top: 70px;
  }

  .api,
  .payg,
  .closing {
    padding: 26px 20px;
  }

  .payg-facts,
  .quality {
    grid-template-columns: 1fr;
  }

  .plan {
    padding: 26px 20px 24px;
  }

  .faq summary {
    padding: 16px 18px;
    font-size: .9rem;
  }

  .faq p {
    padding: 0 18px 18px;
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* Die Scan-Linie ist Dekoration. Wer reduzierte Bewegung eingestellt hat, bekommt sie
 * still - die Aussage der Vorschau hängt nicht an ihr. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scan-line {
    animation: none;
    transform: translateY(0);
  }

  .button:hover {
    transform: none;
  }
}

/* ===========================================================================
 * ERGÄNZUNG: Unterseiten (VIN-Scanner, Kennzeichen)
 *
 * Ausschließlich neue Selektoren, angehängt statt eingemischt: Die Startseite ist
 * abgenommen, und eine Regel, die oben etwas verschiebt, um unten etwas zu ermöglichen,
 * fällt zuerst dort auf, wo niemand mehr hinsieht. Alles hier baut auf den Token und
 * Bausteinen von oben auf - die Unterseiten sollen derselbe Auftritt sein, keine Kopie.
 * ========================================================================= */

/* Die aktuelle Seite in der Navigation. Ohne Markierung wirken drei gleich aussehende
 * Produktverweise wie drei Angebote, zwischen denen der Besucher noch wählen muss. */
.nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--cyan);
}

/* ---------------------------------------------------------------------------
 * VIN-Vorschau: Aufnahme und Ergebnis getrennt
 * ------------------------------------------------------------------------- */

/* Die "Aufnahme" ist dunkles Metall, das Ergebnis liegt darunter. Beides in einem Kasten
 * zu zeigen, verwischt genau die Grenze, um die es auf dieser Seite geht: Was fotografiert
 * wurde, ist nicht dasselbe wie das, was sicher gelesen wurde. */
.plate-shot {
  position: relative;
  min-height: 150px;
  margin-top: 28px;
  padding: 24px 22px;
  border-radius: 17px;
  background: linear-gradient(150deg, #34434f, #1b2933 58%, #26343f);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.plate-shot small {
  display: block;
  color: #9db3c5;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Zwei Schatten in Gegenrichtung ergeben den Eindruck einer Prägung: oben die Kante im
 * Schatten, unten das Licht. Ein Bild wäre ein zusätzlicher Request - die Seite kommt
 * bewusst ohne externe Anfragen aus. */
.vin-etched {
  display: block;
  margin-top: 16px;
  color: #dce8f2;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(.78rem, 2.1vw, 1.06rem);
  font-weight: 600;
  letter-spacing: .16em;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .22);
  word-break: break-all;
}

.plate-shot .scan-line {
  left: 22px;
  right: 22px;
}

.readout {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}

.readout > span {
  display: block;
  color: #a8bccd;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.readout b {
  display: block;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem;
}

/* Der Nicht-Treffer bekommt eine eigene Farbe, aber kein Rot: Er ist kein Fehler, sondern
 * das gewollte Ergebnis, wenn ein Zeichen nicht feststeht. */
.readout-null {
  border-color: rgba(240, 196, 138, .34);
  background: rgba(240, 196, 138, .09);
}

.readout-null b {
  color: #f3cd9b;
}

/* Ein Kästchen je Zeichen. Siebzehn nebeneinander sind auf schmalen Geräten zu eng,
 * deshalb umbrechen sie - die Aussage "jedes Zeichen einzeln belegt" bleibt dabei. */
.vin-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.vin-strip span {
  flex: 1 1 20px;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  color: #eaf2f9;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

/* ---------------------------------------------------------------------------
 * Kennzeichen: hervorgehobenes und leeres Dokumentfeld, Schilddarstellung
 * ------------------------------------------------------------------------- */

.field-key {
  border-color: rgba(26, 95, 214, .5);
  background: rgba(233, 241, 255, .92);
}

.field-key span {
  color: var(--blue-ink);
}

/* Gestrichelt, weil das Feld nicht gefüllt ist. Ein leeres Feld muss sich von einem
 * gefüllten unterscheiden lassen, ohne dass man den Wert liest. */
.field-null {
  border-style: dashed;
  background: rgba(255, 255, 255, .3);
}

.field-null b {
  color: #7d8fa0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
}

.euro-plate {
  display: inline-flex;
  align-items: stretch;
  min-height: 46px;
  border: 2px solid #10263a;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.readout .euro-plate {
  margin-top: 12px;
}

.euro-plate-band {
  display: flex;
  width: 27px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 0;
  background: #003399;
  color: var(--white);
  font-size: .7rem;
  font-weight: 900;
}

.euro-plate-band i {
  color: #ffcc00;
  font-size: .55rem;
  font-style: normal;
  line-height: 1;
}

.euro-plate-text {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #10263a;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: .06em;
}

/* ---------------------------------------------------------------------------
 * Hinweisblock für Fähigkeiten, die es noch nicht gibt
 *
 * Bewusst nicht grün (das hieße "geht") und nicht rot (das hieße "kaputt"), sondern ein
 * eigener, gedeckter Ton. Er steht groß auf der Seite, weil eine Einschränkung, die man
 * suchen muss, keine Einschränkung ist, sondern ein Kleingedrucktes.
 * ------------------------------------------------------------------------- */

.notice {
  --pending: #8a5a00;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin: 0 0 90px;
  padding: 38px;
  border: 1px solid rgba(138, 90, 0, .26);
  border-radius: 24px;
  background: #fff8ec;
}

.notice-flag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(138, 90, 0, .13);
  color: var(--pending);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.notice h2 {
  margin: 16px 0 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.notice p {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.75;
}

.notice .actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.notice .button-ghost {
  border-color: rgba(138, 90, 0, .4);
  color: var(--pending);
}

.notice .button-ghost:hover {
  border-color: var(--pending);
}

/* ---------------------------------------------------------------------------
 * Kleinteiliges im Fließtext
 * ------------------------------------------------------------------------- */

.api-comment {
  color: #93a9bb;
}

/* Feldnamen im Fließtext. `null` als Wort zu setzen, verwischt den Unterschied zwischen
 * "leer" und dem tatsächlichen Wert in der Antwort - genau darauf kommt es hier an. */
.feature code,
.faq code,
.api p code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .86em;
  word-break: break-word;
}

/* ---------------------------------------------------------------------------
 * Umbrüche der Ergänzung
 * ------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .notice {
    padding: 26px 20px;
  }

  .notice .actions {
    width: 100%;
  }

  .plate-shot {
    padding: 20px 17px;
  }

  .plate-shot .scan-line {
    left: 17px;
    right: 17px;
  }

  .euro-plate-text {
    font-size: 1.15rem;
    padding: 0 10px;
  }
}
