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

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

/* Hero Section – Einheitlich */
.hero-section {
  position: relative;
  background: #f5f5f5;
  padding: 1rem 0;
}
.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.carousel-inner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Gemeinsamer Content-Bereich (Layout, Animation, Glassmorphism) */
.content-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f8f8f8, #eaeaea);
  position: relative;
  overflow: hidden;
}
.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
}
.content-section .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 4rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  animation: slideUp 1.5s ease-out forwards;
}

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

/* Überschriften, Intro, Listen – Basis-Stile */
.content-section h1 {
  font-size: 3rem;
  color: #222;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.5s ease;
}
.content-section h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #645f5ea6, #818080ce);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.content-section h1:hover::after {
  width: 100%;
}
.content-section .intro {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.content-section h2 {
  font-size: 2.2rem;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-weight: 600;
  transition: all 0.5s ease;
}
.content-section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #6c757d;
  border-radius: 2px;
  transition: width 0.5s ease;
}
.content-section h2:hover::after {
  width: 60%;
}
.content-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.8rem;
  text-align: justify;
  text-justify: inter-word;
}
.leistungen-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 800px;
  text-align: left;
  font-size: 1.1rem;
}
.leistungen-list li {
  margin-bottom: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: #fff;
  border-left: 4px solid #645f5ea6;
  border-radius: 4px;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
  padding-left: 2.8rem;
}
.leistungen-list li:hover {
  background: #f5f5f5;
  transform: translateX(5px);
}
.leistungen-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #645f5ea6;
  font-size: 1.2rem;
}

/* ==================================
     Services Section – Split-Screen Blocks
  =================================== */
.services {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #fff, #f2f2f2);
}
.service-list {
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.service-block {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-duration, 0.4s) ease,
    box-shadow var(--transition-duration, 0.4s) ease;
}
.service-block:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.service-image {
  flex: 1 1 40%;
  height: 350px;
  object-fit: cover;
  transition: transform var(--transition-duration, 0.4s) ease;
}
.service-block:hover .service-image {
  transform: scale(1.05);
}
.service-content {
  flex: 1 1 60%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  transition: background var(--transition-duration, 0.4s) ease;
}
.service-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color, #222);
}
.service-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}
.btn {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ==================================
     Responsive Anpassungen
  =================================== */
@media (max-width: 768px) {
  .carousel-inner img {
    height: 300px;
  }
  .content-section .container {
    padding: 1.5rem 2rem;
  }
  .erdbau-content h1,
  .kanalbau-content h1,
  .content-section h1 {
    font-size: 2.2rem;
  }
  .erdbau-content h2,
  .kanalbau-content h2,
  .content-section h2 {
    font-size: 1.8rem;
  }
  .erdbau-content p,
  .kanalbau-content p,
  .content-section p,
  .leistungen-list li {
    font-size: 1rem;
  }
  .service-block {
    flex-direction: column;
  }
  .service-image,
  .service-content {
    flex: 1 1 100%;
  }
  .service-image {
    height: 250px;
  }
  .service-content {
    padding: 1.5rem;
  }
  .service-content h3 {
    font-size: 1.8rem;
  }
  .service-content p {
    font-size: 1rem;
  }
}

@media (max-width: 515px) {
  .content-section .container,
  .erdbau-content .container,
  .kanalbau-content .container {
    padding: 1rem 1.5rem;
  }
  .erdbau-content h1,
  .kanalbau-content h1,
  .content-section h1 {
    font-size: 2rem;
  }
  .erdbau-content h2,
  .kanalbau-content h2,
  .content-section h2 {
    font-size: 1.6rem;
  }
  .erdbau-content p,
  .kanalbau-content p,
  .content-section p,
  .leistungen-list li {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}
