/* Scroll-Maus Icon – generisches Styling & Animation */
.scroll-icon {
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  display: inline-block;
  position: relative;
  opacity: 1;
  transition: opacity 240ms ease, transform 240ms ease;
  will-change: transform, opacity;
}

.scroll-icon span {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scroll-wheel 1.4s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { transform: translate(-50%, 0); opacity: 0.95; }
  60% { transform: translate(-50%, 14px); opacity: 0.15; }
  100% { transform: translate(-50%, 0); opacity: 0.95; }
}

/* dezentes Schweben für das ganze Icon */
@keyframes scroll-float {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* Utility: ausgeblendet Zustand per JS */
.scroll-icon.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Kontrast auf hellen Hintergründen verbessern (optional) */
.scroll-icon.invert {
  border-color: rgba(0,0,0,0.8);
}
.scroll-icon.invert span {
  background: rgba(0,0,0,0.9);
}
