/* ============================================
   APPLE-STYLE HORIZONTAL SCROLL
   Ergänzung für Confera - Funktionen Seite
   ============================================ */

/* Wrapper für horizontalen Scroll innerhalb von image-column */
.horizontal-scroll-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

/* Horizontaler Scroll Container */
.horizontal-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 20px 0;
  
  /* Scrollbar verstecken */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Einzelne Bilder im Scroll */
.horizontal-scroll-container .feature-screenshot {
  flex: 0 0 100%; /* Volle Breite des Containers */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horizontal-scroll-container .feature-screenshot:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Scroll Indicators (Dots) */
.scroll-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 0;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.3); /* Confera Pink mit Transparenz */
  transition: all 0.3s ease;
  cursor: pointer;
}

.scroll-dot:hover {
  background: rgba(236, 72, 153, 0.6);
  transform: scale(1.2);
}

.scroll-dot.active {
  background: #ec4899; /* Confera Pink */
  width: 24px;
  border-radius: 4px;
}

/* Navigation Arrows (optional - nur auf Desktop) */
.scroll-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.horizontal-scroll-wrapper:hover .scroll-nav-arrow {
  opacity: 1;
  pointer-events: all;
}

.scroll-nav-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.scroll-nav-arrow.prev {
  left: 10px;
}

.scroll-nav-arrow.next {
  right: 10px;
}

.scroll-nav-arrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid #1d1d1f;
  border-right: 2px solid #1d1d1f;
}

.scroll-nav-arrow.prev::before {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.scroll-nav-arrow.next::before {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* Fade-In Animation für horizontal scroll */
.horizontal-scroll-wrapper.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.horizontal-scroll-wrapper.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .horizontal-scroll-container {
    gap: 15px;
  }

  .horizontal-scroll-container .feature-screenshot {
    flex: 0 0 85%; /* Auf Mobile etwas schmaler für Peek-Effekt */
  }

  .scroll-nav-arrow {
    display: none; /* Pfeile auf Mobile ausblenden */
  }

  .scroll-indicators {
    gap: 6px;
  }

  .scroll-dot {
    width: 6px;
    height: 6px;
  }

  .scroll-dot.active {
    width: 18px;
  }
}

/* Tablet Anpassungen */
@media (min-width: 769px) and (max-width: 1024px) {
  .horizontal-scroll-container .feature-screenshot {
    flex: 0 0 90%;
  }
}

