/* Dispo-App – Jahreszeiten (1.76.0): Schnee, Blätter, Blüten, Samen; Bäume und Hügel je Jahreszeit; Eiszapfen, Schneekappe, Lichterkette;
   Funken zu Silvester. Nichts blinkt: Lichter leuchten ruhig, Teilchen fallen langsam (≥ 9 s), Funken verglimmen über ≥ 12 s.
   html.calm und „Bewegung reduzieren“ blenden alles Bewegte aus – stiller Schmuck bleibt. */
.login{position:relative}

/* ---------- Fallende Teilchen (Himmel, Hintergrund, Begrüßung) */
.sp-p{position:absolute;top:-18px;width:var(--s);height:var(--s);opacity:var(--o,.8);pointer-events:none;will-change:transform;
  animation-name:sp-fall;animation-timing-function:linear;animation-iteration-count:infinite}
.sp-p>b{display:block;width:100%;height:100%;animation-name:sp-sway;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-direction:alternate}
@keyframes sp-fall{from{transform:translateY(0)}to{transform:translateY(var(--fall,110vh))}}
@keyframes sp-sway{from{transform:translateX(calc(var(--sw,12px) * -1)) rotate(calc(var(--r,0deg) * -1))}to{transform:translateX(var(--sw,12px)) rotate(var(--r,0deg))}}
.k-flake>b{border-radius:50%;background:radial-gradient(circle,#fff 0 42%,rgba(255,255,255,.55) 66%,transparent 70%)}
.k-leaf>b{border-radius:0 85% 0 85%;background:var(--c);box-shadow:inset -1px -1px 0 rgba(0,0,0,.14)}
.k-petal>b{border-radius:50% 50% 50% 0;background:var(--c);box-shadow:inset -1px -1px 0 rgba(200,90,130,.18)}
.k-seed>b{border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.95) 0 18%,rgba(255,255,255,.45) 20% 55%,transparent 60%)}

/* ganze App: leise im Hintergrund (hinter den Karten) */
#saison-bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;--fall:calc(100vh + 40px)}
#saison-bg .k-flake>b{background:radial-gradient(circle,#fff 0 36%,#c9d9ec 56%,transparent 64%)}
#saison-bg .k-seed>b{background:radial-gradient(circle,#aab4c0 0 16%,rgba(170,180,192,.45) 18% 55%,transparent 60%)}
#saison-bg .sp-p{opacity:calc(var(--o,.8) * .75)}

/* ---------- Himmel: Bäume, Lichter, Eier, Vögel, Funken */
.sky-tree{position:absolute;width:calc(26px * var(--ts,1));transform:translateX(-50%);line-height:0;pointer-events:none}
.sky-tree.leaf{width:calc(24px * var(--ts,1))}
.sky-tree svg{display:block;width:100%;height:auto;overflow:visible}
#login .sky-tree{width:calc(44px * var(--ts,1))}#login .sky-tree.leaf{width:calc(40px * var(--ts,1))}
.lt-a{fill:#fff1c4}.lt-b{fill:#ff8a7a}.lt-c{fill:#ffd36b}.lt-d{fill:#9fe3a8}
.tr-lights,.werk-lights{filter:drop-shadow(0 0 2px rgba(255,214,140,.95))}
.tr-star{fill:#ffd65c;filter:drop-shadow(0 0 3px rgba(255,214,92,.9))}
.sky-eggs{position:absolute;inset:0;pointer-events:none}
.sky-egg{position:absolute;width:9px;height:12px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:var(--c);transform:translateX(-50%);box-shadow:inset -1px -2px 0 rgba(0,0,0,.14)}
#login .sky-egg{width:11px;height:14px}
.sky-bird{position:absolute;left:0;width:100%;height:0;animation:bird linear infinite}
.sky-bird svg{position:absolute;left:0;top:0;width:18px;height:6px}
@keyframes bird{from{transform:translateX(-6%)}to{transform:translateX(104%)}}
.sky-spark{position:absolute;bottom:16%;width:4px;height:4px;border-radius:50%;background:#ffd979;box-shadow:0 0 8px 2px rgba(255,210,110,.5);opacity:0;animation:spark ease-out infinite}
@keyframes spark{0%{opacity:0;transform:translateY(0)}25%{opacity:.85}100%{opacity:0;transform:translateY(-150px)}}
.sky-fall{overflow:hidden}

/* ---------- Begrüßung: Funken der Jahreszeit, danach rieselt es */
.ix-p.sea{background:var(--c);box-shadow:none;width:calc(var(--s) * 2);height:calc(var(--s) * 2);left:calc(var(--s) * -1);top:calc(var(--s) * -1)}
.ix-p.sea.k-leaf{border-radius:0 85% 0 85%}
.ix-p.sea.k-petal{border-radius:50% 50% 50% 0}
.ix-p.sea.k-flake{border-radius:50%;background:radial-gradient(circle,#fff 0 40%,rgba(255,255,255,.5) 65%,transparent 70%)}
.ix-p.sea.k-seed{border-radius:50%;background:radial-gradient(circle,#fff 0 18%,rgba(255,255,255,.45) 20% 55%,transparent 60%)}
.ix-fall{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;--fall:calc(100vh + 40px);opacity:0;animation:ixFallIn 1.6s ease forwards}
@keyframes ixFallIn{to{opacity:1}}

/* ---------- Tiefe im Hintergrund in den Farben der Jahreszeit (Markenfarbe bleibt in der großen Fläche) */
html[data-saison="fruehling"] #amb .amb-b{background:radial-gradient(closest-side,rgba(242,150,190,.14),transparent)}
html[data-saison="fruehling"] #amb .amb-c{background:radial-gradient(closest-side,rgba(120,200,120,.12),transparent)}
html[data-saison="sommer"] #amb .amb-b{background:radial-gradient(closest-side,rgba(255,196,60,.13),transparent)}
html[data-saison="sommer"] #amb .amb-c{background:radial-gradient(closest-side,rgba(40,190,200,.11),transparent)}
html[data-saison="herbst"] #amb .amb-b{background:radial-gradient(closest-side,rgba(214,120,40,.14),transparent)}
html[data-saison="herbst"] #amb .amb-c{background:radial-gradient(closest-side,rgba(170,70,40,.10),transparent)}
html[data-saison="winter"] #amb .amb-b{background:radial-gradient(closest-side,rgba(120,170,230,.16),transparent)}
html[data-saison="winter"] #amb .amb-c{background:radial-gradient(closest-side,rgba(170,160,230,.11),transparent)}

/* ---------- Leiste oben (Handy) und Menü (Rechner): Eiszapfen, Schneekappe, Lichterkette */
@media (max-width:980px){
  html[data-saison="winter"] #topbar::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px;pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12'%3E%3Cpath d='M0 0H64V2.5H61L59.5 8 58 2.5H49L47.8 6 46.6 2.5H38L36 11 34 2.5H24L22.8 7 21.6 2.5H12L10.2 10 8.4 2.5H0Z' fill='%23e8f2fc' fill-opacity='.95'/%3E%3C/svg%3E") 0 0/64px 12px repeat-x}
  html[data-fest="advent"] #topbar::after,html[data-fest="weihnachten"] #topbar::after{content:"";position:absolute;left:0;right:0;top:100%;height:14px;pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='14'%3E%3Cpath d='M0 2Q28 9 56 2Q84 9 112 2' stroke='%23384252' stroke-width='1.1' fill='none'/%3E%3Crect x='12.6' y='4.6' width='2.8' height='2' fill='%23384252'/%3E%3Cellipse cx='14' cy='9.2' rx='2.3' ry='3.1' fill='%23fff1c4'/%3E%3Crect x='40.6' y='4.6' width='2.8' height='2' fill='%23384252'/%3E%3Cellipse cx='42' cy='9.2' rx='2.3' ry='3.1' fill='%23ff7a6a'/%3E%3Crect x='68.6' y='4.6' width='2.8' height='2' fill='%23384252'/%3E%3Cellipse cx='70' cy='9.2' rx='2.3' ry='3.1' fill='%23ffd36b'/%3E%3Crect x='96.6' y='4.6' width='2.8' height='2' fill='%23384252'/%3E%3Cellipse cx='98' cy='9.2' rx='2.3' ry='3.1' fill='%238fe0a0'/%3E%3C/svg%3E") 0 0/112px 14px repeat-x;
    filter:drop-shadow(0 0 3px rgba(255,205,120,.75))}
}
@media (min-width:981px){
  html[data-saison="winter"] #nav::after{content:"";position:absolute;left:0;right:0;top:var(--sat,0px);height:12px;z-index:1;pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='12'%3E%3Cpath d='M0 0H80V5C72 5 70 9 64 9S56 5 50 6 40 10 33 9 24 5 18 6 8 10 0 7Z' fill='white' fill-opacity='.93'/%3E%3C/svg%3E") 0 0/80px 12px repeat-x}
  html[data-fest="advent"] #nav>.brand,html[data-fest="weihnachten"] #nav>.brand{position:relative}
  html[data-fest="advent"] #nav>.brand::after,html[data-fest="weihnachten"] #nav>.brand::after{content:"";position:absolute;left:4px;right:4px;bottom:-8px;height:14px;pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='14'%3E%3Cpath d='M0 2Q28 9 56 2Q84 9 112 2' stroke='%23c9d2dc' stroke-opacity='.6' stroke-width='1.1' fill='none'/%3E%3Cellipse cx='14' cy='9.2' rx='2.3' ry='3.1' fill='%23fff1c4'/%3E%3Cellipse cx='42' cy='9.2' rx='2.3' ry='3.1' fill='%23ff7a6a'/%3E%3Cellipse cx='70' cy='9.2' rx='2.3' ry='3.1' fill='%23ffd36b'/%3E%3Cellipse cx='98' cy='9.2' rx='2.3' ry='3.1' fill='%238fe0a0'/%3E%3C/svg%3E") 0 0/112px 14px repeat-x;
    filter:drop-shadow(0 0 3px rgba(255,205,120,.75))}
}

/* ---------- Ruhe: alles Bewegte weg, stiller Schmuck bleibt */
@media (prefers-reduced-motion:reduce){#saison-bg,.sky-fall,.sky-birds,.sky-sparks,.ix-fall{display:none}}
html.calm #saison-bg,html.calm .sky-fall,html.calm .sky-birds,html.calm .sky-sparks,html.calm .ix-fall{display:none}
