/* Kleine Bewegungen, die den Inhalt begleiten. Ohne JavaScript bleibt alles sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  .motion-hero-ready .hero-copy > * {
    animation: motion-enter .75s cubic-bezier(.2,.7,.2,1) backwards;
  }

  .motion-hero-ready .hero-copy > :nth-child(2) { animation-delay: .07s; }
  .motion-hero-ready .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .motion-hero-ready .hero-copy > :nth-child(4) { animation-delay: .21s; }
  .motion-hero-ready .hero-copy > :nth-child(5) { animation-delay: .28s; }
  .motion-hero-ready .hero-visual {
    animation: motion-soft-appear .8s ease-out .12s backwards;
  }

  /* Erst beim Sichtbarwerden animieren; der Grundzustand ist immer sichtbar. */
  .motion-reveal.motion-in {
    animation: motion-enter .7s cubic-bezier(.2,.7,.2,1) backwards;
  }
  .motion-reveal.motion-soft.motion-in {
    animation-name: motion-soft-appear;
  }
  .help-grid > .motion-reveal.motion-in:nth-child(2) { animation-delay: .07s; }
  .help-grid > .motion-reveal.motion-in:nth-child(3) { animation-delay: .14s; }

  .button {
    transition: background .22s, color .22s, box-shadow .25s,
      transform .25s cubic-bezier(.2,.7,.2,1);
  }
  .button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px #04294620;
  }
  .help-card {
    transition: background .25s, border-color .25s, box-shadow .3s,
      transform .3s cubic-bezier(.2,.7,.2,1);
  }
  .help-card > .icon,
  .topic-icon,
  .topic h3,
  .social-item,
  .social-item .icon {
    transition: color .22s, background .22s, transform .25s;
  }
  .text-link {
    transition: color .22s, text-underline-offset .22s;
  }
  .expand-mark {
    transition: background .22s, border-color .22s;
  }
  .topic summary:focus-visible h3 { color: var(--blue); }
  .social-item:focus-visible .icon { transform: translateY(-2px); }

  @media (hover: hover) and (pointer: fine) {
    .button:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px #04294624;
    }
    .help-card:hover,
    .help-card:focus-within {
      transform: translateY(-4px);
      border-color: #ffffff75;
      background: #ffffff0a;
      box-shadow: 0 16px 30px #001a2c25;
    }
    .help-card:hover > .icon { transform: translateY(-2px) rotate(-4deg); }
    .topic summary:hover h3 { color: var(--blue); }
    .topic summary:hover .topic-icon { transform: translateY(-2px); }
    .topic summary:hover .expand-mark { border-color: var(--blue); }
    a.social-item:hover .icon { transform: translateY(-2px); }
    .text-link:hover { text-underline-offset: 8px; }
  }

  @keyframes motion-enter {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes motion-soft-appear {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media print {
  .motion-reveal,
  .motion-hero-ready .hero-copy > *,
  .motion-hero-ready .hero-visual {
    animation: none !important;
    opacity: 1 !important;
  }
}
