/* ==========================================================================
   Autohaus Lindheimer – Stylesheet
   Farben, Abstände und Schrift stehen zentral oben als Variablen.
   ========================================================================== */

:root {
  /* Farben */
  --blau: #00264a;            /* Hauptfarbe: dunkles Blau (Kopf, Fuß, Flächen) */
  --blau-2: #003a6e;
  --akzent: #0070c0;          /* Buttons und Links */
  --akzent-hover: #005a9c;
  --akzent-hell: #e8f1fa;
  --weiss: #ffffff;
  --grau: #f3f5f8;            /* helle Abschnitte */
  --text: #14202e;
  --text-2: #546273;
  --linie: #dfe5ec;
  --rot: #c8102e;             /* nur für "Jetzt neu!" */

  /* Schrift (Systemschriften: schnell & datenschutzfreundlich) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Abstände & Formen */
  --gutter: 16px;
  --max: 1200px;
  --radius: 12px;
  --sektion: clamp(56px, 8vw, 104px);
  --schatten: 0 1px 2px rgba(0, 38, 74, .05), 0 10px 30px rgba(0, 38, 74, .08);
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--akzent); }
a:hover { color: var(--akzent-hover); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; color: inherit; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: .5em; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--schmal { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--weiss); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--klein { width: 15px; height: 15px; }
.icon--gross { width: 30px; height: 30px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin-bottom: 14px; }
.eyebrow--dunkel { color: var(--akzent); }

/* ---------- Buttons ---------- */
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--primaer { background: var(--akzent); color: var(--weiss); }
.btn--primaer:hover { background: var(--akzent-hover); color: var(--weiss); }
.btn--geist { background: var(--weiss); color: var(--blau); border-color: var(--linie); }
.btn--geist:hover { border-color: var(--akzent); color: var(--akzent); }
.btn--hell { background: var(--weiss); color: var(--blau); }
.btn--hell:hover { background: var(--akzent-hell); color: var(--blau); }
.btn--rahmen { background: transparent; color: var(--weiss); border-color: rgba(255, 255, 255, .7); }
.btn--rahmen:hover { background: rgba(255, 255, 255, .12); color: var(--weiss); border-color: var(--weiss); }
.btn--klein { min-height: 42px; padding: 8px 16px; font-size: 15px; }

.link-pfeil { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-top: 8px; }
.link-pfeil .icon { transition: transform .15s; }
.link-pfeil:hover .icon { transform: translateX(4px); }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--blau); color: var(--weiss); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.kopf__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.marke img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link { color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 8px; }
.nav__link:hover { color: var(--weiss); background: rgba(255, 255, 255, .08); }
.nav__link[aria-current="page"] { color: var(--weiss); box-shadow: inset 0 -2px 0 var(--weiss); border-radius: 0; }
.nav__cta { margin-left: 10px; }
.menu-btn { display: none; }

@media (max-width: 899px) {
  .marke img { width: 140px; }
  .menu-btn {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 10px;
    background: rgba(255, 255, 255, .08); cursor: pointer; color: var(--weiss);
  }
  .menu-btn__linien, .menu-btn__linien::before, .menu-btn__linien::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s;
  }
  .menu-btn__linien::before, .menu-btn__linien::after { content: ""; position: absolute; left: 0; }
  .menu-btn__linien::before { top: -7px; }
  .menu-btn__linien::after { top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-btn__linien { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__linien::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__linien::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--blau); flex-direction: column; align-items: stretch;
    padding: 16px var(--gutter) 32px; gap: 4px; display: none; overflow-y: auto;
  }
  .nav.ist-offen { display: flex; }
  .nav__link { font-size: 20px; padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--weiss); padding-left: 16px; }
  .nav__cta { margin: 20px 0 0; min-height: 52px; font-size: 17px; }
}

/* ---------- Kopfbereich mit Foto ---------- */
.held { position: relative; color: var(--weiss); background: var(--blau); overflow: hidden; isolation: isolate; }
.held__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.held::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 25, 50, .86) 0%, rgba(0, 25, 50, .6) 45%, rgba(0, 25, 50, .15) 100%);
}
.held__inhalt { padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(64px, 9vw, 110px); }
.held--gross .held__inhalt { padding-top: clamp(96px, 16vw, 200px); padding-bottom: clamp(88px, 14vw, 180px); }
.held h1 { font-size: clamp(36px, 5.6vw, 64px); max-width: 15ch; margin-bottom: 18px; }
.held__lead { font-size: clamp(18px, 2vw, 21px); max-width: 46ch; color: rgba(255, 255, 255, .92); }
@media (max-width: 639px) {
  .held::after { background: linear-gradient(180deg, rgba(0, 25, 50, .55) 0%, rgba(0, 25, 50, .85) 100%); }
  .held .btn { flex: 1 1 100%; }
}

/* ---------- Infoleiste unter dem Kopf ---------- */
.infoleiste { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.infoleiste__grid { display: grid; gap: 0; }
.info { display: flex; align-items: center; gap: 14px; padding: 20px 0; }
.info + .info { border-top: 1px solid var(--linie); }
.info .icon { width: 26px; height: 26px; color: var(--akzent); }
.info strong { display: block; }
.info strong a { color: var(--text); text-decoration: none; }
.info span { color: var(--text-2); font-size: 15px; }
@media (min-width: 800px) {
  .infoleiste__grid { grid-template-columns: repeat(3, 1fr); }
  .info { padding: 24px 0; }
  .info + .info { border-top: 0; border-left: 1px solid var(--linie); padding-left: 28px; }
}

/* ---------- Abschnitte ---------- */
.sektion { padding: var(--sektion) 0; }
.sektion--grau { background: var(--grau); }
.kopfzeile { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.kopfzeile p { color: var(--text-2); font-size: 18px; }
.kopfzeile--links { max-width: none; text-align: left; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.kopfzeile--links p { max-width: 60ch; margin: 0; }
.kopfzeile--links .aktionen { margin-top: 0; }

.split { display: grid; gap: 40px; align-items: start; }
.split--zentriert { align-items: center; }
.split__bild img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--schatten); }
.split__text p { color: var(--text-2); font-size: 18px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.adresse { color: var(--text) !important; }

/* ---------- Service-Marken ---------- */
.marken { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .marken { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.marke-karte {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%;
  padding: 24px 18px 20px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.marke-karte:hover { box-shadow: var(--schatten); transform: translateY(-3px); border-color: transparent; color: var(--text); }
.marke-karte img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; }
.marke-karte__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-align: center; margin-top: auto; }
.marke-karte__name .icon { color: var(--akzent); }
.badge {
  position: absolute; top: 12px; right: 12px; background: var(--rot); color: var(--weiss);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Bereiche (Neuwagen, Gebrauchtwagen, Zubehör) ---------- */
.bereiche { display: grid; gap: 20px; }
@media (min-width: 800px) { .bereiche { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.bereich {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--weiss); border: 1px solid var(--linie); text-decoration: none; color: var(--text);
  transition: box-shadow .2s, transform .2s;
}
.bereich:hover { box-shadow: var(--schatten); transform: translateY(-3px); color: var(--text); }
.bereich--ohne-link:hover { box-shadow: none; transform: none; }
.bereich--ohne-link:hover img { transform: none; }
.bereich img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.bereich:hover img { transform: scale(1.03); }
.bereich__text { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; flex: 1; }
.bereich__text strong { font-size: 21px; }
.bereich__text > span:not(.bereich__mehr) { color: var(--text-2); }
.bereich__mehr { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--akzent); font-weight: 600; }

/* ---------- Bildband ---------- */
.bildband img { width: 100%; height: clamp(220px, 38vw, 480px); object-fit: cover; }
.bildband--flach img { height: clamp(180px, 26vw, 360px); }

/* ---------- Öffnungszeiten ---------- */
.zeiten { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.zeiten__block { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; }
.sektion--grau .zeiten__block { border-color: transparent; }
.zeiten__block h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--blau); }
.zeiten dl, .fusszeiten dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.zeiten dt, .fusszeiten dt { font-weight: 600; white-space: nowrap; }
.zeiten dd, .fusszeiten dd { white-space: nowrap; }
.zeiten dd, .fusszeiten dd { margin: 0; color: var(--text-2); }

/* ---------- Kontaktband ---------- */
.band { background: var(--blau); color: var(--weiss); padding: clamp(48px, 7vw, 80px) 0; }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { margin-bottom: 8px; }
.band p { color: rgba(255, 255, 255, .85); font-size: 18px; }
.band .aktionen { margin-top: 0; }

/* ---------- Neuwagen ---------- */
.hinweis { display: flex; gap: 12px; align-items: flex-start; background: var(--akzent-hell); border-radius: var(--radius); padding: 16px 18px; font-size: 15px !important; color: var(--text) !important; }
.hinweis .icon { color: var(--akzent); margin-top: 3px; }
.konfigs { display: grid; gap: 14px; }
.konfig {
  display: flex; align-items: center; gap: 20px; padding: 14px 20px 14px 14px; border: 1px solid var(--linie);
  border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--weiss); transition: box-shadow .2s, border-color .2s;
}
.konfig:hover { box-shadow: var(--schatten); border-color: transparent; color: var(--text); }
.konfig img { width: 112px; height: auto; border-radius: 8px; }
.konfig > span { display: flex; flex-direction: column; gap: 2px; }
.konfig strong { font-size: 19px; }
.konfig > span > span { display: inline-flex; align-items: center; gap: 6px; color: var(--akzent); font-weight: 600; font-size: 15px; }

/* ---------- Gebrauchtwagen (AutoScout24) ---------- */
.fahrzeuge { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--grau); overflow: hidden; }
.fahrzeuge__hinweis { max-width: 560px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fahrzeuge__hinweis .icon { color: var(--akzent); width: 44px; height: 44px; }
.fahrzeuge__hinweis h2 { font-size: 26px; margin: 0; }
.fahrzeuge__hinweis p { color: var(--text-2); }
.merken { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.merken input { width: 18px; height: 18px; accent-color: var(--akzent); }
.fahrzeuge iframe { display: block; width: 100%; height: 1400px; border: 0; background: var(--weiss); }
.fahrzeuge.ist-geladen { background: var(--weiss); }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; gap: 16px; }
@media (min-width: 860px) { .kontakt { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.kontakt-karte {
  display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius);
  background: var(--blau); color: var(--weiss); text-decoration: none; transition: background .2s, transform .2s;
}
.kontakt-karte:hover { background: var(--blau-2); color: var(--weiss); transform: translateY(-3px); }
.kontakt-karte .icon { margin-bottom: 10px; color: #8cc4f0; }
.kontakt-karte__label { font-size: 14px; color: rgba(255, 255, 255, .75); }
.kontakt-karte strong { font-size: 20px; line-height: 1.3; }
.umbruch { overflow-wrap: anywhere; font-size: 17px !important; }
.kontakt__mehr { margin-top: clamp(48px, 7vw, 80px); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(5, 1fr); } }
.person img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); background: var(--grau); margin-bottom: 12px; }
.person h3 { font-size: 17px; }
.person p { color: var(--text-2); font-size: 15px; line-height: 1.4; margin-top: 2px; }

/* ---------- Rechtstexte ---------- */
.rechts__titel { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 32px; }
.rechts h2 { font-size: 24px; margin: 40px 0 12px; }
.rechts h3 { font-size: 18px; margin: 28px 0 8px; }
.rechts p { color: var(--text-2); overflow-wrap: anywhere; }
.rechts p strong { color: var(--text); }
.rechts .punkt { position: relative; padding-left: 22px; margin-bottom: .4em; }
.rechts .punkt::before { content: ""; position: absolute; left: 6px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); }
.rechts__lead { font-size: 18px; color: var(--text) !important; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--blau); color: rgba(255, 255, 255, .82); font-size: 15px; padding-top: clamp(48px, 7vw, 72px); }
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: var(--weiss); }
.fuss__grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 860px) { .fuss__grid { grid-template-columns: 1.3fr 1.2fr .8fr; gap: 48px; } }
.fuss__marke img { width: 180px; height: auto; margin-bottom: 20px; }
.fuss__marke strong { color: var(--weiss); }
.fuss__titel { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--weiss); margin-bottom: 16px; }
.fusszeiten { display: grid; gap: 18px; }
.fusszeiten__block h3 { font-size: 15px; color: var(--weiss); margin-bottom: 6px; }
.fusszeiten dd { color: rgba(255, 255, 255, .75); }
.fuss__links { list-style: none; display: grid; gap: 8px; }
.fuss__unten {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .65);
}
.fuss__unten a { color: rgba(255, 255, 255, .85); }
.fuss__recht { display: flex; gap: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
