@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600&display=swap');

/* =========================================================
   SAG HALLO – INTRO TEST
   Dunkler Hintergrund + fließende Farben
   ========================================================= */

* {
  box-sizing: border-box;
}

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

body {
  background: #050509;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #050509;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Fließende Farbflächen */
.color-flow {
  position: absolute;
  width: 75vw;
  height: 75vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  pointer-events: none;
  animation: flowDown 4s cubic-bezier(.22,.61,.36,1) forwards;
}

.blue {
  top: -55%;
  left: -15%;
  background: #126ef2;
  animation-delay: 0.1s;
}

.purple {
  top: -60%;
  left: 20%;
  background: #8f18db;
  animation-delay: 0.35s;
}

.red {
  top: -55%;
  right: -20%;
  background: #9f1020;
  animation-delay: 0.6s;
}

@keyframes flowDown {
  0% {
    opacity: 0;
    transform: translateY(-35vh) scale(0.7);
  }
  20% {
    opacity: 0.65;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.55;
    transform: translateY(55vh) scale(1.35);
  }
}

/* Inhalt */
.intro-content {
  position: relative;
  z-index: 10;
  width: min(90%, 650px);
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Text */
.message {
  opacity: 0;
  transform: translateY(25px);
  animation: contentIn 1s ease forwards;
  animation-delay: 2.8s;
}

.message h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 25px rgba(0,0,0,0.4);
}

.emoji {
  margin-top: 22px;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.35));
}

.message p {
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  opacity: 0.9;
}

/* Button */
.enter-button {
  margin-top: 42px;
  padding: 17px 34px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: white;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: buttonIn 0.9s ease forwards;
  animation-delay: 3.5s;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.enter-button span {
  margin-left: 8px;
}

.enter-button:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 45px rgba(0,0,0,0.35);
}

.enter-button:active {
  transform: translateY(0) scale(0.98);
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Seitenwechsel */
.intro.leave {
  opacity: 0;
  transform: scale(1.04);
}

/* Mobile */
@media (max-width: 600px) {
  .color-flow {
    width: 120vw;
    height: 120vw;
    filter: blur(65px);
  }

  .message h1 {
    font-size: 2.7rem;
  }

  .emoji {
    font-size: 3.8rem;
  }

  .enter-button {
    font-size: 1.05rem;
    padding: 15px 28px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .color-flow,
  .message,
  .enter-button {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
