* { margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* alte Edge */
    user-select: none;
}

body{
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at bottom, #03040a 0%, #01010a 55%, #000 100%);
  color: #fff;
  font-family: "Google Sans", sans-serif;

  /* ✅ Maus-Cursor verstecken */
  cursor: none;
}

canvas{
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Subtiler Maus-Glow */
.mouse-glow{
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(120, 210, 255, 0.18) 0%,
    rgba(170, 120, 255, 0.08) 30%,
    rgba(0,0,0,0) 70%
  );
  mix-blend-mode: screen;
  opacity: 0.95;
}

.vignette{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 55%, rgba(255,255,255,0.02), rgba(0,0,0,0) 55%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 88%);
}

/* ✅ Fixer Titel oben */
.topbar{
    opacity: 0;
  position: fixed;
  top: 180px; /* ⬅ Titel weiter runter */
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* Wird per JS aktiviert */
.topbar.visible{
  opacity: 1;
}

.topbar h1{
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.05;

  background: linear-gradient(90deg, #b5f1ff, #d6b6ff, #a0ecfd);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: titleShift 8s linear infinite;
  text-shadow: 0 0 24px rgba(120,210,255,0.08);
}

@keyframes titleShift{
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Bühne mittig (Text bleibt mittig, Titel unabhängig) */
.stage{
  position: relative;
  z-index: 2;
  height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 5.2rem; /* Platz für topbar */
}

/* Wolken-Rahmen + Inhalt */
.stage{
  width: 100vw;
}

.stage::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Wolkenrahmen Container */
.cloud-frame{
  position: absolute;
  width: min(980px, 94vw);
  aspect-ratio: 1.9 / 1;
  inset: auto;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.cloud-glow{
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%,
    rgba(120,210,255,0.55),
    rgba(170,120,255,0.35),
    rgba(120,210,255,0.55)
  );
  background-size: 220% 220%;
  animation: drift 10s ease-in-out infinite;

  -webkit-mask-image: url("cloud.png");
  mask-image: url("cloud.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;

  filter:
    drop-shadow(0 0 18px rgba(120,210,255,0.22))
    drop-shadow(0 0 42px rgba(170,120,255,0.14));
  opacity: 0.95;
}

.cloud-line{
  position: absolute;
  inset: 0;
  background: rgba(210, 240, 255, 0.34);

  -webkit-mask-image: url("cloud.png");
  mask-image: url("cloud.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;

  filter: drop-shadow(0 0 10px rgba(120,210,255,0.18));
  opacity: 0.62;
  animation: pulse 4.8s ease-in-out infinite;
}

@keyframes drift{
  0%   { background-position: 0% 30%; }
  50%  { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}
@keyframes pulse{
  0%,100% { opacity: 0.50; }
  50%     { opacity: 0.78; }
}

/* ✅ Textbereich: mittig, aber linksbündig */
.type-area{
  position: relative;
  width: min(860px, 90vw);
  height: min(52vh, 520px);
  padding: clamp(1.1rem, 2.8vw, 2rem);
  z-index: 3;

  /* Inhalt linksbündig, trotzdem mittig platziert */
  display: grid;
  align-items: start;
  justify-items: stretch;
}

.typewriter{
  font-weight: 600;
  font-size: clamp(0.95rem, 1.55vw, 1.06rem);
  line-height: 1.62;
  color: rgba(240, 250, 255, 0.86);

  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 900ms ease, transform 900ms ease;

  /* ❌ Kein Scrollen mehr */
  overflow: hidden;
  max-height: none;
}

.typewriter.is-live{
  opacity: 1;
  transform: translateY(0);
}

/* ✅ Dünner Cursor (1px Line) */
.cursor{
  display: inline-block;
  width: 1px;
  height: 1.2em;
  background: rgba(190, 245, 255, 0.9);
  margin-left: 6px;
  transform: translateY(2px);
  animation: blink 900ms steps(1) infinite;
}
@keyframes blink{ 50% { opacity: 0; } }

/* Audio Gate */
.audio-gate{
  position: fixed;
  inset: 0;
  z-index: 6;
  border: 0;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.88);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  cursor: pointer; /* Gate soll klickbar sein */
  backdrop-filter: blur(6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.audio-gate.hidden{
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

/* Cursor auch auf Gate verstecken? (optional)
.audio-gate{ cursor: none; }
*/
