/* R52b teile: /fuchsware - sevDesk, label printing, digital organisation and the Japan box as single parts (patch_x52b_teile.py).
   Like ELSTER (x51-elster.css): the old picture stays (size, dark sticker) but is hidden; the parts stand on a stage that has the
   picture's size (like the ELSTER parts: contained in the figure box 172 px high, phone 148 px; the Japan drawing 260 px wide) and each moves
   a little, one after the other, when fuchs46.js puts .x50-lift on the figure (scrolled in once, then mouse / focus / tap), <= 2,4 s.
   Everything ends where it began (the resting picture = the old drawing). Calm modes and print: still. */
body.page-fuchsware .x52b-fig{--fw-w:100%;--fw-h:172px}
body.page-fuchsware .x52b-stage{position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:1;pointer-events:none;
  width:min(var(--fw-w),100%,calc(var(--fw-h) * var(--ar)));aspect-ratio:var(--ar)}
body.page-fuchsware .x52b-jpw{position:relative;display:block;width:100%;max-width:260px}
body.page-fuchsware .x52b-jpw>img.import-art{visibility:hidden}
body.page-fuchsware .x52b-jpw .x52b-stage{left:0;top:0;translate:none;width:100%;max-width:none;height:100%}
body.page-fuchsware .x52b-p{position:absolute;display:block;max-width:none;pointer-events:none;transform-origin:50% 50%}
body.page-fuchsware .x52b-clip{position:absolute;overflow:hidden;pointer-events:none}
body.page-fuchsware .x52b-clip>.x52b-p{max-width:none}
body.page-fuchsware .x52b-bogen{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
body.page-fuchsware .x52b-bg{fill:none;stroke:#1d2f4a;stroke-width:1.5;stroke-linecap:round;stroke-dasharray:5 5.5;opacity:.95}
body.page-fuchsware .x52b-pf{fill:none;stroke:#1d2f4a;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.page-fuchsware .x52b-sp{fill:none;stroke-width:1.9;stroke-linecap:round;opacity:0}
body.page-fuchsware .x52b-sp-ocker{stroke:#c9962f}
body.page-fuchsware .x52b-sp-blau{stroke:#3a59c4}
body.page-fuchsware .x52b-end{position:absolute;left:0;top:0;width:0;height:0;visibility:hidden}
body.page-fuchsware .x52b-fig{--x50-ease:cubic-bezier(.35,.1,.25,1)}
@media screen and (max-width:720px){body.page-fuchsware .x52b-fig{--fw-w:100%;--fw-h:148px}}
/* dark: the parts in their own colours with a fine light rim around the whole group (like the toolbox drawing, x52-japan.css) */
html[data-theme=dark] body.page-fuchsware .x52b-stage{filter:drop-shadow(0 0 .6px rgba(232,238,244,.9)) drop-shadow(0 0 .6px rgba(232,238,244,.7))!important/*dk:fest*/}
html[data-theme=dark] body.page-fuchsware .x52b-bg,html[data-theme=dark] body.page-fuchsware .x52b-pf{stroke:#dfe6ee/*dk:fest*/}

/* ---- movement (all on .x50-lift of the figure) ---- */
body.page-fuchsware .x50-lift .x52b-end{animation:x52b-end 2.4s linear both}
@keyframes x52b-end{0%{opacity:1}100%{opacity:.99}}

/* sevDesk: the bars fall and grow again one after another, the leaves nod, the papers slide a little */
body.page-fuchsware .x52b-p-balken1,body.page-fuchsware .x52b-p-balken2,body.page-fuchsware .x52b-p-balken3,body.page-fuchsware .x52b-p-balken4{transform-origin:50% 100%}
body.page-fuchsware .x50-lift .x52b-p-balken1{animation:x52b-bar 1.55s cubic-bezier(.3,.75,.3,1) 0s both}
body.page-fuchsware .x50-lift .x52b-p-balken2{animation:x52b-bar 1.55s cubic-bezier(.3,.75,.3,1) .22s both}
body.page-fuchsware .x50-lift .x52b-p-balken3{animation:x52b-bar 1.55s cubic-bezier(.3,.75,.3,1) .44s both}
body.page-fuchsware .x50-lift .x52b-p-balken4{animation:x52b-bar 1.55s cubic-bezier(.3,.75,.3,1) .66s both}
@keyframes x52b-bar{0%{scale:1 1}9%{scale:1 .06}62%{scale:1 1.06}80%{scale:1 .98}100%{scale:1 1}}
body.page-fuchsware .x52b-p-blatt{transform-origin:53% 100%}
body.page-fuchsware .x50-lift .x52b-p-blatt{animation:x52b-nick 1.9s var(--x50-ease) .25s both}
@keyframes x52b-nick{0%,100%{rotate:0deg}28%{rotate:3deg}55%{rotate:-2.2deg}78%{rotate:1deg}}
body.page-fuchsware .x50-lift .x52b-p-papier{animation:x52b-rutsch 1.9s var(--x50-ease) .5s both}
@keyframes x52b-rutsch{0%,100%{translate:0 0;rotate:0deg}40%{translate:-7% 5%;rotate:-1.5deg}70%{translate:-3% 2%;rotate:-.6deg}}

/* label printing: the label slides back into the slot and out again (clipped at the slot), the printer shivers, the strokes blink once */
body.page-fuchsware .x50-lift .x52b-p-etikett{animation:x52b-aus 2.2s cubic-bezier(.3,.6,.25,1) both}
@keyframes x52b-aus{0%{translate:0 0}12%{translate:0 -100%}20%{translate:0 -100%}70%{translate:0 2.5%}82%{translate:0 -1%}100%{translate:0 0}}
body.page-fuchsware .x50-lift .x52b-p-drucker{animation:x52b-ruettel 1.5s ease-in-out .35s both}
@keyframes x52b-ruettel{0%,100%{translate:0 0}12%{translate:.5% .3%}24%{translate:-.4% -.2%}36%{translate:.4% .3%}48%{translate:-.3% 0}60%{translate:.2% .2%}78%{translate:0 0}}
body.page-fuchsware .x50-lift .x52b-p-striche{animation:x52b-blink 2.2s ease both;transform-origin:50% 100%}
@keyframes x52b-blink{0%,66%{opacity:1;scale:1}72%{opacity:0;scale:.85}80%{opacity:1;scale:1.18}92%,100%{opacity:1;scale:1}}

/* organisation: the folders fan out, the clipboard tilts, the ticks come one after another (two ochre, then the green one) */
body.page-fuchsware .x52b-p-hinten{transform-origin:85% 100%}
body.page-fuchsware .x52b-p-vorne{transform-origin:20% 100%}
body.page-fuchsware .x52b-p-klemmbrett{transform-origin:50% 100%}
body.page-fuchsware .x50-lift .x52b-p-hinten{animation:x52b-faecher-h 2.1s var(--x50-ease) both}
body.page-fuchsware .x50-lift .x52b-p-vorne{animation:x52b-faecher-v 2.1s var(--x50-ease) .08s both}
body.page-fuchsware .x50-lift .x52b-p-klemmbrett{animation:x52b-brett 2s var(--x50-ease) .3s both}
@keyframes x52b-faecher-h{0%,100%{translate:0 0;rotate:0deg}38%,55%{translate:-3% -2.5%;rotate:-3.2deg}}
@keyframes x52b-faecher-v{0%,100%{translate:0 0;rotate:0deg}38%,55%{translate:2% 1.5%;rotate:2deg}}
@keyframes x52b-brett{0%,100%{rotate:0deg;translate:0 0}35%{rotate:1.4deg;translate:0 -1%}60%{rotate:.5deg;translate:0 -.5%}}
body.page-fuchsware .x52b-p-haken1,body.page-fuchsware .x52b-p-haken2,body.page-fuchsware .x52b-p-haken3{transform-origin:40% 70%}
body.page-fuchsware .x50-lift .x52b-p-haken1{animation:x52b-haken1 2.2s cubic-bezier(.3,.8,.3,1) both}
body.page-fuchsware .x50-lift .x52b-p-haken2{animation:x52b-haken2 2.2s cubic-bezier(.3,.8,.3,1) both}
body.page-fuchsware .x50-lift .x52b-p-haken3{animation:x52b-haken3 2.2s cubic-bezier(.3,.8,.3,1) both}
@keyframes x52b-haken1{0%{opacity:1;scale:1}9%,20%{opacity:0;scale:.4}34%{opacity:1;scale:1.22}44%,100%{opacity:1;scale:1}}
@keyframes x52b-haken2{0%{opacity:1;scale:1}9%,40%{opacity:0;scale:.4}54%{opacity:1;scale:1.22}64%,100%{opacity:1;scale:1}}
@keyframes x52b-haken3{0%{opacity:1;scale:1}9%,60%{opacity:0;scale:.4}74%{opacity:1;scale:1.2}86%,100%{opacity:1;scale:1}}

/* Japan: the plane flies the arc and is gone behind the table, the parcel lands, the stamp comes down, the print appears,
   the plane comes back from behind the boxes (keyframes x52b-flug: x52b-teile-bogen.css, made by _x52b_teile.py) */
body.page-fuchsware .x50-lift .x52b-p-flug{animation:x52b-flug 2.4s linear both}
body.page-fuchsware .x52b-p-pakete{transform-origin:50% 100%}
body.page-fuchsware .x50-lift .x52b-p-pakete{animation:x52b-wipp 1.2s var(--x50-ease) both}
@keyframes x52b-wipp{0%,100%{rotate:0deg;translate:0 0}30%{rotate:-1.6deg;translate:0 -2%}}
body.page-fuchsware .x50-lift .x52b-p-beleg{animation:x52b-beleg 1.4s var(--x50-ease) .1s both}
@keyframes x52b-beleg{0%,100%{translate:0 0;rotate:0deg}35%{translate:-5% -2%;rotate:-2.5deg}}
body.page-fuchsware .x52b-p-paket{transform-origin:50% 100%}
body.page-fuchsware .x50-lift .x52b-p-paket{animation:x52b-landen 2.4s cubic-bezier(.3,.7,.3,1) both}
@keyframes x52b-landen{0%,30%{translate:0 0;scale:1 1}35%{translate:0 -9%;scale:1 1.02}42%{translate:0 0;scale:1.04 .94}50%{scale:.99 1.01}58%,100%{translate:0 0;scale:1 1}}
body.page-fuchsware .x50-lift .x52b-sp-ocker{animation:x52b-funk 2.4s ease both}
@keyframes x52b-funk{0%,34%{opacity:0}40%{opacity:1}54%,100%{opacity:0}}
body.page-fuchsware .x52b-p-stempel{transform-origin:50% 95%}
body.page-fuchsware .x50-lift .x52b-p-stempel{animation:x52b-stempel 2.4s cubic-bezier(.3,.7,.2,1) both}
@keyframes x52b-stempel{0%,40%{translate:0 0;rotate:0deg;scale:1}50%{translate:0 -26%;rotate:-7deg;scale:1}57%{translate:0 4%;rotate:0deg;scale:1.03 .95}64%{translate:0 0;rotate:0deg;scale:1}100%{translate:0 0;rotate:0deg;scale:1}}
body.page-fuchsware .x50-lift .x52b-p-abdruck{animation:x52b-abdruck 2.4s ease both}
@keyframes x52b-abdruck{0%{opacity:1;scale:1}10%,55%{opacity:0;scale:1.15}62%{opacity:1;scale:.96}70%,100%{opacity:1;scale:1}}
body.page-fuchsware .x50-lift .x52b-sp-blau{animation:x52b-funk2 2.4s ease both}
@keyframes x52b-funk2{0%,56%{opacity:0}62%{opacity:1}78%,100%{opacity:0}}

/* calm: still (easier reading, less movement, reduced motion, print) */
html[data-read=on] body.page-fuchsware .x52b-fig .x52b-p,html[data-read=on] body.page-fuchsware .x52b-fig .x52b-sp,
html.motion-paused body.page-fuchsware .x52b-fig .x52b-p,html.motion-paused body.page-fuchsware .x52b-fig .x52b-sp{animation:none!important}
@media (prefers-reduced-motion:reduce){body.page-fuchsware .x52b-fig .x52b-p,body.page-fuchsware .x52b-fig .x52b-sp{animation:none!important}}
@media print{body.page-fuchsware .x52b-fig .x52b-p,body.page-fuchsware .x52b-fig .x52b-sp{animation:none!important}}
