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

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  text-align: center;
  padding: 1rem;
  background: #f5f5f5;
}

.hero-image {
  width: 100%;
  height: 40rem;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  object-fit: cover;
}

.overview {
  text-align: center;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
}

/* Überschrift: Moderner Farbverlauf und feiner Schatten */
.animated-heading {
  font-size: 2.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #645f5ea6, #818080ce);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Beschreibung: Kreativer Farbverlauf, Text-Schatten und Fade-In-Effekt */
.overview-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  background: linear-gradient(90deg, #65696d, #2d2f2f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  margin-top: 3rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   Services Section
============================ */

/* Container für die Leistungs-Section
   mit einem HTML-Hintergrundbild (.leistungen-bg) */
.services {
  position: relative; /* Wichtig für absolutes BG-Bild */
  overflow: hidden;
  padding: 2rem 1rem; /* Kannst du anpassen (py-5, etc.) */
}

/* Absolutes Hintergrundbild
     Bitte im HTML als <img class="leistungen-bg"> einbinden */
.leistungen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Hinter dem eigentlichen Inhalt */
}

/* Inhalt liegt darüber */
.services .container {
  position: relative;
  z-index: 1;
}

/* Liste der Services */
.service-list {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  /* Jeder Service-Block untereinander,
       wenn du 2 oder 3 Spalten willst, passe grid-template-columns an */
  grid-template-columns: 1fr;
}

/* ---------------------
     Service-Block
  ---------------------- */
.service-block {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(0, 0, 0, 0.5); /* dunkle, halbtransparente Overlay-Farbe */
  color: #fff; /* Text in Weiß */
}

/* Hover-Effekt */
.service-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Linke Spalte: Bild */
.service-image {
  width: 40%;
  object-fit: cover;
  height: 100%;
  min-height: 150px;
}

/* Rechte Spalte: Content */
.service-content {
  flex: 1 1 60%;
  padding: 2rem;
  /* kein border-left, kein extra Verlauf */
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Überschrift & Text */
.service-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff; /* Weiß für bessere Lesbarkeit */
}

.service-content p {
  font-size: 1.1rem;
  color: #eee; /* minimal heller als Weiß für Variation */
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Button (neutraler Grauton) */
.btn-primary {
  background-color: #6c757d; /* neutrales Grau */
  color: #fff;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: #5a6268;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* --- Responsivität --- */
@media (max-width: 768px) {
  .service-block {
    flex-direction: column;
  }
  .service-image,
  .service-content {
    flex: 1 1 100%;
  }
  .service-image {
    width: 100%;
    height: auto;
  }
  .service-content {
    padding: 1.5rem;
  }
  .service-content h3 {
    font-size: 1.8rem;
  }
  .service-content p {
    font-size: 1rem;
  }
}

@media (max-width: 515px) {
  .service-content h3 {
    font-size: 1.6rem;
  }
  .service-content p {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}
