/* Saison-Figuren und Pausen-Band. Wird nur geladen, wenn gerade eine Saison oder Pause aktiv ist. */

/* Hinweisband für Pausen */
.pause{background:var(--lila);color:#fff;font-size:15px;line-height:1.4;text-align:center}
.pause .wrap{padding-top:9px;padding-bottom:9px;font-weight:600}

/* Bühne: liegt über der Seite, ist aber nicht anklickbar und verdeckt nichts dauerhaft */
.saison{position:fixed;inset:0;z-index:50;overflow:hidden;pointer-events:none}
.saison .figur{position:absolute}
.saison img{display:block;height:auto;max-width:none}

/* Laufende Figur (Rentier, Hase): quert das Bild in etwa 10 Sekunden, ruht dann außerhalb */
.figur.lauf{left:0;bottom:8px;transform:translateX(-270px);animation:stp-lauf 50s linear 2s infinite}
@keyframes stp-lauf{
  0%{transform:translateX(-270px)}
  20%{transform:translateX(calc(100vw + 40px))}
  100%{transform:translateX(calc(100vw + 40px))}
}
.wippe{display:flex;align-items:flex-end;animation:stp-wippe .55s ease-in-out infinite alternate}
@keyframes stp-wippe{from{transform:translateY(0)}to{transform:translateY(-5px)}}
.huepf img,.wippe img:last-child{transform:scaleX(-1)} /* Tiere schauen im Original nach links, hier laufen sie nach rechts */
.huepf{animation:stp-huepf .8s cubic-bezier(.3,.6,.5,1) infinite}
@keyframes stp-huepf{
  0%,100%{transform:translateY(0) rotate(0deg)}
  45%{transform:translateY(-44px) rotate(-6deg)}
  70%{transform:translateY(-14px) rotate(4deg)}
}

/* Schnee */
.flocke{position:absolute;top:-14px;width:9px;height:9px;border-radius:50%;background:#fff;
  border:1px solid rgba(var(--lila-rgb),.28);animation:stp-fall 14s linear infinite}
@keyframes stp-fall{
  0%{transform:translate(0,-14px)}
  50%{transform:translate(18px,52vh)}
  100%{transform:translate(-8px,108vh)}
}
.f1{left:4%;animation-delay:-2s;animation-duration:15s}
.f2{left:11%;animation-delay:-9s;animation-duration:12s;width:7px;height:7px}
.f3{left:19%;animation-delay:-5s;animation-duration:17s}
.f4{left:27%;animation-delay:-12s;animation-duration:13s;width:6px;height:6px}
.f5{left:35%;animation-delay:-7s;animation-duration:16s}
.f6{left:43%;animation-delay:-1s;animation-duration:14s;width:7px;height:7px}
.f7{left:51%;animation-delay:-10s;animation-duration:18s}
.f8{left:58%;animation-delay:-4s;animation-duration:12s;width:6px;height:6px}
.f9{left:66%;animation-delay:-13s;animation-duration:15s}
.f10{left:73%;animation-delay:-6s;animation-duration:17s;width:7px;height:7px}
.f11{left:80%;animation-delay:-11s;animation-duration:13s}
.f12{left:87%;animation-delay:-3s;animation-duration:16s;width:6px;height:6px}
.f13{left:93%;animation-delay:-8s;animation-duration:14s}
.f14{left:97%;animation-delay:-14s;animation-duration:18s;width:7px;height:7px}

/* Gespenster: schweben langsam von links nach rechts und wabern dabei */
.schwebe{left:0;opacity:0;transform:translateX(-110px);animation:stp-schwebe 30s linear infinite}
.schwebe img{animation:stp-wabern 3.2s ease-in-out infinite alternate}
.g1{top:16%;animation-delay:1s}
.g2{top:46%;animation-delay:-10s}
.g2 img{width:60px}
.g3{top:70%;animation-delay:-20s}
.g3 img{width:70px}
@keyframes stp-schwebe{
  0%{transform:translateX(-110px);opacity:0}
  8%{opacity:.9}
  92%{opacity:.9}
  100%{transform:translateX(calc(100vw + 20px));opacity:0}
}
@keyframes stp-wabern{from{transform:translateY(-10px) rotate(-3deg)}to{transform:translateY(10px) rotate(3deg)}}

@media(max-width:700px){
  .figur.lauf img{width:76px}
  .schwebe img{width:52px}
  .g2 img,.g3 img{width:44px}
}

/* Wer Bewegung reduziert hat, bekommt nur ein ruhiges Bild in der Ecke */
@media(prefers-reduced-motion:reduce){
  .flocke{display:none}
  .figur,.wippe,.huepf,.schwebe img{animation:none}
  .figur.lauf{left:auto;right:14px;bottom:10px;transform:none}
  .figur.lauf img{width:64px}
  .schwebe{left:auto;right:14px;top:auto;bottom:10px;transform:none;opacity:.9}
  .g2,.g3{display:none}
}
@media print{.saison{display:none}}
