/* Imhof WP – Effekte. Nur aktiv mit JavaScript (Klasse fx-js) und ohne prefers-reduced-motion. */

/* Hero setzt sich zusammen: Teile fliegen von links / oben / rechts / unten ein */
.fx-js .fx-in { opacity: 0; will-change: transform, opacity; }
.fx-js .fx-links { transform: translate3d(-90px, 0, 0); }
.fx-js .fx-rechts { transform: translate3d(90px, 0, 0); }
.fx-js .fx-oben { transform: translate3d(0, -60px, 0); }
.fx-js .fx-unten { transform: translate3d(0, 50px, 0); }
.fx-js .fx-zoom { transform: scale(1.12); }
.fx-js.fx-bereit .fx-in { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, .84, .24, 1); }
.fx-js.fx-bereit .fx-zoom { transition: opacity 1.4s ease, transform 2.6s cubic-bezier(.16, .84, .24, 1); }
.fx-js .fx-in.d1 { transition-delay: .1s; }
.fx-js .fx-in.d2 { transition-delay: .25s; }
.fx-js .fx-in.d3 { transition-delay: .4s; }
.fx-js .fx-in.d4 { transition-delay: .55s; }
.fx-js .fx-in.d5 { transition-delay: .75s; }
.fx-js .fx-in.d6 { transition-delay: 1s; }
.fx-js .fx-in.d7 { transition-delay: 1.3s; }

/* Einblenden beim Scrollen */
.fx-js .fx-reveal { opacity: 0; transform: translate3d(0, 34px, 0); }
.fx-js .fx-reveal.fx-von-links { transform: translate3d(-48px, 0, 0); }
.fx-js .fx-reveal.fx-von-rechts { transform: translate3d(48px, 0, 0); }
.fx-js .fx-reveal.ist-sichtbar { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s cubic-bezier(.16, .84, .24, 1); }
.fx-js .fx-reveal.ist-sichtbar.d1 { transition-delay: .08s; }
.fx-js .fx-reveal.ist-sichtbar.d2 { transition-delay: .16s; }
.fx-js .fx-reveal.ist-sichtbar.d3 { transition-delay: .24s; }
.fx-js .fx-reveal.ist-sichtbar.d4 { transition-delay: .32s; }
.fx-js .fx-reveal.ist-sichtbar.d5 { transition-delay: .4s; }
.fx-js .fx-reveal.ist-sichtbar.d6 { transition-delay: .48s; }

/* Sicherheitsnetz: falls fx.js nicht läuft, nach 2,5 s trotzdem alles zeigen */
.fx-js:not(.fx-bereit) .fx-in, .fx-js:not(.fx-bereit) .fx-reveal { animation: fx-notfall 0s linear 2.5s forwards; }
@keyframes fx-notfall { to { opacity: 1; transform: none; } }

/* Weniger Bewegung gewünscht: alles sofort statisch */
@media (prefers-reduced-motion: reduce) {
  .fx-js .fx-in, .fx-js .fx-reveal, .fx-js .fx-zoom { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .band__bild img { transform: none !important; }
}
