html.muveup-pwa-splash-active #loginForm {
  visibility: hidden;
  pointer-events: none;
}

html.muveup-pwa-splash-active,
html.muveup-pwa-splash-active body {
  background: #000000;
}

html.muveup-pwa-splash-exiting,
html.muveup-pwa-splash-exiting body {
  background: #ffffff;
  transition: background-color 0.45s ease;
}

#muveup-pwa-splash {
  --splash-dot-hero-size: min(68vw, 280px);
  --splash-dot-logo-size: 0.30em;
  --splash-dot-nudge-y-hero: 0.06em;
  --splash-dot-nudge-y-logo: 0.14em;
  --splash-word-nudge-x: 0.1em;
  --splash-word-nudge-y: -0.1em;
  --splash-dot-color: #E28600;
  --splash-dot-glow: 226 134 0;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  pointer-events: none;
}

/* Master: Logo ohne Kreis auf Schwarz */
#muveup-pwa-splash.is-master-brand {
  --splash-dot-color: transparent;
  --splash-dot-glow: 0 0 0;
  --splash-master-logo-scale: 1;
}

#muveup-pwa-splash.is-master-brand:not(.is-exiting) .muveup-pwa-splash-dot {
  box-shadow: none !important;
}

.muveup-pwa-splash-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1;
}

#muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-brand {
  position: relative;
  width: var(--splash-dot-hero-size);
  height: var(--splash-dot-hero-size);
}

.muveup-pwa-splash-word {
  color: #88589F;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  will-change: transform, opacity, max-width, filter;
}

.muveup-pwa-splash-word--left,
.muveup-pwa-splash-word--right {
  white-space: nowrap;
}

#muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-word {
  visibility: hidden;
  width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#muveup-pwa-splash:not(.is-pulse-complete):not(.is-exiting) .muveup-pwa-splash-word {
  animation: muveupWordTeaser 1.2s ease-in-out 0.65s 1;
}

.muveup-pwa-splash-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--splash-dot-hero-size);
  height: var(--splash-dot-hero-size);
  border-radius: 50%;
  background: var(--splash-dot-color);
  transform-origin: center center;
  will-change: transform, opacity, width, height, filter, box-shadow;
}

.muveup-pwa-splash-dot-letter {
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: calc(var(--splash-dot-hero-size) * 0.38);
  line-height: 1;
  transform: translateY(-0.03em);
  user-select: none;
  pointer-events: none;
  opacity: 0;
}

#muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-dot-letter {
  animation: muveupDotLetterIntro 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-dot-letter {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

/* Nur Master-Profil: Logo-PNG ohne Kreis (nicht das weiße „m“) */
#muveup-pwa-splash.is-master-brand .muveup-pwa-splash-dot-logo {
  width: calc(var(--splash-dot-hero-size) * var(--splash-master-logo-scale));
  height: calc(var(--splash-dot-hero-size) * var(--splash-master-logo-scale));
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  opacity: 0;
}

#muveup-pwa-splash.is-master-brand:not(.is-exiting) .muveup-pwa-splash-dot-logo {
  animation: muveupDotLetterIntro 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-dot-logo {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

#muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-dot {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--splash-dot-nudge-y-hero));
  margin: 0;
  animation:
    muveupDotIntro 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    muveupHeartbeat 1.2s ease-in-out 0.65s infinite;
}

#muveup-pwa-splash.is-pulse-complete:not(.is-exiting) .muveup-pwa-splash-dot {
  animation: none;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 48px rgb(var(--splash-dot-glow) / 0.35);
}

#muveup-pwa-splash.is-exiting.is-master-brand .muveup-pwa-splash-dot {
  background: #E28600;
  --splash-dot-glow: 226 134 0;
}

/* Impulswelle Schwarz auf Weiß aus der Punktmitte: weiche weiße Fläche, oranger Schimmer am Kamm, leises Echo */
#muveup-pwa-splash.is-exiting {
  animation: muveupSplashBgWhite 0.01s linear 1.3s forwards;
}

#muveup-pwa-splash.is-exiting::before,
#muveup-pwa-splash.is-exiting::after,
#muveup-pwa-splash.is-exiting .muveup-pwa-splash-ripple {
  content: '';
  position: absolute;
  z-index: 0;
  /* Dort, wo der Punkt pulsiert hat */
  left: 50%;
  top: calc(50% + var(--splash-dot-nudge-y-hero));
  /* Groß genug, dass auch die weiche Kante über die entfernteste Ecke kommt, aber nicht größer, sonst rast sie durchs Bild */
  width: 190vmax;
  height: 190vmax;
  margin: -95vmax 0 0 -95vmax;
  border-radius: 50%;
  transform: scale(0);
  will-change: transform, opacity;
  pointer-events: none;
}

#muveup-pwa-splash.is-exiting::before {
  /* Innen reines Weiß, breite weiche Kante über Warmweiß ins Transparente */
  background: radial-gradient(
    circle closest-side,
    #ffffff 0%,
    #ffffff 78%,
    #fff6ec 88%,
    rgb(255 236 214 / 0.55) 94%,
    rgb(255 236 214 / 0) 100%
  );
  animation: muveupWave 1.15s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

#muveup-pwa-splash.is-exiting::after {
  /* Warmer oranger Schimmer genau auf der weichen Kante, kein harter Ring */
  background: radial-gradient(
    circle closest-side,
    rgb(255 170 80 / 0) 80%,
    rgb(255 170 80 / 0.32) 91%,
    rgb(255 170 80 / 0.16) 96%,
    rgb(255 170 80 / 0) 100%
  );
  animation:
    muveupWave 1.15s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards,
    muveupWaveRingFade 1.15s linear 0.2s forwards;
}

.muveup-pwa-splash-ripple {
  display: none;
}

/* Echo läuft hinter dem Kamm über das Weiß, daher ein sehr heller Grauton */
#muveup-pwa-splash.is-exiting .muveup-pwa-splash-ripple {
  display: block;
  background: radial-gradient(
    circle closest-side,
    rgb(0 0 0 / 0) 90%,
    rgb(0 0 0 / 0.04) 97%,
    rgb(0 0 0 / 0) 100%
  );
  animation:
    muveupWaveRing 1.15s cubic-bezier(0.4, 0, 0.2, 1) 0.36s forwards,
    muveupWaveRingFade 1.15s linear 0.36s forwards;
}

#muveup-pwa-splash.is-exiting.is-exiting-fade {
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-brand {
  width: auto;
  height: auto;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-dot {
  position: static;
  left: auto;
  top: auto;
  margin-top: var(--splash-dot-nudge-y-logo);
  animation: muveupDotSettle 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Master pulsiert nur mit dem Logo: kein großer oranger Kreis beim Exit, der Punkt erscheint direkt klein in der Wortmarke */
#muveup-pwa-splash.is-exiting.is-master-brand .muveup-pwa-splash-dot {
  width: var(--splash-dot-logo-size);
  height: var(--splash-dot-logo-size);
  box-shadow: none;
  opacity: 0;
  animation: muveupDotLetterIntro 0.4s ease-out 0.5s forwards;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-word {
  visibility: visible;
  animation: none;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-word--left {
  max-width: none;
  overflow: visible;
  animation: muveupWordRevealLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

#muveup-pwa-splash.is-exiting .muveup-pwa-splash-word--right {
  max-width: none;
  overflow: visible;
  animation: muveupWordRevealRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

@keyframes muveupWave {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Nur zwei Keyframes, sonst wirkt die Easing-Kurve je Abschnitt und der Ring läuft der Fläche davon */
@keyframes muveupWaveRing {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes muveupWaveRingFade {
  0%,
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes muveupSplashBgWhite {
  to {
    background: #ffffff;
  }
}

@keyframes muveupDotLetterIntro {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes muveupDotIntro {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    filter: brightness(1.15);
    box-shadow: 0 0 0 rgb(var(--splash-dot-glow) / 0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 48px rgb(var(--splash-dot-glow) / 0.35);
  }
}

@keyframes muveupHeartbeat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 48px rgb(var(--splash-dot-glow) / 0.35);
  }
  12% {
    transform: translate(-50%, -50%) scale(1.22);
    filter: brightness(1.08);
    box-shadow: 0 0 64px rgb(var(--splash-dot-glow) / 0.5);
  }
  24% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 48px rgb(var(--splash-dot-glow) / 0.35);
  }
  36% {
    transform: translate(-50%, -50%) scale(1.1);
    filter: brightness(1.04);
    box-shadow: 0 0 56px rgb(var(--splash-dot-glow) / 0.42);
  }
  48% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 48px rgb(var(--splash-dot-glow) / 0.35);
  }
}

@keyframes muveupWordTeaser {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.12;
  }
}

@keyframes muveupDotSettle {
  from {
    width: var(--splash-dot-hero-size);
    height: var(--splash-dot-hero-size);
    transform: none;
    box-shadow: 0 0 48px rgb(var(--splash-dot-glow) / 0.35);
    filter: brightness(1);
  }
  to {
    width: var(--splash-dot-logo-size);
    height: var(--splash-dot-logo-size);
    transform: none;
    box-shadow: none;
    filter: brightness(1);
  }
}

@keyframes muveupWordRevealLeft {
  from {
    opacity: 0;
    transform: translateX(-12%) scale(0.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate(calc(-1 * var(--splash-word-nudge-x)), var(--splash-word-nudge-y)) scale(1);
    filter: blur(0);
  }
}

@keyframes muveupWordRevealRight {
  from {
    opacity: 0;
    transform: translateX(12%) scale(0.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate(var(--splash-word-nudge-x), var(--splash-word-nudge-y)) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #muveup-pwa-splash {
    background: #ffffff;
    transition: none;
  }

  html.muveup-pwa-splash-active,
  html.muveup-pwa-splash-active body {
    background: #ffffff;
  }

  #muveup-pwa-splash:not(.is-pulse-complete):not(.is-exiting) .muveup-pwa-splash-word {
    animation: none;
  }

  #muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-brand {
    width: auto;
    height: auto;
  }

  #muveup-pwa-splash:not(.is-exiting) .muveup-pwa-splash-word {
    visibility: visible;
    width: auto;
  }

  .muveup-pwa-splash-dot {
    position: static;
    width: var(--splash-dot-logo-size);
    height: var(--splash-dot-logo-size);
    margin-top: var(--splash-dot-nudge-y-logo);
    transform: none;
    animation: none;
    box-shadow: none;
    filter: none;
  }

  .muveup-pwa-splash-dot-letter {
    display: none;
  }

  .muveup-pwa-splash-dot-logo {
    display: none;
  }

  #muveup-pwa-splash.is-master-brand .muveup-pwa-splash-dot {
    background: #E28600;
  }

  .muveup-pwa-splash-word {
    opacity: 1;
    max-width: none;
    overflow: visible;
    filter: none;
  }

  .muveup-pwa-splash-word--left {
    transform: translate(calc(-1 * var(--splash-word-nudge-x)), var(--splash-word-nudge-y));
  }

  .muveup-pwa-splash-word--right {
    transform: translate(var(--splash-word-nudge-x), var(--splash-word-nudge-y));
  }

  #muveup-pwa-splash.is-exiting .muveup-pwa-splash-dot {
    width: var(--splash-dot-logo-size);
    height: var(--splash-dot-logo-size);
    animation: none;
    box-shadow: none;
  }

  #muveup-pwa-splash.is-exiting .muveup-pwa-splash-word--left,
  #muveup-pwa-splash.is-exiting .muveup-pwa-splash-word--right {
    animation: none;
    opacity: 1;
    filter: none;
  }

  #muveup-pwa-splash.is-exiting {
    animation: none;
    transition: opacity 0.2s ease-out;
  }

  #muveup-pwa-splash.is-exiting::before,
  #muveup-pwa-splash.is-exiting::after {
    content: none;
    animation: none;
  }

  #muveup-pwa-splash.is-exiting .muveup-pwa-splash-ripple {
    display: none;
  }

  #muveup-pwa-splash.is-exiting.is-master-brand .muveup-pwa-splash-dot {
    opacity: 1;
    animation: none;
  }
}
