/* ============================================================
   Konzer-Auto-Teile GmbH — Dark theme
   Brand: rot #e0322d, blau #1f6fd6
   ============================================================ */

:root {
  /* Brand */
  --red: #e0322d;
  --red-600: #c8241f;
  --blue: #2b7ee6;
  --blue-600: #1f6fd6;
  --blue-glow: rgba(43, 126, 230, 0.35);
  --red-glow: rgba(224, 50, 45, 0.32);

  /* Dark surfaces */
  --bg: #0b0e14;
  --bg-2: #0f1420;
  --surface: #141a27;
  --surface-2: #1a2233;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eef2f8;
  --text-muted: #9aa6bd;
  --text-dim: #6b7688;

  /* Type */
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --text-hero: clamp(3rem, 1.2rem + 8vw, 7.5rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.4rem);

  /* Rhythm */
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1200px;

  --dur: 300ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 0.5rem + 2.5vw, 2.5rem);
}

.accent-text { color: var(--red); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-accent {
  background: linear-gradient(135deg, var(--red), var(--red-600));
  color: #fff;
  box-shadow: 0 10px 30px -12px var(--red-glow);
}
.btn-accent:hover { box-shadow: 0 18px 40px -12px var(--red-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: #fff;
}
.btn-outline:hover { background: var(--blue); }

.btn-light { background: #fff; color: #0b0e14; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

.btn-ico { font-size: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 14, 20, 0.92);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 82px;
}

.main-nav { margin-right: auto; }
.main-nav ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  position: relative;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { padding: 0.6rem 1.15rem; font-size: 0.98rem; }

/* Firmenname im Header (ersetzt den früheren Telefon-Button) */
.header-brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.header-brand-text:hover { color: var(--red); }
.header-brand-text:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.header-brand-text .brand-short { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
  padding-bottom: clamp(4rem, 3rem + 8vw, 9rem);
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 82% 15%, var(--blue-glow), transparent 60%),
    radial-gradient(55% 55% at 12% 85%, var(--red-glow), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 72%);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 1000px; }

.hero-headline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(1.2rem, 0.5rem + 2vw, 2.4rem);
  margin-bottom: 1.4rem;
}
/* Logo so hoch wie die zweizeilige Überschrift (≈ 2,04 × Hero-Schriftgröße,
   line-height 1.02); Breite folgt dem Seitenverhältnis. */
.hero-logo {
  height: clamp(6.1rem, 2.45rem + 16.3vw, 15.3rem);
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.55));
}
.hero-headline h1 { margin: 0; }

/* Logo rollt als Rad beim Laden von links herein; danach erscheint der Schriftzug.
   Nur bei aktivierter Bewegung – sonst steht alles sofort am Platz. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes wheel-roll-in {
    0%   { transform: translateX(-115vw) rotate(-1080deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
    68%  { transform: translateX(0) rotate(0); animation-timing-function: ease-in-out; }
    80%  { transform: translateX(14px) rotate(9deg); animation-timing-function: ease-in-out; }   /* leicht über das Ziel gerollt */
    90%  { transform: translateX(-6px) rotate(-4deg); animation-timing-function: ease-in-out; }  /* zurückwippen */
    96%  { transform: translateX(2px) rotate(1.5deg); animation-timing-function: ease-in-out; }  /* kleiner Nachschlag */
    100% { transform: translateX(0) rotate(0); }                                                 /* eingependelt */
  }
  @keyframes hero-headline-in {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .hero-logo {
    animation: wheel-roll-in 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-headline h1 {
    animation: hero-headline-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
  }
}

/* Auf schmalen Screens rutscht das Logo über die Überschrift */
@media (max-width: 720px) {
  .hero-headline { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .hero-logo { height: auto; width: clamp(150px, 45vw, 220px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.98rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin: 0 0 1.6rem;
}
.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,50,45,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(224,50,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,50,45,0); }
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  margin-bottom: 1.4rem;
  text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 2.2rem;
}
.lead strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  list-style: none;
  margin: 3rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong {
  font-family: var(--font-head);
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}
.hero-badges span { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem); text-align: center; }
.kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--blue);
  margin: 0 0 0.7rem;
}
.section-head h2, .split-copy h2 { font-size: var(--text-h2); font-weight: 700; }
.section-head h2 { margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--red), var(--blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,0.9);
}
.service-card:hover::before { transform: scaleY(1); }
.service-ico {
  font-size: 1.9rem;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.55rem; }
.service-card p { color: var(--text-muted); margin: 0; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.split-reverse .split-media { order: 2; }

/* Einzelspaltiger, gut lesbarer Textblock (z. B. Autoteile ohne Bild) */
.narrow-block { max-width: 680px; margin-inline: auto; }

.split-media { position: relative; }

/* Verkleinertes Hochformat-Foto, Badge bleibt am Bild ausgerichtet */
.split-media-frame { position: relative; }
/* Seitenverhältnis liegt auf dem Rahmen (div), damit das height-Attribut des
   Bildes die aspect-ratio nicht aushebelt. Das Bild füllt den Rahmen. */
.split-media--portrait .split-media-frame {
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}
/* Kompakter Panorama-Ausschnitt: volle Hausbreite sichtbar, Himmel (oben)
   und Asphalt (unten) werden beschnitten. */
.split-media--portrait .split-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}
.split-media-badge {
  position: absolute;
  left: 1.4rem; bottom: 1.4rem;
  background: rgba(11,14,20,0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
}
.split-media-badge span { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.split-media-badge small { color: var(--text-muted); font-size: 0.82rem; }

/* Breites Showcase-Bild (z. B. Werkstattboxen unter den Leistungen) */
.section-showcase { margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto 0; position: relative; max-width: 820px; }
.section-showcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}
.section-showcase figcaption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.split-copy h2 { margin-bottom: 1.2rem; }
.split-copy > p { color: var(--text-muted); margin: 0 0 1.4rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.8rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 1.4rem; height: 1.4rem;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 6px;
}

.stat-row { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 1.8rem; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--red); line-height: 1; }
.stat span { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Quote card ---------- */
.quote-card {
  position: relative;
  background: linear-gradient(150deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  overflow: hidden;
}
.quote-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--blue-glow), transparent 70%);
}
.quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--red);
  line-height: 0.6;
  margin: 0;
}
.quote-card blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0.5rem 0 1.5rem;
  text-transform: uppercase;
}
.quote-by { color: var(--text-muted); margin: 0; }

/* ---------- Info grid ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.info-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
}
.info-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 1.1rem;
}
.hours, .contact-list { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.hours li span:first-child { color: var(--text); font-weight: 600; }
.hours li:last-child { border-bottom: none; }
.hours .closed span:last-child { color: var(--red); }

/* Hinweis HU/TÜV */
.hu-note {
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.hu-note strong { color: var(--text); }
.hu-note-badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: baseline;
}

.contact-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-of-type { border-bottom: none; }

.contact-list a[href^="tel"] { display: inline-block; }
.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #25d366 !important;
  transition: color var(--dur) var(--ease);
}
.whatsapp-link:hover { color: #4ade80 !important; }
.wa-ico { font-size: 1.05em; }
.contact-label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.contact-list address { font-style: normal; color: var(--text); }
.contact-list a { color: var(--text); transition: color var(--dur) var(--ease); }
.contact-list a:hover { color: var(--blue); }
.info-card .btn { margin-top: auto; align-self: flex-start; margin-top: 1.5rem; }

.map-card .map-embed {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }
.map-link { color: var(--blue); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; margin-top: auto; }
.map-link:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background: linear-gradient(120deg, var(--red-600), var(--red) 40%, var(--blue-600));
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 100% 0, rgba(0,0,0,0.35), transparent 55%);
}
.cta-inner { position: relative; text-align: center; }
.cta-band h2 { font-size: var(--text-h2); font-weight: 700; color: #fff; margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin: 0 0 2rem; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #070a10; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); max-width: 32ch; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a {
  color: var(--text-muted);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover { color: var(--red); }
.footer-contact p { color: var(--text-muted); margin: 0 0 0.5rem; }
.footer-contact a { transition: color var(--dur) var(--ease); }
.footer-contact a:hover { color: var(--blue); }

.footer-bottom { border-top: 1px solid var(--border); padding-block: 1.4rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }
.footer-bottom p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.footer-legal a { transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: var(--text); }

/* ---------- Contact form ---------- */
.contact-list--plain { margin-top: 1.6rem; }
.contact-list--plain li { border-bottom: 1px solid var(--border); }

.form-wrap {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,0.9);
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.field label span { color: var(--red); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field.invalid input,
.field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }

.field-error {
  color: var(--red);
  font-size: 0.85rem;
  min-height: 0;
  display: none;
}
.field-error.show { display: block; }

/* ---------- Fahrzeugdaten-Gruppe ---------- */
.field-group {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.field-group legend {
  padding: 0 0.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--text);
}
.field-group-hint {
  color: var(--text-muted);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
}

/* Info-Symbol mit Tooltip */
.info-tip {
  position: relative;
  display: inline-flex;
  margin-left: 0.35rem;
  vertical-align: middle;
  cursor: help;
}
.contact-form .info-tip-ico {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: none;
}
.contact-form .info-tip-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 250px;
  padding: 0.7rem 0.85rem;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 5;
}
.contact-form .info-tip-bubble strong { color: var(--text); }
.info-tip:hover .info-tip-bubble,
.info-tip:focus .info-tip-bubble,
.info-tip:focus-within .info-tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.info-tip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 50%; }

/* Aufklappbare Erklärung "Wo finde ich diese Daten?" */
.vehicle-help {
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 0.2rem 0.9rem;
  background: rgba(255,255,255,0.02);
}
.vehicle-help summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.vehicle-help summary::-webkit-details-marker { display: none; }
.vehicle-help summary:hover { color: var(--text); }
.vehicle-help[open] summary { color: var(--text); }
.contact-form .vehicle-help .info-tip-ico { background: var(--text-muted); }
.vehicle-help-body { padding: 0.2rem 0 0.8rem; }
.vehicle-help-body p { color: var(--text-muted); margin: 0 0 0.6rem; }
.vehicle-help-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.vehicle-help-body strong { color: var(--text); }
.vehicle-help-body img {
  width: 100%;
  height: auto;            /* Seitenverhältnis wahren, nicht vertikal strecken */
  max-width: 640px;
  margin: 0.2rem auto 0;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}
.vehicle-help-zoomhint {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
[data-zoomable] { cursor: zoom-in; transition: opacity var(--dur) var(--ease); }
[data-zoomable]:hover { opacity: 0.9; }
[data-zoomable]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Bild-Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 2.5rem);
  background: rgba(6, 9, 14, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
  transform: scale(0.97);
  transition: transform var(--dur) var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-img { transition: none; }
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
}
.field-check input {
  margin-top: 0.15rem;
  width: 18px; height: 18px;
  accent-color: var(--red);
  flex-shrink: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-submit { align-self: flex-start; margin-top: 0.4rem; }

.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--red); }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; justify-content: center; }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  /* Header-Firmenname auf dem Handy als Kurzform "K.A.T." zeigen */
  .header-brand-text .brand-full { display: none; }
  .header-brand-text .brand-short { display: inline; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 82px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .main-nav.open ul { flex-direction: column; padding-inline: clamp(1.1rem, 0.5rem + 2.5vw, 2.5rem); gap: 0.2rem; }
  .main-nav.open a { display: block; padding: 0.8rem 0.9rem; font-size: 1.2rem; }
  .main-nav.open a::after { display: none; }

  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media--portrait .split-media-frame { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-badges { gap: 1.4rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  .info-card .btn, .map-link { width: auto; }
}

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