/* Basis-Layout */
.carousel {
  position: relative;
}

.carousel ul {
  overflow: auto;
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  background: gray;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
}

.carousel ul::-webkit-scrollbar {
  display: none;
}

.carousel ul li {
  position: relative;
  min-width: 100%;
  list-style: none;
  scroll-snap-align: start;
}

.carousel ul li > img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Pagination-Punkte */
.carousel ol {
  position: absolute;
  bottom: 15px;
  display: flex;
  justify-content: center;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.carousel ol li {
  list-style: none;
  padding: 0 5px;
}

.carousel ol li a {
  display: block;
  height: 10px;
  width: 10px;
  border: 2px solid white;
  background: transparent;
  border-radius: 100%;
}

.carousel ol li.selected a {
  background: white;
}

/* Pfeile */ 
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: none;
  border: none;
  color: white;
  font-size: 2rem;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6); /* 💡 der eigentliche Schatten */
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.prev {
  left: 1rem;
}

.carousel-arrow.next {
  right: 1rem;
}

.carousel-arrow:focus {
  outline: 0px;
  outline-offset: 0px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Einzelne Elemente in Textbox */
.carousel-textbox h2 {
  font-size: 1.25rem; /* text-lg */
  font-weight: 600;
}

.carousel-textbox p {
  font-size: 0.875rem; /* text-sm */
}

/* Linie schöner absetzen */
.carousel-textbox hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 0.5rem 0; /* Abstand oben und unten */
}

/* Responsive Verbesserung */
@media (min-width: 640px) {
  .carousel-textbox {
    max-width: 400px;
  }
}

@media (min-width: 768px) {
  .carousel-textbox {
    max-width: 500px;
  }
}
