


[data-raeume="stapel"]{position:relative;z-index:0;isolation:isolate;transform-origin:50% 0}

[data-raeume="stapel"]::before{content:"";position:absolute;z-index:-1;inset:calc(env(safe-area-inset-top,0px) + 92px) clamp(10px,2vw,28px) 0;
  border-radius:var(--r-3);background:var(--grund-2);box-shadow:var(--haarlinie),var(--s-2);opacity:0;pointer-events:none}
[data-raeume="stapel"]+section{position:relative;z-index:1;background:var(--grund);border-radius:var(--r-3) var(--r-3) 0 0;
  box-shadow:var(--haarlinie),0 -30px 60px -40px rgba(0,0,0,.32)}
@keyframes rm-stapel{to{translate:0 32%;scale:.9;opacity:.5}}
@keyframes rm-stapel-karte{to{opacity:1}}



[data-raeume="faecher"]{position:relative}

.abschnitt:has(>.rand>[data-raeume="faecher"]){overflow-x:clip}
@keyframes rm-faecher{from{translate:var(--rm-dx,0) var(--rm-dy,0);rotate:var(--rm-dreh,0deg);scale:.92}}

@keyframes rm-faecher-handy{from{translate:var(--rm-seite,0) 0;rotate:var(--rm-dreh,0deg);scale:.94}}


@keyframes rm-fenster{from{clip-path:inset(0 var(--rm-rand) round var(--r-3))}to{clip-path:inset(0 0 round 0)}}
@keyframes rm-fenster-inhalt{from{translate:0 40px;scale:.97}}
[data-raeume="fenster"]{--rm-rand:clamp(12px,5vw,88px)}


@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    [data-raeume="stapel"]{view-timeline-name:--rm-stapel;view-timeline-inset:0;animation:rm-stapel linear both;animation-timeline:--rm-stapel;animation-range:exit-crossing 0% exit-crossing 80%}
    [data-raeume="stapel"]::before{animation:rm-stapel-karte linear both;animation-timeline:--rm-stapel;animation-range:exit-crossing 0% exit-crossing 45%}

    [data-raeume="faecher"]{view-timeline-name:--rm-faecher;view-timeline-inset:0}
    [data-raeume="faecher"].rm-bereit>*{animation:rm-faecher linear backwards;animation-timeline:--rm-faecher;animation-range:cover 12% cover 44%}

    
    [data-raeume="fenster"]{view-timeline-name:--rm-fenster;view-timeline-inset:0;animation:rm-fenster linear backwards;animation-timeline:--rm-fenster;animation-range:entry 0% entry 85%}
    [data-raeume="fenster"]>*{animation:rm-fenster-inhalt linear backwards;animation-timeline:--rm-fenster;animation-range:entry 0% entry 85%}
  }
  @media (prefers-reduced-motion:no-preference) and (max-width:760px){
    [data-raeume="faecher"].rm-bereit>*{animation-name:rm-faecher-handy;animation-timeline:view(0px);animation-range:entry 0% entry 90%}
  }
}


@supports not (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .rm-js [data-raeume="stapel"],.rm-js [data-raeume="stapel"]::before,.rm-js [data-raeume="faecher"].rm-bereit>*,
    .rm-js [data-raeume="fenster"]:not(.rm-offen),.rm-js [data-raeume="fenster"]:not(.rm-offen)>*{
      animation-duration:1s;animation-timing-function:linear;animation-fill-mode:both;animation-play-state:paused;
      animation-delay:calc(var(--rm,0) * -.999s)}
    .rm-js [data-raeume="stapel"]{animation-name:rm-stapel}
    .rm-js [data-raeume="stapel"]::before{animation-name:rm-stapel-karte}
    .rm-js [data-raeume="faecher"].rm-bereit>*{animation-name:rm-faecher}
    .rm-js [data-raeume="fenster"]:not(.rm-offen){animation-name:rm-fenster}
    .rm-js [data-raeume="fenster"]:not(.rm-offen)>*{animation-name:rm-fenster-inhalt}
  }
  @media (prefers-reduced-motion:no-preference) and (max-width:760px){
    .rm-js [data-raeume="faecher"].rm-bereit>*{animation-name:rm-faecher-handy}
  }
}


@media (max-width:600px){
  [data-raeume="stapel"]::before{inset:calc(env(safe-area-inset-top,0px) + 76px) 6px 0}
  @keyframes rm-stapel{to{translate:0 22%;scale:.94;opacity:.55}}
}
