/* AUSFAHRT – Teaser "Im Rohbau" */

:root {
  --concrete: #161615;
  --concrete-2: #1e1e1c;
  --text: #d8d3c9;
  --dim: #8a867e;
  --faint: #625f59;
  --line: rgba(216, 211, 201, .14);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  /* Sichtbeton: Flecken, Schalungsraster, Vignette */
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 255, 255, .035), transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, .025), transparent 50%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 240px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 480px 100%,
    var(--concrete);
  background-attachment: fixed;
}
/* Hintergrund: Baustellen-Plane mit Licht dahinter – verschwommen, gedämpft, mit Schalungsraster */
.room { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; animation: flicker 9s infinite; }
.room img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center;
  transform-origin: right center;
  filter: blur(5px) saturate(.6) contrast(1.05) brightness(.5);
  opacity: .6; animation: breathe 24s ease-in-out infinite alternate;
}
.room::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 240px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 480px 100%;
}
.room::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(22, 22, 21, 0) 0%, rgba(22, 22, 21, .5) 70%, var(--concrete) 100%),
    linear-gradient(rgba(22, 22, 21, .2), rgba(22, 22, 21, .5));
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.025); } }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; } 42% { opacity: .82; } 43% { opacity: 1; } 44.5% { opacity: .9; } 45% { opacity: 1; }
  78% { opacity: 1; } 78.6% { opacity: .86; } 79.2% { opacity: 1; }
}

/* Feines Korn über allem */
.grain {
  position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
}

a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

main { position: relative; z-index: 1; }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Bühne ---------- */

.stage {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 20px; text-align: center; position: relative;
}
.whisper {
  margin: 0; font-size: clamp(15px, 2.4vw, 26px); font-weight: 300; letter-spacing: .06em; line-height: 1.2;
  color: var(--text); text-shadow: 0 2px 40px rgba(0, 0, 0, .6);
  animation: rise 2.4s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes rise { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } }
.cursor { margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes fade { from { opacity: 0; } }

/* Fortschritt */
.phases {
  list-style: none; margin: 36px 0 0; padding: 0; width: min(400px, 100%);
  display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 6px;
  animation: fade 2s 1.6s both;
}
.phase { text-align: left; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.phase::before { content: ""; display: block; height: 2px; margin-bottom: 7px; border: 1px dashed var(--faint); }
.phase b { display: block; font-weight: 400; color: inherit; }
.phase.is-done { color: var(--dim); }
.phase.is-done::before { background: var(--dim); border: 0; }
.phase.is-current { color: var(--text); }
.phase.is-current::before {
  border: 0;
  background: repeating-linear-gradient(-45deg, var(--text) 0 6px, transparent 6px 12px);
  background-size: 17px 17px; animation: tape 1.4s linear infinite;
}
@keyframes tape { to { background-position: 17px 0; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
