/* ==========================================================================
   ANIMATIONS – MANGER TRANSPORTE (Unified Premium Final)
   ==========================================================================
   Enthält:
   - Fade, Slide, Zoom, Hover-Effekte
   - Utility-Klassen (.animate.fade-in etc.)
   - GPU-optimierte Bewegungen
   - Bewegungsreduktion für Barrierefreiheit
   ========================================================================== */

/* ===========================
   FADE / EINBLENDEN
   =========================== */

/* Sanftes Einblenden */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Einblenden von unten */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Einblenden von oben */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   SLIDE / REINFAHREN
   =========================== */

/* Von links */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Von rechts */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===========================
   ZOOM
   =========================== */

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* ===========================
   HOVER / INTERAKTION
   =========================== */

/* Leichtes Heben bei Hover */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Glüheffekt für Buttons */
.btn-glow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 12px rgba(79, 139, 255, 0.5);
  transform: scale(1.03);
}

/* ===========================
   WIEDERVERWENDBARE KLASSEN
   =========================== */

/* Beispiel: <div class="animate fade-in-up delay-2"></div> */
.animate.fade-in        { animation: fadeIn 0.6s ease forwards; }
.animate.fade-in-up     { animation: fadeInUp 0.6s ease forwards; }
.animate.fade-in-down   { animation: fadeInDown 0.6s ease forwards; }
.animate.slide-left     { animation: slideInLeft 0.6s ease forwards; }
.animate.slide-right    { animation: slideInRight 0.6s ease forwards; }
.animate.zoom-in        { animation: zoomIn 0.6s ease forwards; }
.animate.zoom-out       { animation: zoomOut 0.5s ease forwards; }

/* Verzögerungen */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ===========================
   GPU-OPTIMIERUNG
   =========================== */
.animate {
  will-change: transform, opacity;
}

/* ===========================
   BEWEGUNGSREDUKTION (Barrierefreiheit)
   =========================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


/* ===========================
   IN-VIEW AKTIVIERUNG
   =========================== */

/* Standard: Elemente sind unsichtbar, bis sie aktiv werden */
.animate {
  opacity: 0;
  transform: translateY(20px);
}

/* Sobald sichtbar im Viewport */
.animate.in-view {
  opacity: 1;
  transform: none;
  animation-play-state: running;
}


/* ===========================
   LIGHTBOX OVERLAY (Materiallager)
   =========================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox-overlay.visible {
  opacity: 1;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  transform: scale(1.03);
  transition: transform 0.25s ease;
}

.lightbox-overlay.visible .lightbox-image {
  transform: scale(1);
}

