.leistungen-slider-container {
  width: 100%;
  max-width: 1400px;
  margin: 80px auto;
  position: relative;
}

.leistungen-slider-container .slide {
  position: relative;
  height: 450px;
}

.slide .item {
  width: 220px;
  height: 300px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  background-position: center;
  background-size: cover;
  transition: 0.6s;
}

/* Großes aktives Slide (in der Mitte) */
.slide .item:nth-child(1),
.slide .item:nth-child(2) {
  width: 100%;
  height: 100%;
  top: 0;
  transform: translate(0, 0);
  border-radius: 24px;
}

/* Die nächsten Slides rechts sichtbar */
.slide .item:nth-child(3) { left: 45%; }
.slide .item:nth-child(4) { left: calc(45% + 240px); }
.slide .item:nth-child(5) { left: calc(45% + 480px); }

/* Alle restlichen Slides ausblenden */
.slide .item:nth-child(n+6) {
  opacity: 0;
  pointer-events: none;
}

/* Content Styling */
.item .content {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  max-width: 420px;
  display: none;
}

.slide .item:nth-child(2) .content {
  display: block;
}

.content .name {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  animation: fadeIn 0.6s forwards;
}

.content .des {
  margin-top: 16px;
  font-size: 17px;
  opacity: 0;
  animation: fadeIn 0.6s 0.25s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Arrow Buttons */
.slider-buttons {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.slider-buttons button {
  padding: 8px 15px;
  border-radius: 10px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  font-size: 18px;
  margin: 0 6px;
  transition: 0.3s;
}

.slider-buttons button:hover {
  background: rgba(255,255,255,0.85);
  transform: scale(1.1);
}

/* Mobile Optimierung */
@media(max-width: 900px) {
  .slide .item:nth-child(3),
  .slide .item:nth-child(4),
  .slide .item:nth-child(5) {
    display: none;
  }
}

/* Desktop: Höhe reduzieren */
@media(min-width: 901px) {
  .leistungen-slider-container .slide {
    height: 330px; /* vorher 450px → jetzt kompakter */
  }

  .slide .item:nth-child(1),
  .slide .item:nth-child(2) {
    height: 330px !important; /* stellt sicher, dass das Hauptbild nicht zu hoch bleibt */
  }
}
