/* prorender – Hero: Szenen, Animationen, Themenanzeige, Code-Fenster */
.hero { position: relative; background: var(--night); color: #fff; padding: clamp(130px, 14vw, 190px) 0 clamp(60px, 6vw, 90px); overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 600px at 80% 35%, rgba(124,140,255,.22), transparent 62%), radial-gradient(700px 500px at 95% 90%, rgba(111,227,240,.12), transparent 60%), var(--night); }
.stage { position: absolute; right: -2vw; top: 0; width: min(62vw, 960px); height: min(100%, 880px); z-index: -1; }
@keyframes blink { 50% { opacity: .35; } }
.hero-inner { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.hero-inner > * { max-width: min(680px, 58%); }
.hero-inner > h1 { max-width: min(860px, 72%); }
.eyebrow { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.72) !important; max-width: 52ch; }
.eyebrow i { width: 30px; height: 1px; background: var(--g); flex: none; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 8rem); line-height: .94; color: #fff; margin: 26px 0 28px; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: rgba(255,255,255,.78); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(50px, 7vw, 100px); border-top: 1px solid var(--line-d); }
.specs div { padding: 20px 20px 26px 0; }
.specs div + div { padding-left: 20px; border-left: 1px solid var(--line-d); }
.specs dt { font: 400 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d); margin-bottom: 8px; }
.specs dd { font-weight: 500; font-size: 1.1rem; color: #fff; }
@media (max-width: 1060px) {
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; }
  .stage { order: 2; position: relative; right: auto; top: auto; width: calc(100% - 2 * var(--pad)); height: 340px; margin: 36px auto 0; }
  .hero > .wrap { order: 3; }
  .hero-inner > *, .hero-inner > h1 { max-width: 100%; }
}
@media (max-width: 860px) {
  .specs, .process, .figures, .mini { grid-template-columns: 1fr 1fr; }
  .specs div:nth-child(3), .figures div:nth-child(3), .mini li:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs div:nth-child(n+3), .figures div:nth-child(n+3), .mini li:nth-child(n+3) { border-top: 1px solid var(--line-d); }
}
@media (max-width: 560px) {
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(2.9rem, 14.5vw, 4.8rem); }
  .stage { height: 300px; }
  .specs, .process, .figures, .mini { grid-template-columns: 1fr; }
  .specs div, .figures div, .mini li { padding-left: 0 !important; border-left: 0 !important; }
  .specs div + div, .mini li + li { border-top: 1px solid var(--line-d); }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
.hero-inner { pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero > .wrap { pointer-events: none; }
.hero > .wrap .specs { pointer-events: auto; }
.bleed { position: absolute; inset: 0; z-index: -2; }
.hv-bleed { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; overflow: hidden; }
.scene.on { opacity: 1; }
.scene > img, .scene > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.92) saturate(1); transform: scale(1.02); }
.scene.on > img, .scene.on > video { animation: kb 9s ease-out forwards; }
.ngrid { position: absolute; inset: 0; display: grid; gap: 6px; padding: 0; align-content: center; }
.ngrid span { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.05); transition: background .35s, box-shadow .35s, transform .35s; }
.bshade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(7,9,18,.94) 0, rgba(7,9,18,.74) 34%, rgba(7,9,18,.12) 66%), linear-gradient(0deg, rgba(7,9,18,.9) 0, rgba(7,9,18,0) 30%), linear-gradient(180deg, rgba(7,9,18,.65) 0, rgba(7,9,18,0) 22%); }
.scene-ui { position: absolute; z-index: 3; right: var(--pad); top: 128px; width: min(360px, 34vw); text-align: right; display: grid; gap: 8px; justify-items: end; }
.sc-now { color: rgba(255,255,255,.7) !important; }
.sc-now b { color: #fff; font-weight: 500; }
.sc-title { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.05; color: #fff; }
.sc-desc { color: rgba(255,255,255,.72); font-size: .98rem; max-width: 30ch; }
.sc-prog { display: flex; gap: 6px; margin-top: 8px; }
.sc-prog button { width: 38px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.25); cursor: pointer; position: relative; overflow: hidden; }
.sc-prog button.on { background: rgba(255,255,255,.3); }
.sc-prog button.done { background: var(--g); }
.sc-prog button.on::after { content: ""; position: absolute; inset: 0; background: var(--g); transform-origin: left; animation: fillp var(--dur, 5.6s) linear forwards; }
@keyframes fillp { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1060px) {
  .scene-ui { top: 104px; width: 62vw; }
  .ngrid { padding: 0; }
  .bshade { background: linear-gradient(0deg, rgba(7,9,18,.96) 0, rgba(7,9,18,.7) 45%, rgba(7,9,18,.5) 100%); }
}
@media (max-width: 1060px) {
  .scene-ui.in-stage { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; text-align: left; justify-items: start; z-index: 5; }
  .scene-ui.in-stage .sc-desc { max-width: 40ch; }
}
@media (prefers-reduced-motion: reduce) {
  .scene.on > img, .scene.on > video, .cw, .mini i::after { animation: none !important; }
}
.scene-code { z-index: 3; background: radial-gradient(900px 600px at 72% 50%, rgba(124,140,255,.24), transparent 62%), radial-gradient(600px 400px at 90% 90%, rgba(111,227,240,.12), transparent 60%), #0b0e17; }
.scene-code::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, transparent 20%, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%); }
.codewin { position: absolute; right: calc(var(--pad) + 1vw); top: 56%; transform: translateY(-50%); width: min(620px, 45vw); border-radius: 16px; overflow: hidden; background: rgba(13,17,29,.94); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(124,140,255,.5); }
.codewin .wbar { gap: 7px; }
.codewin .wbar span.tab { margin-left: 0; padding: 4px 10px; border-radius: 6px; text-transform: none; letter-spacing: 0; font-size: .7rem; color: #7d869f; }
.codewin .wbar span.tab:first-of-type { margin-left: 12px; }
.codewin .wbar span.tab.on { background: rgba(255,255,255,.08); color: #fff; }
.code { margin: 0; padding: 16px 20px 12px; font: 400 clamp(.72rem, .9vw, .86rem)/1.7 var(--mono); color: #cfd5e6; overflow: hidden; white-space: pre; min-height: calc(12 * 1.7em + 28px); }
.code .k { color: #8f9dff; }
.code .f { color: #6fe3f0; }
.code .s { color: #f3c58a; }
.code .c { color: #66708c; font-style: italic; }
.cur { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--c); animation: blink 1s steps(2, start) infinite; }
.code-note { padding: 0 20px 14px; color: #5f6985 !important; font-size: .6rem; }
.scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
@media (max-width: 1060px) {
  .hero.scenes .stage { height: 450px; }
  .scene-ui.in-stage { top: 0 !important; bottom: auto !important; }
  .codewin { right: 5%; left: 5%; width: auto; top: calc(var(--stage-top, 0px) + 150px); bottom: auto; transform: none; }
  .code { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .codewin .cline { opacity: 1; transform: none; animation: none !important; }
  .cur, .code-chips li { animation: none; }
}
.stage { pointer-events: none; }
.scene-ui { pointer-events: none; }
.scene-ui .sc-prog, .scene-ui .sc-prog button { pointer-events: auto; }
.scroll { position: absolute; left: 18px; bottom: 26px; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.6) !important; letter-spacing: .2em; z-index: 4; transition: color .2s; }
.scroll:hover { color: #fff !important; }
.scroll::after { content: ""; width: 1px; height: 54px; background: linear-gradient(rgba(255,255,255,.85), transparent); transform-origin: top; animation: scrollhint 2.2s ease-in-out infinite; }
@keyframes scrollhint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 1060px) {
  .scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll::after { animation: none; }
}
.scene.has-img::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(700px 360px at 85% 12%, rgba(7,9,18,.72), transparent 70%); }
.scene.has-img .scene-img { object-position: 60% 50%; }
@media (max-width: 1060px) {
  .hv-bleed.img-on .bshade { background: linear-gradient(0deg, rgba(7,9,18,.9) 0, rgba(7,9,18,.32) 40%, rgba(7,9,18,.78) 70%, rgba(7,9,18,.85) 100%); }
  .scene.has-img .scene-img { object-position: 64% 50%; }
}
.scene.on > .scene-vid { animation: none; transform: none; }
.anim-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #070912; }
.scene.on .anim-cv { animation: none; }
.scene .lay.act { display: block; }
.scene .codewin.lay.act { display: block; }
.scene .ngrid.lay.act { display: grid; }
.scene .scene-img.lay.act { display: block; }
.scene.on > img.lay.act { animation: kb 9s ease-out forwards; }
.scene > img.lay { z-index: 1; }
.code .ln { display: inline-block; width: 2ch; margin-right: 2ch; text-align: right; color: #4a5370; user-select: none; }
.code .p { color: #cfd5e6; }
.code .cur { display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -.2em; background: var(--c); animation: blink 1s steps(2, start) infinite; }
.term { border-top: 1px solid rgba(255,255,255,.14); background: rgba(5,7,14,.7); padding: 12px 20px 14px; font: 400 clamp(.7rem, .85vw, .82rem)/1.75 var(--mono); color: #aeb8d0; min-height: calc(4 * 1.75em + 26px); }
.term .tl { opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .3s; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.term .tl.on { opacity: 1; transform: none; }
.term .tl:first-child { color: #fff; }
.term .tl:nth-child(2), .term .tl:nth-child(4) { color: #7ee2a8; }
.term .tl:nth-child(3) { color: var(--c); }
.tbar { flex: 1; max-width: 160px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.tbar i { display: block; height: 100%; width: 0; background: var(--g); border-radius: 3px; }
.cstatus { display: flex; gap: 18px; align-items: center; padding: 8px 20px; background: rgba(124,140,255,.16); border-top: 1px solid rgba(255,255,255,.1); font-size: .62rem; color: #aeb8d0 !important; }
.cstatus .ex { margin-left: auto; color: #6f7a99; }
.cstatus .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7ee2a8; margin-right: 6px; box-shadow: 0 0 8px #7ee2a8; }
.codewin.done { box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 90px -20px rgba(126,226,168,.35); transition: box-shadow .6s; }
@media (max-width: 1060px) {
  .term .tl:nth-child(1) { display: none; }
  .term { min-height: 0; }
  .cstatus .ex { display: none; }
  .code { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .code .cur { animation: none; }
}
@media (min-width: 1061px) {
  .codewin { top: 58%; width: min(600px, 44vw); }
}
.hero-inner > h1, .hero-inner > .lede, .hero-inner > .eyebrow { pointer-events: none; }
.scene-ui { grid-template-columns: minmax(0, 1fr); width: min(400px, 36vw); }
.sc-title, .sc-desc, .sc-now { max-width: 100%; overflow-wrap: anywhere; }
.sc-title { font-size: clamp(1.6rem, 2.3vw, 2.4rem); }
@media (max-width: 1060px) {
  .scene-ui.in-stage { width: auto; }
}

/* Produktiv: Bühne ist nur auf kleinen Bildschirmen ein eigener Block (Platz für die Themenanzeige) */
@media (min-width: 1061px) { .stage { display: none; } }
.scene-img.static { z-index: 1; object-position: 60% 50%; }
.hero.js-ready .scene-img.static { display: none; }
.scene .lay { display: none; }

/* Fortschrittsleiste: bei vielen Szenen die Balken schmaler, damit sie auf jede Breite passen */
.sc-prog { max-width: 100%; }
.sc-prog button { width: clamp(16px, 2.6vw, 38px); }
@media (max-width: 1060px) { .sc-prog { gap: 4px; } .sc-prog button { width: calc((100vw - 2 * var(--pad) - 4px * 9) / 10); max-width: 38px; } }
