/* Section Animated Background Slider */
#animated-bg-section {
  position: relative;
  /* Kein overflow:hidden: das erzeugt einen eigenen Block-Kontext, und die
     Sektion weicht dann nicht beendeten Floats aus dem Divi-Header aus
     (Sektion wird schmal). clip-path schneidet ab, ohne das Layout zu ändern. */
  overflow: visible;
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
  background-size: cover;
  background-position: center center;
}

/* 50% transparentes schwarzes Overlay */
#animated-bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.bg-slider-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
  z-index: 1;
}

.bg-slider-image.active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bg-slider-image {
    transition: none;
  }
}
