html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Responsive font-size for html root element */
/* Standard für große Displays (Stelen/Tablets) */
html {
  font-size: 24px;
}

/* Für mittlere Displays/Tablets */
@media (max-width: 1200px) {
  html {
    font-size: 24px;
  }
}

/* Für Smartphones */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Für sehr kleine Smartphones */
@media (max-width: 480px) {
  html {
    font-size: 9px;
  }
}

/*
 * Blazor-Error-UI: Default-Regeln aus dem Blazor-Template. Ohne diese
 * Regeln ist #blazor-error-ui permanent sichtbar ("An unhandled error has
 * occurred."), auch wenn gar kein Fehler vorliegt — die UI wird erst
 * durch JS-Klasse .dismiss versteckt und Blazor fuegt bei einem Fehler
 * die .show-Klasse hinzu.
 */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.gesture-hint-wiggle {
    animation: gesture-hint-wiggle 0.48s ease-in-out;
}

@keyframes gesture-hint-wiggle {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    18% { transform: translate3d(-0.22rem, 0, 0) rotate(-2deg); }
    36% { transform: translate3d(0.24rem, 0, 0) rotate(2deg); }
    54% { transform: translate3d(-0.16rem, 0, 0) rotate(-1deg); }
    72% { transform: translate3d(0.14rem, 0, 0) rotate(1deg); }
}

html.video-playing *,
html.video-playing *::before,
html.video-playing *::after {
    animation-play-state: paused !important;
    scroll-behavior: auto !important;
}

.terminal-feed--map-active *,
.terminal-feed--map-active *::before,
.terminal-feed--map-active *::after {
    animation-play-state: paused !important;
}

.terminal-feed:not(.terminal-feed--map-active) .company-map-shell,
.terminal-feed:not(.terminal-feed--map-active) .company-map-shell *,
.terminal-feed:not(.terminal-feed--map-active) .company-map-shell *::before,
.terminal-feed:not(.terminal-feed--map-active) .company-map-shell *::after {
    animation-play-state: paused !important;
}

.terminal-feed--map-active .feed-item.current .company-map-shell,
.terminal-feed--map-active .feed-item.current .company-map-shell *,
.terminal-feed--map-active .feed-item.current .company-map-shell *::before,
.terminal-feed--map-active .feed-item.current .company-map-shell *::after {
    animation-play-state: running !important;
}

/* Ein geöffnetes Overlay ist jetzt selbst der sichtbare Inhalt. Seine Entrance-
   Animationen dürfen laufen, während Feed und Karte dahinter pausiert bleiben. */
.terminal-feed--map-active .terminal-feed__active-overlay,
.terminal-feed--map-active .terminal-feed__active-overlay *,
.terminal-feed--map-active .terminal-feed__active-overlay *::before,
.terminal-feed--map-active .terminal-feed__active-overlay *::after,
html.video-playing .terminal-feed__active-overlay,
html.video-playing .terminal-feed__active-overlay *,
html.video-playing .terminal-feed__active-overlay *::before,
html.video-playing .terminal-feed__active-overlay *::after {
    animation-play-state: running !important;
}
