/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #d6d6d6; /* dunkleres Business-Grau */
  color: #333;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= HEADER ================= */
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: #f2f2f2; /* direkt hellgrau */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* immer leichter Schatten */
  text-align: center;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
}

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-img {
  height: 70px;
  transition: height 0.3s ease;
}

.header.scrolled .logo-img {
  height: 50px;
}

/* Navigation */
.menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.6rem;
}

.menu a {
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #222;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #e53935;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #e53935;
  transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

/* Platz unter Header für alle Seiten außer Startseite */
body:not(.home) {
  padding-top: 140px; /* Höhe Header + bisschen Luft */
}


/* ================= HERO ================= */
.hero {
  background: url('hero_autohaus.jpg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); /* dunkler Overlay */
}

.hero-overlay {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-overlay .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #f1f1f1;
}

/* ================= BUTTONS ================= */
.btn-primary {
  display: inline-block;
  background: #e53935;
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: #c62828;
  transform: translateY(-3px);
}

/* ================= GRID ================= */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* ================= CARDS ================= */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card svg {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  color: #e53935;
  transition: color 0.3s ease;
}

.card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.card p {
  font-size: 1rem;
  color: #555;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.card:hover svg {
  color: #c62828;
}

/* ================= VEHICLE HIGHLIGHTS ================= */
.vehicle-highlights {
  margin: 5rem 0;
  text-align: center;
}
.vehicle-highlights h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.vehicle-highlights .muted {
  color: #777;
  margin-bottom: 2rem;
}
.vehicle-highlights .more-btn {
  margin-top: 2rem;
}

/* ================= FOOTER ================= */
.footer {
  background: #2c2c2c;
  padding: 2rem 0;
  text-align: center;
  color: #eee;
}

.footer a {
  color: #eee;
  font-weight: 500;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #e53935;
}

/* ================= ANIMATIONEN ================= */
.fade-in {
  animation: fadeIn 1s ease forwards;
}
.slide-up {
  animation: slideUp 1s ease forwards;
}
.hover-up:hover {
  transform: translateY(-6px);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.small-hero {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.small-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}
.small-hero h1 {
  color: #fff;
  position: relative;
  z-index: 1;
}

/* ================= FORMULARE ================= */
.ankauf-form .card,
.contact-form .card {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Google Maps */
.map-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Impressum & Datenschutz */
.legal-text h2, 
.legal-text h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #222;
}
.legal-text p {
  margin-bottom: 1.4rem;
  line-height: 1.7;
  color: #555;
}
/* ================= FORMULARE MODERN ================= */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

form .full-width {
  grid-column: span 2;
}

form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
  color: #222;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 1rem;
  background: #f3f3f3; /* leicht grau für bessere Sichtbarkeit */
  transition: border 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #e53935;
  background: #fff;
  box-shadow: 0 0 8px rgba(229,57,53,0.25);
  outline: none;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

form button,
form input[type="submit"] {
  grid-column: span 2;
  background: #e53935;
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

form button:hover,
form input[type="submit"]:hover {
  background: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* Kontaktseite Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 3rem 0;
}

/* Kontakt-Info-Karten */
.contact-info .card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info .card i {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #e53935;
  transition: color 0.3s ease;
}

.contact-info .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.contact-info .card:hover i {
  color: #c62828;
}
/* Kontaktseite Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 3rem 0;
}

/* Kontakt-Info-Karten */
.contact-info .card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info .card i {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #e53935;
  transition: color 0.3s ease;
}

.contact-info .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.contact-info .card:hover i {
  color: #c62828;
}
/* Kontaktseite Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 3rem 0;
}

/* Info-Karten */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Abstand zwischen Boxen */
}

.contact-info .card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info .card i {
  width: 32px;
  height: 32px;
  color: #e53935;
  flex-shrink: 0;
  margin-top: 4px;
  transition: color 0.3s ease;
}

.contact-info .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.contact-info .card:hover i {
  color: #c62828;
}
/* Kontaktseite Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 3rem 0;
}

/* Info-Karten */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info .card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info .card i {
  width: 32px;
  height: 32px;
  color: #e53935;
  flex-shrink: 0;
  margin-top: 4px;
  transition: color 0.3s ease;
}

.contact-info .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.contact-info .card:hover i {
  color: #c62828;
}
/* Formular-Boxen */
.contact-form,
.ankauf-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.contact-form .full-width,
.ankauf-form .full-width {
  grid-column: span 2;
}

/* Labels */
.contact-form label,
.ankauf-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
  color: #333;
}

/* Inputs & Textareas */
.contact-form input,
.contact-form textarea,
.ankauf-form input,
.ankauf-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.ankauf-form input:focus,
.ankauf-form textarea:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
  outline: none;
  background: #fff;
}

/* Buttons */
.contact-form button,
.ankauf-form button {
  grid-column: span 2;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  background: #e53935;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  justify-self: center;
  width: 60%; /* Breiter Button */
  text-align: center;
}

.contact-form button:hover,
.ankauf-form button:hover {
  background: #c62828;
  transform: translateY(-2px);
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .contact-form,
  .ankauf-form {
    grid-template-columns: 1fr;
  }

  .contact-form button,
  .ankauf-form button {
    width: 100%;
  }
}
/* Fahrzeugkarten fixen */
.vehicle-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
  overflow: hidden;              /* verhindert rausdrücken */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.vehicle-img {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;      /* feste Höhe */
  object-fit: cover !important;  /* beschneidet Bilder sauber */
  border-radius: 8px;
  margin-bottom: 0.8rem;
  display: block;
}
/* --- Vehicle Cards Spezialisierung --- */
.vehicle-card {
  padding: 0; /* überschreibt das card padding */
  overflow: hidden;
}

.vehicle-card img.vehicle-img {
  width: 100%;
  height: 220px;          /* feste Höhe */
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.vehicle-card h3 {
  font-size: 1.2rem;
  margin: 0.8rem 0 0.3rem;
}

.vehicle-card p {
  margin: 0.2rem 0;
  color: #555;
}

.vehicle-card .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e53935;
  margin-top: 0.5rem;
}
/* Vehicle Cards fix */
.vehicle-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vehicle-card img.vehicle-img {
  width: 100%;
  max-width: 100%;
  height: 200px;        /* Höhe fixieren */
  max-height: 200px;   /* verhindert Überlaufen */
  object-fit: cover;   /* Bild beschneiden statt verzerren */
  border-radius: 12px 12px 0 0;
  display: block;
}
.vehicle-img {
  width: 100% !important;
  height: 220px !important;   /* Höhe fix – du kannst z.B. 220, 250, 300 px wählen */
  object-fit: cover !important; 
  border-radius: 12px 12px 0 0 !important;
  display: block !important;
}
.card.vehicle-card .vehicle-img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 12px 12px 0 0 !important;
  display: block !important;
}
/* Fahrzeugbilder in den Vorschaukarten */
.vehicle-card .vehicle-img {
  width: 100%;
  height: 200px;
  object-fit: cover;   /* Bild wird zugeschnitten, bleibt aber im Rahmen */
  border-radius: 8px 8px 0 0; /* abgerundete obere Ecken passend zur Karte */
  display: block;
}
/* Fix für Fahrzeugbilder */
.card.vehicle-card img.vehicle-img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 8px 8px 0 0 !important;
  display: block !important;
}
/* Zwingt Fahrzeugbilder in Karten zu rechteckigem Format */
.card.vehicle-card img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 6px 6px 0 0 !important;
  display: block !important;
}
/* Fix für Fahrzeugbilder in den Karten */
.card.vehicle-card img {
  width: 100% !important;
  height: 220px !important;   /* Höhe nach Wunsch anpassen */
  object-fit: cover !important;
  display: block !important;
}
/* Bildgrößen aus dem HTML überschreiben */
.card.vehicle-card img {
  max-width: 100% !important;
  width: 100% !important;
  max-height: 220px !important;
  height: 220px !important;
  object-fit: cover !important;
}
/* Fahrzeugkarten */
.card.vehicle-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px; /* etwas höher als vorher */
  max-width: 350px;  /* etwas breiter, damit Titel mehr Platz haben */
  margin: 0 auto;
}

.card.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Fahrzeugbilder */
.card.vehicle-card img.vehicle-img {
  width: 100%;
  height: 250px;          /* höheres Bild */
  object-fit: contain;    /* Bild nicht mehr abschneiden */
  background: #f9f9f9;    /* Hintergrund falls Seitenränder frei bleiben */
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Titel */
.card.vehicle-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.3;
  min-height: 3rem; /* Platz für 2 Zeilen Titel */
}

/* Preis */
.card.vehicle-card .price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #e53935;
  margin: 0.5rem 0;
}
/* Finanzierung */
.financing {
  background: #f9f9f9;
  padding: 3rem 1rem;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.financing-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.bank-logo {
  max-width: 180px;
  height: auto;
  flex-shrink: 0;
}

.financing-text {
  flex: 1;
}

.financing-text h3 {
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
  color: #222;
}

.financing-text p {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.5;
}
/* ================= MOBILE FIXES ================= */
@media (max-width: 768px) {
  /* Logo im Header verkleinern */
  .logo-img {
    height: 50px !important;
  }
  .header.scrolled .logo-img {
    height: 40px !important;
  }

  /* Hero-Text mehr Abstand nach oben, damit Logo nicht reinragt */
  .hero-overlay {
    padding-top: 4rem;
  }

  /* Kontaktformular auf eine Spalte */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-form,
  .ankauf-form {
    grid-template-columns: 1fr !important;
    padding: 1.5rem !important;
  }

  /* Eingabefelder & Boxen voller Breite */
  .contact-form input,
  .contact-form textarea,
  .ankauf-form input,
  .ankauf-form textarea {
    font-size: 1rem;
  }

  /* Buttons über die ganze Breite */
  .contact-form button,
  .ankauf-form button {
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  /* Menü kleiner und kompakter */
  .menu {
    gap: 1rem;
    margin-top: 0.3rem;
  }

  .menu a {
    font-size: 0.8rem;
    padding: 0.2rem 0;
  }

  /* Logo noch etwas kleiner für mehr Platz */
  .logo-img {
    height: 45px !important;
  }

  .header.scrolled .logo-img {
    height: 35px !important;
  }

  /* Hero-Text weiter nach unten schieben */
  .hero-overlay {
    padding-top: 5rem;
  }
}
/* Hero Überschrift aufwerten */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

/* Hero Untertitel (Lead) */
.hero .lead {
  font-size: 1.3rem;
  font-weight: 400;
  color: #f5f5f5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
  max-width: 700px;
  line-height: 1.5;
}

/* Button im Hero */
.hero .btn-primary {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.hero h1 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;   /* kleiner statt 3rem */
    line-height: 1.2;
    padding: 0 1rem;   /* etwas seitlicher Abstand */
    word-break: break-word; /* falls Wörter zu lang sind */
  }
}
