/* === Farben & Variablen === */
:root {
  --primary: #e65100;
  --primary-hover: #ff6d00;
  --dark: #222222;
  --dark-medium: #333333;
  --text: #444444;
  --text-light: #bbbbbb;
  --light-bg: #f4f4f4;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --radius-sm: 5px;
}

/* === Grundlayout === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
}

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

/* === Header === */
header {
  background-color: rgba(20, 20, 20, 0.95);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo-bereich {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo {
  height: 48px;
  width: auto;
  display: block;
}

.firmenname {
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--white);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* === Hero === */
.hero {
  background-color: var(--dark);
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 35%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.hero-inhalt {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero h2 {
  font-size: 48px;
  color: var(--white);
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h2 span {
  color: var(--primary);
}

.hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* === Fahrzeuge === */
.fahrzeuge {
  background-color: var(--light-bg);
  padding: 70px 0;
}

.fahrzeuge h2 {
  text-align: center;
  margin-bottom: 40px;
}

.fahrzeug-liste {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Fahrzeug-Grid Breakpoints sind im Responsive-Bereich unten */

.fahrzeug-karte {
  background-color: var(--white);
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover: siehe Responsive-Bereich (@media hover: hover) */

.fahrzeug-karte img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.slider {
  position: relative;
}

.slider-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.55);
  color: var(--white);
  border: none;
  font-size: 16px;
  padding: 10px 13px;
  cursor: pointer;
  z-index: 1;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.slider-pfeil:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

.slider-links {
  left: 8px;
}

.slider-rechts {
  right: 8px;
}

.fahrzeug-karte h3 {
  margin: 0;
  padding: 18px 22px 10px;
  font-size: 19px;
  color: var(--dark);
  font-weight: 600;
}

.fahrzeug-karte ul {
  list-style: none;
  margin: 0;
  padding: 0 22px 16px;
}

.fahrzeug-karte li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.fahrzeug-karte li:last-child {
  border-bottom: none;
}

.fahrzeug-karte li:first-child {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.fahrzeug-karte-footer {
  padding: 0 22px 20px;
}

.details-link {
  display: block;
  text-align: center;
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.details-link:hover {
  background-color: var(--primary-hover);
}

/* === Vorteile === */
.vorteile {
  background-color: var(--white);
  padding: 70px 0;
}

.vorteile h2 {
  text-align: center;
  margin-bottom: 40px;
}

.vorteile-liste {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Vorteile-Grid Breakpoints sind im Responsive-Bereich unten */

.vorteil-karte {
  background-color: var(--light-bg);
  padding: 30px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover: siehe Responsive-Bereich (@media hover: hover) */

.vorteil-karte h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--dark);
  font-weight: 600;
}

.vorteil-karte p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* === Vertrauen === */
.vertrauen {
  background-color: var(--dark);
  padding: 70px 0;
  color: var(--white);
}

.vertrauen h2 {
  text-align: center;
  color: var(--white);
  margin-bottom: 8px;
}

.vertrauen-untertitel {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-bottom: 40px;
}

.vertrauen-liste {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Vertrauen-Grid Breakpoints sind im Responsive-Bereich unten */

.vertrauen-karte {
  background-color: var(--dark-medium);
  padding: 30px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover: siehe Responsive-Bereich (@media hover: hover) */

.vertrauen-quelle {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.vertrauen-sterne {
  font-size: 22px;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.vertrauen-note {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.vertrauen-detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.vertrauen-zitat {
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

/* === Über uns === */
.ueber-uns {
  background-color: var(--light-bg);
  padding: 70px 0;
}

/* === Kontakt === */
.kontakt {
  background-color: var(--dark);
  padding: 70px 0;
  color: var(--white);
}

.kontakt .container {
  text-align: center;
}

.kontakt h2 {
  color: var(--white);
  margin-bottom: 28px;
}

.kontakt-info {
  display: inline-block;
  text-align: left;
  background-color: var(--dark-medium);
  padding: 32px 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kontakt-info p {
  margin-bottom: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.kontakt-info p:last-child {
  margin-bottom: 0;
}

.kontakt-info strong {
  color: var(--white);
}

.kontakt-info a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.kontakt-info a:hover {
  color: var(--primary-hover);
}

/* === Allgemeine Sections === */
main {
  padding: 0;
}

main > .container {
  padding-top: 0;
  padding-bottom: 0;
}

section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* === Footer === */
footer {
  background-color: var(--dark-medium);
  color: rgba(255, 255, 255, 0.6);
  border-top: 3px solid var(--primary);
  padding: 10px 0;
}

footer p {
  font-size: 14px;
  margin: 0;
}

/* === Typografie === */
h2 {
  color: var(--dark);
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.2;
}

p {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 14px;
}

/* === Detailseiten === */
.zurueck-link {
  display: inline-block;
  margin-top: 30px;
  margin-bottom: 24px;
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.zurueck-link:hover {
  color: var(--primary-hover);
}

.detail-bild {
  position: relative;
}

.detail-bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
  display: block;
}

.detail-bild .slider-pfeil {
  padding: 14px 18px;
  font-size: 22px;
}

.detail-galerie {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 30px;
}

.detail-galerie img {
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, outline-color 0.3s ease;
}

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

.detail-galerie img.aktiv {
  opacity: 1;
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.detail-preis {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.detail-info ul {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}

.detail-info li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.detail-info li:last-child {
  border-bottom: none;
}

.detail-info a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-info a:hover {
  color: var(--primary-hover);
}

/* === Responsive === */

/* Hover-Effekte nur auf Geräten mit echtem Hover (kein Touch) */
@media (hover: hover) {
  .fahrzeug-karte:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .vorteil-karte:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .vertrauen-karte:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

/* -- Tablet (kleiner Desktop) -- */
@media (max-width: 900px) {
  .fahrzeug-liste {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* -- Tablet -- */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .hero {
    min-height: 480px;
  }

  .hero-inhalt {
    padding-top: 60px;
  }

  .hero h2 {
    font-size: 34px;
  }

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

  .fahrzeuge,
  .vorteile,
  .vertrauen,
  .ueber-uns,
  .kontakt {
    padding: 50px 0;
  }

  .vorteile-liste,
  .vertrauen-liste {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .kontakt-info {
    padding: 28px 32px;
  }

  .detail-galerie img {
    width: 75px;
    height: 54px;
  }

  footer {
    text-align: center;
    padding: 14px 0;
  }
}

/* -- Mobil -- */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  header .container {
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .logo {
    height: 38px;
  }

  .firmenname {
    font-size: 18px;
  }

  nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 14px;
  }

  section[id] {
    scroll-margin-top: 110px;
  }

  .hero {
    min-height: 340px;
  }

  .hero-inhalt {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .hero h2 {
    font-size: 24px;
    padding: 0 8px;
  }

  .hero p {
    font-size: 15px;
    padding: 0 8px;
    max-width: 100%;
  }

  h2 {
    font-size: 22px;
  }

  .fahrzeuge,
  .vorteile,
  .vertrauen,
  .ueber-uns,
  .kontakt {
    padding: 36px 0;
  }

  .fahrzeuge h2,
  .vorteile h2,
  .vertrauen h2 {
    margin-bottom: 28px;
  }

  .fahrzeug-liste {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 440px;
    margin: 0 auto;
  }

  .vorteile-liste,
  .vertrauen-liste {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .slider-pfeil {
    padding: 14px 16px;
    font-size: 20px;
  }

  .fahrzeug-karte h3 {
    padding: 14px 16px 8px;
    font-size: 17px;
  }

  .fahrzeug-karte ul {
    padding: 0 16px 12px;
  }

  .fahrzeug-karte li {
    padding: 6px 0;
  }

  .fahrzeug-karte-footer {
    padding: 0 16px 16px;
  }

  .details-link {
    padding: 13px;
    font-size: 16px;
  }

  .kontakt-info {
    display: block;
    padding: 24px 20px;
  }

  .vertrauen-untertitel {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .vertrauen-note {
    font-size: 24px;
  }

  .vertrauen-zitat {
    font-size: 13px;
  }

  footer {
    text-align: center;
    padding: 14px 0;
  }

  footer p {
    font-size: 13px;
  }

  /* Detailseiten mobil */
  .detail-bild .slider-pfeil {
    padding: 14px 16px;
    font-size: 20px;
  }

  .detail-galerie {
    gap: 6px;
  }

  .detail-galerie img {
    width: 56px;
    height: 42px;
  }

  .detail-preis {
    font-size: 22px;
  }

  .detail-info li {
    font-size: 14px;
  }

  .zurueck-link {
    margin-top: 20px;
    margin-bottom: 16px;
  }
}
