/* ============================================================
   Garage Fomasi – Stylesheet
   ============================================================ */

:root {
  --bg: #0b0d10;
  --bg-soft: #12151a;
  --bg-card: #171b21;
  --bg-card-hover: #1d222a;
  --line: #262c35;
  --text: #f2f4f7;
  --text-soft: #aab3bf;
  --text-dim: #78828f;
  --accent: #f2a71b;
  --accent-soft: rgba(242, 167, 27, 0.12);
  --accent-strong: #ffbe3d;
  --green: #3ecf8e;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Scroll progress bar ---------- */
#progressbar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  z-index: 1200;
  transition: width 0.08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(11, 13, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, height 0.35s ease;
}
.site-header.scrolled {
  height: 60px;
  background: rgba(11, 13, 16, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 1.06rem;
  white-space: nowrap;
}
.brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: transform 0.5s ease;
}
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand span em { font-style: normal; color: var(--accent); }

.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color 0.25s, background 0.25s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.nav-cta {
  background: var(--accent) !important;
  color: #14161a !important;
  font-weight: 600;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent-strong) !important; }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 1101;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -6%;
  background: url("../assets/img/galerie/maserati-ghibli-1.jpg") center 62% / cover no-repeat;
  z-index: -2;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-1.5%); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(8, 10, 13, 0.94) 0%, rgba(8, 10, 13, 0.72) 42%, rgba(8, 10, 13, 0.25) 75%, rgba(8, 10, 13, 0.55) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%);
}

.hero-content {
  padding: 140px 0 120px;
  max-width: 680px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(242, 167, 27, 0.45);
  background: rgba(242, 167, 27, 0.08);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.hero-kicker .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.55); }
  55% { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); }
}

.hero h1 {
  margin: 26px 0 20px;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--accent) 10%, var(--accent-strong) 50%, #fff3d6 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}
.hero p.lead {
  font-size: 1.14rem;
  color: var(--text-soft);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}
.scroll-hint::before {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #14161a;
  box-shadow: 0 10px 30px rgba(242, 167, 27, 0.28);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(242, 167, 27, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #1fae54;
  color: #fff;
}
.btn-whatsapp:hover { background: #25c862; transform: translateY(-2px); }
.btn svg { flex: 0 0 auto; }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head .kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin: 10px 0 14px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.section-head p { color: var(--text-soft); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Trust bar / stats ---------- */
.trustbar {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: 34px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item .big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.trust-item .small {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 2px;
}

/* ---------- Fahrzeuge ---------- */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.car-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.car-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(242, 167, 27, 0.4);
}
/* Der Link umschliesst den Karteninhalt und muss die Flex-Kette fortsetzen,
   sonst greift margin-top:auto in .car-price-row nicht und die
   "Details ansehen"-Zeile sitzt je nach Titellaenge unterschiedlich hoch. */
.car-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.car-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.car-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.car-card:hover .car-media img { transform: scale(1.07); }
.car-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.badge.gold { background: var(--accent); color: #14161a; border-color: transparent; }
.badge.green { background: rgba(23, 82, 55, 0.9); color: #7dedb6; border-color: rgba(62,207,142,0.35); }

.car-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.car-body h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
  /* Platz fuer zwei Zeilen reservieren, damit die Datenchips in allen
     Karten auf derselben Hoehe beginnen. */
  min-height: 2.7em;
}
.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.spec-chip {
  font-size: 0.78rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.car-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.car-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.4px;
}
.car-oldprice {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 0.95rem;
}
.car-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}
.car-link .arr { transition: transform 0.25s ease; color: var(--accent); }
.car-card:hover .car-link .arr { transform: translateX(6px); }

.cars-note {
  margin-top: 34px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.cars-note a { color: var(--accent); }
.cars-note a:hover { text-decoration: underline; }

/* ---------- Leistungen ---------- */
.services { background: var(--bg-soft); border-block: 1px solid var(--line); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 167, 27, 0.45);
  background: var(--bg-card-hover);
}
.service-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-4deg); }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------- Quality1 ---------- */
.quality {
  overflow: hidden;
}
.quality-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
/* Offizielles Quality1-Logo.
   Vertikales Logo: Bildmarke oben, Wortmarke im unteren Drittel.
   Unter ~44px Höhe wird die Wortmarke unlesbar – nie kleiner einsetzen. */
.q1-badge {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.q1-badge img {
  height: 52px;
  width: auto;
  flex: 0 0 auto;
}
/* Das Logo ist ein transparentes SVG: Schatten oder Rundung von umgebenden
   Bild-Regeln wuerden als Schleier ueber der Wortmarke liegen. */
.q1-badge img,
.quality-seal img {
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.q1-badge span {
  color: #3d3d3d;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  border-left: 1px solid #dcdcdc;
  padding-left: 20px;
}
.q1-badge span {
  color: #4a4a4a;
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 600;
  border-left: 1px solid #d9d9d9;
  padding-left: 14px;
}
.quality-list { display: grid; gap: 16px; margin-top: 26px; }
.quality-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.quality-item:hover { transform: translateX(8px); border-color: rgba(242, 167, 27, 0.4); }
.quality-item .check {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(62, 207, 142, 0.14);
  color: var(--green);
  margin-top: 2px;
}
.quality-item h4 { font-size: 1rem; }
.quality-item p { color: var(--text-soft); font-size: 0.92rem; }
.quality-visual { position: relative; }
/* Nur das direkte Kind (Fahrzeugfoto). Ein allgemeines "img" wuerde auch das
   Quality1-Logo im Siegel treffen und ihm Schatten + Rundung verpassen. */
.quality-visual > img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Horizontal bewusst innerhalb des Bildes: ein Ueberhang nach rechts wird
   auf schmalen Viewports von body{overflow-x:hidden} abgeschnitten. */
.quality-seal {
  position: absolute;
  right: 18px; bottom: -28px;
  background: #fff;
  color: #14161a;
  border-radius: 18px;
  padding: 24px 30px 20px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.quality-seal img {
  height: 58px;
  width: auto;
  margin: 0 auto 14px;
  display: block;
}
.quality-seal small {
  color: #4a4a4a;
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-top: 1px solid #e6e6e6;
  padding-top: 12px;
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-track span i { color: var(--accent); font-style: normal; margin-right: 64px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Über uns ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual .main-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-visual .small-img {
  position: absolute;
  width: 46%;
  right: -6%;
  bottom: -12%;
  border-radius: var(--radius);
  border: 5px solid var(--bg);
  box-shadow: var(--shadow);
}
.about-points { display: grid; gap: 12px; margin-top: 24px; }
.about-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
}
.about-points .tick { color: var(--accent); font-weight: 800; }

/* ---------- Google-Rezensionen ---------- */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 30px;
  margin: 0 auto 40px;
  width: fit-content;
  max-width: 100%;
}
.reviews-score {
  display: flex;
  align-items: center;
  gap: 14px;
}
.reviews-score .num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}
.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--accent);
}
.stars svg { display: block; }
.reviews-score .meta {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 4px;
}
.reviews-source {
  color: var(--text-dim);
  font-size: 0.86rem;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.reviews-source strong { color: var(--text); font-weight: 600; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.review-card:hover {
  transform: translateY(-7px);
  border-color: rgba(242, 167, 27, 0.4);
  box-shadow: var(--shadow);
}
.review-card blockquote {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.review-card blockquote::before { content: "\201C"; }
.review-card blockquote::after { content: "\201D"; }
.review-author {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.review-avatar {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}
.review-author .who { line-height: 1.35; }
.review-author .who b { display: block; font-size: 0.95rem; font-weight: 600; }
.review-author .who small { color: var(--text-dim); font-size: 0.8rem; }
.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

@media (max-width: 620px) {
  .reviews-summary { flex-direction: column; text-align: center; gap: 16px; padding: 22px; }
  .reviews-source { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}

/* ---------- Standorte ---------- */
.locations { background: var(--bg-soft); border-block: 1px solid var(--line); }
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.loc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.loc-card:hover { transform: translateY(-6px); border-color: rgba(242, 167, 27, 0.4); }
.loc-head {
  padding: 26px 28px 20px;
}
.loc-head .loc-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.loc-head h3 { font-size: 1.3rem; }
.loc-head p { color: var(--text-soft); margin-top: 6px; }
.loc-meta {
  padding: 0 28px 24px;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.loc-meta .row { display: flex; gap: 12px; align-items: flex-start; }
.loc-meta svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.map-consent {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: linear-gradient(150deg, #1a1f27, #10141a);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--line);
}
.map-consent p {
  color: var(--text-dim);
  font-size: 0.83rem;
  max-width: 400px;
  margin-bottom: 14px;
}
.map-consent iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Ansprechpartner (kompakt, ueber den Kontaktwegen) ---------- */
.contact-person {
  display: flex;
  align-items: center;
  gap: 18px;
  background:
    linear-gradient(100deg, rgba(242, 167, 27, 0.10) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid rgba(242, 167, 27, 0.28);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 22px;
}
.cp-avatar {
  position: relative;
  width: 62px; height: 62px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(242, 167, 27, 0.24), rgba(242, 167, 27, 0.06));
  border: 2px solid rgba(242, 167, 27, 0.5);
  overflow: hidden;
}
.cp-avatar .initials {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-strong);
}
/* Sobald ein Portraitfoto vorliegt, ersetzt ein <img> die Initialen. */
.cp-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.cp-role {
  display: block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 3px;
}
/* Ohne min-width:0 darf das Flex-Kind nicht unter seine Inhaltsbreite
   schrumpfen und der Text laeuft auf schmalen Viewports aus der Karte. */
.cp-body { min-width: 0; }
.cp-body b {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}
.cp-title {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 2px;
}

@media (max-width: 520px) {
  .contact-person { padding: 16px 18px; gap: 14px; }
  .cp-avatar { width: 54px; height: 54px; }
  .cp-avatar .initials { font-size: 1.1rem; }
}

/* ---------- Öffnungszeiten & Kontakt ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.hours-table td {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.hours-table td:last-child { text-align: right; color: var(--text); font-weight: 600; }
.hours-table tr.today td { color: var(--accent-strong); }
.hours-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(242, 167, 27, 0.3);
  color: var(--accent-strong);
  font-size: 0.9rem;
}
.contact-cards { display: grid; gap: 16px; margin-top: 20px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(242, 167, 27, 0.45); }
.contact-card .ico {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-card .ico.wa { background: rgba(31, 174, 84, 0.15); color: #35d374; }
.contact-card b { display: block; font-size: 1.02rem; }
.contact-card small { color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08090c;
  padding: 56px 0 28px;
  color: var(--text-soft);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--text); margin-bottom: 14px; font-size: 1rem; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-brand img { width: 42px; height: 42px; border-radius: 50%; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Detailseite Fahrzeug ---------- */
.detail-hero {
  padding: calc(var(--header-h) + 40px) 0 30px;
}
.breadcrumbs {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.breadcrumbs a:hover { color: var(--accent); }
.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.detail-title-row h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  letter-spacing: -0.4px;
  line-height: 1.2;
  max-width: 760px;
}
.detail-price .now {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.detail-price .was {
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 10px;
}

.gallery {
  display: grid;
  gap: 12px;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9.5;
  background: var(--bg-card);
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.gallery-main .gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 12, 15, 0.65);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}
.gallery-main .gal-nav:hover { background: var(--accent); color: #14161a; transform: translateY(-50%) scale(1.08); }
.gal-prev { left: 14px; }
.gal-next { right: 14px; }
.gal-count {
  position: absolute;
  bottom: 12px; right: 14px;
  background: rgba(10, 12, 15, 0.7);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  backdrop-filter: blur(6px);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: none;
  aspect-ratio: 4 / 3;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.gallery-thumbs button:hover { opacity: 0.85; transform: translateY(-2px); }
.gallery-thumbs button.active { opacity: 1; border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 44px;
}
.detail-main > * + * { margin-top: 40px; }
.detail-main h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.highlight-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.highlight-list li {
  display: flex;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.96rem;
}
.highlight-list .tick { color: var(--green); font-weight: 800; }
.detail-desc { color: var(--text-soft); white-space: pre-line; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table td {
  padding: 11px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table td:first-child { color: var(--text-dim); width: 46%; }
.spec-table td:last-child { color: var(--text); font-weight: 500; }

.detail-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 20px;
}
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.side-card h3 { margin-bottom: 14px; font-size: 1.1rem; }
.side-card .btn { width: 100%; margin-top: 10px; }
.side-card .assurances { display: grid; gap: 9px; margin-top: 16px; }
.side-card .assurances li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.side-card .assurances .tick { color: var(--green); font-weight: 800; }
.energy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.energy-label .cat {
  background: #e2001a;
  color: #fff;
  font-weight: 800;
  padding: 2px 12px;
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.94);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.lightbox .lb-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.lightbox .lb-close:hover { opacity: 1; }

/* ---------- Rechtsseiten ---------- */
.legal-page {
  padding: calc(var(--header-h) + 50px) 0 90px;
  max-width: 800px;
}
.legal-page h1 { font-size: 2.2rem; margin-bottom: 8px; letter-spacing: -0.4px; }
.legal-page .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal-page h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal-page p, .legal-page li { color: var(--text-soft); margin-bottom: 10px; }
.legal-page ul { list-style: disc; padding-left: 22px; }
.legal-page a { color: var(--accent); }
.legal-page a:hover { text-decoration: underline; }
.legal-page .card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 18px 0;
}

/* ---------- Back to top ---------- */
#totop {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 900;
}
#totop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#totop:hover { background: var(--accent); color: #14161a; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.in, .reveal-right.in { transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .quality-wrap, .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .about-visual .small-img { bottom: -8%; }
}
/* 880px: knapp oberhalb der Breite, bei der die sechs Navigationspunkte
   neben dem Logo gedraengt werden (~877px). */
@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(9, 11, 14, 0.98);
    backdrop-filter: blur(16px);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; text-align: center; gap: 10px; }
  .main-nav a { font-size: 1.25rem; padding: 12px 26px; }
  .burger { display: block; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .highlight-list { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .trust-item .big { font-size: 1.5rem; }
  .quality-seal {
    right: 12px;
    bottom: -22px;
    padding: 18px 22px 14px;
  }
  .quality-seal img { height: 48px; margin-bottom: 10px; }
  .q1-badge { gap: 14px; padding: 14px 18px; }
  .q1-badge img { height: 46px; }
  .q1-badge span { padding-left: 14px; font-size: 0.78rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-actions, .scroll-hint, #totop, #progressbar, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
