/* ============================================================
   Let's Do. – Animations & Scroll Effects
   Subtil, performant, respektiert prefers-reduced-motion
   ============================================================ */

/* ============================================================
   Scroll-gesteuerte Animationen (Intersection Observer)
   ============================================================ */

/* Basis-State: unsichtbar */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Aktiv-State: sichtbar */
[data-animate].is-visible {
  opacity: 1;
  transform: none !important;
}

/* Animations-Varianten */
[data-animate="fade-up"]    { transform: translateY(30px); }
[data-animate="fade-down"]  { transform: translateY(-30px); }
[data-animate="fade-left"]  { transform: translateX(30px); }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="scale-up"]   { transform: scale(0.92); }
[data-animate="fade-in"]    { /* nur opacity */ }

/* Verzögerungen */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* ============================================================
   Keyframe-Animationen
   ============================================================ */

/* Hero-Einblendung */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow  { animation: heroFadeIn 0.6s ease 0.1s both; }
.hero-title    { animation: heroFadeIn 0.7s ease 0.2s both; }
.hero-subtitle { animation: heroFadeIn 0.7s ease 0.35s both; }
.hero-actions  { animation: heroFadeIn 0.7s ease 0.5s both; }
.hero-badges   { animation: heroFadeIn 0.7s ease 0.65s both; }

/* Pulsieren für Akkzent-Elemente */
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(227, 6, 19, 0); }
}

.badge-dot {
  animation: pulse-red 2.5s ease-in-out infinite;
}

/* Glowing Border Effekt */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(227, 6, 19, 0.2); }
  50%       { border-color: rgba(227, 6, 19, 0.5); }
}

/* Floating-Effekt für Bilder */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Shimmer-Effekt für Skeleton-Loading */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    rgba(255,255,255,0.05) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

/* ============================================================
   Counter-Animation (via JS gesteuert)
   ============================================================ */
.stat-number {
  display: inline-block;
}

/* ============================================================
   Hover-Effekte
   ============================================================ */

/* Underline-Hover für Links */
.link-hover {
  position: relative;
  display: inline-block;
}

.link-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.link-hover:hover::after {
  width: 100%;
}

/* Card Lift */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   Scroll Progress Bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: calc(var(--nav-height) + 2px);
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), var(--color-brand-red-light));
  z-index: 1001;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(227, 6, 19, 0.5), 0 0 4px rgba(227, 6, 19, 0.3);
  border-radius: 1px;
}

/* ============================================================
   Page Transition
   ============================================================ */
.page-transition {
  animation: pageFadeIn 0.4s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Reduced Motion – Barrierefreiheit
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .badge-dot {
    animation: none;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-actions,
  .hero-badges {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
