/* ============================================================
   Auto-Lüdtke – zentrales Stylesheet für alle Seiten
   Farben und Grundstil hier ändern, gilt dann überall.
   ============================================================ */

:root {
  --gruen: #172815;
  --gelb: #ffd600;
  --schwarz: #1d1d1f;
  --grau-hell: #f5f5f7;
  --grau-text: #6e6e73;
  --weiss: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--schwarz);
  background: var(--weiss);
  line-height: 1.5;
}

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

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

section {
  background: var(--grau-hell);
  margin-bottom: 12px;
}

/* ---------- Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--schwarz);
  font-size: 15px;
}

.nav-links a:hover { color: var(--grau-text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--schwarz);
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 60px 20px 0; }

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--gruen);
}

.hero p { font-size: 20px; color: var(--grau-text); margin-bottom: 24px; }

.hero img { max-width: 700px; width: 100%; margin: 36px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 17px;
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-gruen { background: var(--gruen); color: var(--weiss); }
.btn-gruen:hover { background: #24401f; }

.btn-gelb { background: var(--gelb); color: var(--schwarz); font-weight: 500; }
.btn-gelb:hover { background: #ffe033; }

.btn-schwarz { background: var(--schwarz); color: var(--weiss); font-weight: 500; }
.btn-schwarz:hover { background: #333336; }

.btn-grau { background: var(--grau-text); color: var(--weiss); font-weight: 500; }
.btn-grau:hover { background: #7d7d82; }

/* ---------- Teaser (Startseite) ---------- */
.teaser { padding: 0 20px; }

.teaser-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.teaser-box {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  padding: 60px 0;
}

.teaser-box img { margin: 24px auto 0; border-radius: 16px; }

.teaser-divider { width: 12px; align-self: stretch; background: var(--weiss); }

.teaser-box h2 { font-size: 28px; font-weight: 600; margin-bottom: 4px; }

.teaser-box .sub { font-size: 15px; color: var(--grau-text); margin-bottom: 16px; }

/* ---------- Unterseiten allgemein ---------- */
.seite { padding: 60px 20px; }

.seite .container.schmal { max-width: 800px; }

.seitentitel { text-align: center; margin-bottom: 12px; }

.seitentitel h1 { font-size: 34px; color: var(--gruen); margin-bottom: 8px; }

.seitentitel p { font-size: 18px; color: var(--grau-text); }

.intro-bild {
  max-width: 700px;
  width: 100%;
  margin: 28px auto 0;
  border-radius: 16px;
}

/* ---------- Textseiten (Impressum, Datenschutz, Service) ---------- */
.textseite h2 { font-size: 24px; color: var(--gruen); margin: 32px 0 10px; }

.textseite h3 { font-size: 18px; margin: 22px 0 8px; }

.textseite p, .textseite li { font-size: 16px; margin-bottom: 12px; }

.textseite ul { padding-left: 22px; margin-bottom: 12px; }

.textseite table { border-collapse: collapse; margin: 10px 0 16px; }

.textseite td {
  border: 1px solid #ddd;
  padding: 8px 14px;
  font-size: 16px;
}

/* ---------- Fahrzeug-Filter ---------- */
.filter-leiste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 32px;
}

.filter-btn {
  font-size: 15px;
  padding: 9px 20px;
  border-radius: 980px;
  border: 1px solid #d2d2d7;
  background: var(--weiss);
  color: var(--schwarz);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover { border-color: var(--gruen); }

.filter-btn.aktiv {
  background: var(--gruen);
  color: var(--weiss);
  border-color: var(--gruen);
}

/* ---------- Fahrzeug-Karten ---------- */
.fahrzeug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.fahrzeug-karte {
  background: var(--weiss);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  position: relative;
}

.fahrzeug-bild {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--grau-hell);
  cursor: pointer;
}

.fahrzeug-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fahrzeug-bild .bild-anzahl {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--weiss);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 980px;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--gelb);
  color: var(--schwarz);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 980px;
  z-index: 2;
}

.badge.verkauft { background: #c0392b; color: var(--weiss); }

.fahrzeug-info { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }

.fahrzeug-info h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3; }

.fahrzeug-daten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

.fahrzeug-daten dt { color: var(--grau-text); }

.fahrzeug-daten dd { margin: 0; }

.fahrzeug-hinweis { font-size: 14px; color: var(--grau-text); margin-bottom: 12px; }

.fahrzeug-preis { margin-top: auto; }

.fahrzeug-preis .alt {
  font-size: 15px;
  color: var(--grau-text);
  text-decoration: line-through;
  margin-right: 10px;
}

.fahrzeug-preis .aktuell { font-size: 22px; font-weight: 700; color: var(--gruen); }

.fahrzeug-preis .aktion { color: #c0392b; }

.keine-fahrzeuge {
  text-align: center;
  color: var(--grau-text);
  font-size: 17px;
  padding: 40px 0;
}

/* ---------- Bildergalerie (Overlay) ---------- */
.galerie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.galerie-overlay.offen { display: flex; }

.galerie-overlay img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
}

.galerie-titel {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--weiss);
  font-size: 16px;
  padding: 0 60px;
}

.galerie-schliessen,
.galerie-pfeil {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--weiss);
  font-size: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}

.galerie-schliessen:hover, .galerie-pfeil:hover { background: rgba(255, 255, 255, 0.3); }

.galerie-schliessen { top: 14px; right: 14px; }

.galerie-pfeil.links { left: 14px; top: 50%; transform: translateY(-50%); }

.galerie-pfeil.rechts { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 900px;
  margin: 30px auto 0;
}

.kontakt-box {
  flex: 1;
  min-width: 260px;
  background: var(--weiss);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.kontakt-box h2 { font-size: 20px; color: var(--gruen); margin-bottom: 12px; }

.kontakt-box p { font-size: 16px; margin-bottom: 10px; }

.kontakt-box a { color: var(--gruen); }

.kontakt-box table { width: 100%; border-collapse: collapse; }

.kontakt-box td { padding: 4px 0; font-size: 16px; }

.kontakt-box td:last-child { text-align: right; }

.hinweis-banner {
  background: var(--gelb);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

/* ---------- Footer ---------- */
footer {
  background: var(--gruen);
  color: var(--weiss);
  padding: 50px 20px 30px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 30px;
}

.footer-col { flex: 1; min-width: 220px; }

.footer-col h3 {
  font-size: 15px;
  color: var(--gelb);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p, .footer-col a {
  font-size: 15px;
  color: #d2d2d7;
  text-decoration: none;
  line-height: 1.8;
}

.footer-col a:hover { color: var(--weiss); }

.footer-col ul { list-style: none; }

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #a0a5a0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Service-Seite ---------- */
.service-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-inner img {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  border-radius: 16px;
}

.service-text { flex: 1; min-width: 280px; }

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--weiss);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-top: 1px solid #f0f0f0; }

  .nav-links a { display: block; padding: 14px 20px; font-size: 17px; }

  .hero h1 { font-size: 28px; }
  .hero p { font-size: 17px; }

  .teaser-divider { width: 100%; height: 12px; align-self: auto; }

  .teaser-box { padding: 30px 0; }

  .seitentitel h1 { font-size: 26px; }
}

/* ---------- Fahrzeug-Karte als Link + Detailseite ---------- */
a.fahrzeug-karte { text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }

a.fahrzeug-karte:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }

.mehr-link { float: right; font-size: 15px; font-weight: 500; color: var(--gruen); margin-top: 4px; }

.detail-zurueck { max-width: 1100px; margin: 0 auto 18px; }

.detail-zurueck a { color: var(--gruen); text-decoration: none; font-size: 16px; }

.detail-zurueck a:hover { text-decoration: underline; }

.detail-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.detail-galerie { flex: 1.2; min-width: 300px; }

.detail-hauptbild {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--weiss);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.detail-hauptbild img { width: 100%; height: 100%; object-fit: cover; }

.detail-hauptbild .bild-anzahl {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--weiss);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 980px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.75;
  transition: all 0.15s ease;
}

.detail-thumbs img:hover { opacity: 1; }

.detail-thumbs img.aktiv { border-color: var(--gruen); opacity: 1; }

.detail-info {
  flex: 1;
  min-width: 280px;
  background: var(--weiss);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.detail-info h1 { font-size: 26px; color: var(--gruen); margin-bottom: 10px; line-height: 1.25; }

.detail-preis { margin: 0 0 14px; }

.detail-preis .aktuell { font-size: 28px; }

.detail-daten { font-size: 15px; margin: 14px 0 20px; }

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