/* thegoog.at – Landingpage. Farben als Tokens; Dunkelmodus folgt dem System oder dem Schalter. Keine Inline-Styles (strikte CSP). */
:root {
  color-scheme: light;
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #eaeef4; --ink: #0f1620; --muted: #55606f; --line: #dbe1ea;
  --accent: #1f6fd1; --on-accent: #ffffff; --shadow: 0 1px 2px rgba(15,22,32,.06), 0 12px 32px rgba(15,22,32,.08);
  --sky: #2a86e0; --rad: #d2456f; --trm: #1f9a70; --radiant: #d2691f; --cod: #6a4fd8; --polar: #cf3b33; --depot: #a57a00; --radio: #0f9486; --ausserfern: #4f7a2a;
  --terrain: #1f3a5c; --terrain-op: .13; --up: #0f6a42; --down: #a8340f; --warn: #7a5200;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0e13; --surface: #121722; --surface-2: #182030; --ink: #e9eef5; --muted: #9aa7b8; --line: #232d3d;
    --accent: #5ea8ff; --on-accent: #07101c; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.4);
    --sky: #4aa8ff; --rad: #f07da6; --trm: #3fb68b; --radiant: #e08447; --cod: #9b86ff; --polar: #ff6b5e; --depot: #f2c14e; --radio: #2fd6b0; --ausserfern: #9bcb5a;
    --terrain: #7fb2ee; --terrain-op: .1; --up: #4cc38a; --down: #f0925f; --warn: #e3b341;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e13; --surface: #121722; --surface-2: #182030; --ink: #e9eef5; --muted: #9aa7b8; --line: #232d3d;
  --accent: #5ea8ff; --on-accent: #07101c; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.4);
  --sky: #4aa8ff; --rad: #f07da6; --trm: #3fb68b; --radiant: #e08447; --cod: #9b86ff; --polar: #ff6b5e; --depot: #f2c14e; --radio: #2fd6b0; --ausserfern: #9bcb5a;
  --terrain: #7fb2ee; --terrain-op: .1; --up: #4cc38a; --down: #f0925f; --warn: #e3b341;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
kbd { font: 600 11px/1 system-ui, sans-serif; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 -1px 0 var(--line); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hintergrund: Höhenlinien + Farbschimmer ---------- */
.terrain { position: fixed; inset: -6% -3%; z-index: -2; background: var(--terrain); opacity: var(--terrain-op); pointer-events: none;
  -webkit-mask: url(/landing/contours.svg) center / cover no-repeat; mask: url(/landing/contours.svg) center / cover no-repeat;
  transform: translate3d(0, calc(var(--sy, 0) * -.06px), 0); will-change: transform; }
.glow { position: absolute; top: 0; left: 0; right: 0; height: 80vh; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 18% 8%, color-mix(in srgb, var(--sky) 20%, transparent), transparent 70%),
              radial-gradient(45% 55% at 88% 0%, color-mix(in srgb, var(--rad) 15%, transparent), transparent 70%),
              radial-gradient(40% 40% at 55% 30%, color-mix(in srgb, var(--radiant) 9%, transparent), transparent 70%); }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topin { max-width: 1160px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand b { color: var(--accent); font-weight: 700; }
.mk-bg { fill: var(--accent); } .mk-line { fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 6px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--surface-2); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 2px; }
.lang button { padding: 4px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.iconbtn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.ic-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic-sun { display: block; } :root:not([data-theme="light"]) .ic-moon { display: none; } }
:root[data-theme="dark"] .ic-sun { display: block; } :root[data-theme="dark"] .ic-moon { display: none; }
:root[data-theme="light"] .ic-sun { display: none; } :root[data-theme="light"] .ic-moon { display: block; }

/* ---------- Hero ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hero { padding: clamp(48px, 10vw, 112px) 0 clamp(36px, 6vw, 64px); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
h1 { font-size: clamp(44px, 9.5vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(95deg, var(--sky), var(--rad) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 56ch; font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 650; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: clamp(32px, 5vw, 56px); }
.facts li { display: flex; flex-direction: column; }
.facts b { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { font-size: 13.5px; color: var(--muted); }

/* ---------- Hero: Einstieg beim Öffnen der Startseite ---------- */
/* Reines CSS, die Keyframes beschreiben nur den Startzustand: ohne Animation (wenig Bewegung gewünscht, Druck,
   alter Browser) steht alles sofort am Platz. „backwards“ statt „both“, damit nach dem Ende wieder die normalen
   Regeln gelten – sonst würde die Animation z. B. das Anheben der Buttons beim Überfahren blockieren. */
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes hero-line { from { opacity: 0; transform: translateY(.36em); filter: blur(10px); } }
@keyframes hero-color { from { background-size: 0% 100%, 100% 100%; } }
@keyframes hero-fade { from { opacity: 0; } }
@keyframes hero-glow { from { opacity: 0; translate: 0 -12%; } }
@keyframes hero-terrain { from { opacity: 0; scale: 1.07; } }
section.hero .eyebrow, section.hero .lead, section.hero .cta .btn, section.hero .facts { animation: hero-rise .8s cubic-bezier(.2, .8, .2, 1) backwards; }
section.hero .eyebrow { animation-delay: .05s; }
section.hero .lead { animation-delay: .42s; }
section.hero .cta .btn { animation-delay: .54s; }
section.hero .cta .btn + .btn { animation-delay: .62s; }
section.hero .facts { animation-delay: .74s; }
/* Kennzahlen, die erst mit den Live-Daten erscheinen, blenden kurz ein statt hereinzuspringen */
section.hero .facts li[data-live] { animation: hero-fade .5s ease backwards; }
/* Überschrift: jede Zeile steigt einzeln ein. Innenabstand und Gegen-Rand halten Unterlängen (das „p“ in „Spaß“)
   innerhalb der Fläche, auf der der Farbverlauf liegt. */
section.hero h1 > span, section.hero h1 > em { display: inline-block; animation: hero-line .9s cubic-bezier(.2, .8, .2, 1) .12s backwards; }
section.hero h1 > em { padding: .06em 0 .16em; margin: -.06em 0 -.16em;
  background: linear-gradient(95deg, var(--sky), var(--rad) 80%) 0 0 / 100% 100% no-repeat, linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  /* zweite Zeile zuerst in Textfarbe, dann fließt der Farbverlauf von links hinein */
  animation: hero-line .9s cubic-bezier(.2, .8, .2, 1) .24s backwards, hero-color 1.1s cubic-bezier(.65, 0, .2, 1) .62s backwards; }
.home .glow { animation: hero-glow 1.8s ease-out backwards; }
.home .terrain { animation: hero-terrain 2.4s cubic-bezier(.2, .8, .2, 1) backwards; }

/* ---------- Abschnitte ---------- */
section { padding-bottom: clamp(40px, 6vw, 72px); }
.sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 22px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; }
.hint { color: var(--muted); font-size: 14px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- Projektkarten ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
/* Hülle der Kachel: hebt sich beim Hovern, trägt den farbigen Schein dahinter (nur Transform/Opacity werden animiert) */
.tile { --ac: var(--accent); position: relative; transition: transform .65s cubic-bezier(.22, .8, .24, 1); will-change: transform; }
.tile::before { content: ""; position: absolute; inset: 6% -1.5% -7%; z-index: 0; pointer-events: none; border-radius: 48px; background: var(--ac); filter: blur(46px); opacity: 0; transition: opacity .8s ease; will-change: opacity; }
.tile:hover, .tile:focus-within { transform: translate3d(0, -4px, 0); }
.tile:hover::before, .tile:focus-within::before { opacity: .3; }
.card { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); isolation: isolate; transition: border-color .6s ease; }
/* Lichtschein folgt der Maus: fester Verlauf, der nur verschoben wird (kein Neuzeichnen) */
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 540px; height: 540px; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease; will-change: transform, opacity;
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--ac) 20%, transparent), transparent);
  transform: translate3d(calc(var(--mx, 300px) - 270px), calc(var(--my, 120px) - 270px), 0); }
.tile:hover .card, .tile:focus-within .card { border-color: color-mix(in srgb, var(--ac) 60%, var(--line)); }
.tile:hover .card::before, .tile:focus-within .card::before { opacity: 1; }
.c-skytrace { --ac: var(--sky); } .c-radiant { --ac: var(--radiant); } .c-trm { --ac: var(--trm); } .c-rad { --ac: var(--rad); } .c-cod { --ac: var(--cod); } .c-polar { --ac: var(--polar); } .c-depot { --ac: var(--depot); } .c-radio { --ac: var(--radio); } .c-ausserfern { --ac: var(--ausserfern); }
.card.recent { border-color: color-mix(in srgb, var(--ac) 45%, var(--line)); }
.art { position: relative; aspect-ratio: 16 / 7.6; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.art svg, .art img { width: 100%; height: 100%; object-fit: cover; display: block; backface-visibility: hidden; will-change: transform; transition: transform 1.1s cubic-bezier(.22, .8, .24, 1); }
.tile:hover .art svg, .tile:hover .art img, .tile:focus-within .art img, .tile:focus-within .art svg { transform: scale(1.035); }
.art.photo img { filter: saturate(1.05); }
.body { position: relative; z-index: 1; padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge.pub { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.badge.beta { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.priv { background: var(--surface-2); color: var(--muted); }
.pill { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill[data-state="up"]::before { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 22%, transparent); }
.pill[data-state="down"]::before { background: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 22%, transparent); }
.key { margin-left: auto; display: none; }
@media (hover: hover) and (min-width: 900px) { .key { display: inline-block; } }
.recentbadge { font-size: 11.5px; font-weight: 600; color: color-mix(in srgb, var(--ac) 70%, var(--ink)); }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 18px; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 3px solid var(--ac); outline-offset: -3px; }
.tagline { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tags li { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tags.big li { font-size: 14px; padding: 5px 14px; }
.stat { font-size: 14px; color: color-mix(in srgb, var(--ac) 65%, var(--ink)); font-weight: 600; font-variant-numeric: tabular-nums; }
.actions { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: color-mix(in srgb, var(--ac) 70%, var(--ink)); }
.go::after { content: "→"; transition: transform .5s cubic-bezier(.22, .8, .24, 1); }
.tile:hover .go::after, .tile:focus-within .go::after { transform: translateX(6px); }
.host { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sub { position: relative; z-index: 3; font-size: 13.5px; color: var(--muted); text-underline-offset: 3px; margin-left: auto; }
.sub:hover { color: var(--ink); }
.sub + .host, .go + .sub { margin-left: auto; }

/* Illustrationen */
.sk-a { stop-color: color-mix(in srgb, var(--sky) 38%, #0a1424); } .sk-b { stop-color: color-mix(in srgb, var(--sky) 78%, #e6f1ff); }
.mt-far { fill: color-mix(in srgb, var(--sky) 40%, #12233a); } .mt-near { fill: color-mix(in srgb, var(--sky) 18%, #0b1522); }
.trail { fill: none; stroke: #fff; stroke-width: 2.4; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .9; }
.glider path:first-child { fill: #fff; } .glider .lines { stroke: #fff; stroke-width: 1; fill: none; opacity: .8; } .glider circle { fill: #fff; }
.bgrect { fill: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.grid-l { stroke: var(--line); stroke-width: 1; fill: none; }
.pf-a { stop-color: color-mix(in srgb, var(--trm) 55%, transparent); } .pf-b { stop-color: color-mix(in srgb, var(--trm) 4%, transparent); }
.prof-line { fill: none; stroke: var(--trm); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.flag path { stroke: var(--ink); stroke-width: 2; fill: none; } .flag .fl { fill: var(--rad); stroke: none; }
.chart-t { fill: var(--muted); font: 600 12px system-ui, sans-serif; } .chart-big { fill: var(--ink); font: 800 26px system-ui, sans-serif; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 12; } .ring-fg { fill: none; stroke: var(--rad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 256 302; }
.ring-mark { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.bars rect { fill: color-mix(in srgb, var(--rad) 70%, var(--surface)); rx: 4; } .bars rect:last-child { fill: var(--rad); }
.axis { stroke: var(--line); stroke-width: 1.5; }

/* ---------- Status ---------- */
.board { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.srow { display: grid; grid-template-columns: 14px minmax(120px, 1.1fr) 80px minmax(0, 2fr) 70px; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.srow:first-child { border-top: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.srow[data-state="up"] .dot { background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 20%, transparent); }
.srow[data-state="down"] .dot { background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 20%, transparent); }
.srow b { font-weight: 650; }
.st { font-size: 14px; color: var(--muted); } .srow[data-state="up"] .st { color: var(--up); } .srow[data-state="down"] .st { color: var(--down); }
.spark { display: flex; gap: 2px; align-items: center; min-width: 0; }
.spark i { flex: 1; height: 18px; border-radius: 2px; background: var(--surface-2); min-width: 2px; max-width: 8px; }
.spark i.u { background: color-mix(in srgb, var(--up) 75%, var(--surface)); } .spark i.p { background: var(--warn); } .spark i.d { background: var(--down); }
.ms { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Über ---------- */
.aboutgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: start; }
.prose { color: var(--muted); font-size: 17px; max-width: 60ch; }
.stack { grid-column: 1 / -1; }
.stack h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 8px; }
.footin { max-width: 1160px; margin: 0 auto; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.footin nav { display: flex; flex-wrap: wrap; gap: 6px 18px; } .footin a { text-decoration: none; } .footin a:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); }

/* ---------- Einblenden beim Scrollen ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .aboutgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 108px; }
  .topin { padding: 8px 14px 6px; gap: 6px 10px; flex-wrap: wrap; }
  .nav { order: 3; flex: 1 0 100%; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .nav a { padding: 5px 12px; white-space: nowrap; font-size: 14px; }
  main { padding: 0 14px; }
  .srow { grid-template-columns: 14px 1fr auto; row-gap: 8px; padding: 14px; }
  .srow .spark { grid-column: 2 / -1; grid-row: 2; } .srow .ms { display: none; }
  .body { padding: 16px 16px 18px; }
  h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body:not(.wide) *, body:not(.wide) *::before, body:not(.wide) *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  /* Hero: statt Bewegung und Unschärfe nur ein ruhiges, gestaffeltes Einblenden (nichts wandert über den Bildschirm) */
  section.hero .eyebrow, section.hero h1 > span, section.hero h1 > em, section.hero .lead, section.hero .cta .btn, section.hero .facts,
  section.hero .facts li[data-live] { animation: hero-fade .7s ease backwards !important; }
  section.hero h1 > span { animation-delay: .1s !important; }
  section.hero h1 > em { animation-delay: .25s !important; }
  section.hero .lead { animation-delay: .45s !important; }
  section.hero .cta .btn { animation-delay: .6s !important; }
  section.hero .cta .btn + .btn { animation-delay: .7s !important; }
  section.hero .facts { animation-delay: .85s !important; }
  .home .glow, .home .terrain { animation: hero-fade 1.6s ease backwards !important; }
  .terrain { transform: none; }
}

/* ---------- 404 ---------- */
.nf { max-width: 760px; margin: 0 auto; padding: 18vh 20px 48px; }
.nf .alt { color: var(--muted); font-size: .85em; opacity: .85; }

@media (hover: none) { .hint.keys { display: none; } }

/* ---------- Druckansicht ---------- */
@media print {
  :root, :root[data-theme] { --bg: #fff; --surface: #fff; --surface-2: #f1f1f1; --ink: #000; --muted: #333; --line: #bbb; --shadow: none; }
  .terrain, .glow, .top, .cta, .toast, .key, .lang { display: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .card { break-inside: avoid; box-shadow: none; }
  .art { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  a { text-decoration: none; }
  .host::after { content: ""; }
}

/* ================= Unterseiten (Projekte, Rechtliches) ================= */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 22px 0 6px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.proj { --ac: var(--accent); }
.phero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(18px, 4vw, 44px) 0 clamp(36px, 6vw, 64px); }
.phero .meta { margin-bottom: 14px; }
.phero h1 { font-size: clamp(36px, 5.8vw, 76px); line-height: 1.02; overflow-wrap: break-word; padding-bottom: .06em; letter-spacing: -.04em; background: linear-gradient(95deg, var(--ink), color-mix(in srgb, var(--ac) 80%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero .lead { font-size: clamp(17px, 2vw, 21px); }
.phero .facts { margin-top: 30px; gap: 12px 34px; }
.phero .facts li[hidden] { display: none; }
.badge.pub, .badge.beta, .badge.priv { display: inline-block; }
.shot { position: relative; display: block; text-decoration: none; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); will-change: transform; transition: transform .6s cubic-bezier(.22, .8, .24, 1), border-color .5s ease; }
.shot:hover { transform: translate3d(0, -4px, 0); border-color: color-mix(in srgb, var(--ac) 55%, var(--line)); }
.shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot .cap { display: block; padding: 10px 14px 12px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.shot.hero .cap { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); font-size: 12px; opacity: 0; transition: opacity .2s; }
.shot.hero:hover .cap, .shot.hero:focus-visible .cap { opacity: 1; }
.sect { padding-bottom: clamp(36px, 5vw, 64px); }
.introgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 44px; }
.introgrid .prose { max-width: none; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.feat::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--ac); opacity: .75; }
.feat h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }
.gallery { columns: 2 340px; column-gap: 18px; }
.gallery .shot { break-inside: avoid; margin-bottom: 18px; }
.band { margin: 28px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; box-shadow: var(--shadow); }
.band img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 10px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.glance { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.glance .row { display: grid; grid-template-columns: 170px 1fr; gap: 6px 24px; padding: 14px 22px; border-top: 1px solid var(--line); }
.glance .row:first-child { border-top: 0; }
.glance dt { color: var(--muted); font-weight: 600; font-size: 14px; }
.glance dd { margin: 0; }
.credit { margin-top: 12px; font-size: 13px; color: var(--muted); }
.faqlist { display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 18px; max-width: 70ch; }
.bigcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(22px, 4vw, 38px); border-radius: 22px; border: 1px solid color-mix(in srgb, var(--ac) 40%, var(--line));
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--ac) 18%, var(--surface)), var(--surface) 70%); box-shadow: var(--shadow); }
.bigcta h2 { margin-bottom: 4px; } .bigcta .cta { margin: 0; }
.morerow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.more { --ac: var(--accent); display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; will-change: transform; transition: transform .6s cubic-bezier(.22, .8, .24, 1), border-color .5s ease; border-top: 3px solid var(--ac); }
.more:hover { transform: translate3d(0, -4px, 0); border-color: color-mix(in srgb, var(--ac) 55%, var(--line)); }
.more b { font-size: 18px; } .more span { color: var(--muted); font-size: 14px; }
.sechead a.hint { text-decoration: none; } .sechead a.hint:hover { color: var(--ink); }

/* Phasen-Grafik (Radmarathon) */
.phasefig { margin: 0; padding: 18px 16px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; }
.phases { display: block; width: 100%; min-width: 560px; height: auto; }
.ph { fill: color-mix(in srgb, var(--trm) 22%, var(--surface-2)); }
.ph2 { fill: color-mix(in srgb, var(--trm) 36%, var(--surface-2)); } .ph3 { fill: color-mix(in srgb, var(--trm) 52%, var(--surface-2)); }
.ph4 { fill: color-mix(in srgb, var(--trm) 70%, var(--surface-2)); } .ph5 { fill: color-mix(in srgb, var(--rad) 55%, var(--surface-2)); }
.phn { fill: var(--ink); font: 600 10px system-ui, sans-serif; } .phw { fill: var(--muted); font: 500 9.5px system-ui, sans-serif; }
.tk { stroke: var(--muted); stroke-width: 1; } .tk.race { stroke: var(--rad); stroke-width: 2; } .flagp { fill: var(--rad); }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; color: #fff; overflow: visible; }
.lb::backdrop { background: rgba(5, 8, 12, .88); }
.lb figure { margin: 0; text-align: center; }
.lb img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); background: #111; }
.lb figcaption { padding-top: 12px; font-size: 15px; color: #d9e1ec; }
.lbbtn { position: fixed; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.lbbtn:hover { background: rgba(255, 255, 255, .28); }
.lbx { top: 16px; right: 16px; font-size: 18px; } .lbp { left: 14px; top: 50%; } .lbn { right: 14px; top: 50%; }

/* Rechtliches */
main.legal { max-width: 800px; padding-bottom: 60px; }   /* nur der Textblock – auch <body> trägt die Klasse legal */
.legal h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -.03em; margin: 8px 0 14px; }
.legal .note { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.legal .stand { color: var(--muted); margin-bottom: 18px; }
.lsec { padding: 18px 0; border-top: 1px solid var(--line); }
.lsec h2 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.lsec p { color: var(--muted); margin-bottom: 10px; max-width: 70ch; } .lsec p b { color: var(--ink); }
.lsec a { color: var(--accent); text-underline-offset: 3px; }
.lsec code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.maildiv { display: inline-block; } .mailbtn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 5px 12px; border-radius: 8px; font-size: 14px; }
.nf-foot { text-align: center; color: var(--muted); font-size: 14px; padding: 0 20px 40px; } .nf-foot a { text-underline-offset: 3px; }

@media (max-width: 900px) {
  .phero { grid-template-columns: 1fr; }
  .introgrid { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .morerow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fgrid { grid-template-columns: 1fr; }
  .glance .row { grid-template-columns: 1fr; padding: 14px 16px; }
  .gallery { columns: 1; }
  .lbp { left: 6px; } .lbn { right: 6px; }
}
@media print { .lb { display: none; } .shot.hero .cap { display: none; } .gallery { columns: 2; } }

.band { margin-bottom: clamp(36px, 5vw, 64px); }
.countcard { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: clamp(24px, 4vw, 44px); border-radius: 22px; border: 1px solid color-mix(in srgb, var(--ac) 40%, var(--line));
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ac) 22%, var(--surface)), var(--surface) 70%); box-shadow: var(--shadow); }
.countcard b { font-size: clamp(72px, 12vw, 140px); line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--ac) 80%, var(--ink)); }
.countcard span { font-size: clamp(18px, 2.4vw, 24px); font-weight: 650; }
.countcard small { font-size: 15px; color: var(--muted); }
.phasetxt { margin-bottom: 14px; }

.srow b a { text-decoration: none; } .srow b a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Seitenübergänge (Chrome): sanftes Überblenden zwischen Startseite und Projektseiten ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- Feste Aktionsleiste auf dem Handy (Projektseiten) ---------- */
.stickycta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; }
.stickycta .btn { width: 100%; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (max-width: 760px) { .stickycta.show { display: block; } }
@media print { .stickycta { display: none !important; } }

/* ---------- Kontakt-Block (Startseite) ---------- */
.contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.contact .prose { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Über mich ---------- */
.about .phero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.about .phero h1 { font-size: clamp(38px, 6vw, 80px); }
.about .pimg { display: flex; justify-content: center; }
.portrait { margin: 0; width: min(100%, 440px); border-radius: 26px; overflow: hidden; background: #000; border: 1px solid color-mix(in srgb, var(--ac) 35%, var(--line));
  box-shadow: 0 30px 80px color-mix(in srgb, var(--ac) 22%, transparent), var(--shadow); position: relative; }
.portrait img { display: block; width: 100%; height: auto; }
.portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(0, 0, 0, .55); border-radius: inherit; }
.pull { margin: 0; padding: clamp(22px, 4vw, 40px); border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--ac) 14%, var(--surface)), var(--surface) 70%); box-shadow: var(--shadow); }
.pull p { font-size: clamp(22px, 3.4vw, 36px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; max-width: 26ch; }
.pull p::before { content: "„"; color: var(--ac); margin-right: 2px; } .pull p::after { content: "“"; color: var(--ac); }
.pull footer { margin-top: 14px; color: var(--muted); font-size: 14px; }
.fgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.morerow.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.toolgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.toolgroup h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.signoff { margin-top: 16px; text-align: right; color: var(--muted); font-style: italic; font-size: 15px; }
.meet { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.meet .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid color-mix(in srgb, var(--accent) 50%, var(--line)); background: #000; }
.meet div { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 0; } .meet b { font-size: 18px; } .meet span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .about .phero { grid-template-columns: 1fr; } .about .pimg { order: -1; } .portrait { width: min(100%, 320px); } .morerow.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .toolgroups { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .fgrid.two, .morerow.four { grid-template-columns: 1fr; } }

/* 5. Kachel (CoD Stats): auf breiten Bildschirmen über die volle Breite, Bild links */
@media (min-width: 901px) {
  .tile.wide { grid-column: 1 / -1; }
  .tile.wide .card { flex-direction: row; }
  .tile.wide .art { flex: 0 0 52%; aspect-ratio: auto; min-height: 250px; border-bottom: 0; border-right: 1px solid var(--line); }
  .tile.wide .art img { position: absolute; inset: 0; height: 100%; }
  .tile.wide .body { justify-content: center; padding: 22px 28px; }
}

/* Polar ECG Streamer: eingebettete Live-Demo auf der Projektseite (die App rechnet ihre Höhen aus der Rahmenhöhe) */
.demoframe { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #111110; }
.demoframe iframe { display: block; width: 100%; height: clamp(600px, 88vh, 920px); border: 0; }
.demonote { margin-top: 12px; }

/* ===== Projektseiten rund um die Clips =====
   Breiter als die Startseite, damit die Clips groß genug zum Lesen sind. */
.wide .topin, .wide .footin, main.proj { max-width: 1560px; }
main.proj .introgrid .prose { max-width: 72ch; }
main.proj .fgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (min-width: 1300px) { .wide .phero { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }

/* Aufmacher: Clip statt Standbild */
.heroclip { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b0e13; box-shadow: var(--shadow), 0 40px 90px -40px color-mix(in srgb, var(--ac) 55%, transparent); }
.heroclip video { display: block; width: 100%; height: auto; }

/* Funktionen als Scroll-Strecke: Texte laufen vorbei, die Bühne mit dem passenden Clip bleibt stehen */
.scrolly .sechead { margin-bottom: 0; }
.scrollgrid { display: grid; grid-template-columns: minmax(260px, .5fr) minmax(0, 1.5fr); gap: clamp(24px, 3.5vw, 64px); align-items: start; }
.stage { order: 2; position: sticky; top: 58px; height: calc(100vh - 58px); display: flex; align-items: center; }
.stagebox { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0b0e13;
  box-shadow: var(--shadow), 0 50px 110px -50px color-mix(in srgb, var(--ac) 60%, transparent); }
.stagebox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.stagecount { position: absolute; right: 12px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.steps { order: 1; padding: 16vh 0 22vh; }
/* Linie links als eigene Ebene (line-gap): endet vor jeder Stationsgrenze und beginnt erst danach wieder; das Leuchten blendet nur über Deckkraft */
.step { --lgap: 5vh; position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-left: 24px; opacity: .22; transform: translateX(-14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
.step::before, .step::after { content: ''; position: absolute; top: var(--lgap); bottom: var(--lgap); pointer-events: none; }
.step::before { left: 0; width: 2px; background: var(--line); }
.step::after { left: -3px; width: 5px; border-radius: 3px; background: var(--ac); box-shadow: -6px 0 18px 0 color-mix(in srgb, var(--ac) 55%, transparent); opacity: 0; transition: opacity .5s ease; }
.step.is-active { opacity: 1; transform: none; }
.step.is-active::after { opacity: 1; }
.step .stepno { transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-origin: 0 50%; }
.step.is-active .stepno { transform: scale(1.5); }
.stepno { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ac); font-variant-numeric: tabular-nums; }
.step h3 { margin: 6px 0 10px; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); }
@media (max-width: 900px) {
  /* schmal: die Bühne klebt oben unter der Kopfzeile, die Texte laufen darunter durch */
  .scrollgrid { display: block; }
  .stage { top: 100px; height: auto; z-index: 3; margin: 0 -20px; padding: 8px 20px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
  .stagebox { border-radius: 12px; max-height: none; }
  .steps { padding: 6vh 0 30vh; }
  .step { min-height: 44vh; --lgap: 3vh; }
}

/* Einblenden beim Scrollen (Projektseiten). Bewusst unabhängig von der Systemeinstellung „weniger Bewegung“ –
   der Betreiber möchte die Bewegung immer zeigen; es bleibt bei kurzem, ruhigem Einblenden. */
html.js main.proj .rise { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
html.js main.proj .rise.in { opacity: 1; transform: none; }
.readbar { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: linear-gradient(90deg, var(--accent), var(--ac, var(--accent))); pointer-events: none; }
@media print { .demoframe, .scrolly .stage, .readbar { display: none; } .step { min-height: 0; opacity: 1; } html.js main.proj .rise { opacity: 1; transform: none; } }

/* ----- Wechsel in der Scroll-Strecke: deutlich sichtbar -----
   Der neue Clip wischt herein (von unten beim Abwärts-, von oben beim Aufwärtsscrollen), eine Leuchtlinie läuft mit,
   der alte Clip weicht zurück, und Nummer + Titel der Funktion blenden kurz auf der Bühne ein. */
.stagebox video.is-active { opacity: 1; z-index: 2; animation: clip-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.stagebox.dir-up video.is-active { animation-name: clip-in-up; }
.stagebox video.is-leaving { opacity: 1; z-index: 1; animation: clip-out .7s ease both; }
@keyframes clip-in { from { clip-path: inset(100% 0 0 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes clip-in-up { from { clip-path: inset(0 0 100% 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes clip-out { from { transform: none; filter: none; opacity: 1; } to { transform: scale(.92); filter: brightness(.35) blur(4px); opacity: 0; } }
.stagewipe { position: absolute; left: 0; right: 0; top: 100%; height: 3px; z-index: 3; opacity: 0; background: var(--ac); box-shadow: 0 0 26px 5px var(--ac); pointer-events: none; }
.stagebox.is-switching .stagewipe { animation: wipe-line .8s cubic-bezier(.2, .8, .2, 1) both; }
.stagebox.is-switching.dir-up .stagewipe { animation-name: wipe-line-up; }
@keyframes wipe-line { 0% { top: 100%; opacity: 1; } 85% { opacity: 1; } 100% { top: 0%; opacity: 0; } }
@keyframes wipe-line-up { 0% { top: 0%; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.stageflash { position: absolute; left: 16px; top: 14px; z-index: 4; display: flex; align-items: baseline; gap: 12px; max-width: calc(100% - 32px); padding: 8px 16px 9px; border-radius: 12px; opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 55%, var(--line)); backdrop-filter: blur(8px); }
.sfno { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ac); font-variant-numeric: tabular-nums; }
.sftitle { font-size: 16px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stagebox.is-switching .stageflash { animation: flash-in 2.1s ease both; }
@keyframes flash-in { 0% { opacity: 0; transform: translateY(16px); } 13% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
/* Erstes Erscheinen der Strecke: die Bühne blendet groß ein statt einfach da zu sein */
.scrolly .stagebox { transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1), box-shadow .6s ease; }
html.js .scrolly:not(.is-on) .stagebox { opacity: 0; transform: translateY(60px) scale(.9); }
html.js .scrolly:not(.is-on) .steps { opacity: 0; }
.scrolly .steps { transition: opacity .9s ease .25s; }
@media (max-width: 900px) { .sfno { font-size: 18px; } .sftitle { font-size: 13px; } .stageflash { left: 8px; top: 8px; padding: 5px 10px 6px; } .step { transform: none; } }

/* ----- Großer Video-Aufmacher mit schwebenden 3D-Infokarten ----- */
.phero.cine { display: block; padding: clamp(8px, 1.6vw, 20px) 0 clamp(30px, 5vw, 56px); }
/* Das Video reicht über die ganze Fensterbreite (--sbw = Breite der Bildlaufleiste, setzt landing.js); Text und Karten bleiben in der Inhaltsspalte */
.cinebox { --edge: max(0px, calc((100% - 1560px) / 2)); position: relative; width: calc(100vw - var(--sbw, 0px)); margin-left: calc(50% - 50vw + var(--sbw, 0px) / 2); aspect-ratio: 16 / 8.4; min-height: 440px; max-height: calc(100vh - 225px); border-radius: 0; overflow: hidden; border: solid var(--line); border-width: 1px 0; background: #0b0e13;
  perspective: 1300px; box-shadow: var(--shadow), 0 70px 140px -70px color-mix(in srgb, var(--ac) 70%, transparent); }
.cinevid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cineshade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4, 7, 11, .86) 0%, rgba(4, 7, 11, .5) 32%, rgba(4, 7, 11, 0) 58%), linear-gradient(0deg, rgba(4, 7, 11, .72) 0%, rgba(4, 7, 11, 0) 40%); }
.cinetext { position: absolute; z-index: 2; left: calc(var(--edge) + clamp(20px, 4vw, 68px)); bottom: clamp(22px, 4.6vw, 72px); max-width: min(48%, 680px); }
.phero.cine .cinetext h1 { font-size: clamp(40px, 6.4vw, 108px); line-height: 1; letter-spacing: -.045em; margin: 14px 0 12px; color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.phero.cine .cinetext .lead { margin: 0; color: rgba(255, 255, 255, .88); font-size: clamp(17px, 1.55vw, 24px); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.cinetext .meta, .cinetext h1, .cinetext .lead { animation: proj-rise .9s cubic-bezier(.2, .8, .2, 1) backwards; }
.cinetext .meta { animation-delay: .35s; } .cinetext h1 { animation-delay: .5s; } .cinetext .lead { animation-delay: .68s; }
/* Karten: stehen schräg im Raum (perspective an der Box), fliegen beim Laden aus der Tiefe ein und neigen sich mit dem Mauszeiger */
.phero.cine .facts3d { position: absolute; z-index: 2; right: calc(var(--edge) + clamp(18px, 3.6vw, 60px)); top: 50%; margin: 0; display: flex; flex-direction: column; gap: 16px; transform-style: preserve-3d;
  transform: translateY(-50%) rotateY(calc(-20deg + var(--px, 0) * 14deg)) rotateX(calc(5deg - var(--py, 0) * 12deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.phero.cine .facts3d li { --i: 0; min-width: 210px; padding: 14px 20px 15px; border-radius: 16px; color: #fff; background: rgba(9, 13, 19, .62); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .12); transform: translateZ(calc(70px - var(--i) * 26px)) translateX(calc(var(--i) * -18px));
  animation: card3d-in 1s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.8s + var(--i) * .15s); }
.phero.cine .facts3d li:nth-child(2) { --i: 1; } .phero.cine .facts3d li:nth-child(3) { --i: 2; } .phero.cine .facts3d li:nth-child(4) { --i: 3; } .phero.cine .facts3d li:nth-child(5) { --i: 4; }
.phero.cine .facts3d li[hidden] { display: none; }
.phero.cine .facts3d b { font-size: clamp(24px, 2.3vw, 36px); color: #fff; }
.phero.cine .facts3d span { color: rgba(255, 255, 255, .74); }
@keyframes card3d-in { from { opacity: 0; transform: translateZ(-420px) translateX(160px) rotateY(-55deg); } }
.cinecta { margin-top: clamp(18px, 2.4vw, 30px); justify-content: center; animation: proj-rise .9s cubic-bezier(.2, .8, .2, 1) 1.1s backwards; }
@media (max-width: 900px) {
  /* schmal: Video oben, Text und Kennzahlen normal darunter – kein 3D */
  .cinebox { width: 100%; margin-left: 0; aspect-ratio: auto; min-height: 0; max-height: none; overflow: visible; border: 0; background: none; box-shadow: none; perspective: none; }
  .cinevid { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line); }
  .cineshade { display: none; }
  .cinetext { position: static; max-width: none; margin-top: 18px; }
  .phero.cine .cinetext h1 { color: var(--ink); -webkit-text-fill-color: currentColor; text-shadow: none; font-size: clamp(36px, 11vw, 60px); }
  .phero.cine .cinetext .lead { color: var(--muted); text-shadow: none; }
  .phero.cine .facts3d { position: static; transform: none; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .phero.cine .facts3d li { min-width: 0; flex: 1 1 40%; transform: none; color: var(--ink); background: var(--surface); border-color: var(--line); backdrop-filter: none; box-shadow: var(--shadow); }
  .phero.cine .facts3d b { color: var(--ink); } .phero.cine .facts3d span { color: var(--muted); }
  .cinecta { justify-content: flex-start; }
}

/* ----- Lade-Animation im Kopf jeder Projektseite ----- */
@keyframes proj-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
main.proj .crumbs { animation: proj-rise .7s ease backwards; }
main.proj .phero:not(.cine) .meta, main.proj .phero:not(.cine) h1, main.proj .phero:not(.cine) .lead, main.proj .phero:not(.cine) .cta, main.proj .phero:not(.cine) .facts { animation: proj-rise .85s cubic-bezier(.2, .8, .2, 1) backwards; }
main.proj .phero:not(.cine) .meta { animation-delay: .08s; } main.proj .phero:not(.cine) h1 { animation-delay: .16s; } main.proj .phero:not(.cine) .lead { animation-delay: .3s; }
main.proj .phero:not(.cine) .cta { animation-delay: .44s; } main.proj .phero:not(.cine) .facts { animation-delay: .58s; }
main.proj .pimg { animation: pimg-in 1.1s cubic-bezier(.2, .8, .2, 1) .25s backwards; }
@keyframes pimg-in { from { opacity: 0; transform: translateX(46px) scale(.96); } to { opacity: 1; transform: none; } }
@media print { .phero.cine .facts3d { position: static; transform: none; } .cinetext { position: static; } }

/* ----- Tiefe in der Scroll-Strecke -----
   landing.js setzt beim Scrollen --e (0 = Funktion steht in der Bildmitte, 1 = kurz vor/nach dem Wechsel) und --s (+1 kommt, -1 geht).
   Die Bühne kommt mit leichter Neigung aus der Tiefe näher, steht ruhig, solange man liest, und weicht vor dem nächsten Wechsel wieder zurück. */
.stage { perspective: 1500px; perspective-origin: 50% 50%; }
.stagedepth { --e: 0; --s: 1; width: 100%; transform-style: preserve-3d; will-change: transform;
  transform: translate3d(0, calc(var(--e) * var(--s) * 46px), calc(var(--e) * -430px)) rotateX(calc(var(--e) * var(--s) * 13deg)) rotateY(calc(var(--e) * var(--s) * -11deg)) rotateZ(calc(var(--e) * var(--s) * -1.2deg));
  opacity: var(--o, 1); transition: transform .28s cubic-bezier(.2, .7, .2, 1), opacity .2s linear; }   /* --o: stage-gap, setzt landing.js */
/* perf-v27: der Schatten bleibt fest – ein von --e abhängiger Schatten müsste bei jedem Scroll-Bild neu gezeichnet werden */
@media (max-width: 900px) {
  .stage { perspective: 900px; }
  .stagedepth { transform: translate3d(0, 0, calc(var(--e) * -150px)) rotateX(calc(var(--e) * var(--s) * 7deg)) rotateY(calc(var(--e) * var(--s) * -6deg)); }
}
@media print { .stagedepth { transform: none; opacity: 1; } }

/* ----- Breiter Clip-Abschnitt („Rundflug“) unten auf einer Projektseite ----- */
.reel .sechead { margin-bottom: 18px; }
.reelwrap { perspective: 1600px; }
.reelcap { max-width: 72ch; margin: -6px 0 22px; }
.reelbox { --r: 0; position: relative; margin: 0; width: calc(100vw - var(--sbw, 0px)); margin-left: calc(50% - 50vw + var(--sbw, 0px) / 2); aspect-ratio: 16 / 9; max-height: 84vh; overflow: hidden; background: #0b0e13;
  border: solid var(--line); border-width: 1px 0; box-shadow: 0 70px 140px -70px color-mix(in srgb, var(--ac) 70%, transparent);
  transform: translateZ(calc(var(--r) * -380px)) rotateX(calc(var(--r) * 12deg)); opacity: calc(1 - var(--r) * .55); transform-origin: 50% 100%; transition: transform .28s cubic-bezier(.2, .7, .2, 1), opacity .28s linear; will-change: transform; }
.reelbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.reelbox figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px max(20px, calc((100% - 1560px) / 2 + 20px)) 18px; color: rgba(255, 255, 255, .9); font-size: clamp(14px, 1.15vw, 17px);
  background: linear-gradient(0deg, rgba(4, 7, 11, .8), rgba(4, 7, 11, 0)); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); pointer-events: none; }
@media (max-width: 900px) {
  .reelbox { aspect-ratio: auto; max-height: none; overflow: visible; border: 0; box-shadow: none; background: none; }
  .reelbox video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .reelbox figcaption { position: static; padding: 10px 20px 0; background: none; color: var(--muted); text-shadow: none; }
}
@media print { .reelbox { transform: none; opacity: 1; } }

/* ----- Hintergrund verformt sich bei jedem Wechsel (Projektseiten) -----
   Zwei Lagen der Höhenlinien, die zweite gespiegelt. Bei jedem Wechsel bekommt jede Lage eine neue Streckung, Drehung und
   Verschiebung (landing.js), und die Sichtbarkeit wechselt zur anderen Lage: die Linien fließen ineinander über. */
.wide .terrain { scale: var(--msx, 1.08) var(--msy, 1.08); rotate: var(--mr, 0deg); translate: var(--mx, 0%) var(--my, 0%);
  transition: scale 2.2s cubic-bezier(.3, .7, .2, 1), rotate 2.2s cubic-bezier(.3, .7, .2, 1), translate 2.2s cubic-bezier(.3, .7, .2, 1), opacity 1.5s ease; }
.wide .terrain.is-off { opacity: 0; }
@media print { .terrain.t2 { display: none; } }

/* ----- Aufmacherbild frei und groß (Polar): keine Karte dahinter, der linke Rand läuft zum Text hin transparent aus ----- */
.herofree .shot.hero { border: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.herofree .shot.hero:hover { transform: none; }
.herofree .shot.hero img { border-radius: 14px; }
@media (min-width: 901px) {
  .wide .herofree .phero, .herofree .phero { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: 0; }
  .herofree .ptext { position: relative; z-index: 1; }
  .herofree .pimg { margin-left: -7%; }
  .herofree .shot.hero img { border-radius: 0 18px 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 10%, #000 26%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 10%, #000 26%);
    filter: drop-shadow(0 40px 60px color-mix(in srgb, var(--ac) 22%, transparent)); }
}

/* ----- Scroll-Strecke läuft von selbst weiter: Fortschritt des Clips und Schalter ----- */
.stageprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; transform-origin: 0 50%; transform: scaleX(0); background: var(--ac); opacity: .9; pointer-events: none; }
.stagebox.auto-off .stageprog { display: none; }
.stageauto { position: absolute; left: 12px; bottom: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .02em;
  color: var(--ink); background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 55%, var(--line)); opacity: .8; transition: opacity .2s, border-color .2s, color .2s; }
.stageauto:hover, .stageauto:focus-visible { opacity: 1; }
.stageauto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 8px var(--ac); }
.stageauto[aria-pressed="false"] { color: var(--muted); border-color: var(--line); }
.stageauto[aria-pressed="false"]::before { background: var(--muted); box-shadow: none; }
html:not(.js) .stageauto { display: none; }
@media print { .stageauto, .stageprog { display: none; } }

/* Taskbar Radio: im Kachelbild sitzt die Taskleiste am unteren Rand – beim Beschneiden unten bündig halten */
.card.c-radio .art img { object-position: 50% 100%; }

/* ===== Startseite v2: Clip-Showreel im Aufmacher, Projekte als Clip-Strecke =====
   Die Startseite trägt jetzt auch die Klasse „wide“: breiter, und Bewegung läuft unabhängig von der Systemeinstellung (Wunsch des Betreibers). */
.home.wide main { max-width: 1560px; }
main.homeshow > .statuswrap, main.homeshow > .about { max-width: 1160px; margin-left: auto; margin-right: auto; }
main.homeshow .projects > .sechead { margin-bottom: clamp(30px, 5vw, 70px); }

/* ----- Aufmacher: Showreel aus den Projekt-Clips, Überschrift und Kennzahlen darüber ----- */
section.hero.hero2 { padding: clamp(8px, 1.6vw, 20px) 0 clamp(44px, 6vw, 84px); }
.srvids { position: absolute; inset: 0; }
.srvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.3s ease; }
.srvid.is-on { opacity: 1; }
.hero2 .cinetext { max-width: min(60%, 940px); }
.hero2 .cinetext .eyebrow { color: rgba(255, 255, 255, .74); margin-bottom: 14px; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.phero.cine.hero2 .cinetext h1 { font-size: clamp(40px, 5.6vw, 96px); margin: 0 0 18px; }
section.hero.hero2 h1 > em { background: linear-gradient(95deg, #6cbcff, #ff8fb4 80%) 0 0 / 100% 100% no-repeat, linear-gradient(#fff, #fff) 0 0 / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
.phero.cine.hero2 .cinetext .lead { max-width: 54ch; }
.hero2 .facts3d { animation: none; }
/* „Im Bild“: welches Projekt der Showreel gerade zeigt – führt direkt dorthin */
.srnow { --ac: var(--accent); position: absolute; z-index: 3; right: calc(var(--edge) + clamp(18px, 3.6vw, 60px)); bottom: clamp(14px, 2vw, 26px); display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px;
  border-radius: 999px; text-decoration: none; color: #fff; font-size: 13px; background: rgba(9, 13, 19, .62); border: 1px solid color-mix(in srgb, var(--ac) 60%, rgba(255, 255, 255, .2)); backdrop-filter: blur(10px);
  transition: border-color .4s ease, transform .2s ease; animation: proj-rise .9s cubic-bezier(.2, .8, .2, 1) 1.2s backwards; }
.srnow:hover { transform: translateY(-2px); }
.srnow > span { color: rgba(255, 255, 255, .7); }
.srnow > span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); transition: background .4s ease; }
.srnow b { font-weight: 700; }
.srnow b::after { content: " →"; }
.srdots { display: inline-flex; gap: 5px; margin-left: 4px; }
.srdots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: background .4s ease, transform .4s ease; }
.srdots span.on { background: #fff; transform: scale(1.25); }
@media (max-width: 900px) {
  .srvids { position: relative; inset: auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
  .hero2 .cinetext { max-width: none; }
  .hero2 .cinetext .eyebrow { color: var(--muted); text-shadow: none; }
  .srnow { position: static; margin-top: 16px; color: var(--ink); background: var(--surface); backdrop-filter: none; }
  .srnow > span { color: var(--muted); }
  .srdots span { background: var(--line); } .srdots span.on { background: var(--ink); }
}

/* ----- Projekte als Clip-Strecke: großer Clip, daneben der Text, abwechselnd links und rechts -----
   landing.js setzt beim Scrollen --e (0 = Reihe steht in der Bildmitte, 1 = weit weg) und --s (+1 kommt von unten, -1 geht nach oben):
   der Clip kommt mit Neigung aus der Tiefe näher und weicht beim Weiterscrollen wieder zurück. */
.showlist { display: grid; gap: clamp(64px, 10vw, 170px); }
.showrow { --ac: var(--accent); --d: 1; position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(26px, 4.4vw, 84px); align-items: center; perspective: 1600px; }
.showrow:nth-child(even) { --d: -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.showrow:nth-child(even) .showstage { order: 2; }
.showstage { display: block; position: relative; text-decoration: none; }
.showstage::before { content: ""; position: absolute; inset: 12% 4% -6%; border-radius: 60px; background: var(--ac); filter: blur(70px); opacity: .16; transition: opacity .8s ease; pointer-events: none; }
.showrow:hover .showstage::before { opacity: .3; }
.showdepth { --e: 0; --s: 1; position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0b0e13; box-shadow: var(--shadow);
  transform: translate3d(0, calc(var(--e) * var(--s) * 44px), calc(var(--e) * -420px)) rotateX(calc(var(--e) * var(--s) * 11deg)) rotateY(calc(var(--e) * var(--d) * 15deg)) rotateZ(calc(var(--e) * var(--d) * var(--s) * 1.2deg));
  opacity: calc(1 - var(--e) * .55); transition: transform .28s cubic-bezier(.2, .7, .2, 1), opacity .28s linear, border-color .5s ease; will-change: transform; }
.showrow:hover .showdepth { border-color: color-mix(in srgb, var(--ac) 60%, var(--line)); }
.showdepth video, .showdepth img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showtext { display: flex; flex-direction: column; gap: 10px; transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
html.js .showrow:not(.is-in) .showtext { opacity: 0; transform: translate3d(calc(var(--d) * 54px), 0, 0); }
.showtext h3 { font-size: clamp(30px, 3.5vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin: 6px 0 4px; }
.showtext h3 a { text-decoration: none; padding-bottom: .08em; background: linear-gradient(95deg, var(--ink), color-mix(in srgb, var(--ac) 80%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showtext h3 a:focus-visible { outline: 3px solid var(--ac); outline-offset: 4px; border-radius: 8px; }
.showtext .tagline { font-size: clamp(16px, 1.25vw, 19px); max-width: 52ch; }
.showtext .tags { margin-top: 6px; }
.showtext .actions { margin-top: 10px; padding-top: 8px; }
.showgo { --a: color-mix(in srgb, var(--ac) 70%, var(--ink)); color: var(--a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 45%, var(--line)); }
.showgo::after { content: "→"; transition: transform .5s cubic-bezier(.22, .8, .24, 1); }
.showgo:hover { box-shadow: inset 0 0 0 1px var(--ac); }
.showgo:hover::after, .showrow:hover .showgo::after { transform: translateX(6px); }
@media (max-width: 900px) {
  .showlist { gap: 56px; }
  .showrow, .showrow:nth-child(even) { grid-template-columns: 1fr; gap: 18px; perspective: 900px; }
  .showrow:nth-child(even) .showstage { order: 0; }
  .showdepth { border-radius: 14px; transform: translate3d(0, 0, calc(var(--e) * -140px)) rotateX(calc(var(--e) * var(--s) * 6deg)) rotateY(calc(var(--e) * var(--d) * 6deg)); opacity: calc(1 - var(--e) * .35); }
  html.js .showrow:not(.is-in) .showtext { transform: translate3d(0, 20px, 0); }
}
@media print { .showdepth { transform: none; opacity: 1; } html.js .showrow:not(.is-in) .showtext { opacity: 1; transform: none; } .srnow { display: none; } }

/* Einblenden beim Scrollen wie auf den Projektseiten */
html.js main.homeshow .rise { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
html.js main.homeshow .rise.in { opacity: 1; transform: none; }
@media print { html.js main.homeshow .rise { opacity: 1; transform: none; } }

/* Showreel: Clips, die eine Programmoberfläche zeigen, liegen abgedunkelt hinter der Überschrift (sr-dim setzt landing.js je Clip) */
.srvids::after { content: ""; position: absolute; inset: 0; background: rgba(4, 7, 11, .56); opacity: 0; transition: opacity 1.3s ease; pointer-events: none; }
.cinebox.sr-dim .srvids::after { opacity: 1; }
@media (max-width: 900px) { .srvids::after { display: none; } }

/* Aufmacher-Clip leicht vergrößert nach links gerückt: rechts liegen die Kennzahl-Karten, dort soll nichts Wichtiges verdeckt sein */
.cinevid.shift-l, .srvid.shift-l { transform: scale(1.12) translateX(-5%); }   /* 5 % x 1,12 = 5,6 % < 6 % Überstand je Seite: kein Spalt am rechten Rand */
@media (max-width: 900px) { .cinevid.shift-l, .srvid.shift-l { transform: none; } }

/* ===== Status-Bereich v2 (Startseite): Gesamtlage als Band, eine Karte je Dienst mit 24-Stunden-Verlauf ===== */
main.homeshow > .statuswrap.status2 { max-width: 1560px; }
.stsum { --sc: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; padding: 22px 28px; margin-bottom: 18px; border-radius: 20px; box-shadow: var(--shadow);
  background: linear-gradient(115deg, color-mix(in srgb, var(--sc) 13%, var(--surface)), var(--surface) 62%); border: 1px solid color-mix(in srgb, var(--sc) 38%, var(--line)); transition: border-color .5s ease; }
.stsum[data-state="up"] { --sc: var(--up); } .stsum[data-state="down"] { --sc: var(--down); }
.stpulse { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sc); }
.stpulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sc); opacity: 0; }
.stsum[data-state="up"] .stpulse::after, .stsum[data-state="down"] .stpulse::after { animation: st-pulse 2.4s ease-out infinite; }
@keyframes st-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.4); opacity: 0; } }
.stsumtext { min-width: 0; }
.stsumtext b { display: block; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.stsumtext span { color: var(--muted); font-size: 14.5px; }
.stfig { display: flex; flex-wrap: wrap; gap: 10px 42px; margin: 0 0 0 auto; }
.stfig dt { font-size: 12.5px; color: var(--muted); }
.stfig dd { margin: 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stcard { --ac: var(--accent); position: relative; padding: 20px 22px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); isolation: isolate;
  transition: border-color .45s ease, translate .5s cubic-bezier(.22, .8, .24, 1); }
.stcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 18px 18px 0 0; background: var(--ac); opacity: .9; }
.stcard::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px; pointer-events: none; background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--ac) 13%, transparent), transparent 70%); }
.stcard:hover { translate: 0 -3px; border-color: color-mix(in srgb, var(--ac) 55%, var(--line)); }
.stcard header { display: flex; align-items: center; gap: 11px; }
.stcard h3 { flex: 1; min-width: 0; margin: 0; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stcard h3 a { text-decoration: none; } .stcard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stcard[data-state="up"] .dot { background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 20%, transparent); }
.stcard[data-state="down"] .dot { background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 20%, transparent); }
.stcard .st { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); }
.stcard[data-state="up"] .st { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.stcard[data-state="down"] .st { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.stnums { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 18px 0 16px; }
.stnums b { display: block; font-size: clamp(26px, 2.3vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stnums span { font-size: 12.5px; color: var(--muted); }
/* Verlauf: 48 Balken zu je 30 Minuten. Höhe = Antwortzeit (im Verhältnis zum höchsten Wert des Dienstes), Farbe = Verfügbarkeit */
.stchart { display: flex; align-items: flex-end; gap: 3px; height: 68px; cursor: crosshair; }
.stchart i { flex: 1; min-width: 2px; height: var(--h, 100%); border-radius: 3px 3px 1px 1px; background: var(--surface-2); transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1) calc(var(--k, 0) * 14ms + .2s), filter .15s ease; }
.stchart i.u { background: color-mix(in srgb, var(--up) 80%, var(--surface)); } .stchart i.p { background: var(--warn); } .stchart i.d { background: var(--down); }
.stchart i.hot { filter: brightness(1.4) saturate(1.1); }
html.js .stcard.rise:not(.in) .stchart i { transform: scaleY(0); }
.staxis { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.stextra { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--ac) 65%, var(--ink)); font-variant-numeric: tabular-nums; }
.sttip { position: absolute; z-index: 6; left: 0; top: 0; padding: 6px 11px 7px; border-radius: 10px; white-space: nowrap; pointer-events: none; font-size: 12.5px; line-height: 1.35; opacity: 0; transition: opacity .15s ease;
  background: color-mix(in srgb, var(--bg) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.sttip.on { opacity: 1; }
.sttip b { display: block; font-weight: 700; }
.sttip span { color: var(--muted); }
@media (max-width: 1100px) { .stgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stgrid { grid-template-columns: 1fr; } .stsum { padding: 18px 18px; } .stfig { margin-left: 0; gap: 10px 28px; } .stchart { height: 56px; gap: 2px; } }
@media print { .stpulse::after { animation: none; } html.js .stcard.rise:not(.in) .stchart i { transform: none; } }

/* Projektfarbe an Reihen, Status-Karten und Showreel-Etikett: muss die Vorgabe (--ac: Akzent) dieser Bausteine schlagen, die weiter unten steht als die allgemeinen .c-Klassen */
.showrow.c-skytrace, .stcard.c-skytrace, .srnow.c-skytrace { --ac: var(--sky); } .showrow.c-radiant, .stcard.c-radiant, .srnow.c-radiant { --ac: var(--radiant); } .showrow.c-trm, .stcard.c-trm, .srnow.c-trm { --ac: var(--trm); } .showrow.c-rad, .stcard.c-rad, .srnow.c-rad { --ac: var(--rad); } .showrow.c-cod, .stcard.c-cod, .srnow.c-cod { --ac: var(--cod); } .showrow.c-polar, .stcard.c-polar, .srnow.c-polar { --ac: var(--polar); } .showrow.c-depot, .stcard.c-depot, .srnow.c-depot { --ac: var(--depot); } .showrow.c-radio, .stcard.c-radio, .srnow.c-radio { --ac: var(--radio); } .showrow.c-ausserfern, .stcard.c-ausserfern, .srnow.c-ausserfern { --ac: var(--ausserfern); }

/* ===== About-Bereich v2 (Startseite): Porträt mit Tiefe, Leitsatz, Projekte nach Zugang, Technik, Kontakt-Band ===== */
main.homeshow > .about.about2 { max-width: 1560px; }
.ab2 { display: grid; grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr); gap: clamp(28px, 4.6vw, 90px); align-items: center; perspective: 1600px; }
.abportrait { position: relative; display: block; text-decoration: none; max-width: 460px; justify-self: center; width: 100%; }
.abportrait::before { content: ""; position: absolute; inset: 10% 2% -4%; border-radius: 60px; background: linear-gradient(120deg, var(--sky), var(--rad)); filter: blur(70px); opacity: .22; transition: opacity .8s ease; pointer-events: none; }
.abportrait:hover::before { opacity: .38; }
/* --e/--s setzt landing.js beim Scrollen (wie bei den Clip-Reihen), --px/--py folgen dem Mauszeiger */
.abdepth { --e: 0; --s: 1; position: relative; display: block; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translate3d(0, calc(var(--e) * var(--s) * 40px), calc(var(--e) * -380px)) rotateX(calc(var(--e) * var(--s) * 10deg - var(--py, 0) * 7deg)) rotateY(calc(var(--e) * 16deg + var(--px, 0) * 9deg));
  opacity: calc(1 - var(--e) * .5); transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s linear, border-color .5s ease; will-change: transform; }
.abportrait:hover .abdepth { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.abdepth img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1326; object-fit: cover; }
.abname { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 70px 22px 20px; color: #fff; background: linear-gradient(0deg, rgba(4, 7, 11, .92), rgba(4, 7, 11, 0)); }
.abname b { font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.02em; }
.abname span { font-size: 14px; color: rgba(255, 255, 255, .78); }
.abtext { min-width: 0; }
.abtext .eyebrow { margin-bottom: 14px; }
.abquote { position: relative; font-size: clamp(26px, 3.1vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; max-width: 22ch; margin-bottom: 22px;
  background: linear-gradient(95deg, var(--ink) 30%, color-mix(in srgb, var(--sky) 70%, var(--ink)) 70%, color-mix(in srgb, var(--rad) 70%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.abquote::before { content: "„"; } .abquote::after { content: "“"; }
html[lang="en"] .abquote::before { content: "“"; } html[lang="en"] .abquote::after { content: "”"; }
.abtext > .prose { max-width: 62ch; font-size: clamp(16px, 1.2vw, 18.5px); color: var(--muted); }
.abaccess { display: grid; gap: 12px; margin-top: 26px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.abrow { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 10px 16px; }
.abrow .badge { justify-self: start; white-space: nowrap; }
.abchips { display: flex; flex-wrap: wrap; gap: 8px; }
.abchips li { --ac: var(--accent); }
.abchips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 11px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 600; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s ease, translate .3s ease; }
.abchips a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 8px color-mix(in srgb, var(--ac) 70%, transparent); }
.abchips a:hover { box-shadow: inset 0 0 0 1px var(--ac); translate: 0 -2px; }
.abchips .c-skytrace { --ac: var(--sky); } .abchips .c-radiant { --ac: var(--radiant); } .abchips .c-trm { --ac: var(--trm); } .abchips .c-rad { --ac: var(--rad); }
.abchips .c-cod { --ac: var(--cod); } .abchips .c-polar { --ac: var(--polar); } .abchips .c-depot { --ac: var(--depot); } .abchips .c-radio { --ac: var(--radio); } .abchips .c-ausserfern { --ac: var(--ausserfern); }
.abstack { margin-top: 24px; }
.abstack h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; }
.abcta { margin-top: 24px; }
.abcontact { margin-top: clamp(30px, 4vw, 56px); background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), var(--surface) 62%); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); padding: 26px 30px; border-radius: 20px; }
.abcontact .prose { font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -.01em; }
@media (max-width: 900px) {
  .ab2 { grid-template-columns: 1fr; gap: 24px; perspective: 900px; }
  .abportrait { max-width: 340px; justify-self: start; }
  .abdepth { transform: translate3d(0, 0, calc(var(--e) * -120px)) rotateX(calc(var(--e) * var(--s) * 6deg)); opacity: calc(1 - var(--e) * .3); }
  .abrow { grid-template-columns: 1fr; gap: 8px; }
  .abcontact { padding: 20px; }
}
@media print { .abdepth { transform: none; opacity: 1; } }

/* ===== Seite „Über mich“ v2: großer Leitsatz, Säulen, Projektkacheln mit Clip, Werkzeugkasten als Karten ===== */
.about3 .phero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.about3 .abportrait { max-width: 480px; }
.pull2 { margin: 0; padding: clamp(34px, 5.5vw, 84px) clamp(22px, 5vw, 80px); border-radius: 28px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(115deg, color-mix(in srgb, var(--sky) 13%, var(--surface)), var(--surface) 50%, color-mix(in srgb, var(--rad) 11%, var(--surface))); }
.pull2 p { margin: 0 auto; max-width: 19ch; font-size: clamp(30px, 4.6vw, 72px); line-height: 1.06; font-weight: 800; letter-spacing: -.045em; padding-bottom: .1em;
  background: linear-gradient(95deg, var(--ink) 25%, color-mix(in srgb, var(--sky) 75%, var(--ink)) 65%, color-mix(in srgb, var(--rad) 75%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pull2 p::before { content: "„"; } .pull2 p::after { content: "“"; }
html[lang="en"] .pull2 p::before { content: "“"; } html[lang="en"] .pull2 p::after { content: "”"; }
.pull2 footer { margin-top: 20px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
/* Säulen: große Karten mit Nummer und – wo passend – den zugehörigen Projekten */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pillars.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar { --ac: var(--accent); position: relative; display: flex; flex-direction: column; padding: 26px 28px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; isolation: isolate; transition: border-color .45s ease, translate .5s cubic-bezier(.22, .8, .24, 1); }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ac); opacity: .9; }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--ac) 14%, transparent), transparent 70%); }
.pillar:hover { translate: 0 -3px; border-color: color-mix(in srgb, var(--ac) 55%, var(--line)); }
.pillar .bigno { position: absolute; right: 16px; top: -6px; z-index: -1; font-size: clamp(80px, 8.5vw, 150px); line-height: 1; font-weight: 800; letter-spacing: -.07em; color: color-mix(in srgb, var(--ac) 15%, transparent); font-variant-numeric: tabular-nums; }
.pillar .pno { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ac); font-variant-numeric: tabular-nums; }
.pillar h3 { margin: 8px 0 10px; font-size: clamp(20px, 1.75vw, 28px); line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; }
.pillar p { color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); max-width: 62ch; }
.pillar .abchips { margin-top: auto; padding-top: 18px; }
.pillars.four .pillar { padding: 22px 22px 22px; } .pillars.four .pillar h3 { font-size: clamp(19px, 1.5vw, 23px); } .pillars.four .bigno { font-size: clamp(64px, 5.4vw, 100px); top: auto; bottom: -12px; right: 12px; }   /* unten rechts: oben stünde die Ziffer hinter der Überschrift */
/* Projektkacheln: Vorschaubild, beim Überfahren läuft der Clip */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ptile { --ac: var(--accent); display: flex; flex-direction: column; text-decoration: none; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .45s ease, translate .5s cubic-bezier(.22, .8, .24, 1); }
.ptile:hover, .ptile:focus-visible { translate: 0 -4px; border-color: color-mix(in srgb, var(--ac) 60%, var(--line)); }
.ptmedia { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0e13; border-bottom: 1px solid var(--line); }
.ptmedia video, .ptmedia img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s cubic-bezier(.22, .8, .24, 1); }
.ptile:hover .ptmedia video, .ptile:hover .ptmedia img { scale: 1.04; }
.ptmedia::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ac); scale: 0 1; transform-origin: 0 50%; transition: scale .6s cubic-bezier(.2, .8, .2, 1); }
.ptile:hover .ptmedia::after, .ptile:focus-visible .ptmedia::after { scale: 1 1; }
.ptbody { display: flex; flex-direction: column; gap: 7px; padding: 15px 17px 18px; }
.ptbody .badge { align-self: flex-start; }
.ptbody b { font-size: 18px; letter-spacing: -.01em; }
.ptbody .tl { color: var(--muted); font-size: 14px; line-height: 1.45; }
/* Werkzeugkasten */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.toolcard { padding: 20px 22px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* Wie sattelfest (tool-levels): drei Stufen, unterschieden durch Farbe und Punktform – voll, halb, hohl. Schrift bleibt in Textfarbe. */
.lv-3 { --lv: var(--radio); } .lv-2 { --lv: var(--sky); } .lv-1 { --lv: var(--depot); }
.toolcard .tags.big li[class^="lv-"] { display: inline-flex; align-items: center; gap: 8px; padding-left: 11px; color: var(--ink);
  background: color-mix(in srgb, var(--lv) 11%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--lv) 42%, transparent); }
.toolcard .tags.big li[class^="lv-"]::before, .toollegend li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--lv); }
.lv-3::before { background: var(--lv); }
.lv-2::before { background: linear-gradient(90deg, var(--lv) 50%, transparent 50%); }
.toollegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.toollegend li { display: inline-flex; align-items: center; gap: 7px; }
/* „Vertiefe ich als Nächstes“: schmaler Streifen über die ganze Breite, gestrichelt statt gefüllt */
.toolcard.next { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 16px 22px; background: transparent; border-style: dashed; box-shadow: none; }
.toolcard.next h3 { margin: 0; }
.toolcard.next .tags.big { margin: 0; }
.toolcard.next .tags.big li { border: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent); background: transparent; }
.toolnote { margin: 0; font-size: 14px; color: var(--muted); }
.toolcard h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.toolcard .tags.big li { transition: translate .3s ease, color .3s ease; } .toolcard .tags.big li:hover { translate: 0 -2px; color: var(--ink); }
@media (max-width: 1200px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillars.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .about3 .phero { grid-template-columns: 1fr; } .about3 .abportrait { max-width: 320px; } .pillars { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ptiles, .pillars.four { grid-template-columns: 1fr; } .pillar { padding: 22px 20px; } }
.pillar.c-skytrace, .ptile.c-skytrace { --ac: var(--sky); } .pillar.c-radiant, .ptile.c-radiant { --ac: var(--radiant); } .pillar.c-trm, .ptile.c-trm { --ac: var(--trm); } .pillar.c-rad, .ptile.c-rad { --ac: var(--rad); }
.pillar.c-cod, .ptile.c-cod { --ac: var(--cod); } .pillar.c-polar, .ptile.c-polar { --ac: var(--polar); } .pillar.c-depot, .ptile.c-depot { --ac: var(--depot); } .pillar.c-radio, .ptile.c-radio { --ac: var(--radio); } .pillar.c-ausserfern, .ptile.c-ausserfern { --ac: var(--ausserfern); }

/* ----- Aufblende (cine-open): Der große Video-Aufmacher öffnet sich aus einer leuchtenden Linie in der Bildmitte nach oben und unten.
   Er steht dabei von Anfang an in voller Breite – nichts wird skaliert oder verschoben, es sind nie Seitenkanten zu sehen.
   --t0 = ab wann Text, Karten und Buttons folgen. Die Keyframes beschreiben wie überall nur den Startzustand. ----- */
.phero.cine { --t0: .8s; }
.cinebox { animation: cine-open 1.05s cubic-bezier(.76, 0, .24, 1) .3s backwards; }
@keyframes cine-open { from { clip-path: inset(calc(50% - 3px) 0 calc(50% - 3px) 0); } to { clip-path: inset(-40px 0 -240px 0); } }
.cinebox::before { content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: calc(50% - 1px); height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--ac, var(--accent)) 16%, color-mix(in srgb, var(--ac, var(--accent)) 45%, #fff) 50%, var(--ac, var(--accent)) 84%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--ac, var(--accent)) 80%, transparent); animation: cine-line 1.25s cubic-bezier(.3, .7, .2, 1) backwards; }
.hero2 .cinebox::before { background: linear-gradient(90deg, transparent, #6cbcff 16%, #fff 50%, #ff8fb4 84%, transparent); box-shadow: 0 0 14px rgba(140, 170, 255, .8); }
@keyframes cine-line { 0% { opacity: 1; transform: scaleX(0); } 34% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes cine-zoom { from { transform: scale(1.12); } }
@keyframes cine-open-s { from { clip-path: inset(50% 0 50% 0 round 14px); } to { clip-path: inset(0 round 14px); } }
@media (min-width: 901px) { .cinebox .srvid, .cinebox > .cinevid { animation: cine-zoom 2s cubic-bezier(.2, .7, .2, 1) .3s backwards; } }
/* was im Aufmacher liegt, kommt erst, wenn das Bild offen ist */
.cinetext .meta { animation-delay: var(--t0); } .cinetext h1 { animation-delay: calc(var(--t0) + .12s); } .cinetext .lead { animation-delay: calc(var(--t0) + .28s); }
.phero.cine .facts3d li { animation-delay: calc(var(--t0) + .3s + var(--i) * .13s); }
.cinecta { animation-delay: calc(var(--t0) + .55s); }
.srnow { animation-delay: calc(var(--t0) + .7s); }
/* Startseite: ihre eigenen Einstiegsanimationen (hero-rise, hero-line, hero-color) um --t0 verschieben */
section.hero.hero2 .eyebrow { animation-delay: var(--t0); }
section.hero.hero2 h1 > span { animation-delay: calc(var(--t0) + .08s); }
section.hero.hero2 h1 > em { animation-delay: calc(var(--t0) + .2s), calc(var(--t0) + .58s); }
section.hero.hero2 .lead { animation-delay: calc(var(--t0) + .36s); }
section.hero.hero2 .facts li[data-live] { animation-delay: calc(var(--t0) + .5s); }
@media (prefers-reduced-motion: reduce) {
  /* dort gelten für den Text die ruhigen Einblendungen mit festen Zeiten (weiter oben, !important) – ebenfalls verschieben */
  section.hero.hero2 .eyebrow { animation-delay: var(--t0) !important; }
  section.hero.hero2 h1 > span { animation-delay: calc(var(--t0) + .1s) !important; }
  section.hero.hero2 h1 > em { animation-delay: calc(var(--t0) + .25s) !important; }
  section.hero.hero2 .lead { animation-delay: calc(var(--t0) + .42s) !important; }
  section.hero.hero2 .facts li[data-live] { animation-delay: calc(var(--t0) + .55s) !important; }
}
@media (max-width: 900px) {
  /* schmal: nur das Video öffnet sich (es steht dort als eigenes Bild über dem Text) */
  .phero.cine { --t0: .5s; }
  .cinebox { animation: none; }
  .cinebox::before { display: none; }
  .srvids, .cinebox > .cinevid { animation: cine-open-s .95s cubic-bezier(.76, 0, .24, 1) .1s backwards; }
}
