/* © 2026 Mike Pollow, Digitalroots. Alle Rechte vorbehalten. */
.mono { font-family: var(--mono); letter-spacing: .01em; }

.buehne { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--grund); }
.buehne-bild {
  position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none;
  object-fit: cover; object-position: 50% 42%;
  animation: buehne-drift 38s ease-in-out infinite alternate;
}
@keyframes buehne-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1) translate3d(-1.2%, .8%, 0); }
}
.regen {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .72;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .34) 44%, #000 64%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .34) 44%, #000 64%, #000 100%);
}
.buehne-schleier {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 10, .86) 0%, rgba(4, 9, 10, .62) 38%, rgba(4, 9, 10, .3) 62%, rgba(4, 9, 10, .55) 100%),
    linear-gradient(180deg, rgba(4, 9, 10, .4) 0%, rgba(4, 9, 10, 0) 22%, rgba(4, 9, 10, 0) 70%, rgba(4, 9, 10, .7) 100%);
}
.buehne::after {
  content: ''; position: absolute; inset: 0; background: rgba(5, 10, 11, .6);
  opacity: 0; transition: opacity 600ms ease;
}
.tief .buehne::after { opacity: 1; }

.held { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--kopf-hoehe) + 64px) 0 64px; }
.held-raster { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.kennung {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--gruenspan-hell); letter-spacing: .02em;
}
.quadrat { width: 9px; height: 9px; background: var(--gruenspan); box-shadow: 0 0 12px rgba(108, 195, 204, .7); }

.titel {
  position: relative;
  margin: 24px 0 24px;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(40px, 5.5vw, 78px); line-height: 1.02; letter-spacing: -.045em;
  color: var(--tinte);
}
.titel .zeile { display: block; }
.pixel-leinwand { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; }
.pixel-vor [data-pixelaufbau] { opacity: 0; animation: pixel-notfall 0s 3s forwards; }
.pixel-vor main :is(h1, h2, h3):not(.rubrik):not(.titel) { opacity: 0; animation: pixel-notfall 0s 3s forwards; }
@keyframes pixel-notfall { to { opacity: 1; } }

.unterzeile { font-size: 20px; font-weight: 500; line-height: 1.5; max-width: 46ch; color: var(--text); }

.merkmale { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.merkmale li {
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--gruenspan-hell);
  border: 1px solid var(--linie); background: rgba(5, 11, 12, .62); padding: 8px 12px;
}

.aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.aktionen.mitte { justify-content: center; }

.neu { margin-top: 24px; display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--text); }
.neu .puls { align-self: center; flex: 0 0 auto; }
.neu .mono { color: var(--gruenspan-hell); font-weight: 600; font-size: 13px; }
.puls { width: 8px; height: 8px; background: var(--gruenspan); animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .25; } }

.aufnahme { position: relative; margin: 0; justify-self: end; width: min(100%, 470px); display: grid; gap: 16px; }
.lichtbahnen { position: absolute; inset: -18% -4% -12% -14%; z-index: -1; pointer-events: none; overflow: hidden; }
.lichtbahnen i {
  position: absolute; left: -10%; width: 130%; height: 56px; border-radius: 56px;
  background: linear-gradient(90deg, rgba(108, 195, 204, 0), rgba(108, 195, 204, .5) 42%, rgba(169, 221, 226, .85) 52%, rgba(108, 195, 204, 0));
  filter: blur(16px); opacity: .5; transform: rotate(-24deg);
  animation: lichtbahn 16s ease-in-out infinite alternate;
}
.lichtbahnen i:nth-child(1) { top: 6%; }
.lichtbahnen i:nth-child(2) { top: 40%; height: 36px; opacity: .38; animation-delay: -6s; }
.lichtbahnen i:nth-child(3) { top: 72%; height: 84px; opacity: .26; animation-delay: -11s; }
@keyframes lichtbahn { from { translate: -5% 0; } to { translate: 5% 0; } }
[data-hintergrund='neutral'] .lichtbahnen { display: none; }
.hud { padding: 12px 14px; background: #0E1517; border: 1px solid rgba(108, 195, 204, .42); border-radius: 10px; box-shadow: 6px 6px 0 rgba(0, 0, 0, .5); }
.hud-kopf { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.hud-punkt { width: 8px; height: 8px; background: #E5484D; }
.hud-zeit { margin-left: auto; letter-spacing: .02em; color: var(--meta); font-variant-numeric: tabular-nums; }
.spektrogramm { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 3px; align-items: end; height: 72px; margin: 12px 0 10px; }
.spektrogramm i { display: block; height: calc(var(--h, .2) * 100%); border-radius: 1px; background: linear-gradient(0deg, rgba(108, 195, 204, .12), rgba(108, 195, 204, .85) 65%, var(--gruenspan-hell)); }
.hud-fuss { height: 2px; background: rgba(108, 195, 204, .18); }
.hud-fortschritt { display: block; height: 100%; width: var(--p, 0%); background: var(--gruenspan); }
.dokument { padding: 14px 18px 18px; background: #F3F7F6; color: #111613; border-radius: 4px; box-shadow: 6px 6px 0 rgba(0, 0, 0, .5); }
.dokument-kopf { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #4F5E5C; }
.dokument-zeile { margin: 0; min-height: 3.1em; font-size: 17px; line-height: 1.55; }
.dokument .schreibmarke { background: var(--patina); }
.dokument-text:empty::before { content: 'Der Text erscheint hier, am Cursor.'; color: #66746F; }
.aufnahme figcaption { justify-self: start; padding: 4px 8px; background: rgba(4, 10, 11, .78); font-family: var(--mono); font-size: 12px; color: var(--meta); }
.schreibmarke { display: inline-block; width: 9px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--gruenspan); animation: blinken 1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }

.abschnitt-kopf { max-width: 640px; margin-bottom: 64px; }
.abschnitt-kopf.mitte { margin-inline: auto; text-align: center; }
.abschnitt-titel {
  font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.06; letter-spacing: -.04em; color: var(--tinte);
}
.abschnitt-kopf p { margin-top: 16px; font-size: 18px; }

.szenen { position: relative; padding: 140px 0 120px; }
.szenen-spur { position: relative; display: grid; gap: 110px; }
.wirbel {
  position: absolute; left: 50%; top: -24px; bottom: -24px; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(108, 195, 204, .55) 8%, rgba(108, 195, 204, .55) 92%, transparent);
}
.szene { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; }
.szene-text { grid-column: 1; justify-self: end; max-width: 440px; }
.szene .tafel { grid-column: 3; justify-self: start; }
.szene.gespiegelt .szene-text { grid-column: 3; justify-self: start; }
.szene.gespiegelt .tafel { grid-column: 1; grid-row: 1; justify-self: end; }
.knoten {
  grid-column: 2; grid-row: 1; justify-self: center; width: 14px; height: 14px;
  background: var(--grund); border: 2px solid var(--gruenspan); box-shadow: 0 0 18px rgba(108, 195, 204, .75);
}
.szene-kennung { font-size: 13px; color: var(--gruenspan-hell); font-weight: 600; }
.szene h3 {
  margin: 10px 0 12px; font-family: var(--sans); font-weight: 800;
  font-size: clamp(24px, 2.5vw, 32px); line-height: 1.12; letter-spacing: -.02em; color: var(--tinte);
}
.szene p { font-size: 17px; max-width: 44ch; }
.angabe { margin-top: 14px; font-size: 13px !important; color: var(--gruenspan-hell); }

.tafel {
  width: min(100%, 420px); padding: 16px 18px 18px;
  background: rgba(4, 10, 11, .82); border: 1px solid var(--linie);
}
.tafel-kopf { display: flex; justify-content: space-between; font-size: 12px; color: var(--meta); padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
.tafel-zeile { margin-top: 16px; color: var(--tinte); font-size: 16px; }
.tafel-zeile.warn { color: var(--gruenspan-hell); font-size: 14px; }
.tafel-werte { margin: 14px 0 0; display: grid; gap: 6px; }
.tafel-werte div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.tafel-werte dt { color: var(--meta); font-size: 12px; }
.tafel-werte dd { margin: 0; color: var(--tinte); }

.welle { display: flex; justify-content: space-between; height: 54px; align-items: center; margin-top: 16px; }
.welle i {
  display: block; width: 9px; height: 100%;
  background: repeating-linear-gradient(0deg, var(--gruenspan) 0 7px, transparent 7px 9px);
  transform: scaleY(.3); opacity: .8;
}
.welle i:nth-child(3n) { transform: scaleY(.62); }
.welle i:nth-child(4n+1) { transform: scaleY(.9); }
.welle i:nth-child(5n+2) { transform: scaleY(.45); }
.sichtbar .welle i { animation: welle 900ms ease-in-out infinite alternate; }
.welle i:nth-child(2n) { animation-delay: -300ms; }
.welle i:nth-child(3n) { animation-delay: -600ms; }
@keyframes welle { to { transform: scaleY(.18); } }

.tasten { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.taste {
  font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--tinte);
  padding: 10px 14px; border: 1px solid var(--linie-stark); border-bottom-width: 3px; background: rgba(108, 195, 204, .06);
}
.taste.breit { padding-inline: 34px; }
.plus { color: var(--meta); font-family: var(--mono); }
.sichtbar .taste { animation: druecken 2.4s var(--kurve) infinite; }
@keyframes druecken { 0%, 55%, 100% { transform: translateY(0); } 62%, 90% { transform: translateY(2px); border-bottom-width: 1px; } }

.karte {
  position: relative; height: 150px; margin-top: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(108, 195, 204, .09) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(108, 195, 204, .09) 0 1px, transparent 1px 22px);
}
.karte .weg {
  position: absolute; left: 12%; top: 64%; width: 62%; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gruenspan) 0 6px, transparent 6px 12px);
  transform: rotate(-18deg); transform-origin: left center; opacity: .7;
}
.karte .ort {
  position: absolute; left: 68%; top: 34%; width: 12px; height: 12px; background: var(--gruenspan-hell);
  box-shadow: 0 0 0 6px rgba(108, 195, 204, .18), 0 0 20px rgba(108, 195, 204, .8);
}
.sichtbar .karte .ort { animation: puls 1.4s ease-in-out infinite; }

.schild {
  position: relative; overflow: hidden; margin-top: 18px; height: 70px;
  display: grid; place-items: center; background: #EEF1EF; border: 2px solid #0B0F0C;
}
.schild-rand { position: absolute; left: 0; top: 0; bottom: 0; width: 26px; background: #1F4FA8; }
.schild-text { font-family: var(--mono); font-size: 28px; font-weight: 700; color: #0B0F0C; letter-spacing: .06em; padding-left: 20px; }
.abtast {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--gruenspan);
  box-shadow: 0 0 14px 4px rgba(108, 195, 204, .7); transform: translateX(-10px);
}
.sichtbar .abtast { animation: abtasten 2.6s var(--kurve-weich) infinite; }
@keyframes abtasten { 0% { transform: translateX(-10px); } 70%, 100% { transform: translateX(440px); } }

.ablauf { position: relative; padding: 120px 0; }
.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.schritte::before {
  content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 1px;
  background: linear-gradient(90deg, rgba(108, 195, 204, .6), rgba(108, 195, 204, .15));
}
.schritte li { position: relative; padding-top: 44px; }
.schritte li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; background: var(--grund);
  border: 2px solid var(--gruenspan);
}
.nummer { font-size: 13px; color: var(--gruenspan-hell); font-weight: 600; }
.schritte h3 { margin: 6px 0 8px; font-size: 22px; font-weight: 800; color: var(--tinte); letter-spacing: -.015em; }
.schritte p { font-size: 16px; max-width: 26ch; }

.schluss { padding: 140px 0 160px; }
.schluss-innen { text-align: center; max-width: 820px; }
.schluss-titel {
  font-family: var(--mono); font-weight: 700; font-size: clamp(34px, 5vw, 66px);
  line-height: 1.04; letter-spacing: -.045em; color: var(--tinte);
}
.schluss p { margin: 22px auto 34px; max-width: 52ch; font-size: 18px; }

.zeichen-zufall { color: var(--gruenspan); }

@media (max-width: 980px) {
  .held-raster { grid-template-columns: 1fr; }
  .aufnahme { justify-self: start; }
  .lichtbahnen { inset: -10% 0 -8% 0; }
  .wirbel { left: 7px; transform: none; }
  .szene, .szene.gespiegelt { grid-template-columns: 16px 1fr; gap: 0 24px; }
  .szene .knoten { grid-column: 1; grid-row: 1; align-self: start; margin-top: 4px; }
  .szene .szene-text, .szene.gespiegelt .szene-text { grid-column: 2; grid-row: 1; justify-self: start; }
  .szene .tafel, .szene.gespiegelt .tafel { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 24px; }
  .szenen-spur { gap: 72px; }
  .schritte { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .schritte::before { display: none; }
  .regen { -webkit-mask-image: none; mask-image: none; opacity: .38; }
  .buehne-schleier { background: linear-gradient(180deg, rgba(4, 9, 10, .7) 0%, rgba(4, 9, 10, .55) 40%, rgba(4, 9, 10, .78) 100%); }
}
@media (max-width: 560px) {
  .held { padding-top: calc(var(--kopf-hoehe) + 32px); }
  .unterzeile { font-size: 18px; }
  .schritte { grid-template-columns: 1fr; }
  .abschnitt-kopf.mitte { text-align: left; }
  .szenen { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-bewegung='an']) .buehne-bild { animation: none; }
}
[data-bewegung='aus'] .buehne-bild { animation: none; }
