@import url("../fonts/fonts.css");

/* ============================================================
   T.C. AUTOMOBILE — Design-System
   Marke: Schwarz / Signalrot (aus dem TC-CONCEPTS-Logo) / Weiß
   ============================================================ */

:root {
  /* Farben */
  --red: #e4331f;
  --red-600: #c92a18;
  --red-glow: rgba(228, 51, 31, 0.35);

  --bg: #08080a;
  --bg-2: #0e0e11;
  --surface: #141418;
  --surface-2: #1b1b21;
  --surface-3: #23232b;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f6;
  --text-2: #b6b6c0;
  --text-3: #7c7c88;

  --green: #2fbf71;
  --amber: #f0a92b;

  /* Maße */
  --wrap: 1240px;
  --wrap-narrow: 860px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --header-h: 76px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.7);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
}

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--alt { background: var(--bg-2); }

.hairline { border-top: 1px solid var(--line); }

/* ---------- Typografie ---------- */
.display {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  letter-spacing: -0.042em;
  line-height: 1.02;
}

.h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.62;
}

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.fine { font-size: 0.78rem; line-height: 1.55; color: var(--text-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}

.section-head { max-width: 660px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 10px 30px -12px var(--red-glow); }
.btn--primary:hover { --btn-bg: var(--red-600); box-shadow: 0 16px 40px -14px var(--red-glow); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }

.btn--light { --btn-bg: #fff; --btn-fg: #0a0a0b; }
.btn--light:hover { --btn-bg: #e9e9ec; }

.btn--wa { --btn-bg: #1faa54; }
.btn--wa:hover { --btn-bg: #178c46; }

.btn--sm { padding: 10px 18px; font-size: 0.87rem; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck,
.header.is-solid {
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 0.98rem; letter-spacing: -0.02em; }
.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  background: var(--red);
  border-radius: 2px;
  margin: 3px auto -4px;
}

.header__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 89;
  background: rgba(8, 8, 10, 0.98);
  backdrop-filter: blur(20px);
  padding: 28px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  padding: 15px 4px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav a span { color: var(--text-3); font-size: 0.8rem; font-weight: 600; }
.mobile-nav .btn-row { margin-top: 26px; }
.mobile-nav .btn { flex: 1 1 140px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 46px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
  filter: saturate(0.92) contrast(1.06);
  animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(8, 8, 10, 0.72) 34%, rgba(8, 8, 10, 0.28) 62%, rgba(8, 8, 10, 0.62) 100%),
    linear-gradient(to right, rgba(8, 8, 10, 0.86) 0%, rgba(8, 8, 10, 0.28) 52%, transparent 78%);
}
.hero__inner { width: 100%; }
.hero__content { max-width: 720px; }
.hero .display { margin-top: 20px; }
.hero .display em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 44px var(--red-glow);
}
.hero .lead { margin-top: 22px; max-width: 540px; color: #d3d3da; }
.hero .btn-row { margin-top: 34px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e2e8;
}
.hero__badge b { font-weight: 800; }
.hero__badge .pill-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 800; color: #fff;
}

/* Schnellsuche im Hero */
.quicksearch {
  margin-top: 40px;
  background: rgba(20, 20, 24, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  box-shadow: var(--shadow);
  max-width: 860px;
}
.qs-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.qs-field label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Formularelemente ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label,
.label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.field .fine { margin-top: -2px; }

.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); font-weight: 500; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(228, 51, 31, 0.16);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c7c88' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.select option { background: #17171b; color: var(--text); }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}
.checkline input[type="checkbox"] {
  appearance: none;
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.checkline input[type="checkbox"]:checked {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
  border-color: var(--red);
}
.checkline a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .span-2 { grid-column: 1 / -1; }

.range-wrap { display: flex; flex-direction: column; gap: 6px; }
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-3);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  cursor: grab;
}

/* ---------- Karten / Flächen ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.3s var(--ease);
}
.card--pad { padding: clamp(22px, 3vw, 32px); }
.card--hover:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 40px);
}

/* ---------- Trust-Leiste ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.metric { background: var(--bg); padding: 26px 20px; text-align: center; }
.metric__val {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric__val small { font-size: 0.5em; font-weight: 700; color: var(--text-3); margin-left: 3px; }
.metric__lbl {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Fahrzeugkarte ---------- */
.veh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.veh {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}
.veh:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.veh__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.veh__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.veh:hover .veh__media img { transform: scale(1.055); }

.veh__tags {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 70px);
}
.tag {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.tag--red { background: var(--red); border-color: transparent; }
.tag--green { background: rgba(47, 191, 113, 0.9); border-color: transparent; color: #04240f; }

.veh__imgcount {
  position: absolute;
  bottom: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.71rem;
  font-weight: 700;
  color: #e8e8ee;
}

.fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: blur(8px);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s var(--ease), border-color 0.2s;
  z-index: 3;
}
.fav:hover { transform: scale(1.08); background: rgba(8, 8, 10, 0.85); }
.fav svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; transition: fill 0.2s, stroke 0.2s; }
.fav.is-on svg { fill: var(--red); stroke: var(--red); }

.veh__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.veh__make { font-size: 0.71rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); }
.veh__title {
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.veh__variant {
  margin-top: 4px;
  font-size: 0.83rem;
  color: var(--text-3);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.veh__specs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 14px;
}
.spec { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-2); font-weight: 600; }
.spec svg { width: 15px; height: 15px; flex-shrink: 0; stroke: var(--text-3); fill: none; stroke-width: 1.9; }

.veh__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.veh__price { font-size: 1.42rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.veh__price sup { font-size: 0.5em; top: -0.7em; color: var(--text-3); }
.veh__rate { margin-top: 5px; font-size: 0.76rem; color: var(--text-3); font-weight: 600; }
.veh__rate b { color: var(--text-2); }

.veh__cta {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-3);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  flex-shrink: 0;
}
.veh:hover .veh__cta { background: var(--red); transform: translateX(2px); }
.veh__cta svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.2; }

.veh__link { position: absolute; inset: 0; z-index: 2; }

/* Sold-/Reserviert-Overlay (falls später gebraucht) */
.veh.is-sold .veh__media::after {
  content: "Verkauft";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 10, 0.66);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* ---------- Filterleiste (Fahrzeugliste) ---------- */
.filterbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.filterbar__inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filterbar .select,
.filterbar .input {
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: 10px;
  width: auto;
  flex: 1 1 148px;
  min-width: 0;
}
.filterbar .select { padding-right: 34px; }
.filterbar .input[type="search"] { flex: 1.9 1 210px; }
.filterbar .chip { flex: 0 0 auto; }
.filter-count { font-size: 0.86rem; color: var(--text-3); font-weight: 700; margin-left: auto; }
.filter-count b { color: var(--text); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.chip small { opacity: 0.65; font-weight: 700; margin-left: 4px; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

/* ---------- Fahrzeugdetail ---------- */
.detail { padding-top: calc(var(--header-h) + 26px); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-3); font-weight: 600; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { opacity: 0.45; }

.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
  margin-top: 22px;
}

.gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.gallery__stage { position: relative; aspect-ratio: 4 / 3; }
.gallery__stage img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.42s var(--ease);
  cursor: zoom-in;
}
.gallery__stage img.is-active { opacity: 1; }

.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.gal-nav:hover { background: rgba(8, 8, 10, 0.9); }
.gal-nav svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; }
.gal-nav--prev { left: 14px; }
.gal-nav--next { right: 14px; }

.gal-counter {
  position: absolute;
  bottom: 14px; right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 3;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.thumb {
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--surface-2);
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.85; }
.thumb.is-active { opacity: 1; border-color: var(--red); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 4, 6, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.lightbox .gal-nav { background: rgba(255, 255, 255, 0.08); }

/* Preisbox */
.pricebox { position: sticky; top: calc(var(--header-h) + 20px); }
.pricebox__price {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.pricebox__vat { margin-top: 8px; font-size: 0.8rem; color: var(--text-3); font-weight: 600; }
.pricebox__rate {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-2);
  font-weight: 600;
}
.pricebox__rate b { color: var(--text); font-size: 1rem; }

.keyfacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 20px;
}
.keyfact { background: var(--surface); padding: 14px 16px; }
.keyfact__lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); font-weight: 800; }
.keyfact__val { margin-top: 4px; font-weight: 700; font-size: 0.98rem; letter-spacing: -0.02em; }

.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.dl dt { color: var(--text-3); font-weight: 600; }
.dl dd { font-weight: 700; text-align: right; }

.feature-list { display: flex; flex-wrap: wrap; gap: 8px; }
.feature {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
}
.feature svg { width: 14px; height: 14px; stroke: var(--red); fill: none; stroke-width: 2.6; }

/* ---------- Service-Karten ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.svc {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow), transparent 68%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.svc:hover::after { opacity: 0.55; }
.svc__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(228, 51, 31, 0.12);
  border: 1px solid rgba(228, 51, 31, 0.28);
  margin-bottom: 18px;
}
.svc__icon svg { width: 21px; height: 21px; stroke: var(--red); fill: none; stroke-width: 1.9; }
.svc h3 { font-size: 1.08rem; }
.svc p { margin-top: 9px; font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* ---------- Prozess ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: st; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); counter-increment: st; }
.step::before {
  content: "0" counter(st);
  position: absolute;
  top: -13px; left: 0;
  background: var(--bg);
  padding-right: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red);
}
.section--alt .step::before { background: var(--bg-2); }
.step h3 { font-size: 1.02rem; }
.step p { margin-top: 8px; font-size: 0.88rem; color: var(--text-2); }

/* ---------- Split-Feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split__media { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split--rev .split__media { order: 2; }

.tick-list { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; }
.tick { display: flex; gap: 13px; align-items: flex-start; }
.tick__ico {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(228, 51, 31, 0.14);
  display: grid; place-items: center;
  margin-top: 2px;
}
.tick__ico svg { width: 12px; height: 12px; stroke: var(--red); fill: none; stroke-width: 3.2; }
.tick b { font-weight: 700; display: block; font-size: 0.96rem; }
.tick span { font-size: 0.88rem; color: var(--text-2); }

/* ---------- Bewertungen ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--amber); }
.stars svg.is-off { fill: var(--surface-3); }

.review { padding: 24px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.review p { font-size: 0.94rem; color: var(--text-2); line-height: 1.62; }
.review__meta { margin-top: auto; display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.85rem;
  color: var(--text-2);
  flex-shrink: 0;
}
.review__name { font-weight: 700; font-size: 0.9rem; }
.review__date { font-size: 0.76rem; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 22px 44px 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  list-style: none;
  position: relative;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 13px; height: 13px;
  margin-top: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4331f' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 44px 24px 0; color: var(--text-2); font-size: 0.94rem; line-height: 1.68; }

/* ---------- Rechner ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: 28px; align-items: start; }
.calc__out {
  background: linear-gradient(160deg, rgba(228, 51, 31, 0.12), var(--surface) 58%);
  border: 1px solid rgba(228, 51, 31, 0.24);
  border-radius: var(--r);
  padding: 28px 26px;
  text-align: center;
}
.calc__rate { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.calc__rate span { font-size: 0.36em; font-weight: 700; color: var(--text-2); letter-spacing: -0.02em; }
.calc__sub { margin-top: 10px; font-size: 0.85rem; color: var(--text-2); font-weight: 600; }
.calc__rows { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.calc__row { display: flex; justify-content: space-between; font-size: 0.86rem; }
.calc__row dt { color: var(--text-3); font-weight: 600; }
.calc__row dd { font-weight: 700; }

.val-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--surface-3);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

/* ---------- Standort / Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr); gap: clamp(26px, 4vw, 48px); align-items: start; }

.contact-list { display: flex; flex-direction: column; gap: 4px; }
.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item__ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.contact-item__ico svg { width: 17px; height: 17px; stroke: var(--red); fill: none; stroke-width: 1.9; }
.contact-item__lbl { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 800; color: var(--text-3); }
.contact-item__val { font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; margin-top: 2px; }
.contact-item__val a:hover { color: var(--red); }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.is-today td { color: var(--red); }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) invert(0.92) hue-rotate(180deg) contrast(0.92); }
.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  gap: 14px;
  background:
    linear-gradient(rgba(8, 8, 10, 0.82), rgba(8, 8, 10, 0.82)),
    repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface) 12px 24px);
}
.map-consent > div { max-width: 320px; }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(38px, 6vw, 68px);
  background: linear-gradient(120deg, #1a0f0d 0%, var(--surface) 55%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% auto auto -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--red-glow), transparent 66%);
  z-index: -1;
  pointer-events: none;
}
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 74px) 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px 26px;
  padding-bottom: 44px;
}
.footer__col h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-3);
  font-weight: 800;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 0.91rem; color: var(--text-2); font-weight: 600; transition: color 0.2s; }
.footer__col a:hover { color: var(--red); }
.footer__brand p { margin-top: 18px; font-size: 0.9rem; color: var(--text-2); max-width: 320px; line-height: 1.62; }
.footer__bar {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer__bar a:hover { color: var(--text); }

.social { display: flex; gap: 9px; margin-top: 20px; }
.social a {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.25s var(--ease);
}
.social a:hover { border-color: var(--red); background: rgba(228, 51, 31, 0.1); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; fill: var(--text-2); }
.social a:hover svg { fill: var(--red); }

/* ---------- Sticky Mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  display: none;
  gap: 9px;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; padding: 13px 12px; font-size: 0.9rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 130%);
  z-index: 210;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.pagehead {
  position: relative;
  padding: calc(var(--header-h) + 62px) 0 clamp(38px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: -60% 0 auto 30%;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(228, 51, 31, 0.16), transparent 62%);
  z-index: -1;
}
.pagehead .lead { margin-top: 16px; max-width: 640px; }

/* ---------- Prose (Recht) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 42px; margin-bottom: 12px; }
.prose h3 { font-size: 1.06rem; margin-top: 28px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 0.95rem; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 700; }

/* ---------- Reveal-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  padding: 10px 18px; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus { transform: none; }

.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 30px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mt-4 { margin-top: 46px; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .detail__grid { grid-template-columns: 1fr; }
  .pricebox { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .burger { display: grid; }
  .header__cta { margin-left: auto; }
  .header__cta .btn { display: none; }
  .header__cta .btn--call { display: inline-flex; }
  .quicksearch { grid-template-columns: 1fr 1fr; }
  .quicksearch .qs-submit { grid-column: 1 / -1; }
  .quicksearch .btn { width: 100%; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .cta-band__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(6, 1fr); }
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
  .filterbar { top: var(--header-h); }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }

  /* Header: Marke + Aktionen müssen in 375 px passen */
  .header__inner { padding-inline: 16px; gap: 10px; }
  .brand img { height: 28px; }
  .brand__name { font-size: 0.88rem; }
  .brand__sub { display: none; }
  .header__cta { gap: 8px; }
  .header__cta .btn--call { padding: 9px 15px; font-size: 0.85rem; }
  .burger { width: 40px; height: 40px; }

  /* Hero auf schmalen Displays: Das Bild bekommt ein eigenes 4:3-Band oben.
     Sonst würde „cover“ in den hohen, schmalen Hero hineinzoomen und nur einen
     dunklen Bildausschnitt zeigen. Der Text steht darunter im Verlauf. */
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 188px); padding-bottom: 36px; }
  .hero__media,
  .hero__scrim { bottom: auto; height: auto; aspect-ratio: 4 / 3; }
  .hero__media img { object-position: 50% 62%; }
  .hero__scrim {
    background: linear-gradient(
      to top,
      var(--bg) 1%,
      rgba(8, 8, 10, 0.62) 34%,
      rgba(8, 8, 10, 0.12) 66%,
      rgba(8, 8, 10, 0.6) 100%
    );
  }
  .quicksearch { grid-template-columns: 1fr; padding: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .veh-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .filterbar__inner > * { flex: 1 1 calc(50% - 6px); }
  .filter-count { flex-basis: 100%; margin-left: 0; }
  .veh__specs { grid-template-columns: 1fr 1fr; }
  .gal-nav { width: 38px; height: 38px; }
}
