/* ============================================
   V1 — Animations
   ============================================ */

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes word-rise {
  to { transform: translateY(0); }
}

/* Reveal-on-Scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  will-change: transform, opacity;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* Hero kinetic text — Wörter steigen rein, Descender bekommen Platz */
.kinetic-line {
  display: block;
  overflow: clip;
  overflow-clip-margin: 0.3em;
  padding-bottom: 0.15em;
}

.kinetic-line .word {
  display: inline-block;
  transform: translateY(110%);
  animation: word-rise 1s var(--ease-out) forwards;
}

.kinetic-line .word:nth-child(1) { animation-delay: 0.05s; }
.kinetic-line .word:nth-child(2) { animation-delay: 0.12s; }
.kinetic-line .word:nth-child(3) { animation-delay: 0.18s; }
.kinetic-line .word:nth-child(4) { animation-delay: 0.24s; }
.kinetic-line .word:nth-child(5) { animation-delay: 0.30s; }

.kinetic-line.line-2 .word:nth-child(1) { animation-delay: 0.30s; }
.kinetic-line.line-2 .word:nth-child(2) { animation-delay: 0.36s; }

/* Cursor blink — blinkt 5x, fadet dann sanft aus (C22). */
.cursor-blink {
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  background: var(--accent);
  margin-left: 0.05em;
  vertical-align: -0.06em;
  animation:
    blink 1.1s steps(1) 0s 5,
    cursor-fade 0.6s ease-out 5.5s forwards;
  border-radius: 3px;
}

@keyframes cursor-fade {
  to { opacity: 0; }
}

/* Hover-lift */
.lift {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.lift:hover { transform: translateY(-3px); }

/* Manifest Strike-In (E30) — Linie wird beim Reveal von links nach rechts
   durchgezogen, statt sofort als text-decoration zu erscheinen. Subtiler Wow. */
.manifest .strike {
  position: relative;
  text-decoration: none;
  color: var(--ink-faded);
}
.manifest .strike::after {
  content: "";
  position: absolute;
  left: 0;
  top: 52%;
  width: 0;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}
/* Wenn der Manifest-Container reveal'd ist (.reveal.in), Strike rein-ziehen */
.reveal.in .strike::after,
.in .strike::after {
  width: 100%;
  transition: width 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .manifest .strike { text-decoration: line-through; text-decoration-thickness: 2px; }
  .manifest .strike::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Globale Animations-/Transition-Drosselung statt komplettes Off,
     damit notwendige State-Changes (Focus, Open/Close) trotzdem rendern. */
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Sichtbarkeit erzwingen — sonst bleiben Elemente in Initialposition unsichtbar */
  .reveal { opacity: 1; transform: none; }
  .kinetic-line .word { transform: none; }
  .marquee { animation: none; }
  /* Pulsing / Glow-Looper komplett abschalten (auch außerhalb des !important-Caps) */
  .announce-hot, .announce-tag-hot, .hot-dot,
  .lf-result-bonus, .lf-bonus-tag, .funnel-discount-tag, .funnel-discount,
  .service-card::before, .service-card { animation: none !important; }
  /* Auto-Cycling-Banner: nur das erste Item zeigen */
  .announce-item { animation: none !important; opacity: 0; transform: none; }
  .announce-item:nth-child(1) { opacity: 1; }
  /* Service-Card-Entrance fixieren */
  .service-card { opacity: 1 !important; transform: none !important; }
}
