/* Übergang zwischen den Seiten: harter Wischer von unten nach oben.
   Browser ohne Unterstützung wechseln einfach normal die Seite. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: cut-out 0.22s steps(3) both;
}

::view-transition-new(root) {
  animation: cut-in 0.32s cubic-bezier(0.7, 0, 0.3, 1) both;
}

@keyframes cut-out {
  to { opacity: 0; }
}

@keyframes cut-in {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Sicherheitsnetz aus transitions.js, falls der Browser den Übergang nicht ausführt */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #0b0b0b;
  pointer-events: none;
  animation: curtain-fade 0.3s ease-out both;
}

@keyframes curtain-fade {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
