/* © 2026 Mike Pollow, Digitalroots. Alle Rechte vorbehalten. */
.buehne-standbild, .buehne-film {
  position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none;
  object-fit: cover; object-position: 50% 46%;
  animation: film-fahrt 48s ease-in-out infinite alternate;
}
@media (min-width: 1300px) and (max-width: 1679px) {
  .buehne-standbild, .buehne-film { scale: 1.16; }
}
.buehne-film { opacity: 0; transition: opacity 900ms ease; }
.buehne-film.spielt { opacity: 1; }
@keyframes film-fahrt {
  from { transform: scale(1.07) translate3d(0, .6%, 0); }
  to { transform: scale(1) translate3d(0, 0, 0); }
}
.film .regen { opacity: .38; }
.film .buehne-schleier {
  background:
    linear-gradient(90deg, rgba(4, 9, 10, .84) 0%, rgba(4, 9, 10, .58) 34%, rgba(4, 9, 10, .18) 50%, rgba(4, 9, 10, .4) 70%, rgba(4, 9, 10, .52) 100%),
    linear-gradient(180deg, rgba(4, 9, 10, .45) 0%, rgba(4, 9, 10, 0) 20%, rgba(4, 9, 10, 0) 72%, rgba(4, 9, 10, .66) 100%);
}

.titel, .abschnitt-titel, .schluss-titel { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.titel { font-size: clamp(44px, 6vw, 86px); font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.abschnitt-titel { font-size: clamp(32px, 4vw, 56px); }
.schluss-titel { font-size: clamp(38px, 5.4vw, 74px); }

.knopf-voll {
  --s: 5px;
  clip-path: polygon(0 0, calc(100% - 2 * var(--s)) 0, calc(100% - 2 * var(--s)) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(2 * var(--s)), 100% calc(2 * var(--s)), 100% 100%, 0 100%);
}
.knopf-klein { --s: 4px; }
.film .neu { gap: 8px; }

.wurzelwerk { position: relative; padding: 150px 0 120px; }
.wurzelwerk .abschnitt-kopf { max-width: 640px; margin-bottom: 72px; }
.wurzelspur { position: relative; display: grid; gap: 92px; padding-left: 88px; }
.wurzelspur::before {
  content: ''; position: absolute; left: 10px; top: -24px; bottom: -40px; width: 2px;
  background: linear-gradient(180deg, rgba(108, 195, 204, .2) 0%, var(--gruenspan) 8%, rgba(108, 195, 204, .55) 78%, rgba(108, 195, 204, 0) 100%);
}
.wurzel-fluss {
  position: absolute; left: 7px; top: -24px; bottom: -40px; width: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 70%, transparent 100%);
}
.wurzel-fluss::before {
  content: ''; position: absolute; left: 0; right: 0; top: -72px; bottom: 0;
  background: repeating-linear-gradient(180deg, var(--gruenspan-hell) 0 8px, transparent 8px 72px);
  animation: fluss 2.2s linear infinite;
}
@keyframes fluss { to { transform: translateY(72px); } }
.trieb {
  --e: 0px; position: relative; margin-left: var(--e);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px 56px; align-items: center;
}
.trieb:nth-child(3) { --e: 56px; }
.trieb:nth-child(5) { --e: 28px; }
.trieb::before {
  content: ''; position: absolute; top: 33px; left: calc(-78px - var(--e)); width: calc(50px + var(--e)); height: 2px;
  background: linear-gradient(90deg, var(--gruenspan), rgba(108, 195, 204, .3));
}
.trieb::after {
  content: ''; position: absolute; top: 27px; left: -28px; width: 14px; height: 14px;
  background: var(--grund); border: 2px solid var(--gruenspan-hell); box-shadow: 0 0 16px rgba(108, 195, 204, .6);
}
.trieb-ort { font-size: 13px; font-weight: 600; color: var(--gruenspan-hell); }
.trieb h3 { margin: 10px 0 12px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; color: var(--tinte); }
.trieb-text p:not(.trieb-ort):not(.angabe) { font-size: 17px; max-width: 46ch; }
.trieb .tafel { justify-self: end; }
.trieb-verweis { margin-top: 20px; }
.tafel-app .tafel-zeile { font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.app-liste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.app-liste li { padding: 10px 12px; border: 1px solid var(--linie); background: rgba(108, 195, 204, .05); font-size: 13px; color: var(--gruenspan-hell); }

.stufen-rahmen { position: relative; }
.wurzelwerk, .ablauf, .schluss { overflow-x: clip; }
.geflecht { position: absolute; left: -40px; top: -40px; overflow: visible; pointer-events: none; }
.geflecht .stamm { fill: none; stroke: var(--gruenspan); stroke-width: 2; stroke-linecap: round; }
.geflecht .stamm-neben { fill: none; stroke: var(--gruenspan); stroke-opacity: .4; stroke-width: 1; }
.geflecht .stamm-fluss { fill: none; stroke: var(--gruenspan-hell); stroke-width: 4; stroke-dasharray: 4 46; animation: fluss-pfad 2.4s linear infinite; }
@keyframes fluss-pfad { to { stroke-dashoffset: -50; } }
.geflecht .wurzelchen { fill: none; stroke: var(--gruenspan); stroke-opacity: .5; stroke-width: 1.5; stroke-linejoin: round; }
.geflecht .wurzel-spitze { fill: var(--gruenspan-hell); opacity: .7; }
.geflecht .zweig { fill: none; stroke: var(--gruenspan); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.geflecht .knoten { fill: var(--grund); stroke: var(--gruenspan-hell); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(108, 195, 204, .6)); transform-box: fill-box; transform-origin: center; }
.geflecht-an::before, .geflecht-an .wurzel-fluss, .geflecht-an .trieb::before, .geflecht-an .trieb::after, .geflecht-an .stufen::before, .geflecht-an .stufen li::before { display: none; }
.bewegt .geflecht .zweig { stroke-dashoffset: 1; transition: stroke-dashoffset 650ms cubic-bezier(.23, 1, .32, 1) 80ms; }
.bewegt .geflecht .knoten { transform: scale(0); transition: transform 460ms cubic-bezier(.34, 1.56, .64, 1) 520ms; }
.bewegt .geflecht .zweig.da { stroke-dashoffset: 0; }
.bewegt .geflecht .knoten.da { transform: scale(1); }
.bewegt .auftritt { opacity: 0; transition: opacity 700ms cubic-bezier(.2, .7, .2, 1) var(--verzug, 0ms), transform 900ms cubic-bezier(.34, 1.4, .64, 1) var(--verzug, 0ms); }
.bewegt .auftritt.flutsch { transform: translateY(72px) scale(.97); }
.bewegt .auftritt.gleit-links { transform: translateX(-48px); }
.bewegt .auftritt.gleit-rechts { transform: translateX(56px); }
.bewegt .auftritt.da { opacity: 1; transform: none; }

.ablauf-raster { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px 96px; align-items: start; }
.ablauf-text { margin-top: 18px; font-size: 18px; max-width: 40ch; }
.stufen { list-style: none; margin: 8px 0 0; padding: 0 0 0 56px; position: relative; display: grid; gap: 36px; }
.stufen::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--gruenspan), rgba(108, 195, 204, .2)); }
.stufen li { position: relative; }
.stufen li::before { content: ''; position: absolute; left: -56px; top: 8px; width: 14px; height: 14px; background: var(--grund); border: 2px solid var(--gruenspan-hell); }
.stufen h3 { margin: 4px 0 6px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; color: var(--tinte); letter-spacing: -.02em; line-height: 1.1; }
.stufen p { font-size: 17px; max-width: 40ch; }

.film .schluss-innen { text-align: left; max-width: var(--breite); }
.film .schluss-titel { max-width: 15ch; }
.film .schluss p { margin: 24px 0 32px; max-width: 52ch; }

@media (max-width: 980px) {
  .trieb { grid-template-columns: minmax(0, 1fr); }
  .trieb .tafel { justify-self: start; max-width: 100%; overflow: hidden; }
  .ablauf-raster { grid-template-columns: 1fr; }
  .film .buehne-schleier { background: linear-gradient(180deg, rgba(4, 9, 10, .72) 0%, rgba(4, 9, 10, .5) 45%, rgba(4, 9, 10, .76) 100%); }
}
@media (max-width: 560px) {
  .wurzelspur { padding-left: 48px; gap: 64px; }
  .trieb, .trieb:nth-child(n) { --e: 0px; }
  .trieb::before { left: -38px; width: 10px; }
  .app-liste { grid-template-columns: minmax(0, 1fr); }
  .wurzelwerk { padding-top: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-bewegung='an']) .buehne-standbild, html:not([data-bewegung='an']) .buehne-film,
  html:not([data-bewegung='an']) .wurzel-fluss::before, html:not([data-bewegung='an']) .geflecht .stamm-fluss { animation: none; }
  html:not([data-bewegung='an']) .buehne-film { display: none; }
}
[data-bewegung='aus'] .buehne-standbild, [data-bewegung='aus'] .buehne-film, [data-bewegung='aus'] .wurzel-fluss::before, [data-bewegung='aus'] .geflecht .stamm-fluss { animation-play-state: paused; }
[data-hintergrund='neutral'] .buehne { background: #112524; }
[data-hintergrund='neutral'] .buehne > * { display: none; }
