:root {
  --fw-red: #cc2229;
  --fw-dark-blue: #002d4b;
  --fw-light-blue: #70a1ba;
  --fw-white: #ffffff;
}

body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero-section {
  position: relative;
  /* Wir erhöhen das Padding, damit das Bild mehr Platz zum "Atmen" hat 
     und die Köpfe nicht von der Überschrift verdeckt werden */
  padding: 180px 0 100px 0;
  background:
    linear-gradient(rgba(0, 45, 75, 0.75), rgba(0, 0, 0, 0.6)),
    url("../_img/hero_img.jpg") center 90% no-repeat; /* 80% schiebt den Fokus nach unten zum Auto */
  background-attachment: fixed;
  background-size: cover;
  color: white;
  text-align: center;
  border-bottom: 5px solid var(--fw-red);
}

/* Wir nutzen nur noch den logo-container */
.logo-container {
  background: rgba(255, 255, 255, 0.9); /* Leicht transparent */
  backdrop-filter: blur(10px); /* Der edle Weichzeichner-Effekt */
  -webkit-backdrop-filter: blur(10px);
  display: inline-block;
  padding: 15px 25px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); /* Weicherer Schatten */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Feine Lichtkante */
}
.logo-img {
  width: 130px;
  height: auto;
  display: block;
}

.hero-icon {
  font-size: 2.5rem;
  color: #70a1ba !important; /* Exaktes Hellblau aus dem Logo */
  margin-bottom: 15px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-section:hover .hero-icon {
  transform: translateY(-5px);
}

/* Container für die drei Vorteile im Header */
.header-features {
  background: rgba(0, 45, 75, 0.6); /* Dunkelblau vom Logo, transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(112, 161, 186, 0.3); /* Hellblaue Lichtkante */
  border-radius: 15px;
  padding: 25px;
  height: 100%;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-features:hover {
  transform: translateY(-5px);
  background: rgba(0, 45, 75, 0.75);
}

.hero-section h1,
.hero-section p,
.hero-section h5 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Optimierung der Schriftlesbarkeit */
.hero-section h5 {
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-section p.small {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  opacity: 0.95 !important; /* Etwas kräftiger machen */
}

/* Accordion Design */
.accordion-button {
  font-weight: 700;
  color: var(--fw-dark-blue);
}
.accordion-button:not(.collapsed) {
  background-color: var(--fw-dark-blue);
  color: white;
}
.accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vehicle-box {
  background-color: #ffffff;
  border-left: 5px solid var(--fw-red);
  padding: 15px;
  border-radius: 4px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.btn-fire {
  background-color: var(--fw-red);
  color: white;
  border: none;
  padding: 12px;
  letter-spacing: 1px;
}
.btn-fire:hover {
  background-color: #a01a1f;
  color: white;
}

.wf-section {
  background-color: #f1f4f7;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

footer {
  color: var(--fw-dark-blue);
}

.footer-links a {
  color: var(--fw-dark-blue);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--fw-red);
}

/* Verhindert, dass Modals das Layout verschieben */
.modal-open {
  padding-right: 0 !important;
}

/* Optimierung für mobile Geräte */
@media (max-width: 768px) {
  .hero-section {
    /* Padding oben erhöht, damit Logo nicht über dem Text klebt */
    padding: 130px 0 30px 0;
    background-attachment: scroll; /* Bessere Performance auf Handys */
  }

  /* Logo-Positionierung mobil korrigieren */
  .logo-container {
    padding: 8px 15px;
    top: 0;
  }

  .logo-img {
    width: 100px; /* Kleineres Logo mobil spart massiv Platz */
  }

  /* Die Glas-Boxen mobil kompakter machen */
  .header-features {
    padding: 10px 5px;
    border-radius: 10px;
    min-height: 80px; /* Einheitliche Höhe nebeneinander */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-icon {
    font-size: 1.5rem; /* Kleinere Icons mobil */
    margin-bottom: 5px;
  }

  h5.small {
    font-size: 0.65rem !important; /* Sehr kleine Schrift für die Begriffe */
    letter-spacing: 0;
  }
}
