/* ----------------------------------------------------------------
   REFERENZEN
   ---------------------------------------------------------------- */
#references {
  padding-top: 5rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--border-card);
}

/* Carousel-Wrapper Abstand für Dots */
.references-carousel-wrap {
  position: relative;
  padding-bottom: 3rem;
}

/* Track: feste Höhe, Bilder übereinander */
.references-track {
  position: relative;
  height: 70vh;
  min-height: 320px;
  max-height: 800px;
}

/* Alle Bilder übereinander, unsichtbar */
.references-img {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
  border-radius: 20px;   /* statt var(--radius), auffälliger rund */
}

/* Aktives Bild sichtbar */
.references-img.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Pfeile als runde Buttons */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--main);
  border: none;
  border-radius: 50%;
  opacity: .85;
  transition: opacity var(--trans), background var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--white);
  background: #B0CB1F;   /* hellgrün – Farbton nach Wunsch anpassen */
}
.carousel-control-prev { left: 1rem; }
.carousel-control-next { right: 1rem; }
.carousel-control-prev:hover,
.carousel-control-next:hover { 
  color: var(--white);
  background: #D8E896;   /* etwas dunkleres Hellgrün beim Hover */
}
.carousel-control-prev i,
.carousel-control-next i { 
  color: var(--white); font-size: 1.2rem; 
  color: #000;            /* Pfeilsymbole schwarz statt weiß */
}

/* Punkte (Dots / Indikatoren) */
.carousel-indicators {
  bottom: -2.5rem;
  margin: 0;
  padding-bottom: 50px;
}
.carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--main);
  opacity: .35;
  border-top: none;
  border-bottom: none;
  margin: 0 5px;
  cursor: pointer;
  transition: opacity var(--trans), background var(--trans);
}
.carousel-indicators .active {
  background: var(--accent);
  opacity: 1;
}

/* ---- Mobil ---- */
@media (max-width: 767px) {
  #references { padding-top: 3.5rem; padding-bottom: 3rem; }
  .references-img   { height: 45vw; min-height: 220px; }
  .references-track { height: 45vw; min-height: 220px; max-height: none; }
  .carousel-control-prev { left: .4rem; }
  .carousel-control-next { right: .4rem; }
}

/* ---- Mobil + Hochformat: höher ---- */
@media (max-width: 767px) and (orientation: portrait) {
  .references-track,
  .references-img { height: 133vw; min-height: 320px; max-height: none; }
}