section {
    padding: 40px 0;
}
body {
  overflow-x: hidden;
}
footer ul {
    padding: 0;
    list-style-type: none;
}
.hero-section {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)) , url('img/Logo/Schriftzug_Kran.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.service-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 2;
    transition: all 0.4s ease-in-out;
}

.service-card:hover img {
    transform: scale(1.05);
    filter: brightness(50%);
}

.service-card:hover .overlay {
    bottom: 10px;
    padding: 30px;
}

.gallery-img {
  height: 220px !important;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  border-radius: 5px;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  background-color: transparent !important;
}

/* Linker Pfeil */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23b51e1e' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E") !important;
}

/* Rechter Pfeil */
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23b51e1e' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}



/* Mobile Overlay-Navigation */
@media (max-width: 991.98px) {
    .mobile-overlay {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: white;
      z-index: 999;
      padding: 1rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
  
    .navbar-nav .nav-link {
      padding: 0.75rem 1rem;
      font-size: 1.1rem;
      border-bottom: 1px solid #ddd;
    }
  
    .navbar {
      position: relative;
    }
      .kontakt-cta, .hero-section {
    background-attachment: scroll;
  }
  }
  @media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
      display: block;
      margin-top: 0;
    }
  
    /* Pfeil zurück auf Standard-Ausrichtung */
    .navbar .dropdown-toggle::after {
      transform: rotate(0deg);
      transition: transform 0.2s ease;
    }
  
    /* Pfeil nach oben beim Hover */
    .navbar .dropdown:hover .dropdown-toggle::after {
      transform: rotate(180deg);
    }
  }
  .btn-custom-red {
    background-color: #b51e1e !important;
    color: white !important;
    border: none;
  }
  
  .btn-custom-red:hover {
    background-color: #991818;
    color: white;
  }
  .step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto;
    background-color: #b51e1e;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .leistung-bild img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .kontakt-cta {
    background: url('img/Logo/Schumacher_Auto.jpg') no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 70%; /* X = 50% (horizontal), Y = 30% (vertikal) */
    height: 450px;
    position: relative;
}
  #success-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

  .kontakt-cta .cta-box {
    background: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    color: #000;
  }
  #hero-carousel {
    position: relative;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 2rem;
  }
  
  .hero-overlay h1,
  .hero-overlay p {
    color: white;
  }
  

  
  .carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  .carousel-item img {
    height: 500px;
    object-fit: cover;
  }
  
  .carousel-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10;
    padding: 2rem;
  
    pointer-events: none; /* ← macht das Overlay klick-durchlässig */
  }
  
  .carousel-overlay-text .bg-dark {
    pointer-events: auto; /* ← Textblock bleibt klickbar, z. B. für Buttons */
  }
.carousel-control-prev,
.carousel-control-next {
  width: auto;
  padding: 0 2rem; /* Abstand links/rechts erhöhen */
  z-index: 10;
}

.carousel-control-prev {
  left: -2rem !important; /* Verschiebt den linken Pfeil weiter nach außen */
}

.carousel-control-next {
  right: -2rem !important; /* Verschiebt den rechten Pfeil weiter nach außen */
}

