/* ══════════════════════════════════════════
   ANIMATIONS — Keyframes · Reveal · Shimmer · Float · Reduced-Motion
   ══════════════════════════════════════════ */

/* ── HERO H1 ── */
h1 em {
  font-style: normal;
  background: linear-gradient(110deg, #00ace9 0%, #1d4d98 28%, rgba(255,255,255,0.88) 46%, #1d4d98 56%, #00ace9 80%, #1d4d98 100%);
  background-size: 260% auto;
  background-position: 100% center;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer-text 1.6s ease forwards;
  animation-delay: 1.5s;
}
@keyframes shimmer-text {
  to { background-position: -60% center; }
}

/* ── KI H2 SHIMMER (Hover, kehrt zu Weiß zurück) ── */
.ki-h2-text { display: inline; }
.ki-h2-text.shimmer-once {
  background: linear-gradient(105deg, #fff 0%, #fff 34%, #00ace9 43%, rgba(255,255,255,0.95) 50%, #1d4d98 57%, #fff 66%, #fff 100%);
  background-size: 250% auto;
  background-position: 150% center;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer-text-ki 1.8s ease forwards;
}

/* ── ABOUT SHIMMER auf „Klein" / „Erfahren" ── */
.about-shimmer { font-style: normal; }
.about-shimmer.shimmer-once {
  background: linear-gradient(105deg, #fff 0%, #fff 34%, #00ace9 43%, rgba(255,255,255,0.95) 50%, #1d4d98 57%, #fff 66%, #fff 100%);
  background-size: 250% auto;
  background-position: 150% center;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer-text-ki 1.8s ease forwards;
}

@keyframes shimmer-text-ki {
  to { background-position: -50% center; }
}

/* ── HERO EINBLEND-ANIMATIONEN ── */
.h1-line { display: inline-block; opacity: 0; transform: translateY(24px); animation: line-in 0.7s cubic-bezier(.22,.68,0,1.2) forwards; }
.h1-l1 { animation-delay: 0.2s; }
.h1-l2 { animation-delay: 0.45s; }
@keyframes line-in { to { opacity: 1; transform: translateY(0); } }

.hero-badge  { animation: fade-up-sm 0.6s ease forwards; opacity: 0; }
.hero-sub    { animation: fade-up-sm 0.6s ease forwards; animation-delay: 0.75s; opacity: 0; }
.hero-actions{ animation: fade-up-sm 0.6s ease forwards; animation-delay: 0.95s; opacity: 0; }
@keyframes fade-up-sm { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── DOT PULSE ── */
.dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.22,.68,0,1.2), transform .65s cubic-bezier(.22,.68,0,1.2); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.pop-in { opacity: 0; transform: scale(0.78); transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.pop-in.visible { opacity: 1; transform: scale(1); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .25s; }
.d4 { transition-delay: .33s; } .d5 { transition-delay: .42s; } .d6 { transition-delay: .50s; }

/* ── LOGO FLOAT ── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.about-visual img { animation: float 7s ease-in-out infinite; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .pop-in { opacity: 1; transform: none; transition: none; }
  .h1-line, .hero-badge, .hero-sub, .hero-actions { animation: none; opacity: 1; transform: none; }
  h1 em { animation: none; background-position: 0% center; }
  .dot { animation: none; }
  .about-visual img { animation: none; }
  .lab-console, .lab-console::before, .lab-console::after, .lab-node { animation: none; }
  .ki-h2-text.shimmer-once { animation: none; -webkit-text-fill-color: inherit; background: none; }
  .about-shimmer.shimmer-once { animation: none; -webkit-text-fill-color: inherit; background: none; }
}
