/* ==========================================
   SCROLL ANIMATION LIBRARY
   ========================================== */

/* Basis-Konfiguration */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
}

/* ==========================================
   FADE IN ANIMATION
   ========================================== */

.fade-in {
  opacity: 0;
}

.fade-in.active {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   SLIDE UP ANIMATION
   ========================================== */

.slide-up {
  opacity: 0;
  transform: translateY(50px);
}

.slide-up.active {
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   SLIDE IN FROM LEFT
   ========================================== */

.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
}

.slide-in-left.active {
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   SLIDE IN FROM RIGHT
   ========================================== */

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
}

.slide-in-right.active {
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   TYPEWRITER ANIMATION
   ========================================== */

.typewriter {
  overflow: hidden;
  border-right: 2px solid;
  white-space: nowrap;
  width: 0;
  opacity: 1;
}

.typewriter.active {
  animation: typing 3s steps(40, end) forwards,
             blink 0.75s step-end infinite;
}

.typewriter.active.no-cursor {
  animation: typing 3s steps(40, end) forwards;
  border-right: none;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: currentColor;
  }
}

/* ==========================================
   DURATION VARIANTEN
   ========================================== */

.duration-fast {
  animation-duration: 0.4s !important;
}

.duration-normal {
  animation-duration: 0.8s !important;
}

.duration-slow {
  animation-duration: 1.2s !important;
}

/* ==========================================
   DELAY VARIANTEN
   ========================================== */

.delay-100 {
  animation-delay: 0.1s !important;
}

.delay-200 {
  animation-delay: 0.2s !important;
}

.delay-300 {
  animation-delay: 0.3s !important;
}

.delay-400 {
  animation-delay: 0.4s !important;
}

.delay-500 {
  animation-delay: 0.5s !important;
}

/* ==========================================
   UTILITY KLASSEN
   ========================================== */

/* Sofort sichtbar ohne Animation */
.no-animation {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}