.acf-slideshow {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.acf-slideshow .slide {
  position: absolute;   /* <--- Wichtig: Slides übereinander */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;         /* alle verstecken, JS zeigt eins */
  z-index: 0;
}

.acf-slideshow .slide img {
  width: 100%;
  height: auto;
  display: block;
}


.acf-prev, .acf-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 3px;
}

.acf-prev { left: 10px; }
.acf-next { right: 10px; }

.acf-prev:hover, .acf-next:hover {
  background: rgba(0,0,0,0.65);
}

/* optional: caption styling */
.acf-slide-caption {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-align: center;
  padding: 0.4rem 0.6rem;
  z-index: 40;
}


.acf-prev, .acf-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 3px;
}

.acf-prev { left: 10px; }
.acf-next { right: 10px; }

.acf-prev:hover, .acf-next:hover {
  background: rgba(0,0,0,0.65);
}

/* optional: caption styling */
.acf-slide-caption {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-align: center;
  padding: 0.4rem 0.6rem;
  z-index: 40;
}

.acf-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 100; /* über den Slides */
}

.acf-dot {
  display: inline-block;          /* sicherstellen, dass Fläche existiert */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;                 /* verhindert Zusammenstauchen */
}

.acf-dot:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.2);
}

.acf-dot.active {
  background: #fff;
}

