:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  color: #f5f5f5;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.message {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-size: clamp(12px, 0.55vw + 10px, 16px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
  opacity: 0.92;
}

.dots {
  display: inline-flex;
  width: 1.7em;
  margin-left: 0.14em;
  letter-spacing: normal;
}

.dot {
  opacity: 0;
  animation-duration: 4s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.dot-one {
  animation-name: dot-one;
}

.dot-two {
  animation-name: dot-two;
}

.dot-three {
  animation-name: dot-three;
}

/* 0–1 Sekunde: ein Punkt
   1–2 Sekunden: zwei Punkte
   2–3 Sekunden: drei Punkte
   3–4 Sekunden: keine Punkte */
@keyframes dot-one {
  0%,
  74.999% {
    opacity: 1;
  }

  75%,
  100% {
    opacity: 0;
  }
}

@keyframes dot-two {
  0%,
  24.999% {
    opacity: 0;
  }

  25%,
  74.999% {
    opacity: 1;
  }

  75%,
  100% {
    opacity: 0;
  }
}

@keyframes dot-three {
  0%,
  49.999% {
    opacity: 0;
  }

  50%,
  74.999% {
    opacity: 1;
  }

  75%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
    opacity: 1;
  }
}
