/* =====================================================
   DIVA Automobile — Design nach diva-automobile.de
   Farben: Gold #E9C278, Rot #D81324, Navy #0B2154, Text #7A7A7A
   Typo: Teko (Headlines, uppercase) / Heebo (Fließtext)
   ===================================================== */

:root {
  --gold:       #e9c278;
  --gold-dark:  #d4a95a;
  --red:        #d81324;
  --navy:       #0b2154;
  --text:       #7a7a7a;
  --dark:       #0e0e0e;
  --dark-2:     #161616;
  --light:      #ffffff;
  --gray:       #f6f6f6;
  --gray-2:     #e7ebf0;

  --font-display: "Teko", sans-serif;
  --font-body:    "Heebo", sans-serif;

  --container: 72.5rem; /* 1160px */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--light);
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* ===== Topbar ===== */

.topbar {
  background: var(--dark);
  border-bottom: 1px solid #262626;
  font-size: 0.875rem;
  color: #cfcfcf;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2.5rem;
  padding-block: 0.5rem;
}
.topbar-label {
  color: var(--gold);
  font-weight: 500;
  margin-right: 0.35rem;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold); }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--dark);
  box-shadow: 0 1px 0 #262626;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.logo { height: 3rem; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--gold); }

.main-nav a.nav-cta {
  background: var(--gold);
  color: #111;
  font-weight: 600;
  border-radius: 3px;
  padding: 0.4rem 1.25rem 0.3rem;
  transition: background-color 0.15s;
}
.main-nav a.nav-cta:hover {
  background: var(--gold-dark);
  color: #111;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* ===== Eyebrow / Titel ===== */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #111;
  margin-bottom: 1.25rem;
}
.section-title.center { text-align: center; }

.intro-text {
  max-width: 46rem;
  text-align: center;
}
.intro-text p.center { margin-inline: auto; }
.section-title.light { color: #fff; }

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 2rem 0.45rem;
  background: var(--gold);
  color: #111;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--gold-dark); }
.btn:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding-block: calc(0.55rem - 2px) calc(0.45rem - 2px);
}
.btn-outline:hover {
  background: var(--gold);
  color: #111;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== Hero (Startseite) =====
   Background-Slideshow: 5 s Standzeit, 500 ms Fade, Ken-Burns-Zoom. */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  min-height: clamp(560px, 78vh, 820px);
  display: flex;
  align-items: center;
  padding-block: 4rem;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 12s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* Dunkles Overlay über den Slides */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.72);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-eyebrow {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
}
.hero-eyebrow span { color: #fff; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #fff;
  margin-block: 0.75rem 1rem;
}
.hero-title span { color: var(--gold); }

.hero-text {
  max-width: 36rem;
  color: #d6d6d6;
  margin-bottom: 1rem;
}

/* ===== Seitenkopf (Unterseiten) ===== */

.page-hero {
  background: var(--dark);
  padding-block: clamp(3rem, 8vh, 5rem);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #fff;
}

/* ===== Sektionen ===== */

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }

.section-light { background: var(--light); }
.section-gray  { background: var(--gray); }

.section-dark {
  background:
    linear-gradient(rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.9)),
    url("../assets/werkstatt.jpg") center / cover no-repeat fixed;
  color: #bdbdbd;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.split p { margin-bottom: 1rem; }

.company-photo img {
  border-radius: 4px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.18);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.badge {
  display: inline-block;
  padding: 0.4rem 1.25rem 0.3rem;
  background: var(--gold);
  color: #111;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  border-radius: 3px;
}

/* ===== Leistungen ===== */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2.5rem;
  margin-top: 3rem;
}
.service {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.service-icon {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  background: var(--gold);
  border-radius: 50%;
}
.service-icon img { width: 2.25rem; height: 2.25rem; }

.service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #fff;
  margin-bottom: 0.35rem;
}
.service p { font-size: 0.9375rem; }

.service-cta {
  align-items: center;
  justify-content: flex-start;
}

/* ===== Kontakt ===== */

.contact-info {
  background: var(--gray);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 2rem 2.25rem;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #111;
  margin-bottom: 0.35rem;
}
.contact-info h3 + address,
.contact-info h3 + p { margin-bottom: 1.5rem; }
.contact-info address { font-style: normal; }

/* ===== Formulare ===== */

.form-split { align-items: start; }

.form {
  background: var(--gray);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 2rem 2.25rem 2.25rem;
}
.form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #111;
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #111;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(233 194 120 / 0.35);
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
  border-color: var(--red);
}

.form-error {
  color: var(--red);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.form-submit {
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.form-note {
  font-size: 0.8125rem;
  color: #999;
  margin-top: 0.75rem;
}

.how-it-works {
  margin: 0 0 1.25rem 1.25rem;
}
.how-it-works li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--dark);
  color: #bdbdbd;
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { margin-bottom: 1rem; }
.footer-contact a {
  color: var(--gold);
  text-decoration: none;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold); }
.footer-col p { margin-bottom: 0.75rem; }

.footer-bottom {
  border-top: 1px solid #262626;
  padding-block: 1.25rem;
  font-size: 0.875rem;
  text-align: center;
}

/* ===== Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide.is-active { animation: none; }
}

/* ===== Responsive ===== */

@media (max-width: 60rem) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) {
  .topbar-inner { justify-content: center; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark);
    border-top: 1px solid #262626;
    padding: 0.5rem 1.5rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding-block: 0.6rem; }
  .main-nav a.nav-cta {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.4rem 1.25rem 0.3rem;
  }
  .nav-toggle { display: block; }

  .split { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form { padding: 1.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .section-dark { background-attachment: scroll; }
}

.form-success {
  color: #2e7d32;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

/* ===== Kompakter Footer auf Mobilgeräten ===== */

@media (max-width: 48rem) {
  .site-footer { padding-top: 2rem; }
  .footer-grid {
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    text-align: center;
  }

  /* Navigation (doppelt zum Hauptmenü) und Öffnungszeiten ausblenden */
  .footer-grid nav[aria-label="Navigation"],
  .footer-grid div.footer-col { display: none; }

  /* Markenblock: nur Logo + Kontaktdaten */
  .footer-brand .logo { margin-bottom: 0.5rem; }
  .footer-brand > p:not(.footer-contact) { display: none; }
  .footer-contact { margin-bottom: 0; }

  /* Rechtslinks als einzeilige Reihe */
  .footer-grid nav[aria-label="Information"] h4 { display: none; }
  .footer-grid nav[aria-label="Information"] {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }
  .footer-grid nav[aria-label="Information"] a {
    display: inline;
    margin-bottom: 0;
  }

  .footer-bottom { padding-block: 1rem; }
}

/* ===== Hero-Hintergründe (Desktop / Mobil) ===== */

.hero-slide-1 { background-image: url('../assets/hero-1.jpg'); }
.hero-slide-2 { background-image: url('../assets/hero-2.jpg'); }

@media@media (max-width: 48rem) {
  .hero-slide-2 { background-image: url('../assets/hero-2-mobil.jpg'); }
}

/* Mobil: Content-Fotos kompakt im 4:5-Format statt voller Bildhöhe */

@media (max-width: 48rem) {
  .company-photo img { aspect-ratio: 4 / 5; }
}

/* Mobil: kein Slider — nur das zweite Motiv als statischer Hero-Hintergrund */

@media (max-width: 48rem) {
  .hero-slide-1 { display: none; }
  .hero-slide-2,
  .hero-slide-2.is-active {
    opacity: 1;
    animation: none;
    transition: none;
  }
}
