/* Auto Flucher – statische Website */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f2;
  --surface: #ffffff;
  --ink: #141414;
  --ink-soft: #55554f;
  --line: #e2e1dc;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --dark: #121212;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: block; flex: none; }

.logo img {
  width: auto;
  height: 46px;
}

@media (max-width: 760px) { .logo img { height: 38px; } }

/* Originallogo ist schwarz auf weiß – im dunklen Footer auf heller Fläche */
.logo--footer {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
}

.logo--footer img { height: 40px; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  transition: color .15s, background .15s;
}

.nav a:hover { color: var(--ink); background: var(--bg-alt); }

.nav .nav__cta {
  background: var(--accent);
  color: var(--accent-ink);
  margin-left: 8px;
}

.nav .nav__cta:hover { background: #a50d26; color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav .nav__cta { margin: 8px 0 0; text-align: center; }

  .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;
  background: var(--dark);
  color: #fff;
  padding: 96px 0 104px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(200,16,46,.35), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ff8a9b;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 22px;
  max-width: 16ch;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 54ch;
  margin: 0 0 34px;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}

.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #a50d26; }

.btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--ghost:hover { border-color: #fff; }

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

/* Sections */

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 680px; margin-bottom: 40px; }

.section__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.section__head p { color: var(--ink-soft); margin: 0; }

/* Leistungen */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fbe8eb;
  color: var(--accent);
  margin-bottom: 18px;
}

.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.1rem; margin: 0 0 6px; }
.service p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Gebrauchtwagen */

.cars {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Höhe des fremden Inhalts ist cross-origin nicht messbar: Rahmen in
   Bildschirmhöhe, die Fahrzeugliste scrollt darin. */
.cars iframe {
  display: block;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  max-height: 1100px;
  border: 0;
}

.cars__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* Kontakt & Anfahrt */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: stretch;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }

.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.contact-list small {
  display: block;
  font-size: .8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Karte mit Zwei-Klick-Lösung */

.map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(20,20,20,.86), rgba(20,20,20,.72)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.06) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.06) 38px 39px),
    #2a2a2a;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: #fff;
}

.map__consent h3 { margin: 0 0 8px; font-size: 1.25rem; }

.map__consent p {
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: .92rem;
  color: rgba(255,255,255,.75);
}

.map__consent a { color: #fff; }

/* Footer */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
  font-size: .95rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer .logo { margin-bottom: 14px; }
.footer address { font-style: normal; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

.footer__links { display: flex; gap: 20px; align-items: flex-end; }

.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* Rechtstexte (Impressum) */

.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.02em;
  margin: 0 0 32px;
}

.legal h2 { font-size: 1.3rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }

.legal dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 24px;
  margin: 0;
}

.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--ink-soft); }

@media (max-width: 600px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover { color: var(--accent); }

.todo {
  background: #fff5d6;
  border-radius: 4px;
  padding: 0 4px;
}
