/* Globale Statusdarstellung ohne das grosse Livestream-CSS auf jeder Seite. */
.mtd-mobile-live-banner {
  display: none;
}

.mtd-mobile-live-banner[hidden] {
  display: none !important;
}

@media (max-width: 899px) {
  .mtd-mobile-live-banner:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgb(239 16 24 / 55%);
    background: linear-gradient(90deg, #a5080d, #ef1018, #a5080d);
    color: #fff;
    font-family: Rajdhani, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-align: center;
    text-decoration: none;
    animation: mtd-live-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes mtd-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.48; }
}

.mtd-custom-404-host {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(2rem, 5vh, 4.5rem) clamp(1.25rem, 5vw, 6rem);
  background: #080808;
  color: #fff;
}

.mtd-custom-404 {
  width: min(100%, 72rem);
  text-align: center;
}

.mtd-custom-404-code {
  margin: 0 0 2rem;
  color: #ef1018;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(7rem, 22vw, 13rem);
  font-weight: 800;
  line-height: 0.68;
  letter-spacing: 0.04em;
}

.mtd-custom-404 h1 {
  margin: 0;
  color: #fff;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
}

.mtd-custom-404-copy {
  max-width: 62rem;
  margin: 1.5rem auto 2rem;
  color: #b8b8c2;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.mtd-custom-404-copy p { margin: 0.8rem 0; }
.mtd-custom-404-copy strong { color: #fff; font-weight: 800; }

.mtd-custom-404-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid #ef1018;
  border-radius: 0.35rem;
  background: #ef1018;
  color: #fff;
  font-family: Rajdhani, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.mtd-custom-404-home:hover,
.mtd-custom-404-home:focus-visible {
  background: #fff;
  color: #080808;
}

.mtd-custom-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.mtd-custom-error-actions .mtd-custom-404-home { margin-top: 0; }
.mtd-custom-error-secondary {
  background: transparent;
  border: 1px solid #ff1018;
  color: #fff;
}

.mtd-custom-error-emoji {
  margin: -0.35rem 0 1rem;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.25em;
  animation: mtd-error-loading 1.4s ease-in-out infinite;
}

@keyframes mtd-error-loading {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}
