/* Regeln dieser Seite
   Raster: 13 Spalten im Verhältnis 8 : 5, Abstand 24. Alles sitzt links auf einer Kante.
   Abstände: 8 mal eine Fibonacci-Zahl, also 8, 16, 24, 40, 64, 104.
   Schrift: Archivo, Überschriften kräftig. Größen folgen dem Goldenen Schnitt (13, 17, 21, 34, 55, 89, 233), Zeilenhöhen dem 8er-Raster.
   Farbe: Befunde schwarz auf weiß wie auf Papier, die Startseite beginnt nachtschwarz.
   Akkugrün heißt „hier geht es weiter“: eine grüne Hauptaktion pro Seite.
   Die sechs Notenfarben gehören nur der Akkunote, Grün bis Rot wie ein Zeugnis.
   Form: Pille heißt anklickbar. Fehler stehen in Schwarz und fett, nicht in Rot.
   Bewegung: drei Gesten, die zum Messen passen. Laden (füllt sich von links wie der Balken),
   stempeln (die Note fällt), Zeiger (ein Strich wächst). Regeln dazu ganz unten. */

/* Archivo von Omnibus-Type (OFL): Text in normaler Stärke, Überschriften und Marke kräftig, große Zahlen leicht.
   Alles in normaler Breite.
   Feste Schnitte statt variabler Schrift, damit Website, Bild und PDF genau dieselben Formen haben. */
@font-face { font-family: Archivo; font-weight: 400; font-display: swap; src: url(fonts/archivo-400-normal.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 500; font-display: swap; src: url(fonts/archivo-500-normal.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 600; font-display: swap; src: url(fonts/archivo-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo Display"; font-weight: 650; font-display: swap; src: url(fonts/archivo-display-650-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo Figure"; font-weight: 300; font-display: swap; src: url(fonts/archivo-figure-300-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #000000;
  --soft: #5c5c5c;
  --line: #d0d0d0;
  --edge: #8a8a8a;
  --surface: #f4f4f4;
  --track: #e6e6e6;
  --go: #2bd47d;
  --go-hover: #22bf6f;
  --sale: #d7261e;
  --sale-night: #ff6b61;
  --night: #0e1012;
  --night-raised: #171a1d;
  --night-line: #2b3035;
  --night-soft: #a3a9b0;
  --grade: var(--ink);

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s5: 2.5rem;
  --s8: 4rem;
  --s13: 6.5rem;

  --gutter: clamp(1.5rem, 5vw, 4rem);
  --column-gap: 1.5rem;
  --radius: 1rem;
  --font: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-wide: "Archivo Display", Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-figure: "Archivo Figure", Archivo, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-pop: cubic-bezier(0.3, 1.5, 0.5, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; hanging-punctuation: first allow-end last; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5rem var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-family: var(--font-wide); font-size: 2.125rem; line-height: 2.5rem; font-weight: 650; letter-spacing: -0.015em; }
h2 { font-family: var(--font-wide); font-size: 1.3125rem; line-height: 2rem; font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 1.0625rem; line-height: 1.5rem; font-weight: 500; }
strong, b { font-weight: 500; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s2); top: -4rem; padding: var(--s1) var(--s2); background: var(--ink); color: var(--paper); }
.skip-link:focus { top: var(--s2); z-index: 10; }

.page { width: min(100% - 2 * var(--gutter), 70rem); margin-inline: auto; }

/* Raster. Unter 60rem steht alles untereinander. */
.grid { display: grid; gap: var(--s5) var(--column-gap); }
@media (min-width: 60rem) {
  .grid { grid-template-columns: repeat(13, minmax(0, 1fr)); }
  .wide { grid-column: 1 / span 8; }
  .narrow { grid-column: 9 / span 5; }
}

/* Kopf und Fuß */

.test-banner {
  padding: var(--s1) max(var(--gutter), (100% - 70rem) / 2);
  background: var(--surface);
  color: var(--soft);
  font-size: 0.8125rem;
  line-height: 1rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s3);
  padding-block: var(--s3);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.625rem; font-family: var(--font-wide); font-size: 1.1875rem; line-height: 2rem; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; }
.mark { flex: none; display: block; }
.mark-bg { fill: var(--ink); }
.mark-track { fill: #3a3f44; }
.mark-module { fill: var(--paper); }
.mark-needle { fill: var(--go); }

/* Notenfarben. Schwarze Ziffern sind auf allen sechs gut lesbar. */
.grade-1 { --grade: #2bd47d; }
.grade-2 { --grade: #9fd83c; }
.grade-3 { --grade: #f2d43d; }
.grade-4 { --grade: #f7a23b; }
.grade-5 { --grade: #f2683c; }
.grade-6 { --grade: #e5484d; }
.grade-none { --grade: var(--track); }

.grade { display: inline-flex; align-items: center; gap: var(--s2); }
.grade b {
  display: grid;
  place-items: center;
  flex: none;
  background: var(--grade);
  color: var(--ink);
  font-family: var(--font-wide);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.grade-large b { width: 5.5rem; height: 5.5rem; border-radius: 1.25rem; font-size: 3.4375rem; line-height: 1; }
.grade-large > span { font-size: 1.3125rem; line-height: 2rem; }
.grade-small { gap: 0; }
.grade-small b { width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; font-size: 0.8125rem; }
.grade-small > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Navigation: eine Kapsel für das Ansehen, ein fester Knopf für das Anmelden.
   Der grüne Zeiger aus dem Logo zeigt, wo man ist, und wächst beim Darüberfahren. */
.site-nav { display: flex; align-items: center; gap: var(--s1); }
.nav-capsule {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 2.5rem;
  padding: 0 var(--s2) 0 1.375rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 0.1875rem;
  height: 1rem;
  margin-top: -0.5rem;
  background: var(--go);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.18s ease;
}
.nav-link:hover { background: var(--paper); text-decoration: none; }
.nav-link:hover::before, .nav-link[aria-current]::before { transform: scaleY(1); }
.nav-link[aria-current] { background: var(--paper); box-shadow: 0 1px 2px rgba(14, 16, 18, 0.08); }
.nav-grade {
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  background: var(--grade);
  border-radius: 0.375rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}
.nav-sub { color: var(--soft); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 3rem;
  padding: 0 1.25rem 0 var(--s3);
  background: var(--ink);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: #262626; text-decoration: none; }
.nav-arrow { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s ease; }
.nav-cta:hover .nav-arrow { transform: translateX(3px); }
.nav-credits { padding-left: 0.375rem; }
.nav-count {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 var(--s1);
  background: var(--go);
  border-radius: 999px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Auf dem dunklen Grund der Startseite: Glas statt Fläche, der Knopf wird hell. */
.band .nav-capsule { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); }
.band .nav-link:hover, .band .nav-link[aria-current] { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.band .nav-sub { color: var(--night-soft); }
.band .nav-cta { background: var(--paper); color: var(--ink); }
.band .nav-cta:hover { background: #e9ecee; }

/* „Verkaufen“ steht auf jeder Breite im Menü. Wird es eng, weichen erst die Preise, dann das Beispiel:
   Beides steht auf der Startseite direkt darunter. Auf dem Handy bleibt eine Zeile. */
@media (max-width: 55.99rem) { .nav-link-prices { display: none; } }
/* Angemeldet braucht „Befunde“ den Platz, dort weicht das Beispiel früher. */
@media (max-width: 44.99rem) { .is-member .nav-link-extra { display: none; } }
@media (max-width: 39.99rem) { .nav-link-extra { display: none; } }
@media (max-width: 37.49rem) {
  .site-header { flex-wrap: nowrap; gap: var(--s1); }
  .site-nav { gap: 0.25rem; }
  .wordmark { gap: 0.375rem; font-size: 1rem; }
  .wordmark .mark { width: 1.75rem; height: 1.75rem; }
  .nav-capsule { padding: 0.125rem; }
  .nav-link { padding: 0 0.625rem 0 1rem; font-size: 0.9375rem; }
  .nav-link::before { left: 0.4375rem; }
  .nav-cta { min-height: 2.75rem; padding: 0 0.6875rem; font-size: 0.9375rem; }
  .nav-arrow { display: none; }
  .nav-credits { padding: 0 0.25rem; }
  .nav-credits > span { display: none; }
}
/* Wo auch das nicht reicht, bleibt das Zeichen und der Schriftzug weicht. Angemeldet früher, weil „Befunde“ dazukommt. */
@media (max-width: 24.99rem) {
  .is-member .wordmark > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 22.49rem) {
  .wordmark > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .nav-link::before, .nav-arrow { transition: none; } }

main { padding-bottom: var(--s13); }

.site-footer {
  display: grid;
  gap: var(--s2);
  padding-block: var(--s5);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.8125rem;
  line-height: 1.5rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: var(--s1); color: var(--ink); font-family: var(--font-wide); font-size: 1rem; font-weight: 650; }
.footer-note { max-width: 40rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.footer-links a { padding-block: var(--s1); }

/* Bedienelemente. Hauptaktion schwarz, Nebenaktion mit Rand, leise Aktionen unterstrichen. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 3.5rem;
  padding: var(--s1) var(--s5);
  background: var(--go);
  border: 1px solid var(--go);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.button:hover { background: var(--go-hover); border-color: var(--go-hover); text-decoration: none; }
.button-danger { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-danger:hover { background: #262626; border-color: #262626; }
.button-secondary { background: var(--paper); border-color: var(--edge); color: var(--ink); }
.button-secondary:hover { background: var(--paper); border-color: var(--ink); }
.button:disabled { opacity: 0.5; cursor: progress; }
.button-wide { width: 100%; }
.format-icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 var(--s2);
  border: 1px solid var(--edge);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover { border-color: var(--ink); text-decoration: none; }

.text-button, .text-link {
  display: inline-block;
  padding: var(--s1) 0;
  background: none;
  border: 0;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.text-button:hover, .text-link:hover { text-decoration-thickness: 2px; }
.text-button:disabled { color: var(--soft); cursor: progress; }
.quiet-actions { display: flex; flex-wrap: wrap; gap: 0 var(--s3); margin-top: var(--s2); }

/* Felder */

.field { margin-bottom: var(--s3); }
.vin-form .field { margin-bottom: var(--s1); }
.field label, .section-label {
  display: block;
  margin-bottom: var(--s1);
  font-size: 0.8125rem;
  line-height: 1rem;
  font-weight: 500;
}
.label-hint { color: var(--soft); font-weight: 400; }
.label-hint::before { content: "· "; }

.input {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  padding: var(--s2);
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  line-height: 1.5rem;
}
.input:hover { border-color: var(--ink); }
.input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); outline: none; }
textarea.input { resize: vertical; letter-spacing: 0.04em; }
/* Auswahlfelder sehen aus wie Eingabefelder, mit einem Winkel rechts. */
select.input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  text-overflow: ellipsis;
  cursor: pointer;
}
select.input:disabled { color: var(--soft); cursor: default; }
select.input:disabled:hover { border-color: var(--edge); }

/* Auswahl als Pillen: Pille heißt anklickbar, die gewählte ist gefüllt. */
.chips { margin-bottom: var(--s3); }
.chips legend { margin-bottom: var(--s1); padding: 0; font-size: 0.8125rem; line-height: 1rem; font-weight: 500; }
.chip-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); }
@media (min-width: 30rem) { .chip-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 var(--s2);
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; }
.code-input { font-size: 2.125rem; line-height: 2.5rem; letter-spacing: 0.25em; font-variant-numeric: tabular-nums; }

.field-status { min-height: 1.5rem; margin-top: var(--s1); color: var(--soft); font-size: 0.8125rem; line-height: 1.5rem; }
.field-status.is-bad { color: var(--ink); font-weight: 500; }

/* VIN in 17 Feldern, gruppiert wie die Norm: Hersteller, Fahrzeug, Seriennummer.
   Jedes Feld ist ein DIN-Rechteck, Seitenverhältnis 1 : √2. */
.plate { position: relative; }
.vin-cells { display: none; }
.plate.is-enhanced .vin-cells {
  display: grid;
  --group-gap: clamp(4px, 1.2vw, 12px);
  grid-template-columns: repeat(3, minmax(0, 1fr)) var(--group-gap) repeat(6, minmax(0, 1fr)) var(--group-gap) repeat(8, minmax(0, 1fr));
  gap: clamp(2px, 0.5vw, 4px);
}
/* Auf dem Handy zwei Zeilen: Hersteller und Fahrzeug oben, Seriennummer unten. So bleibt jedes Feld lesbar groß. */
@media (max-width: 29.99rem) {
  .plate.is-enhanced .vin-cells { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px 4px; }
  .plate.is-enhanced .vin-cells i { display: none; }
  .plate .vin-cell { font-size: 1.0625rem; }
}
.vin-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.414;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: clamp(0.8125rem, 3.4vw, 1.3125rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vin-cell.is-filled { background: var(--paper); border-color: var(--edge); }
.plate:hover .vin-cell { border-color: var(--edge); }
/* Der Fokus steht im aktiven Feld: schwarzer Rand mit Balken, wie eine Schreibmarke. */
.plate:focus-within .vin-cell.is-active { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.vin-cell.is-bad { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plate:focus-within { outline: none; }

.plate input {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  padding: var(--s2);
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plate.is-enhanced input {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  cursor: text;
  outline: none;
}
.plate.is-enhanced input::selection { background: transparent; color: transparent; }

.check { display: flex; align-items: flex-start; gap: var(--s2); margin-block: var(--s3); cursor: pointer; }
.check input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--ink); cursor: pointer; }

/* Meldungen */

.notice {
  margin-block: var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--surface);
  border-radius: 0.5rem;
}
.notice-error { background: var(--paper); border-left: 4px solid var(--ink); border-radius: 0; font-weight: 500; }
.notice-success::before { content: "✓ "; font-weight: 500; }
.notice-draft { background: var(--paper); border: 1px dashed var(--edge); color: var(--soft); }
.hint { margin-top: var(--s2); color: var(--soft); font-size: 0.8125rem; line-height: 1.5rem; }
.lead { color: var(--soft); font-size: 1.0625rem; line-height: 1.5rem; }
@media (min-width: 40rem) { .lead { font-size: 1.3125rem; line-height: 2rem; } }
.empty { color: var(--soft); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }

.narrow-page { max-width: 34rem; padding-top: var(--s8); }
.narrow-page h1 { margin-bottom: var(--s2); }
.narrow-page .lead { margin-bottom: var(--s5); }
.wide-form { max-width: 43rem; }

.confirm { margin-top: var(--s2); padding: var(--s3); border: 1px solid var(--ink); border-radius: var(--radius); }
.confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s2); }

/* Startseite: beginnt nachtschwarz mit einem grünen Schimmer, dann Papier. */

.band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--paper);
  background:
    radial-gradient(40rem 24rem at 0% 110%, rgba(43, 212, 125, 0.08), transparent 60%),
    var(--night);
  padding-bottom: var(--s13);
}
/* Der grüne Schimmer oben rechts liegt auf einer eigenen Ebene, damit er langsam atmen kann. */
.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -15rem;
  right: -12rem;
  width: 72rem;
  height: 36rem;
  background: radial-gradient(closest-side, rgba(43, 212, 125, 0.24), transparent);
  pointer-events: none;
}
.band .mark-bg { fill: var(--paper); }
.band .mark-track { fill: #c9cdd1; }
.band .mark-module { fill: var(--ink); }
.band .pill { border-color: #5b6168; }
.band .pill:hover { border-color: var(--paper); }
.band :focus-visible { outline-color: var(--paper); }
.band .gauge-track { fill: var(--night-line); }
.band .gauge-needle { fill: var(--paper); }
.band .figure { fill: var(--paper); }
.band .hint, .band .lead { color: var(--night-soft); }
.band .field label { color: var(--paper); }
.band .label-hint { color: var(--night-soft); }
.band .field-status { color: var(--night-soft); }
.band .field-status.is-bad { color: var(--paper); }
.band .vin-cell { background: var(--night-raised); border-color: var(--night-line); color: var(--paper); }
.band .vin-cell.is-filled { background: #202428; border-color: #4a5057; }
.band .plate:hover .vin-cell { border-color: #4a5057; }
.band .plate:focus-within .vin-cell.is-active { border-color: var(--go); box-shadow: inset 0 -3px 0 var(--go); }
.band .vin-cell.is-bad { background: var(--paper); color: var(--ink); }
.band .plate:not(.is-enhanced) input { background: var(--night-raised); border-color: #4a5057; color: var(--paper); }

.hero { padding-top: var(--s8); align-items: start; }
.display { font-size: clamp(2.125rem, 6vw, 3.4375rem); line-height: clamp(2.5rem, 6vw, 3.5rem); letter-spacing: -0.015em; }
.hero .lead { max-width: 36rem; margin-block: var(--s2) var(--s5); }
.hero .button { margin-top: var(--s1); }
.hero-price strong { color: var(--paper); font-weight: 600; }

.example-card {
  display: grid;
  gap: var(--s1);
  padding: var(--s3);
  background: rgba(23, 26, 29, 0.8);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}
.example-card:hover { border-color: #4a5057; text-decoration: none; }
.example-head { display: flex; justify-content: space-between; gap: var(--s2); }
.example-head .section-label { margin: 0; color: var(--go); }
.example-vin { color: var(--night-soft); font-size: 0.8125rem; line-height: 1rem; }
.example-main { display: flex; align-items: center; gap: var(--s3); margin-block: var(--s2) 0; }
.example-main .grade-large > span { display: none; }
.example-figure { display: block; min-width: 0; font-size: min(5.5625rem, 18vw); }
.example-card, .example-main { min-width: 0; }
@media (max-width: 29.99rem) {
  .example-main { gap: var(--s2); }
  .example-main .grade-large b { width: 4rem; height: 4rem; border-radius: 1rem; font-size: 2.125rem; }
}
.example-card .gauge { margin-top: var(--s2); }
.example-name { margin-top: var(--s1); font-weight: 500; }
.example-meta { color: var(--night-soft); font-size: 0.8125rem; line-height: 1rem; }
.example-card .text-link { justify-self: start; margin-top: var(--s1); color: var(--paper); }
.example-card:hover .text-link { text-decoration-thickness: 2px; }

main > section + section { margin-top: var(--s13); }
.home main > section:first-child { margin-top: calc(-1 * var(--s8)); }
main > section > h2, .grid > .wide > h2 { margin-bottom: var(--s3); }

/* Die Notenskala: sechs Kacheln von Grün bis Rot. */
.scale {
  position: relative;
  padding: var(--s3);
  background: var(--paper);
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(14, 16, 18, 0.12);
}
@media (min-width: 40rem) { .scale { padding: var(--s5); } }
.section-intro { max-width: 43rem; margin-bottom: var(--s3); }
.section-intro h2 { margin-bottom: var(--s1); }
.section-intro p { color: var(--soft); }
.grade-scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); }
@media (min-width: 40rem) { .grade-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .grade-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.grade-scale li { display: grid; gap: 0.25rem; padding: var(--s2); background: var(--grade); border-radius: var(--radius); }
.grade-scale b { font-family: var(--font-wide); font-size: 3.4375rem; line-height: 3.5rem; font-weight: 650; }
.grade-word { font-weight: 500; }
.grade-range { font-size: 0.8125rem; line-height: 1rem; font-variant-numeric: tabular-nums; }

.step-list { display: grid; gap: var(--s5) var(--column-gap); }
@media (min-width: 48rem) { .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step-number {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--s2);
  background: var(--go);
  border-radius: 50%;
  font-family: var(--font-wide);
  font-size: 1.3125rem;
  font-weight: 650;
}
.step-list p { margin-top: var(--s1); color: var(--soft); }
/* Eine Linie verbindet die Schritte: Es ist wirklich eine Reihenfolge. */
.step-list li { position: relative; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; background: var(--line); }
@media (min-width: 48rem) {
  .step-list li:not(:last-child)::after { top: 1.75rem; left: 4.25rem; right: calc(0.75rem - var(--column-gap)); height: 2px; margin-top: -1px; transform-origin: left; }
}
@media (max-width: 47.99rem) {
  .step-list li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--s2); }
  .step-number { grid-row: span 2; margin: 0; }
  .step-list h3 { padding-top: var(--s1); }
  .step-list li:not(:last-child)::after { left: 1.75rem; top: 4.25rem; bottom: calc(0.75rem - var(--s5)); width: 2px; margin-left: -1px; transform-origin: top; }
}

.audiences { gap: var(--column-gap); }
@media (min-width: 48rem) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.audience { padding: var(--s5); background: var(--surface); border-radius: 1.5rem; }
.audience h2 { margin-bottom: var(--s1); font-size: 2.125rem; line-height: 2.5rem; }
.audience p { color: var(--soft); }
.audience-sell { background: var(--night); color: var(--paper); }
.audience-sell p { color: var(--night-soft); }
.audience-offer { margin-top: var(--s2); padding-left: var(--s2); border-left: 3px solid var(--go); }
.audience-sell .audience-offer { color: var(--paper); }
.audience h2::after { transform-origin: left; }
.audience-sell h2::after { content: ""; display: block; width: 2.5rem; height: 0.25rem; margin-top: var(--s2); background: var(--go); border-radius: 2px; }
.audience:not(.audience-sell) h2::after { content: ""; display: block; width: 2.5rem; height: 0.25rem; margin-top: var(--s2); background: var(--ink); border-radius: 2px; }

.feature-list { display: grid; gap: var(--s3) var(--column-gap); }
@media (min-width: 48rem) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Jede Angabe hat eine feine Linie darüber, wie die Zeilen im Befund. */
.feature-list > div { position: relative; padding-top: var(--s2); }
.feature-list > div::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--ink); transform-origin: left; }
.feature-list dt { font-weight: 500; }
.feature-list dd { margin-top: var(--s1); color: var(--soft); }
.aside-title { margin-bottom: var(--s1); }
.contents aside p { color: var(--soft); }
@media (min-width: 60rem) { .contents aside { padding-top: 3.5rem; } }

.price-cards { display: grid; gap: var(--column-gap); }
@media (min-width: 48rem) { .price-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pricing-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin-bottom: var(--s3); }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  height: 100%;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.price-card:hover { border-color: var(--ink); text-decoration: none; }
.price-card.is-featured { border: 2px solid var(--ink); padding: calc(var(--s3) - 1px); }
.price-flag {
  position: absolute;
  top: -0.75rem;
  right: var(--s3);
  padding: 0 0.625rem;
  background: var(--go);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.5rem;
  font-weight: 500;
}
.price-name { font-weight: 500; }
/* Einführungspreis: roter Hinweis, der spätere Preis rot durchgestrichen mit Datum. */
.price-intro { align-self: flex-start; padding: 0 0.625rem; background: var(--sale); border-radius: 999px; color: var(--paper); font-size: 0.8125rem; line-height: 1.5rem; font-weight: 600; }
.price-was { color: var(--sale); font-size: 1.0625rem; line-height: 1.5rem; font-weight: 500; }
/* Der Strich durch den späteren Preis ist eine eigene, leicht schräge Linie. So kann er sich ziehen lassen. */
.price-was s, .price-was-inline { position: relative; display: inline-block; text-decoration: none; white-space: nowrap; }
.price-was s::after, .price-was-inline::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  /* Dünn, beginnt links knapp unter der Mitte der Ziffern und steigt nach rechts: Die Zahl bleibt lesbar. */
  top: calc(50% + 0.1em);
  height: max(1px, 0.075em);
  background: currentColor;
  border-radius: 1px;
  transform: rotate(-5deg);
  transform-origin: left center;
}
.price-was-date { font-size: 0.8125rem; font-weight: 400; }
.price-was-inline { color: var(--sale); }
.band .price-was-inline { color: var(--sale-night); }
.price-intro-note { max-width: 43rem; margin-top: var(--s3); color: var(--sale); font-weight: 600; }
.price-intro-note + .hint { margin-top: var(--s1); }
.price-amount { font-size: 2.125rem; line-height: 2.5rem; font-family: var(--font-figure); font-weight: 300; font-variant-numeric: tabular-nums; }
.price-unit { color: var(--soft); font-size: 0.8125rem; line-height: 1rem; }
.price-for { flex: 1; margin-block: var(--s1) var(--s2); color: var(--soft); }
.price-card .pill { align-self: flex-start; }
.price-card:hover .pill, .price-card.is-featured .pill { border-color: var(--go); background: var(--go); color: var(--ink); }
.pricing .hint { max-width: 43rem; }

.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list p { padding-bottom: var(--s3); color: var(--soft); max-width: 40rem; }

summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding-block: var(--s2); cursor: pointer; list-style: none; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 1rem; color: var(--soft); font-weight: 400; text-align: center; }
details[open] > summary::after { content: "–"; }
.summary-value { margin-left: auto; color: var(--soft); font-weight: 400; font-variant-numeric: tabular-nums; }

/* Befund */

.back { padding-top: var(--s3); }
.shared-note { margin-top: var(--s3); padding: var(--s2) var(--s3); background: var(--surface); border-radius: 0.5rem; color: var(--soft); }
.report { padding-top: var(--s5); }
.report-version { margin-top: var(--s1); font-size: 1.3125rem; line-height: 2rem; }
.report-meta { margin-top: var(--s2); color: var(--soft); }
.vin-text { letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.report-body { margin-top: var(--s5); }

.battery { --figure-size: min(36vw, 12.25rem); display: grid; gap: var(--s3); }
/* Daneben steht die Kapazität auf derselben Grundlinie wie die große Zahl, wie im Bild und im PDF.
   0,08 em ist die Unterlänge des Kommas unter der Grundlinie. */
@media (min-width: 48rem) {
  .battery { grid-template-columns: 5fr 3fr; column-gap: var(--column-gap); align-items: stretch; }
  .battery-caption { justify-content: space-between; margin-bottom: calc(0.15 * var(--figure-size) - 1.875rem); }
}
.figure-wrap { font-size: var(--figure-size); line-height: 1; }
.figure { display: block; max-width: 100%; height: auto; overflow: visible; fill: var(--ink); }
.figure text { font-family: var(--font-figure); font-weight: 300; font-kerning: none; }
.figure-empty { font-family: var(--font-figure); font-size: 3.4375rem; line-height: 3.5rem; font-weight: 300; }
.battery-caption { display: flex; flex-direction: column; gap: var(--s2); }
.caption-grade-row { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s1); }
.caption-grade .grade-large > span { display: none; }
.caption-word { min-width: 0; font-family: var(--font-wide); font-size: 1.3125rem; line-height: 1.75rem; font-weight: 650; }
.caption-grade .grade-large b { width: 4.5rem; height: 4.5rem; border-radius: 1rem; font-size: 2.75rem; }
.caption-kicker { display: block; color: var(--soft); font-size: 0.8125rem; line-height: 1rem; font-weight: 500; }
.caption-title { font-size: 1.3125rem; line-height: 2rem; }
.caption-note { color: var(--soft); font-size: 0.8125rem; line-height: 1.5rem; }
.caption-figure { font-size: 2.125rem; line-height: 2.5rem; font-family: var(--font-figure); font-weight: 300; font-variant-numeric: tabular-nums; }

.gauge { display: block; margin-top: var(--s3); overflow: visible; }
.gauge-track { fill: var(--track); }
.gauge-fill { fill: var(--grade); }
.gauge-needle { fill: var(--ink); }

.report-note { margin-top: var(--s2); font-weight: 500; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--column-gap); margin-top: var(--s5); }
.facts .span-5 { grid-column: span 2; }
@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .facts .span-2 { grid-column: span 2; }
  .facts .span-3 { grid-column: span 3; }
  .facts .span-5 { grid-column: span 5; }
}
.facts dt { color: var(--soft); font-size: 0.8125rem; line-height: 1rem; }
.facts dd { margin-top: var(--s1); font-size: 1.3125rem; line-height: 2rem; }
.facts dd.free::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: var(--s1);
  border-radius: 50%;
  background: var(--go);
  vertical-align: 0.05em;
}

.packages > summary { padding-top: 0; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: var(--s1) 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.price-table th { padding-right: var(--s2); color: var(--soft); font-weight: 400; text-align: left; }
.price-table td { text-align: right; }
.price-main, .price-euro { white-space: nowrap; }
.price-euro { color: var(--soft); font-weight: 400; }
.price-table .total th, .price-table .total td { border-top-color: var(--ink); color: var(--ink); font-weight: 500; }
.included { margin-top: var(--s3); color: var(--soft); }
.included strong { display: block; color: var(--ink); }

.all-data { margin-top: var(--s5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.raw-fields { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: 0 var(--column-gap); padding-bottom: var(--s3); }
.raw-fields dt, .raw-fields dd { padding-block: var(--s1); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.raw-fields dt { color: var(--soft); }
.report-source { margin-top: var(--s2); color: var(--soft); font-size: 0.8125rem; line-height: 1.5rem; }

.report-actions { margin-top: var(--s8); }
.save-buttons { display: flex; flex-wrap: wrap; gap: var(--s2); }
.save-buttons .button { padding-inline: var(--s3); }
@media (max-width: 47.99rem) { .save-buttons { flex-direction: column; } }
.share p { color: var(--soft); }
.share-row { display: flex; gap: var(--s1); margin-top: var(--s2); }
.share-row .input { min-width: 0; color: var(--soft); font-size: 0.8125rem; }
.share .button-wide { margin-top: var(--s2); }
.report-manage { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); }
.report-manage .hint { margin-top: 0; }

/* Hinweis auf den Ankaufpreis direkt unter der Skala: eine Zeile, der grüne Strich ist der Zeiger aus dem Logo. */
.sell-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s1);
  margin-top: var(--s3);
  padding: 0.375rem 0 0.375rem var(--s2);
  border-left: 3px solid var(--go);
  font-weight: 500;
  text-decoration: none;
}
.sell-teaser:hover { text-decoration: none; }
.sell-teaser:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sell-teaser-more { color: var(--soft); font-weight: 400; }
.sell-teaser svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Ankauf: dunkle Karte mit grünem Rand unter „Alle Fahrzeugdaten“, der Preis groß in der Zahlenschrift. */
.sell {
  display: grid;
  gap: var(--s3) var(--column-gap);
  margin-top: var(--s8);
  padding: var(--s5) var(--s3);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(43, 212, 125, 0.22), transparent 60%),
    var(--night);
  border-radius: 1.5rem;
  box-shadow: 0 0 0 2px var(--go), 0 1.5rem 3rem -1.5rem rgba(43, 212, 125, 0.55);
  color: var(--paper);
  scroll-margin-top: var(--s3);
}
@media (min-width: 48rem) { .sell { padding: var(--s5); } }
@media (min-width: 60rem) {
  .sell { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  /* Die drei Zusagen bleiben stehen, während man rechts das Formular ausfüllt. */
  .sell-intro { position: sticky; top: var(--s5); }
}
.sell-kicker { display: inline-block; margin-bottom: var(--s2); padding: 0.25rem 0.75rem; background: var(--go); border-radius: 999px; color: var(--ink); font-size: 0.8125rem; line-height: 1rem; font-weight: 600; }
.sell-intro h2 { margin-bottom: var(--s2); font-size: clamp(2.125rem, 6vw, 2.75rem); line-height: 1.1; }
.sell-lead { color: var(--night-soft); }
.sell-points { display: grid; gap: var(--s1); margin-top: var(--s3); }
.sell-points li { position: relative; padding-left: 1.125rem; }
.sell-points li::before { content: ""; position: absolute; left: 0; top: 0.25rem; width: 3px; height: 1rem; background: var(--go); border-radius: 2px; transform-origin: top; }
.sell .field label { color: var(--paper); }
.sell .label-hint { color: var(--night-soft); }
.sell .input { background: var(--night-raised); border-color: #4a5057; color: var(--paper); }
.sell .input:hover, .sell .input:focus { border-color: var(--go); }
.sell .input:focus { box-shadow: inset 0 0 0 1px var(--go); }
.sell :focus-visible { outline-color: var(--paper); }
.sell-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); align-items: end; scroll-margin-top: var(--s5); }
@media (min-width: 40rem) { .sell-form { grid-template-columns: minmax(0, 1fr) auto; } }
.sell-form .field { margin: 0; }
.sell-km { font-family: var(--font-figure); font-size: 1.3125rem; font-variant-numeric: tabular-nums; }
.sell-form .button { min-height: 3.5rem; font-size: 1.0625rem; }
.sell textarea.sell-notes { min-height: 4.5rem; letter-spacing: normal; }
.sell .input::placeholder { color: #6f767d; }
.sell-result, .sell-done { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--night-line); }
.sell-result-static { margin-top: var(--s1); padding-top: var(--s2); }
.sell-sample { color: var(--night-soft); font-size: 0.8125rem; line-height: 1rem; }
.sell-label { color: var(--go); font-size: 0.8125rem; line-height: 1rem; font-weight: 500; }
.sell-price { margin-top: var(--s1); font-family: var(--font-figure); font-size: clamp(2.75rem, 9vw, 4.5rem); line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
/* Ohne Tabellenpreis steht dort ein Satz statt einer Zahl. */
.sell-price.is-text { font-family: inherit; font-size: 1.75rem; line-height: 2.25rem; font-weight: 500; letter-spacing: 0; }
.sell-basis { margin-top: var(--s2); font-weight: 500; }
/* Was im Preis steckt: Pluspunkte mit grünem Plus, Abzüge leise. */
.sell-reasons { display: grid; gap: 0.25rem; margin-top: var(--s2); }
.sell-reasons:empty { display: none; }
.sell-reasons li { position: relative; padding-left: 1.25rem; }
.sell-reasons li::before { position: absolute; left: 0; font-weight: 600; }
.sell-reasons .is-plus::before { content: "+"; color: var(--go); }
.sell-reasons .is-neutral { color: var(--night-soft); }
.sell-reasons .is-neutral::before { content: "–"; }
.sell-valid { margin-top: var(--s2); font-weight: 500; }
.sell-valid:empty { display: none; }
/* So geht es weiter: drei nummerierte Schritte, es ist eine Reihenfolge. */
.sell-next { display: grid; gap: var(--s1); margin-top: var(--s3); padding-block: var(--s2); border-block: 1px solid var(--night-line); counter-reset: sell-step; }
.sell-next li { position: relative; padding-left: 2.25rem; color: var(--night-soft); counter-increment: sell-step; }
.sell-next li::before {
  content: counter(sell-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #4a5057;
  border-radius: 50%;
  color: var(--paper);
  font-size: 0.8125rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sell-request { margin-top: var(--s3); }
.sell-fields { display: grid; gap: 0 var(--s2); }
@media (min-width: 40rem) { .sell-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sell .check { color: var(--night-soft); font-size: 0.875rem; line-height: 1.375rem; }
.sell .check input { accent-color: var(--go); }
.sell-terms { margin-top: var(--s2); color: var(--night-soft); font-size: 0.8125rem; line-height: 1.5rem; }
.sell-example .button { margin-top: var(--s3); }
.sell-check { display: block; margin-bottom: var(--s2); fill: none; stroke: var(--go); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sell-done-text { margin-top: var(--s1); font-size: 1.3125rem; line-height: 2rem; }
.sell-done-offer { margin-top: var(--s2); color: var(--night-soft); }
.sell-done-offer:empty { display: none; }
.sell-done-text a { color: var(--go); }
.offer-notes { min-width: 14rem; white-space: pre-line; }
.sell .notice-error { background: transparent; border-left-color: var(--paper); color: var(--paper); }
/* Eingerechnet, ohne Betrag: der grüne Zeiger statt Plus oder Minus. */
.sell-reasons .is-included::before { content: ""; top: 0.25rem; width: 3px; height: 1rem; background: var(--go); border-radius: 2px; }
/* Hinweis auf den Befund, wenn der Preis ohne ihn berechnet wurde. */
.sell-upsell { margin-top: var(--s3); padding-left: var(--s2); border-left: 3px solid var(--go); font-size: 0.875rem; line-height: 1.375rem; }
.sell-upsell a { color: var(--go); white-space: nowrap; }

/* Im dunklen Ankauf: Pillen und Auswahlfelder hell auf dunkel, Nebenaktionen nur als Rahmen. */
.sell .chip { border-color: #4a5057; }
.sell .chip:hover { border-color: var(--paper); }
.sell .chip:has(input:checked) { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.sell .chip:has(input:focus-visible) { outline-color: var(--paper); }
.sell select.input {
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}
.sell select.input:disabled { color: #6f767d; }
.sell select.input:disabled:hover { border-color: #4a5057; }
.sell .button-secondary { background: transparent; border-color: #4a5057; color: var(--paper); }
.sell .button-secondary:hover { background: transparent; border-color: var(--paper); }
.sell summary::after { color: var(--night-soft); }
.sell .text-button { color: var(--paper); }

/* Schätzung ohne VIN: Modell als Pillen, Baujahr und Kilometerstand nebeneinander, darunter die Variante. */
.estimate { scroll-margin-top: var(--s3); }
.estimate-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 var(--s2); }
.hero .estimate .button { margin-top: 0; }
.estimate .hint { margin-top: var(--s1); }
.estimate .quiet-actions { margin-top: var(--s1); }
.estimate-result { margin-bottom: var(--s5); }
/* Zwei Zahlen brauchen mehr Platz als eine. */
.sell-price.is-range { font-size: clamp(2rem, 7.6vw, 3.4375rem); }
.estimate-note { margin-top: var(--s2); color: var(--night-soft); }
/* Zweiter Schritt: aus der Spanne wird mit der VIN ein fester Preis. */
.sell-step { margin-bottom: var(--s1); }
.sell-start .sell-lead { max-width: 36rem; margin-bottom: var(--s3); }
.vin-help > summary {
  display: inline-flex;
  padding-block: 0 var(--s1);
  color: var(--night-soft);
  font-size: 0.875rem;
  line-height: 1.375rem;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.vin-help > summary::after, .vin-help[open] > summary::after { content: none; }
.vin-help p { max-width: 36rem; padding-bottom: var(--s2); color: var(--night-soft); font-size: 0.875rem; line-height: 1.375rem; }
/* Preis-Wecker: eingeklappt und leise unter der Hauptaktion. */
.alert { margin-top: var(--s3); border-block: 1px solid var(--night-line); }
.alert-form { padding-bottom: var(--s3); }
.alert-form .sell-lead { margin-bottom: var(--s2); }
.alert-done { padding-bottom: var(--s3); font-weight: 500; }

/* Wer kauft: links, was zugesagt ist, rechts Fotos und Telefon. */
.trust-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); margin-bottom: var(--s3); }
.trust-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); border-radius: var(--radius); }
.contact-card { padding: var(--s3); background: var(--surface); border-radius: var(--radius); }
.contact-card .section-label { color: var(--soft); }
.contact-phone { display: inline-block; font-family: var(--font-figure); font-size: 2.125rem; line-height: 2.5rem; font-weight: 300; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.contact-phone:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.contact-card .hint { margin-top: var(--s1); }
@media (min-width: 60rem) { .trust aside { padding-top: var(--s5); } }

/* Seite hinter dem Link aus der Mail des Preis-Weckers. */
.alert-price { font-family: var(--font-figure); font-size: clamp(2.125rem, 9vw, 3.4375rem); line-height: 1.1; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.alert-car { margin-block: var(--s1) var(--s5); color: var(--soft); }
.narrow-page form.quiet-actions { margin-top: var(--s2); }

/* /verkaufen: derselbe Ablauf ohne Karte, direkt im dunklen Kopf der Seite. */
.sell-flat { display: block; margin: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.sell-start { scroll-margin-top: var(--s3); }
.sell-start > .field { margin-bottom: var(--s1); }
.sell-start .check { margin-block: var(--s2); }
/* Neben dem Formular bleiben die Zusagen stehen. */
@media (min-width: 60rem) { .sell-page .hero > .narrow { position: sticky; top: var(--s5); } }
.sell-flat .sell-form .button { margin-top: 0; }
.sell-flat .sell-result { scroll-margin-top: var(--s2); }
.sell-page main { padding-top: var(--s8); }
/* Auf dem Handy rückt das Formular nach oben: Das erste Antippen soll ohne Scrollen gehen. */
@media (max-width: 37.49rem) {
  .sell-page .hero { padding-top: var(--s3); }
  .sell-page .hero .lead { margin-bottom: var(--s3); }
}
.hero .sell-points { margin-top: var(--s3); }
/* Beispielangebot neben dem Formular: zeigt, was nach dem Klick kommt. Keine Karte zum Anklicken. */
.offer-card:hover { border-color: var(--night-line); transform: none; }
.offer-card-price { font-family: var(--font-figure); font-size: clamp(2.75rem, 9vw, 4rem); line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-block: var(--s2) var(--s1); }
.offer-card .sell-reasons { margin-top: var(--s1); font-size: 0.9375rem; }
.offer-card .example-meta { margin-top: var(--s1); }
/* Auf der Startseite: der zweite Weg, für Verkäufer. */
.hero-sell { margin-top: var(--s3); }
.band .sell-teaser-more { color: var(--night-soft); }
.hero-sell .nav-arrow { transition: transform 0.18s var(--ease-out); }
.hero-sell:hover .nav-arrow { transform: translateX(3px); }
.audience-sell .text-link { color: var(--paper); white-space: nowrap; }

/* Konto */

.lookup { padding-top: var(--s5); }
.lookup h1 { margin-bottom: var(--s3); }
.batch-results { margin-top: var(--s3); border-bottom: 1px solid var(--line); }
.batch-results li { display: flex; flex-wrap: wrap; gap: 0 var(--s2); padding-block: var(--s1); border-top: 1px solid var(--line); }
.batch-results .vin-text { min-width: 11.5rem; }
.batch-results .is-error { font-weight: 500; }

.credit-box { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); }
.credit-figure { font-size: 5.5625rem; line-height: 5.5rem; font-family: var(--font-figure); font-weight: 300; font-variant-numeric: tabular-nums; }
.credit-label { margin-bottom: var(--s3); color: var(--soft); }

.history { margin-top: var(--s8); }
.report-list-head, .report-row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) 9rem 6rem 6rem;
  gap: var(--column-gap);
  align-items: center;
}
.report-list-head { padding-bottom: var(--s1); color: var(--soft); font-size: 0.8125rem; line-height: 1rem; }
.report-list { border-bottom: 1px solid var(--line); }
.report-row { min-height: 3.5rem; padding-block: var(--s1); border-top: 1px solid var(--line); text-decoration: none; }
.report-row:hover { background: var(--surface); text-decoration: none; }
.report-row:hover .row-vin { text-decoration: underline; text-underline-offset: 4px; }
.row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-soh { display: flex; align-items: center; gap: var(--s1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-capacity, .row-date { color: var(--soft); font-variant-numeric: tabular-nums; }
.mini-bar { flex: none; overflow: visible; }
.mini-empty { color: var(--soft); }
@media (max-width: 47.99rem) {
  .report-list-head { display: none; }
  .report-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--s2); padding-block: var(--s2); }
  .row-vin { grid-column: 1; }
  .row-date { grid-column: 2; grid-row: 1; text-align: right; font-size: 0.8125rem; }
  .row-name { grid-column: 1 / -1; color: var(--soft); }
  .row-soh { grid-column: 1; margin-top: var(--s1); }
  .row-capacity { grid-column: 2; margin-top: var(--s1); text-align: right; }
}

.account-settings { margin-top: var(--s8); }
.account-settings h2 { margin-bottom: var(--s1); }

/* Guthaben */

.choices { display: grid; gap: var(--s2); }
@media (min-width: 40rem) { .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice {
  position: relative;
  display: grid;
  gap: var(--s1);
  padding: var(--s3);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  cursor: pointer;
}
.choice:hover { border-color: var(--ink); }
.choice.is-featured { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-name { font-weight: 500; }
.choice-price { font-size: 2.125rem; line-height: 2.5rem; font-family: var(--font-figure); font-weight: 300; font-variant-numeric: tabular-nums; }
.choice-unit { color: var(--soft); font-size: 0.8125rem; line-height: 1rem; }
.choice:has(input:checked) .choice-name::after { content: " ✓"; }
.summary { min-height: 2rem; margin-bottom: var(--s2); font-size: 1.3125rem; line-height: 2rem; }

/* Verwaltung */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--s3) var(--column-gap); margin-block: var(--s5); }
.stat-grid dt { color: var(--soft); font-size: 0.8125rem; line-height: 1rem; }
.stat-grid dd { font-size: 2.125rem; line-height: 2.5rem; font-family: var(--font-figure); font-weight: 300; font-variant-numeric: tabular-nums; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2); }
.inline-form .field { margin: 0; flex: 1 1 14rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; line-height: 1.5rem; }
.data-table th, .data-table td { padding: var(--s1) var(--s2) var(--s1) 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--soft); font-weight: 500; }
.data-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* Rechtstexte */

.legal { max-width: 43rem; padding-top: var(--s5); }
.legal h1 { margin-bottom: var(--s3); }
.legal h2 { margin-top: var(--s5); font-size: 1.0625rem; line-height: 1.5rem; }
.legal p { margin-top: var(--s1); }
.legal .lead { margin-top: 0; }
.form-template { margin-top: var(--s2); padding-left: var(--s3); border-left: 2px solid var(--line); color: var(--soft); }

/* Druck: nur der Befund, ohne Bedienung und ohne Ankauf. Eingeklappte Bereiche sind aufgeklappt. */
@media print {
  .site-header, .site-footer, .test-banner, .back, .report-actions, .report-manage, .notice, .skip-link, .sell, .sell-teaser { display: none !important; }
  .page { width: auto; }
  details { display: block; }
  details > summary::after { content: none; }
  details::details-content { content-visibility: visible !important; block-size: auto !important; }
  .sell-intro { position: static; }
}
@page { margin: 14mm 12mm; }

/* Bewegung
   html.motion setzt ein kleines Skript im Kopf (motion-boot.js), wenn Bewegung erwünscht ist. Ohne die Klasse
   steht alles sofort da. Ein Abschnitt mit data-reveal bekommt .is-in, sobald er im Bild ist (motion.js).
   Läuft motion.js nie, zeigt die Rückfallregel nach 3 Sekunden alles. --i ist die Position in der Reihe. */

@keyframes charge { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes charge-tile { from { clip-path: inset(0 100% 0 0 round 1rem); } to { clip-path: inset(0 0 0 0 round 1rem); } }
@keyframes appear { from { opacity: 0; } }
@keyframes stamp { from { transform: scale(0.6); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes strike { from { transform: rotate(-5deg) scaleX(0); } }
@keyframes draw { from { stroke-dashoffset: var(--length); } }
@keyframes cell-pop { from { transform: scale(0.82); } }
@keyframes cell-ok { from { box-shadow: inset 0 0 0 var(--go); transform: translateY(-3px); } }
@keyframes sheen { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes breathe { from { transform: translate(0, 0) scale(1); opacity: 0.85; } to { transform: translate(-6%, 8%) scale(1.18); opacity: 1; } }
@keyframes sink { to { transform: translateY(4rem) scale(0.96); opacity: 0.45; } }
@keyframes show { to { opacity: 1; transform: none; clip-path: none; } }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(0.5rem); } }

:is(.facts, .grade-scale, .step-list, .audiences, .feature-list, .price-cards, .sell-points, .sell-reasons, .choices) > :nth-child(1) { --i: 0; }
:is(.facts, .grade-scale, .step-list, .audiences, .feature-list, .price-cards, .sell-points, .sell-reasons, .choices) > :nth-child(2) { --i: 1; }
:is(.facts, .grade-scale, .step-list, .audiences, .feature-list, .price-cards, .sell-points, .sell-reasons, .choices) > :nth-child(3) { --i: 2; }
:is(.facts, .grade-scale, .step-list, .audiences, .feature-list, .price-cards, .sell-points, .sell-reasons, .choices) > :nth-child(4) { --i: 3; }
:is(.facts, .grade-scale, .step-list, .audiences, .feature-list, .price-cards, .sell-points, .sell-reasons, .choices) > :nth-child(5) { --i: 4; }
:is(.facts, .grade-scale, .step-list, .audiences, .feature-list, .price-cards, .sell-points, .sell-reasons, .choices) > :nth-child(n + 6) { --i: 5; }

/* Antworten auf Zeiger und Finger: Knöpfe und Karten heben sich leicht. */
.button:not(:disabled):active { transform: translateY(1px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button { transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.18s, border-color 0.18s; }
  .button:not(.button-secondary, .button-danger, :disabled):hover { transform: translateY(-1px); box-shadow: 0 0.75rem 1.5rem -0.75rem rgba(43, 212, 125, 0.8); }
  .button:not(:disabled):active { transform: translateY(1px); box-shadow: none; }
  .price-card, .example-card, .choice, .pill, .chip { transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.18s, background-color 0.18s, color 0.18s; }
  .price-card:hover { transform: translateY(-4px); box-shadow: 0 1.25rem 2rem -1.25rem rgba(14, 16, 18, 0.35); }
  .example-card:hover { transform: translateY(-4px); }
  .sell-teaser svg { transition: transform 0.18s var(--ease-out); }
  .sell-teaser:hover svg { transform: translateY(3px); }
}

@media screen {
  /* Wartende Knöpfe: ein Lichtstreifen läuft durch, wie beim Laden. */
  html.motion .button[aria-busy="true"] {
    opacity: 0.85;
    background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
    background-size: 220% 100%;
    background-repeat: no-repeat;
    animation: sheen 1.1s linear infinite;
  }
  html.motion .button-secondary[aria-busy="true"] { background-image: linear-gradient(100deg, transparent 30%, rgba(14, 16, 18, 0.1) 50%, transparent 70%); }
  html.motion .button-danger[aria-busy="true"], html.motion .sell .button-secondary[aria-busy="true"] { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%); }

  /* VIN: Jedes getippte Zeichen rastet ein. Ist die VIN vollständig, läuft ein grüner Strich durch alle Felder. */
  .plate.is-complete .vin-cell { box-shadow: inset 0 -3px 0 var(--go); }
  html.motion .vin-cell.is-pop { animation: cell-pop 0.2s var(--ease-pop); }
  html.motion .plate.is-complete .vin-cell { animation: cell-ok 0.3s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 18ms); }

  /* Startseite: Der Schimmer atmet, der Strich zieht sich durch den späteren Preis. */
  html.motion .band::before { animation: breathe 14s ease-in-out infinite alternate; }
  html.motion .hero .price-was-inline::after { animation: strike 0.4s 0.7s var(--ease-out) backwards; }

  /* Messen: Der Balken lädt auf, die Zahl zählt mit (motion.js), dann setzt der Zeiger und die Note fällt. */
  html.motion [data-reveal="measure"]:not(.is-in) .gauge-fills { clip-path: inset(0 100% 0 0); }
  html.motion [data-reveal="measure"]:not(.is-in) :is(.gauge-needle, .grade-large b, .figure) { opacity: 0; }
  html.motion [data-reveal="measure"].is-in .gauge-fills { animation: charge 1.1s var(--ease-out) both; }
  html.motion [data-reveal="measure"].is-in .gauge-needle { animation: appear 0.25s 1s both; }
  html.motion [data-reveal="measure"].is-in .grade-large b { animation: stamp 0.45s 0.9s var(--ease-pop) both; }
  html.motion .example-card[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(1.5rem); }
  html.motion .example-card[data-reveal].is-in { animation: rise 0.7s var(--ease-out) backwards; }
  /* Im Befund folgen die Angaben, wenn die Zahl steht. */
  html.motion .report[data-reveal]:not(.is-in) :is(.facts > div, .sell-teaser, .caption-word, .caption-note, .caption-figure) { opacity: 0; }
  html.motion .report[data-reveal].is-in :is(.caption-word, .caption-note, .caption-figure) { animation: appear 0.4s 0.95s both; }
  html.motion .report[data-reveal].is-in .facts > div { animation: rise 0.5s var(--ease-out) backwards; animation-delay: calc(0.7s + var(--i, 0) * 60ms); }
  html.motion .report[data-reveal].is-in .sell-teaser { animation: rise 0.5s 1.3s var(--ease-out) backwards; }

  /* Notenskala: Die sechs Felder laden nacheinander auf, die Ziffern fallen wie gestempelt. */
  html.motion [data-reveal="scale"]:not(.is-in) > li { clip-path: inset(0 100% 0 0 round 1rem); }
  html.motion [data-reveal="scale"]:not(.is-in) > li b { opacity: 0; }
  html.motion [data-reveal="scale"].is-in > li { animation: charge-tile 0.55s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  html.motion [data-reveal="scale"].is-in > li b { transform-origin: left center; animation: stamp 0.4s var(--ease-pop) backwards; animation-delay: calc(0.3s + var(--i, 0) * 70ms); }

  /* Schritte: Nummer, Text, dann wächst die Linie zum nächsten Schritt. */
  html.motion [data-reveal="steps"]:not(.is-in) > li > * { opacity: 0; }
  html.motion [data-reveal="steps"]:not(.is-in) > li::after { transform: scale(0); }
  html.motion [data-reveal="steps"].is-in > li > .step-number { animation: stamp 0.45s var(--ease-pop) backwards; animation-delay: calc(var(--i, 0) * 240ms); }
  html.motion [data-reveal="steps"].is-in > li > :not(.step-number) { animation: rise 0.5s var(--ease-out) backwards; animation-delay: calc(0.1s + var(--i, 0) * 240ms); }
  html.motion [data-reveal="steps"].is-in > li::after { animation: grow-x 0.45s var(--ease-out) backwards; animation-delay: calc(0.25s + var(--i, 0) * 240ms); }
  @media (max-width: 47.99rem) { html.motion [data-reveal="steps"].is-in > li::after { animation-name: grow-y; } }

  /* Käufer und Verkäufer: Die Karten kommen hoch, dann lädt der Strich unter der Überschrift. */
  html.motion [data-reveal="cards"]:not(.is-in) > * { opacity: 0; }
  html.motion [data-reveal="cards"]:not(.is-in) h2::after { transform: scaleX(0); }
  html.motion [data-reveal="cards"].is-in > * { animation: rise 0.6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 100ms); }
  html.motion [data-reveal="cards"].is-in h2::after { animation: grow-x 0.5s var(--ease-out) backwards; animation-delay: calc(0.4s + var(--i, 0) * 100ms); }

  /* Was im Befund steht: Linie für Linie, wie beim Ausfüllen. */
  html.motion [data-reveal="ticks"]:not(.is-in) > div::before { transform: scaleX(0); }
  html.motion [data-reveal="ticks"]:not(.is-in) > div > * { opacity: 0; }
  html.motion [data-reveal="ticks"].is-in > div::before { animation: grow-x 0.5s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
  html.motion [data-reveal="ticks"].is-in > div > * { animation: rise 0.45s var(--ease-out) backwards; animation-delay: calc(0.12s + var(--i, 0) * 80ms); }

  /* Preise: Die Karten kommen hoch, der spätere Preis wird durchgestrichen, das Schild fällt. */
  html.motion [data-reveal="prices"]:not(.is-in) > li { opacity: 0; }
  html.motion [data-reveal="prices"]:not(.is-in) .price-was s::after { transform: rotate(-5deg) scaleX(0); }
  html.motion [data-reveal="prices"].is-in > li { animation: rise 0.55s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
  html.motion [data-reveal="prices"].is-in .price-was s::after { animation: strike 0.35s var(--ease-out) backwards; animation-delay: calc(0.5s + var(--i, 0) * 90ms); }
  html.motion [data-reveal="prices"].is-in .price-flag { animation: stamp 0.4s 0.75s var(--ease-pop) backwards; }

  /* Ankauf: Die Karte kommt hoch, das Schild fällt, die drei Zusagen bekommen ihren Zeiger. */
  html.motion [data-reveal="sell"]:not(.is-in) { opacity: 0; transform: translateY(1.5rem); }
  html.motion [data-reveal="sell"]:not(.is-in) .sell-kicker { opacity: 0; }
  html.motion [data-reveal="sell"]:not(.is-in) .sell-points li::before { transform: scaleY(0); }
  html.motion [data-reveal="sell"].is-in { animation: rise 0.7s var(--ease-out) backwards; }
  html.motion [data-reveal="sell"].is-in .sell-kicker { animation: stamp 0.45s 0.35s var(--ease-pop) backwards; }
  html.motion [data-reveal="sell"].is-in .sell-points li::before { animation: grow-y 0.35s var(--ease-out) backwards; animation-delay: calc(0.5s + var(--i, 0) * 100ms); }
  /* Das Angebot erscheint: Der Preis zählt hoch (motion.js), die Gründe folgen einzeln. */
  html.motion .sell-result:not([hidden], .sell-result-static) { animation: rise 0.5s var(--ease-out); }
  html.motion .sell-result:not([hidden], .sell-result-static) .sell-reasons li { animation: rise 0.4s var(--ease-out) backwards; animation-delay: calc(0.7s + var(--i, 0) * 110ms); }
  html.motion .sell-result:not([hidden], .sell-result-static) :is(.sell-valid, .sell-next, .sell-request) { animation: appear 0.5s 1s backwards; }
  /* Nach der Spanne folgt der nächste Schritt: Das Feld für die VIN erscheint einen Moment später. */
  html.motion .estimate-result:not([hidden]) + .sell-start { animation: appear 0.5s 0.7s backwards; }
  html.motion .sell-done:not([hidden]) { animation: rise 0.5s var(--ease-out); }
  .sell-check circle { --length: 164; stroke-dasharray: 164; }
  .sell-check path { --length: 36; stroke-dasharray: 36; }
  html.motion .sell-done:not([hidden]) .sell-check circle { animation: draw 0.6s var(--ease-out) backwards; }
  html.motion .sell-done:not([hidden]) .sell-check path { animation: draw 0.35s 0.45s var(--ease-out) backwards; }

  /* Rückfall: Kommt motion.js nicht, erscheint nach 3 Sekunden alles ohne Bewegung. */
  html.motion:not(.motion-ready) [data-reveal],
  html.motion:not(.motion-ready) [data-reveal] *,
  html.motion:not(.motion-ready) [data-reveal] *::before,
  html.motion:not(.motion-ready) [data-reveal] *::after { animation: show 0.01s 3s forwards; }
}

/* Beim Scrollen: Die Beispielkarte sinkt langsam zurück, während das Papier darüberschiebt. Nur wo der Browser das kann. */
@supports (animation-timeline: view()) {
  @media (min-width: 60rem) and (prefers-reduced-motion: no-preference) {
    .home .hero > .narrow { animation: sink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}

/* Aufklappen: Fragen und Datenlisten öffnen weich, wo der Browser Höhen überblenden kann. */
@supports (interpolate-size: allow-keywords) {
  @media screen and (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    /* Nicht bei den Paketen: Die klappt ein Skript beim Laden je nach Breite auf oder zu, das soll nicht zucken. */
    details:not(.packages)::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete; }
    details:not(.packages)[open]::details-content { block-size: auto; }
  }
}

/* Seitenwechsel: kurzes Überblenden statt hartem Schnitt, wo der Browser das kann. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-out 0.16s ease-in both; }
  ::view-transition-new(root) { animation: page-in 0.3s var(--ease-out) both; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
