.bilderstrecke-swiper {
  width: 100%;
  max-width: 800px; /* optional, falls du max Breite möchtest */
  position: relative;
  margin: 40px 0px;
}

.bilderstrecke-swiper .swiper-slide {
  width: auto; /* Breite von Slide flexibel, abhängig vom Bild */
  max-width: 350px; /* max. Breite pro Bild auf Desktop */
}

.bilderstrecke-swiper img {
  display: block;
  width: 100%; /* Bild füllt Slide aus */
  height: auto;
  margin-bottom: 0.5em;
}

/* Buttons */
.bilderstrecke-swiper .swiper-button-prev,
.bilderstrecke-swiper .swiper-button-next {
  position: absolute;
  top: 50%; /* Mitte des Containers */
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.bilderstrecke-swiper .swiper-button-prev {
  left: 10px;
}

.bilderstrecke-swiper .swiper-button-next {
  right: 10px;
}

/* Pagination */
.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
  position: relative;
  top: 0px;
}

.swiper-pagination-bullet {
  width: 14px !important;
  height: 14px !important;
  margin: 0 6px !important;
  opacity: 0.4;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #da1e10 !important; /* z.B. deine Akzentfarbe */
}

/* Bilder: max-Höhe wird per JS gesetzt */
.bilderstrecke-swiper .swiper-slide img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: inline-block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .swiper-slide {
    font-size: 16px;
  }
}

/* Videobits Styles */

.videobits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start; 
}

.videobit {
    flex: 1 1 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .videobit {
        flex: 1 1 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 640px) {
    .videobit {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.videobit-thumb {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.videobit-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.videobit-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Zentriert exakt */
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5); /* Schwarzer, durchlässiger Kreis */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.videobit-play-button::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 20px solid white; /* Weißer Pfeil */
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 2px;
}
