/* Automobilzentrum Ahrensburg e.K. – Website
   Schriften: Inter und Inter Display (SIL Open Font License, lokal eingebunden, siehe fonts/Inter-OFL.txt)
   Keine externen Ressourcen, keine Cookies. */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }

:root {
  --red: #D1301F;
  --red-hover: #B72616;
  --red-bright: #E8321F;
  --ink: #17181A;
  --text: #2B2D30;
  --muted: #5F6268;
  --line: #E3E4E6;
  --line-strong: #CDCFD3;
  --alt: #F4F5F6;
  --paper: #FFFFFF;
  --dark: #18191A;
  --dark-2: #202224;
  --dark-3: #2C2E31;
  --dark-line: #34373B;
  --footer: #101112;
  --on-dark: #F4F4F5;
  --on-dark-2: #B9BCC1;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1320px;
  --header-h: 80px;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p, ul, ol, address, dl, figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
svg { max-width: 100%; }
img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin: 0 0 1.1rem;
  font: 600 0.78rem/1.2 var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--on-dark-2); }
.on-dark .eyebrow::before { background: var(--red-bright); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 54px;
  padding: 0 1.55rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: 600 1rem/1.15 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:hover svg.ic { transform: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.on-dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.on-dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}
.text-link:hover { color: var(--red); }
.text-link svg { width: 1em; height: 1em; flex: none; }
.on-dark .text-link { color: #fff; text-decoration-color: var(--red-bright); }
.on-dark .text-link:hover { color: #fff; text-decoration-thickness: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3vw, 38px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(16, 17, 18, 0.10); }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 46px; width: auto; }
@media (min-width: 1360px) { .brand img { height: 54px; } }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.nav a:not(.btn) {
  position: relative;
  padding: 10px 0;
  color: var(--ink);
  font: 600 0.9375rem/1 var(--font);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav a svg { flex: none; width: 0.95em; height: 0.95em; color: var(--red); }
.nav a { white-space: nowrap; }
.nav .btn { min-height: 46px; padding: 0 1.1rem; font-size: 0.9375rem; }
.nav .btn svg { color: inherit; width: 1.05em; height: 1.05em; }

.nav-toggle { display: none; }

@media (max-width: 1220px) {
  .brand img { height: 44px; }
  .js .nav { display: none; }
  /* Ohne JavaScript bleibt die Navigation als Zeile unter dem Logo sichtbar */
  .no-js .site-header { position: static; }
  .no-js .header-bar { flex-wrap: wrap; gap: 4px 24px; padding-block: 12px 8px; }
  .no-js .nav { flex-wrap: wrap; width: 100%; gap: 0 20px; }
  .no-js .nav .btn { min-height: 40px; margin-bottom: 6px; }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font: 600 0.9375rem/1 var(--font);
    cursor: pointer;
  }
  .js .nav-toggle::before {
    content: "";
    width: 18px; height: 12px;
    background:
      linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
  }
  .js .nav-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
  .js .nav-toggle[aria-expanded="true"]::before {
    background:
      linear-gradient(#fff, #fff) 0 50% / 100% 2px no-repeat;
  }
  .js .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 6px var(--gutter) 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(16, 17, 18, 0.14);
  }
  .js .nav.is-open a:not(.btn) {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
  .js .nav.is-open a:not(.btn)::after { display: none; }
  .js .nav.is-open a:not(.btn)[aria-current="page"] { color: var(--red); }
  .js .nav.is-open .btn { margin-top: 20px; }
}
@media (max-width: 440px) {
  .brand img { height: 34px; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--dark);
  color: var(--on-dark);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
  padding-block: clamp(36px, 5vw, 72px) clamp(8px, 2vw, 24px);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 4.9vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: #fff; font-weight: 300; }
.hero .lead { max-width: 38ch; margin-top: clamp(18px, 2.4vw, 28px); color: var(--on-dark-2); }
.hero-visual { margin-right: calc(var(--gutter) * -1); min-width: 0; }
.hero-car { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: car-in 1.6s 0.15s var(--ease) both; }
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
}
@keyframes car-in {
  from { clip-path: inset(-20px 100% -20px -40px); transform: translateX(-36px); opacity: 0; }
  35% { opacity: 1; }
  to { clip-path: inset(-20px -60px -20px -40px); transform: none; opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-visual { margin-right: calc(var(--gutter) * -0.6); margin-left: calc(var(--gutter) * -0.6); margin-top: 8px; }
}

/* Kennzahlenleiste in der Optik des Kontaktbands (Kreis-Symbole, rote Trenner) */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dark-line);
}
.hero-facts li { position: relative; }
.hero-facts li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--red);
}
.fact {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 26px clamp(16px, 2vw, 28px);
  color: #fff;
  text-decoration: none;
}
.hero-facts li:first-child .fact { padding-left: 0; }
.fact-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--red-bright);
  transition: border-color 0.25s, background-color 0.25s;
}
.fact-ic svg { width: 24px; height: 24px; }
.fact:hover .fact-ic { border-color: var(--red-bright); background: rgba(232, 50, 31, 0.12); }
.fact-t { display: block; font: 600 1rem/1.25 var(--font); }
.fact-s { display: block; margin-top: 2px; font-size: 0.9rem; line-height: 1.35; color: var(--on-dark-2); }

@media (max-width: 1240px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li + li::before { display: none; }
  .hero-facts li:nth-child(n + 3) { border-top: 1px solid var(--dark-line); }
  .hero-facts li:nth-child(even) { border-left: 2px solid var(--red); }
  .hero-facts li:nth-child(even) .fact { padding-left: clamp(16px, 3vw, 28px); }
  .hero-facts li:nth-child(odd) .fact { padding-left: 0; }
  .fact { padding-block: 20px; }
}
@media (max-width: 560px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li:nth-child(even) { border-left: 0; }
  .hero-facts li + li { border-top: 1px solid var(--dark-line); }
  .hero-facts li .fact { padding-left: 0 !important; padding-block: 16px; }
  .fact-ic { width: 46px; height: 46px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section-alt { background: var(--alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(30px, 4vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 1.15rem; }

/* Trennstriche zwischen Stichwörtern. Beim Umbruch bleibt der Strich nie am Zeilenanfang stehen. */
.pipes {
  --pipe-gap: 0.85em;
  --pipe-lead: calc(var(--pipe-gap) * 2 + 3px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 22px 0 0 calc(var(--pipe-lead) * -1);
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: inherit;
  clip-path: inset(0 0 0 var(--pipe-lead));
}
.pipes li { position: relative; padding-left: var(--pipe-lead); }
.pipes li::before {
  content: "";
  position: absolute;
  left: var(--pipe-gap);
  top: 50%;
  width: 3px;
  height: 1.1em;
  transform: translateY(-50%);
  background: var(--red);
}
@media (max-width: 480px) { .pipes { --pipe-gap: 0.6em; } }
.pipes-caps {
  margin: 0 0 clamp(20px, 2.6vw, 30px) calc(var(--pipe-lead) * -1);
  font: 600 0.78rem/1.3 var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.pipes-caps li::before { background: var(--red-bright); width: 2px; height: 1.3em; }

/* ---------- Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > li { display: flex; }
.card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 22px 44px -22px rgba(23, 24, 26, 0.35);
}
.card h3 { font-size: 1.45rem; line-height: 1.15; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.card p { margin-top: 12px; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: auto;
  padding-top: 26px;
  font-weight: 600;
  color: var(--red);
}
.card-more svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.card:hover .card-more svg { transform: translateX(6px); }

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

/* ---------- Ablauf (echte Reihenfolge, daher nummeriert) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(22px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; padding-top: 22px; counter-increment: step; border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  display: block;
  margin-bottom: 14px;
  font: 300 clamp(2.6rem, 4.4vw, 3.8rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--line-strong);
}
.steps li::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 3px;
  background: var(--red);
}
.steps h3 { font-size: 1.25rem; line-height: 1.2; }
.steps p { margin-top: 8px; }

.steps-v { grid-template-columns: 1fr; margin-top: clamp(24px, 3vw, 36px); gap: 28px; }
.steps-v li { padding-left: 76px; padding-top: 20px; min-height: 64px; }
.steps-v li::before { position: absolute; left: 0; top: 14px; margin: 0; font-size: 2.6rem; }
@media (max-width: 860px) {
  .steps, .steps-3 { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Unterseiten: Hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(28px, 4vw, 56px) clamp(44px, 6vw, 88px);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.6em;
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--on-dark-2);
}
.crumbs li + li::before { content: "/"; margin-right: 0.6em; color: #6F7378; }
.crumbs a { color: inherit; text-decoration: underline; text-decoration-color: var(--dark-line); text-underline-offset: 0.2em; }
.crumbs a:hover { color: #fff; text-decoration-color: var(--red-bright); }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 7.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; }
@media (min-width: 901px) {
  .page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
}
.page-hero .lead { max-width: 42ch; margin-top: clamp(16px, 2vw, 24px); color: var(--on-dark-2); }
.hero-card {
  padding: clamp(24px, 3vw, 40px);
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 22px;
}
.hero-card-title { margin: 0 0 6px; }
.hero-card dl { margin: 0; }
.hero-card dl > div { position: relative; padding: 20px 0 18px; border-top: 1px solid var(--dark-line); }
.hero-card dl > div::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--red-bright); }
.hero-card dl > div:first-child::before { display: none; }
.hero-card dt { font: 600 0.72rem/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.hero-card dd { margin: 6px 0 0; font: 600 1.15rem/1.3 var(--font); color: #fff; }
.hero-card-addr { display: block; padding-top: 18px; border-top: 1px solid var(--dark-line); color: var(--on-dark-2); }
.hero-card-addr a { color: #fff; text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 0.25em; }
.hero-card-addr a:hover { text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Unterseiten: Inhalt ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-grid li {
  position: relative;
  padding: 30px 28px 28px;
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.svc-grid li::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin-bottom: 18px;
  background: var(--red);
}
.svc-grid h3 { font-size: 1.25rem; line-height: 1.2; }
.svc-grid p { margin-top: 10px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.note {
  margin-top: clamp(26px, 3.4vw, 44px);
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
}
.section:not(.section-alt) .note { background: var(--alt); }
.note strong { color: var(--ink); }

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.points li { padding-top: 24px; border-top: 1px solid var(--line-strong); position: relative; }
.points li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 3px; background: var(--red); }
.points h3 { font-size: 1.3rem; line-height: 1.2; }
.points p { margin-top: 10px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checks {
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.checks li {
  position: relative;
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}
.checks li span { display: block; margin-top: 3px; color: var(--text); font-weight: 400; font-size: 0.97rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checks-note { margin-top: 22px; }

/* ---------- Aktuelle Fahrzeuge (Durchlauf in Endlosschleife) ---------- */
.bestand {
  --per: 3;            /* so viele Karten sind gleichzeitig zu sehen (Dezimalwert = nächste Karte schaut heraus) */
  --gap: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  align-items: end;
}
.bestand [hidden] { display: none !important; }
.bestand-intro { margin-bottom: 0; }
.bestand-controls { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.bestand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 0.9375rem/1 var(--font);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.bestand-btn:hover { background: var(--ink); color: #fff; }
.bestand-btn svg { width: 1.25em; height: 1.25em; flex: none; }
.bestand-arrow { padding: 0; }
.bestand-arrow svg { width: 1.45em; height: 1.45em; }
.bestand-toggle > span { display: inline-flex; align-items: center; gap: 0.6em; }
.bestand-toggle[data-state="playing"] .t-play,
.bestand-toggle[data-state="paused"] .t-pause { display: none; }

/* Sichtfenster: schneidet die weiter hinten stehenden Karten ab. Der Innenabstand lässt Fokusrahmen und Schatten stehen. */
.bestand-viewport {
  grid-column: 1 / -1;
  margin: clamp(28px, 3.6vw, 48px) -12px 0;
  padding: 12px 12px 22px;
  overflow: hidden;
  overflow: clip;
  touch-action: pan-y pinch-zoom;   /* senkrecht scrollt die Seite, waagerecht wischt das Skript; Zoomen mit zwei Fingern bleibt möglich */
}
.bestand-track {
  position: relative;
  display: flex;
  gap: var(--gap);
  -webkit-user-select: none;
  user-select: none;
  will-change: transform;
}
.car {
  --px: 26px;
  --pt: 24px;
  position: relative;
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--pt) var(--px) 26px;
  overflow: hidden;
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.car:hover,
.car:focus-within { border-color: var(--red); box-shadow: 0 14px 26px -18px rgba(23, 24, 26, 0.45); }
/* Foto-Galerie: Fotoleiste zum Durchwischen. Liegt über der Klickfläche der Karte (z-index), gibt Klicks per Skript an den Link weiter. */
.car-photo { position: relative; z-index: 1; margin: calc(var(--pt) * -1) calc(var(--px) * -1) 20px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.car-rail {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.car-rail::-webkit-scrollbar { display: none; }
.car-rail.is-grab { scroll-snap-type: none; cursor: grabbing; }
.car-slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.car-slide img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.car-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(23, 24, 26, 0.3);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}
.car-nav svg { width: 22px; height: 22px; }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-photo:hover .car-nav,
.car-photo:focus-within .car-nav { opacity: 1; }
.car-nav:hover { background: var(--ink); color: #fff; }
.car-nav.is-off { cursor: default; }
.car-photo:hover .car-nav.is-off,
.car-photo:focus-within .car-nav.is-off { opacity: 0.4; }
.car-nav.is-off:hover { background: rgba(255, 255, 255, 0.94); color: var(--ink); }
@media (hover: none) { .car-nav { display: none; } }
.car-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  max-width: calc(100% - 24px);
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 24, 26, 0.55);
  transform: translateX(-50%);
  pointer-events: none;
}
.car-dots i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: background-color 0.2s, transform 0.2s; }
.car-dots i.is-on { background: #fff; transform: scale(1.3); }
.car-photo.is-empty { display: flex; align-items: center; justify-content: center; padding: 0 16px; text-align: center; font-size: 0.85rem; line-height: 1.4; letter-spacing: 0.02em; color: var(--muted); }
.car-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; min-height: 2.6rem; }
.car-no {
  font: 300 2.6rem/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--line-strong);
}
.car-no::before { content: attr(data-no); }
.car-tag {
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 0.78rem/1.35 var(--font);
}
.car-tag.is-warn { border-color: var(--red); color: var(--red); }
.car-title { margin-top: 16px; font-size: 1.4rem; line-height: 1.15; }
.car-keys {
  margin-top: 10px;
  font-size: 0.74rem;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.car-facts { margin: 20px 0 0; border-top: 1px solid var(--line-strong); }
.car-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.car-facts dt { color: var(--muted); }
.car-facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.car-foot { margin-top: auto; padding-top: 22px; }
.car-price { font: 600 1.9rem/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.car-price small { display: block; min-height: 1.3em; margin-top: 5px; font: 400 0.85rem/1.3 var(--font); letter-spacing: 0; color: var(--muted); }
.car-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 14px;
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.car-more svg { width: 1.05em; height: 1.05em; flex: none; transition: transform 0.2s var(--ease); }
.car-more::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte ist anklickbar */
.car:hover .car-more svg { transform: translate(2px, -2px); }

/* Mit Subgrid stehen Titel, Daten und Preis aller Karten auf einer Linie, auch bei verschieden langen Titeln */
@supports (grid-template-rows: subgrid) {
  .bestand-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
    grid-template-rows: repeat(6, auto);
    column-gap: var(--gap);
  }
  .car { display: grid; flex: none; grid-row: 1 / span 6; grid-template-rows: subgrid; row-gap: 0; }
  .car > * { grid-column: 1; }
  .car-photo { grid-row: 1; }
  .car-top { grid-row: 2; }
  .car-title { grid-row: 3; }
  .car-keys { grid-row: 4; }
  .car-facts { grid-row: 5; }
  .car-foot { grid-row: 6; align-self: end; }
}

.bestand-foot { grid-column: 1 / -1; }
.bestand-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 6px; }
.bestand-bars { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.bestand-bars i { display: block; width: var(--bar, 22px); height: 3px; background: var(--line-strong); transition: background-color 0.3s; }
.bestand-bars i.is-on { background: var(--red); }
.bestand-note { flex: 1 1 28ch; max-width: 70ch; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.bestand-foot .actions { margin-top: clamp(22px, 2.6vw, 32px); }
.bestand:not(.is-ready) .bestand-foot .actions { margin-top: clamp(24px, 3vw, 34px); }

/* Wenige Fahrzeuge: kein Durchlauf, die Karten stehen nebeneinander (bei Bedarf wischbar) */
.bestand.is-static .bestand-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-x: contain; touch-action: pan-x pan-y pinch-zoom; }
.bestand.is-static .bestand-track { transform: none !important; transition: none !important; }
.bestand.is-static .car { scroll-snap-align: start; }

@media (max-width: 1000px) { .bestand { --per: 2; --gap: 20px; } }
@media (max-width: 640px) {
  .bestand { --per: 1.12; --gap: 16px; grid-template-columns: minmax(0, 1fr); }
  .bestand-controls { margin-top: 24px; padding-bottom: 0; }
  .bestand-viewport { margin: 20px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter) 22px; }
  .car { --px: 22px; --pt: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .bestand-track, .car-card, .car-more svg, .bestand-bars i, .car-nav, .car-dots i { transition: none !important; }
}
@media print {
  .bestand-controls, .car-nav, .car-dots { display: none !important; }
}

/* ---------- Rotes Band: Fahrzeugbestand ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(115deg, #D1301F 0%, #B62416 100%);
  color: #fff;
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 80px);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.08; }
.cta-band p { margin-top: 14px; max-width: 54ch; color: #fff; }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-action .btn { width: 100%; max-width: 400px; }
.cta-note { margin-top: 0 !important; font-size: 0.9rem; color: #fff !important; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cta-action .btn { max-width: none; } }

/* ---------- Kontaktband (wie auf der mobile.de-Händlerseite) ---------- */
.contact-band {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(56px, 7vw, 100px) clamp(40px, 5vw, 72px);
}
.contact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.contact-intro { flex: 1 1 520px; max-width: 660px; }
.contact-head h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; max-width: 18ch; }
.contact-intro .lead { margin-top: 16px; max-width: 52ch; color: var(--on-dark-2); }
.contact-head .actions { margin-top: 0; }
.contact-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(max-content, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dark-line);
}
.contact-cols li { position: relative; }
.contact-cols li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 2px;
  background: var(--red);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 30px clamp(16px, 1.8vw, 28px);
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.contact-cols li:first-child .contact-item { padding-left: 0; }
.contact-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: var(--red-bright);
  transition: border-color 0.25s, background-color 0.25s;
}
.contact-ic svg { width: 26px; height: 26px; }
a.contact-item:hover .contact-ic { border-color: var(--red-bright); background: rgba(232, 50, 31, 0.12); }
.contact-txt { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.contact-txt small { display: block; margin-bottom: 2px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); }
a.contact-item:hover .contact-txt strong { text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 0.25em; }
.contact-txt strong { font-weight: 600; }
.contact-txt span { display: block; color: var(--on-dark-2); }

@media (max-width: 1180px) {
  .contact-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cols li + li::before { display: none; }
  .contact-cols li:nth-child(even) { border-left: 2px solid var(--red); }
  .contact-cols li:nth-child(n + 3) { border-top: 1px solid var(--dark-line); }
  .contact-cols li:nth-child(even) .contact-item { padding-left: clamp(16px, 3vw, 30px); }
  .contact-cols li:nth-child(odd) .contact-item { padding-left: 0; }
}
@media (max-width: 600px) {
  .contact-cols { grid-template-columns: 1fr; }
  .contact-cols li:nth-child(even) { border-left: 0; }
  .contact-cols li + li { border-top: 1px solid var(--dark-line); }
  .contact-cols li .contact-item { padding-left: 0 !important; padding-block: 22px; }
  .contact-ic { width: 52px; height: 52px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--on-dark-2); padding-block: clamp(44px, 6vw, 72px) 28px; border-top: 1px solid var(--dark-line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 40px;
}
.site-footer .brand img { height: 46px; }
.footer-brand .pipes-caps { margin-top: 22px; margin-bottom: 0; color: #fff; font-size: 0.72rem; letter-spacing: 0.16em; }
.footer-h { margin-bottom: 14px; color: #fff; font: 600 0.78rem/1.2 var(--font); letter-spacing: 0.18em; text-transform: uppercase; }
.site-footer ul:not(.pipes) { margin: 0; padding: 0; list-style: none; }
.site-footer ul:not(.pipes) li + li { margin-top: 8px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 0.22em; }
.footer-contact { margin-top: 12px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #8E9298;
}
.footer-bottom p + p { margin-top: 6px; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer .brand img { height: 38px; }
}

/* ---------- Schnellzugriff (Mobil) ---------- */
.action-bar { display: none; }
@media (max-width: 480px) {
  .btn { padding: 0 1.1rem; }
}
@media (max-width: 760px) {
  .site-footer { padding-bottom: 104px; }
  .action-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(24, 25, 26, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--dark-line);
  }
  .action-bar .btn { min-height: 52px; padding: 0 12px; font-size: 0.9375rem; }
  .hero .actions .btn, .page-hero .actions .btn, .contact-head .actions .btn { width: 100%; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-block: clamp(44px, 6vw, 96px); overflow-wrap: break-word; hyphens: auto; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; }
.legal h2 { margin-top: 2.4em; font-size: 1.4rem; line-height: 1.2; }
.legal h3 { margin-top: 1.6em; font-size: 1.1rem; }
.legal p, .legal ul, .legal address { margin-top: 0.9em; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 0.4em; }
.legal a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.legal a:hover { color: var(--red); }
.legal .meta { margin-top: 1.4em; color: var(--muted); }

/* Platzhalter, bitte vor Veröffentlichung ersetzen */
mark.todo { padding: 0 0.3em; background: #FFE680; color: #000; border-radius: 2px; }

/* ---------- Einblenden beim Scrollen (nur mit JavaScript und ohne reduzierte Bewegung) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .reveal.d1 { transition-delay: 0.08s; }
.js-reveal .reveal.d2 { transition-delay: 0.16s; }
.js-reveal .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .card:hover { transform: none; }
}

@media print {
  .site-header, .action-bar, .skip { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { padding: 0; }
}
