/* Background colour glows (black · red · gold) drift continuously left and
   right, each at its own pace, so the German flag colours move behind the
   sections. Applies on every screen size; switched off for visitors who ask
   their device for reduced motion. */
.orb {
  will-change: transform;
  animation: orb-drift-a 7s ease-in-out infinite alternate;
}
.orb:nth-of-type(2n)   { animation-name: orb-drift-b; animation-duration: 9s; animation-delay: -3s; }
.orb:nth-of-type(3n)   { animation-name: orb-drift-c; animation-duration: 6s; animation-delay: -1s; }
.orb:nth-of-type(4n+1) { animation-duration: 10s; animation-delay: -5s; }
.orb:nth-of-type(5n)   { animation-name: orb-drift-b; animation-duration: 8s; animation-delay: -6s; animation-direction: alternate-reverse; }

@keyframes orb-drift-a {
  0%   { transform: translate3d(-160px, 0, 0) scale(1); }
  50%  { transform: translate3d(30px, -40px, 0) scale(1.08); }
  100% { transform: translate3d(170px, 25px, 0) scale(.94); }
}
@keyframes orb-drift-b {
  0%   { transform: translate3d(170px, 15px, 0) scale(1.05); }
  50%  { transform: translate3d(-20px, 40px, 0) scale(.93); }
  100% { transform: translate3d(-170px, -25px, 0) scale(1.07); }
}
@keyframes orb-drift-c {
  0%   { transform: translate3d(0, -30px, 0) scale(.96); }
  33%  { transform: translate3d(150px, 20px, 0) scale(1.06); }
  66%  { transform: translate3d(-140px, 35px, 0) scale(1); }
  100% { transform: translate3d(60px, -20px, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

/* Heroes with a background video: the video already brings the movement.
   Keep those glows still so the browser can play the video smoothly at
   full speed (glows drifting over a video must be re-blended every frame). */
.zk-herovid ~ .orb { animation: none !important; will-change: auto; }
