* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: Georgia, "Times New Roman", Times, serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 1.5rem;
}

.message {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 18vw, 13rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 0.92;
  color: #0a0a0a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05),
               0 2px 2px rgba(0, 0, 0, 0.04),
               0 4px 6px rgba(0, 0, 0, 0.04),
               0 8px 12px rgba(0, 0, 0, 0.03),
               0 16px 24px rgba(0, 0, 0, 0.02);
  animation: fade-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Animated loading dots — opacity only, so no layout shift */
.dots {
  display: inline;
}

/*
 * All dots share the SAME 2.4s duration and start time (no per-dot delay),
 * so the cycle restarts in perfect sync. Each dot fades in at a later point
 * in the timeline, stays lit while the others catch up (the pause with all
 * three visible), then they all reset together for the next loop.
 */
.dot {
  opacity: 0;
  animation: 2.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
  animation-name: dot-1;
}

.dot:nth-child(2) {
  animation-name: dot-2;
}

.dot:nth-child(3) {
  animation-name: dot-3;
}

@keyframes dot-1 {
  0% {
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes dot-2 {
  0%,
  18% {
    opacity: 0;
  }
  30%,
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes dot-3 {
  0%,
  36% {
    opacity: 0;
  }
  48%,
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

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

.footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
}

.footer a {
  color: #000000;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Impressum page — override homepage flex centering */
body.page {
  display: block;
  justify-content: normal;
  align-items: normal;
  text-align: left;
  padding: 0;
}

.impressum {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

@media (max-width: 600px) {
  .impressum {
    padding: 20px;
  }
}

.impressum h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

.impressum h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.impressum section {
  margin-bottom: 1.75rem;
}

.impressum p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.impressum a {
  color: #000000;
  overflow-wrap: anywhere;
}

.back {
  display: inline-block;
  margin-top: 1.5rem;
  color: #000000;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}
