.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  font-family: sans-serif;
}

/* Track für horizontales Scrollen */
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 1rem;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Bilder mit "Peek" */
.carousel-track img {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  max-width: 80%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  scroll-snap-align: start;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.4s ease;
  box-sizing: border-box;
}
.carousel-track img:hover {
  transform: scale(1.03);
}

/* Buttons */
.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.carousel-controls button {
  pointer-events: auto;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1.3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-controls button:hover {
  background: rgba(0,0,0,0.7);
}

/* Indikator-Punkte */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0.5rem;
}
.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0px;
}
.carousel-indicators button.active {
  background: #333;
}

/* Lightbox */
.carousel-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.carousel-lightbox img {
  max-width: 90%;
  max-height: 90%;
  height: auto;
  width: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
  object-fit: contain;
}
.carousel-lightbox .carousel-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.carousel-track img {
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .carousel-track {
    gap: 0.5rem;
  }
  .carousel-track img {
	max-height: 35vh;
    max-width: 90%;  /* fast die gesamte Breite */
  }
  
  .carousel-indicators {
	gap: 1%;
  }
}

.carousel-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.carousel-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.carousel-lightbox button {
  position: absolute;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
}

.carousel-close {
  top: 1rem;
  right: 1rem;
}

.carousel-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Mobile Anpassung */
@media (max-width: 600px) {

}