/* Test „Bühne“ (12.11.2026, Jonas: nach shopify.com/de/enterprise, Abschnitt
   „Ergebnisse, an denen der Vorstand nicht vorbeikommt“). Fassung „Daten“ ist
   Standard im Shopify-Stil (seit 13.11.2026 final, im Theme fest auf der
   Startseite), ?buehne=bausteine|aus zum Vergleich im Prototyp; assets.py
   kopiert die Datei. Markup baut buehne.js.

   Ablauf wie bei Shopify (Werte aus deren Stylesheet abgelesen): Unter den
   Marken steigt ein Handy mit einem Shop-Dashboard auf, die Überschrift
   blendet darüber ein, das Handy schrumpft unter sie und sinkt weg. Dann
   schieben sich sechs Kacheln in drei Reihen darüber, jede mit eigenem
   Versatz (--rise), so kommen sie gestaffelt. Zuletzt gleitet die
   Überschrift nach oben weg. Im Hintergrund schweben Dinge am Rand (Shop-
   Screens bzw. Datenquellen), die mit dem Scrollen ziehen und dunkler
   werden, wenn die Kacheln kommen (Shopify macht sie unscharf; hier nur
   opacity und transform). Jede Kachel spielt einmal einen kleinen Ablauf,
   sobald sie zur Hälfte zu sehen ist, und wieder, wenn man zurückkommt.

   Alles am Scrollen hängt an der Szene (kein Autoplay, deshalb kein
   Pause-Knopf); die Abläufe in den Kacheln dauern höchstens vier Sekunden.
   Reduzierte Bewegung: nichts wird festgehalten, alles steht im Endstand. */

html[data-buehne] {
  --bn-ground: var(--black);
  --bn-tile: var(--sh-kachel, #141414);
  --bn-pane: #172020;
  --bn-ui: #ffffff;
  --bn-ui-soft: #eef1f0;
  --bn-ui-ink: #141a1a;
  --bn-ui-ink-2: #566060;
  --bn-radius: 28px;
  --bn-glow: var(--sh-schein, rgba(63, 191, 138, 0.12));
  --dur-bn: 900ms; /* Balken, Wege in den Kacheln */
  --dur-bn-in: 420ms; /* Einblenden kleiner Teile */
  --dur-bn-bridge: 700ms; /* Handy: Lichtpunkt vom Knoten in den Plan */
  --dur-bn-lit: 1000ms; /* Branchen: eine Spalte leuchtet kurz auf */
  --bn-lit-step: 380ms; /* Versatz von Spalte zu Spalte */
  --bn-lit-n: 5; /* sichtbare Spalten (Handy 3), danach leuchten alle */
  --dur-bn-all: 700ms; /* Branchen: zum Schluss alle zusammen */
  --dur-bn-hl: 1100ms; /* Signale: zweite Zeile der Überschrift deckt sich auf */
  --bn-hl-delay: 500ms;
  --dur-bn-move: 650ms; /* Karten wandern, Reihen sortieren sich */
  --bn-pitch: 36px; /* Abstand der Quellen in „Signale aus allen Quellen“ */
}

.bn {
  --bn-end: 0.68;
  position: relative;
  background: var(--bn-ground);
  color: var(--white);
}
.bn--daten {
  --bn-end: 0.56;
}
.bn-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: max(60svh, 520px) auto;
  overflow: clip;
}
.bn-back,
.bn-stage {
  grid-area: 1 / 1 / 3 / 2;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100svh;
}

/* ---------- Hintergrund ---------- */

/* Flüssig (13.11.2026, Jonas: „kann es sein, dass die Animation leicht
   hakt?“): Der Hintergrund und seine Abdunklung liegen auf eigenen
   Ebenen, ihr Zoom und ihre Deckkraft kosten so kein Neuzeichnen. Die
   Unschärfe sitzt nicht mehr auf dem schwebenden Element (.bn-fl, eigene
   Ebene, bewegt sich), sondern auf seinem Inhalt (.bn-in): Der Browser
   zeichnet sie einmal in die Ebene und verschiebt sie danach nur. Vorher
   rechnete er jeden Frame für jedes der rund 40 Teile neu (gemessen:
   Frames über 25 ms von rund 60 auf rund 12 von 180). */
.bn-back {
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.bn-floats {
  position: absolute;
  inset: 0;
}
.bn-fl {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r, 0deg));
  will-change: transform;
}
.bn-in {
  display: block;
}
.bn-fl[data-depth="0"] {
  opacity: 0.9;
}
.bn-fl[data-depth="1"] {
  opacity: 0.66;
}
.bn-fl[data-depth="1"] > .bn-in {
  filter: blur(3px);
}
.bn-fl[data-depth="2"] {
  opacity: 0.42;
}
.bn-fl[data-depth="2"] > .bn-in {
  filter: blur(8px);
}
.bn-fl--shot {
  width: calc(var(--w) * var(--bn-k, 1));
}
.bn-fl--shot > .bn-in {
  aspect-ratio: 300 / 659;
  border-radius: calc(16px * var(--bn-k, 1));
  overflow: hidden;
  background: #1b2222;
}
.bn-fl--shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* freigestellte Produkte (?flug=produkte) */
.bn-fl--prod {
  width: calc(var(--w) * var(--bn-k, 1));
}
.bn-fl--prod img {
  display: block;
  width: 100%;
  height: auto;
}
/* Produkte kräftiger als Screens, wie die Dinge bei Shopify */
.bn-fl--prod[data-depth="0"] {
  opacity: 1;
}
.bn-fl--prod[data-depth="1"] {
  opacity: 0.82;
}
.bn-fl--prod[data-depth="2"] {
  opacity: 0.58;
}
.bn-fl--pill > .bn-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  background: #18201f;
  color: #dfe4e3;
  font-size: 14px;
  white-space: nowrap;
}
.bn-fl--pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.bn-fl--dot > .bn-in {
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c);
}
.bn-dim {
  position: absolute;
  inset: 0;
  background: var(--bn-ground);
  opacity: 0.35;
  will-change: opacity;
}

/* ---------- Bühne: Überschrift und Handy ---------- */

.bn-stage {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: max(104px, 26svh - 64px);
  overflow: hidden;
  pointer-events: none;
}
.bn-head-exit {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--gutter), 960px);
  pointer-events: auto;
}
.bn-head .section-head {
  margin: 0;
  text-align: center;
}
.bn-head .t-display {
  font-size: clamp(2.4rem, 1.2rem + 4.4svh, 4.5rem);
  line-height: 1.04;
}
.bn-head .section-head p {
  max-width: 44ch;
  margin: 18px auto 0;
  color: var(--grey-1);
  font-size: clamp(16px, 0.9rem + 0.4vw, 19px);
  line-height: 1.5;
}
.bn--daten .bn-head .section-head p {
  max-width: 62ch;
}
.bn-head .rot-pause {
  top: calc((clamp(2.4rem, 1.2rem + 4.4svh, 4.5rem) * 1.04 - 30px) / 2);
}
.bn-phone {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bn-phone-frame {
  height: 88%;
  aspect-ratio: 0.86;
  translate: 0 4%;
  transform-origin: 50% 100%;
  will-change: transform;
}
.bn-phone-art {
  width: 100%;
  will-change: transform;
}

/* ---------- Handy (CSS, Maße in cqw des Geräts) ---------- */

.bn-dev {
  position: relative;
  width: 100%;
  aspect-ratio: 393 / 852;
  padding: 2.3%;
  border-radius: 15.6% / 7.2%;
  background: linear-gradient(150deg, #43474b, #1e2023 38%, #2a2d30 70%, #3b3e42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 3px #0c0d0e;
  container-type: inline-size;
}
.bn-dev-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 13.6% / 6.3%;
  background: #0b1212;
  color: #f2f2f2;
}
.bn-sb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12.5cqw;
  padding: 0 8cqw 0 9cqw;
  font-size: 3.7cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bn-sb svg {
  width: 8.6cqw;
  fill: currentColor;
}
.bn-island {
  position: absolute;
  top: 2.8cqw;
  left: 50%;
  width: 27cqw;
  height: 7.6cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: #000;
}
.bn-app {
  padding: 1cqw 4.6cqw 0;
}
.bn-app-top {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
}
.bn-ava {
  display: grid;
  place-items: center;
  width: 8.6cqw;
  height: 8.6cqw;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bn-ui-ink);
  font-size: 3.8cqw;
  font-weight: 600;
}
.bn-app-id {
  display: grid;
  line-height: 1.25;
}
.bn-app-id b {
  font-size: 3.7cqw;
  font-weight: 500;
}
.bn-app-id small,
.bn-pane small {
  color: #9fa9a8;
  font-size: 2.9cqw;
}
.bn-dev .bn-note {
  position: static;
  margin-left: auto;
  font-size: 2.6cqw;
  color: #9fa9a8;
}
.bn-pane {
  margin-top: 2.8cqw;
  padding: 3.6cqw 4cqw;
  border-radius: 4.4cqw;
  background: var(--bn-pane);
}
.bn-pane small {
  display: block;
}
.bn-big {
  display: block;
  margin-top: 0.6cqw;
  font-size: 8cqw;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.bn-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 0.7cqw;
  height: 15cqw;
  margin-top: 2.4cqw;
}
.bn-bars i {
  height: calc(var(--h) * 100%);
  border-radius: 0.8cqw;
  background: linear-gradient(to top, var(--data-3), var(--lime));
  transform-origin: 50% 100%;
}
.bn-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.8cqw;
  /* gleicher Abstand wie zwischen den Kacheln (die Panes darin haben keinen) */
  margin-top: 2.8cqw;
}
.bn-kpis .bn-pane {
  position: relative;
  margin-top: 0;
  padding-bottom: 9cqw;
}
.bn-kpis b {
  display: block;
  margin-top: 0.6cqw;
  font-size: 5.4cqw;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bn-kpis em {
  font-style: normal;
  color: var(--data-3);
  font-size: 2.7cqw;
}
.bn-spark {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  bottom: 2.6cqw;
  height: 5.4cqw;
}
.bn-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bn-spark path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.bn-wipe {
  position: absolute;
  inset: -2px;
  background: var(--bn-pane);
  transform-origin: 100% 50%;
  transform: scaleX(0);
}
.bn-stackbar {
  display: flex;
  gap: 2px;
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
}
.bn-stackbar i {
  flex: var(--w) 1 0;
  background: var(--c);
  transform-origin: 0 50%;
}
/* ---------- Kacheln ---------- */

.bn-cards {
  grid-area: 2 / 1;
  position: relative;
  z-index: 2;
  padding: 96px 0 32px;
}
.bn-grid {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 20px;
  width: min(100% - 2 * var(--gutter), 1200px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.bn-w3 {
  grid-column: span 12;
}
.bn-w2 {
  grid-column: span 8;
}
.bn-w1 {
  grid-column: span 10;
}
.bn-w4 {
  grid-column: span 11;
}
.bn-w3b {
  grid-column: span 9;
}
.bn-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 500px;
  overflow: hidden;
  border-radius: var(--bn-radius);
  background:
    radial-gradient(90% 70% at 50% -10%, var(--bn-glow), transparent 70%),
    var(--bn-tile);
  will-change: transform;
}
.bn-txt {
  position: relative;
  z-index: 2;
  padding: 30px 32px 0;
}
.bn-txt h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.05rem + 0.8vw, 1.85rem);
  line-height: 1.16;
}
.bn-txt p {
  max-width: 40ch;
  margin: 12px 0 0;
  color: var(--grey-1);
  font-size: 16px;
  line-height: 1.5;
}
.bn-viz {
  position: relative;
  flex: 1;
  min-height: 0;
}
.bn-note {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: var(--grey-2);
}
/* breite Kacheln: Text links (Titel oben, Satz unten), Bild rechts */
:is(.bn-cr, .bn-prozess, .bn-src) {
  flex-direction: row;
}
:is(.bn-cr, .bn-prozess, .bn-src) > .bn-txt {
  display: flex;
  flex: 0 0 38%;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 32px;
}
:is(.bn-cr, .bn-prozess, .bn-src) > .bn-viz {
  flex: 1;
}
/* Signale (13.11.2026, Headline „Jeder Kauf hat einen Grund. Jeder Abbruch
   auch.“): die zwei Sätze passen nicht in die Textspalte, deshalb steht die
   Überschrift über die ganze Kachel, darunter links der Satz, rechts das
   Bild. Schmal (bis 1100 px) stehen ohnehin alle Teile untereinander. */
@media (min-width: 1101px) {
  .bn-src {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .bn-src > .bn-txt {
    display: contents;
  }
  .bn-src > .bn-txt > * {
    position: relative;
    z-index: 2;
  }
  .bn-src > .bn-txt > h3 {
    grid-column: 1 / -1;
    padding: 30px 32px 0;
  }
  .bn-src > .bn-txt > p {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin: 0;
    padding: 0 32px 32px;
  }
  .bn-src > .bn-viz {
    grid-column: 2;
    grid-row: 2;
  }
}

/* weiße Oberflächen in den Kacheln (wie die UI-Ausschnitte bei Shopify) */
.bn-ui {
  border-radius: 18px;
  padding: 18px;
  background: var(--bn-ui);
  color: var(--bn-ui-ink);
  font-size: 13px;
}
.bn-ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}
.bn-state {
  display: grid;
}
.bn-state i {
  grid-area: 1 / 1;
  justify-self: end;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--bn-ui-soft);
  color: var(--bn-ui-ink-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}
.bn-state i + i {
  background: var(--lime);
  color: var(--bn-ui-ink);
}

/* Conversion Rate: A/B-Test */
.bn-cr .bn-viz {
  display: grid;
  place-items: center;
  padding: 24px 32px 44px 8px;
}
.bn-deck {
  position: absolute;
  inset: 24px 32px 44px 8px;
  display: grid;
  place-items: center;
}
.bn-deck i {
  grid-area: 1 / 1;
  width: min(100%, 330px);
  height: 250px;
  border-radius: 18px;
  background: #fff;
  opacity: 0.08;
  transform: translate(-30px, -26px) rotate(-7deg);
}
.bn-deck i + i {
  opacity: 0.16;
  transform: translate(-15px, -13px) rotate(-3.5deg);
}
.bn-ab {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 330px);
}
.bn-ab-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 6px 10px;
}
.bn-ab-k {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bn-ui-soft);
  font-size: 12px;
  font-weight: 500;
}
.bn-ab-row.is-b .bn-ab-k {
  background: var(--lime);
}
.bn-ab-l {
  color: var(--bn-ui-ink-2);
}
.bn-ab-row .bn-n {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bn-ab-bar,
.bn-sig-bar {
  position: relative;
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: var(--bn-ui-soft);
}
.bn-ab-bar i,
.bn-sig-bar i {
  display: block;
  width: calc(var(--w) * 100%);
  height: 100%;
  border-radius: inherit;
  background: #b8c1c0;
  transform-origin: 0 50%;
}
.bn-ab-row.is-b .bn-ab-bar i {
  background: var(--data-hell-3);
}
.bn-sig {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding-top: 12px;
  border-top: 1px solid var(--bn-ui-soft);
  color: var(--bn-ui-ink-2);
}
.bn-sig .bn-n {
  color: var(--bn-ui-ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bn-sig-bar i {
  --w: 0.96;
  background: var(--bn-ui-ink);
}
.bn-sig-bar em {
  position: absolute;
  left: 95%;
  top: -3px;
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: var(--data-hell-3);
}
.bn-win {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--lime);
  font-weight: 500;
}
.bn-ab-row .bn-n {
  --d: 200;
}
.bn-ab-row.is-b .bn-n {
  --d: 350;
}
.bn-sig .bn-n {
  --d: 900;
}

/* Page Speed: Tacho und Messwerte */
.bn-speed .bn-viz {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 0 24px 46px;
}
.bn-gauge {
  position: relative;
  width: clamp(150px, 15vw, 196px);
  aspect-ratio: 1;
}
.bn-gauge svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bn-gauge rect.off {
  fill: rgba(255, 255, 255, 0.12);
}
.bn-gauge rect.on {
  fill: var(--lime);
}
.bn-gauge-n {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.bn-gauge-n .bn-n {
  font-family: var(--sh-titel, var(--sans));
  font-size: clamp(40px, 4vw, 54px);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bn-gauge-n small {
  margin-top: 6px;
  color: var(--grey-1);
  font-size: 13px;
}
.bn-vitals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bn-vitals li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--grey-1);
  font-size: 13px;
}
.bn-vitals b {
  color: var(--white);
  font-weight: 500;
}
.bn-vitals i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--data-3);
}

/* UX/UI: drei Handys, die Seite im mittleren läuft mit dem Scrollen */
.bn-ux .bn-viz {
  overflow: hidden;
}
.bn-fan {
  position: absolute;
  left: 50%;
  bottom: -130px;
  width: clamp(170px, 16vw, 206px);
  translate: -50% 0;
}
.bn-mini {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 78%;
  aspect-ratio: 300 / 659;
  overflow: hidden;
  border-radius: 18px;
  background: #1b2222;
  translate: -50% 0;
}
.bn-mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bn-mini--l {
  transform: translateX(-74%) rotate(-9deg);
}
.bn-mini--r {
  transform: translateX(74%) rotate(9deg);
}
/* breite UX-Kachel (Fassung „Daten“): außen zwei weitere, tiefer und
   stärker gedreht */
.bn-mini--ll,
.bn-mini--rr {
  bottom: 4px;
  width: 70%;
}
.bn-mini--ll {
  transform: translateX(-150%) rotate(-16deg);
}
.bn-mini--rr {
  transform: translateX(150%) rotate(16deg);
}
/* mittlerer Screen ohne Gerätrahmen, gerundet und im Format wie die
   Screens daneben (13.11.2026, Jonas: „einfach nur der Screen“) */
.bn-dev--ux {
  position: relative;
  z-index: 1;
  aspect-ratio: 300 / 659;
  padding: 0;
  border-radius: 22px;
  background: none;
  box-shadow: none;
}
.bn-dev--ux .bn-dev-screen {
  border-radius: 22px;
}
.bn-scroll {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bn-scroll img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}

/* Award: Foto rechts, vier Siegel unten */
.bn-award-bg {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 24%;
  -webkit-mask: linear-gradient(to right, transparent, #000 45%);
  mask: linear-gradient(to right, transparent, #000 45%);
}
.bn-award::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(20, 26, 26, 0.96) 40%, rgba(20, 26, 26, 0.55) 62%, rgba(20, 26, 26, 0.12));
  pointer-events: none;
}
.bn-award .bn-txt h3 {
  max-width: 11ch;
}
.bn-award .bn-txt p {
  max-width: 22ch;
}
.bn-fig {
  display: block;
  margin-bottom: 10px;
  font-family: var(--sh-titel, var(--sans));
  font-size: clamp(44px, 4vw, 60px);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bn-seals {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bn-seals li {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 66px;
}
.bn-seals li + li {
  margin-left: -12px;
}
.bn-seals img {
  display: block;
  width: 66px;
  height: 66px;
}
.bn-seals span {
  color: var(--grey-1);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Erfolg nach Prozess: Karten wandern über das Board */
.bn-prozess .bn-viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 28px 32px 48px 8px;
}
.bn-board {
  position: relative;
}
.bn-board-h,
.bn-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bn-board-h {
  color: var(--grey-1);
  font-size: 13px;
}
.bn-board-h span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 6px;
}
.bn-live {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--bn-ui-ink);
  font-size: 12px;
  font-weight: 500;
}
.bn-lanes {
  height: 200px;
  margin-top: 10px;
}
.bn-lanes i {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}
.bn-cards-in {
  position: absolute;
  inset: 30px 0 auto;
  height: 200px;
}
.bn-card {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc((100% - 20px) / 3 - 12px);
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  background: #222b2b;
  font-size: 13px;
  white-space: nowrap;
  transform: translate(calc(var(--c) * (100% + 22px)), calc(var(--r) * 48px));
}
.bn-st {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5d6766;
}
.bn-st::before,
.bn-st::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
}
.bn-st::before {
  background: var(--violet);
}
.bn-st::after {
  background: var(--lime);
}
.bn-card[data-col="1"] .bn-st::before,
.bn-card[data-col="2"] .bn-st::after {
  opacity: 1;
}
.bn-trend {
  position: relative;
  height: 68px;
}
.bn-trend small {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--grey-1);
  font-size: 12px;
}
.bn-trend svg {
  position: absolute;
  inset: 18px 0 0;
  width: 100%;
  height: 50px;
}
.bn-trend-a {
  fill: rgba(217, 249, 113, 0.1);
}
.bn-trend-l {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.bn-trend .bn-wipe {
  inset: 16px -2px -2px;
  background: var(--bn-tile);
  transform: scaleX(calc(1 - var(--live, 2) / 2));
}

/* Premier: Abzeichen, 80 von 100 Punkten */
.bn-premier .bn-badge {
  position: relative;
  z-index: 2;
  width: 150px;
  height: auto;
  margin: 30px 32px 0;
}
.bn-premier .bn-txt {
  padding-top: 18px;
}
.bn-plus {
  position: absolute;
  inset: auto 32px 32px;
  display: flex;
  flex-direction: column-reverse;
  gap: 18px;
}
.bn-pdots {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: clamp(5px, 0.6vw, 8px);
}
.bn-pdots i {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.bn-pdots i.on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--lime);
}
.bn-plus-n {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
}
.bn-plus-n b {
  font-family: var(--sh-titel, var(--sans));
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bn-plus-n > span {
  color: var(--grey-1);
  font-size: 14px;
}

/* ---------- Kacheln „Daten“ ---------- */

/* Signale fliegen von ihrer Quelle in den Shop */
.bn-src .bn-viz {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) minmax(0, 206px);
  align-items: center;
  padding: 28px 32px 48px 8px;
}
.bn-srcs {
  display: grid;
  gap: calc(var(--bn-pitch) - 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bn-srcs li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: #dfe4e3;
  font-size: 12.5px;
  white-space: nowrap;
}
.bn-srcs i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.bn-flow {
  position: relative;
  align-self: stretch;
  container-type: size;
}
.bn-flow i {
  position: absolute;
  left: -4px;
  top: calc(50cqh - 2.5 * var(--bn-pitch) + var(--y) * var(--bn-pitch) - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0;
}
@keyframes bn-fly {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(100cqw + 8px), calc((2.5 - var(--y)) * var(--bn-pitch)));
  }
}
.bn-sink {
  display: grid;
  gap: 4px;
}
.bn-sink .bn-ui-head {
  color: var(--bn-ui-ink-2);
  font-weight: 400;
}
.bn-sink .bn-ui-head span:first-child {
  color: var(--bn-ui-ink);
  font-weight: 500;
}
.bn-sink-l {
  color: var(--bn-ui-ink-2);
  font-size: 12px;
}
.bn-sink-n {
  font-family: var(--sh-titel, var(--sans));
  font-size: 40px;
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.bn-sink .bn-n {
  --d: 300;
}

/* Branchen: fünf Spalten mit Shops */
.bn-br .bn-viz {
  padding: 18px 24px 0;
}
.bn-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
}
.bn-col {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-width: 0;
}
.bn-col > span {
  position: relative;
  padding-bottom: 6px;
  color: var(--grey-1);
  font-size: 12px;
  white-space: nowrap;
}
/* Aufleuchten: der Name liegt hell als zweite Schicht darüber, die Linie
   darunter in Lime; beides nur über opacity und transform */
.bn-col > span::before {
  content: attr(data-t);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--white);
  opacity: 0;
}
.bn-col > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.bn-col > div {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
}
.bn-col img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 659;
  border-radius: 10px;
  background: #1b2222;
  object-fit: cover;
}

/* Signale: die Überschrift wechselt wie „Aus Daten-Chaos wird Klarheit.“
   (13.11.2026, Jonas): erst steht die erste Zeile hell, die zweite dunkel;
   beim Abspielen wird die zweite von links aufgedeckt (Hülle und Text
   gegenläufig, nur transform), die erste dunkelt auf 50 % ab. Ohne
   Bewegung steht gleich der Endstand. */
.bn-hl2 {
  position: relative;
  width: fit-content;
  white-space: nowrap;
}
.bn-hl-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--white);
  pointer-events: none;
}
.bn-hl-fill > span {
  display: block;
}
.bn--live .bn-hl2 {
  color: rgba(255, 255, 255, 0.16);
}
.bn--live .bn-src:not(.is-play) .bn-hl-fill {
  transform: translateX(-100%);
}
.bn--live .bn-src:not(.is-play) .bn-hl-fill > span {
  transform: translateX(100%);
}
.bn-src.is-play .bn-hl > span:first-child {
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .bn-src.is-play .bn-hl-fill,
  .bn-src.is-play .bn-hl-fill > span {
    transition: transform var(--dur-bn-hl) var(--ease-in-out) var(--bn-hl-delay);
  }
  .bn-src.is-play .bn-hl > span:first-child {
    transition: opacity var(--dur-bn-hl) var(--ease-in-out) var(--bn-hl-delay);
  }
}

/* ---------- Abgleich und Plan (Fassung „Daten“) ----------
   Zwei kleine Kacheln nebeneinander, die zusammenspielen (Jonas,
   12.11.2026, Aufbau wie Datenklarheit 02): links Scan und Treffer, die
   Linien laufen in einen Knoten am rechten Rand, ein Lichtpunkt läuft
   hinüber; rechts kommt er an und verzweigt sich in den Plan. Beide
   Kacheln haben denselben Versatz (--rise), damit die Linie auf einer
   Höhe bleibt. */
.bn-hl > span {
  display: block;
}
.bn-abgl-viz,
.bn-plan2-viz {
  position: relative;
}
.bn-net {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.bn-net path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.bn-net :is(.bn-out, .bn-in, .bn-trunk, .bn-branch) {
  stroke: rgba(255, 255, 255, 0.55);
}
.bn-pulse {
  position: absolute;
  left: var(--px, 0);
  top: var(--py, 0);
  z-index: 3;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
}

/* links: Wand mit Knoten am rechten Rand */
.bn-abgl-viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 26px 32px;
}
.bn-scanrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  margin-top: 6px;
}
.bn-wall2 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: clamp(3px, 0.35vw, 5px);
  container-type: inline-size;
}
.bn-wall2 > i:not(.bn-scan2) {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20%;
  background: rgba(255, 255, 255, 0.07);
}
.bn-wall2 > i.hit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--lime);
}
.bn-scan2 {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -6px;
  width: 2px;
  border-radius: 1px;
  background: var(--lime);
  opacity: 0;
}
.bn-node {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}
.bn-cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 72px);
  margin: 10px 0 0;
  color: var(--grey-1);
  font-size: 12px;
}
.bn-cap > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bn-cap > span:last-child {
  flex: none;
}
.bn-cap b {
  color: var(--white);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bn-cap .bn-n {
  --d: 280;
}

/* rechts: Stamm, Äste und die sieben Felder untereinander */
.bn-plan2-viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px 24px clamp(96px, 24%, 140px);
}
.bn-plan7 {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bn-plan7 li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 13px 4px 4px;
  border-radius: 10px;
  background: #222b2b;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.bn-plan7 i {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--lime);
}
.bn-plan7 svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--bn-ui-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Zahlen neben der Überschrift (Abgleich) */
.bn-stats {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 22px;
}
.bn-stats p {
  display: grid;
  margin: 0;
}
.bn-stats b {
  font-family: var(--sh-titel, var(--sans));
  color: var(--white);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.bn-stats p > span {
  color: var(--grey-1);
  font-size: 12px;
}
.bn-stats p + p .bn-n {
  --d: 200;
}

/* ---------- Abläufe (nur mit Skript und Bewegung) ----------
   Ausgangslagen nur in .bn--live, solange die Kachel nicht spielt; die
   Übergänge nur während .is-play, so springt sie beim Zurücksetzen (außer
   Sicht) ohne Animation zurück. */

/* Handy */
.bn--live .bn-tile:not(.is-play) :is(.bn-ab-bar, .bn-sig-bar) i {
  transform: scaleX(0);
}
.bn--live .bn-phone:not(.is-play) .bn-bars i {
  transform: scaleY(0);
}
.bn--live :is(.bn-phone, .bn-tile):not(.is-play) .bn-stackbar i {
  transform: scaleX(0);
}
.bn--live .bn-phone:not(.is-play) .bn-spark .bn-wipe {
  transform: scaleX(1);
}
.bn-phone.is-play .bn-bars i {
  transition: transform var(--dur-bn) var(--ease-out) calc(var(--i) * 28ms);
}
.bn-phone.is-play .bn-spark .bn-wipe {
  transition: transform calc(var(--dur-bn) * 1.4) var(--ease-out) 500ms;
}
:is(.bn-phone, .bn-tile).is-play .bn-stackbar i {
  transition: transform var(--dur-bn-in) var(--ease-out) calc(300ms + var(--i) * 140ms);
}

/* Conversion Rate */
.bn--live .bn-cr:not(.is-play) .bn-win {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
}
.bn--live .bn-cr:not(.is-play) .bn-state i + i {
  opacity: 0;
}
.bn--live .bn-cr:not(.is-play) .bn-deck i {
  transform: none;
}
.bn--live .bn-cr .bn-state i:first-child {
  opacity: 0;
}
.bn--live .bn-cr:not(.is-play) .bn-state i:first-child {
  opacity: 1;
}
.bn-cr.is-play .bn-ab-bar i {
  transition: transform 1300ms var(--ease-out) 200ms;
}
.bn-cr.is-play .bn-ab-row.is-b .bn-ab-bar i {
  transition-delay: 350ms;
}
.bn-cr.is-play .bn-sig-bar i {
  transition: transform 1500ms var(--ease-out) 900ms;
}
.bn-cr.is-play .bn-win {
  transition: opacity var(--dur-bn-in) var(--ease-out) 2400ms, transform var(--dur-bn-in) var(--ease-out) 2400ms;
}
.bn-cr.is-play .bn-state i {
  transition: opacity var(--dur-bn-in) var(--ease-out) 2400ms;
}
.bn-cr.is-play .bn-deck i {
  transition: transform var(--dur-bn) var(--ease-out) 100ms;
}

/* Page Speed */
.bn--live .bn-speed:not(.is-play) .bn-gauge rect.on {
  opacity: 0;
}
.bn--live .bn-speed:not(.is-play) .bn-vitals li {
  opacity: 0;
  transform: translateY(6px);
}
.bn-speed.is-play .bn-gauge rect.on {
  transition: opacity 160ms var(--ease-out) calc(var(--i) * 34ms);
}
.bn-speed.is-play .bn-vitals li {
  transition: opacity var(--dur-bn-in) var(--ease-out) calc(1350ms + var(--i) * 120ms), transform var(--dur-bn-in) var(--ease-out) calc(1350ms + var(--i) * 120ms);
}

/* UX/UI */
.bn--live .bn-ux:not(.is-play) .bn-mini {
  transform: translateX(0) rotate(0);
  opacity: 0;
}
.bn-ux.is-play .bn-mini {
  transition: transform var(--dur-bn) var(--ease-out) 150ms, opacity var(--dur-bn-in) var(--ease-out) 150ms;
}
.bn-ux.is-play :is(.bn-mini--ll, .bn-mini--rr) {
  transition-delay: 300ms;
}

/* Award */
.bn--live .bn-award:not(.is-play) .bn-seals li {
  opacity: 0;
  transform: translateY(12px) scale(0.94);
}
.bn-award.is-play .bn-seals li {
  transition: opacity var(--dur-bn-in) var(--ease-out) calc(300ms + var(--i) * 260ms), transform var(--dur-bn-in) var(--ease-out) calc(300ms + var(--i) * 260ms);
}
.bn-award .bn-n {
  --d: 200;
}

/* Prozess */
.bn-prozess.is-play .bn-card {
  transition: transform var(--dur-bn-move) var(--ease-in-out);
}
.bn-prozess.is-play .bn-st::before,
.bn-prozess.is-play .bn-st::after {
  transition: opacity var(--dur-bn-in) var(--ease-out) 300ms;
}
.bn--live .bn-prozess:not(.is-play) .bn-trend .bn-wipe {
  transform: scaleX(1);
}
.bn-prozess.is-play .bn-trend .bn-wipe {
  transition: transform var(--dur-bn) var(--ease-out) 300ms;
}

/* Premier */
.bn--live .bn-premier:not(.is-play) .bn-pdots i.on::after {
  opacity: 0;
}
.bn-premier.is-play .bn-pdots i.on::after {
  transition: opacity 260ms var(--ease-out) calc(200ms + var(--c) * 70ms + var(--r) * 24ms);
}

/* Signale */
.bn-src.is-play .bn-flow i {
  animation: bn-fly 1100ms var(--ease-in-out) calc(var(--i) * 95ms) 2 both;
}
.bn--live .bn-src:not(.is-play) .bn-srcs li {
  opacity: 0;
  transform: translateX(-8px);
}
.bn-src.is-play .bn-srcs li {
  transition: opacity var(--dur-bn-in) var(--ease-out) calc(var(--i) * 70ms), transform var(--dur-bn-in) var(--ease-out) calc(var(--i) * 70ms);
}

/* Branchen (13.11.2026, Jonas: ohne „Deine Branche“): alle Spalten gleich,
   beim Hereinscrollen leuchtet eine nach der anderen kurz auf (Shops hell,
   Name weiß, Linie in Lime) und tritt wieder zurück */
.bn--live .bn-br:not(.is-play) .bn-col {
  opacity: 0;
  transform: translateY(24px);
}
.bn-br .bn-col > div {
  opacity: 0.5;
}
.bn--live .bn-br:not(.is-play) .bn-col > div img {
  transform: translateY(0);
}
.bn-br .bn-col > div img {
  transform: translateY(calc(var(--bn-shift, -18%)));
}
.bn-br .bn-col:nth-child(even) > div img {
  --bn-shift: -6%;
}
.bn-br.is-play .bn-col {
  transition: opacity var(--dur-bn-in) var(--ease-out) calc(var(--i) * 90ms), transform var(--dur-bn) var(--ease-out) calc(var(--i) * 90ms);
}
.bn-br.is-play .bn-col > div img {
  transition: transform 2400ms var(--ease-in-out) 300ms;
}
/* Nach der letzten Spalte leuchten alle zusammen auf und bleiben hell
   (13.11.2026, Jonas). Die zweite Animation füllt nur vorwärts, sonst
   überdeckte sie während ihrer Wartezeit das Aufleuchten der einzelnen. */
@media (prefers-reduced-motion: no-preference) {
  .bn-br.is-play .bn-col > div,
  .bn-br.is-play .bn-col > span::before,
  .bn-br.is-play .bn-col > span::after {
    animation-duration: var(--dur-bn-lit), var(--dur-bn-all);
    animation-timing-function: var(--ease-in-out), var(--ease-out);
    animation-delay:
      calc(700ms + var(--i) * var(--bn-lit-step)),
      calc(700ms + (var(--bn-lit-n) - 1) * var(--bn-lit-step) + var(--dur-bn-lit));
    animation-fill-mode: both, forwards;
  }
  .bn-br.is-play .bn-col > div {
    animation-name: bn-col-lit, bn-col-all;
  }
  .bn-br.is-play .bn-col > span::before {
    animation-name: bn-col-name, bn-col-name-all;
  }
  .bn-br.is-play .bn-col > span::after {
    animation-name: bn-col-line;
  }
}
/* reduziert: gleich der Endstand, alle hell */
@media (prefers-reduced-motion: reduce) {
  .bn-br.is-play .bn-col > div,
  .bn-br.is-play .bn-col > span::before {
    opacity: 1;
  }
}
@keyframes bn-col-all {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
@keyframes bn-col-name-all {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bn-col-lit {
  0%,
  100% {
    opacity: 0.5;
  }
  30%,
  55% {
    opacity: 1;
  }
}
@keyframes bn-col-name {
  0%,
  100% {
    opacity: 0;
  }
  30%,
  55% {
    opacity: 1;
  }
}
@keyframes bn-col-line {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }
  35%,
  60% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

/* Abgleich: Scan, Treffer, Linien, Knoten, dann läuft der Lichtpunkt bis
   an den rechten Rand (endet nach --bn-handoff = HANDOFF in buehne.js) */
.bn--live .bn-abgl:not(.is-play) .bn-wall2 > i.hit::after,
.bn--live :is(.bn-abgl, .bn-plan2):not(.is-play) .bn-net path {
  opacity: 0;
}
.bn--live .bn-abgl:not(.is-play) .bn-node {
  opacity: 0;
  transform: scale(0.6);
}
.bn-abgl.is-play .bn-scan2 {
  animation: bn-scan 1400ms var(--ease-in-out) 200ms both;
}
.bn-abgl.is-play .bn-wall2 > i.hit::after {
  transition: opacity 220ms var(--ease-out) calc(300ms + var(--c) * 80ms);
}
.bn-abgl.is-play .bn-net path {
  transition: opacity 320ms var(--ease-out) calc(380ms + var(--c) * 80ms);
}
.bn-abgl.is-play .bn-node {
  transition: opacity 260ms var(--ease-out) 1650ms, transform 260ms var(--ease-out) 1650ms;
}
.bn-abgl.is-play .bn-net .bn-out {
  transition: opacity 260ms var(--ease-out) 1750ms;
}
.bn-abgl.is-play .bn-pulse {
  animation: bn-pulse 320ms var(--ease-in-out) 1730ms both;
}
@keyframes bn-pulse {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  20% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--pd));
  }
}

/* Plan: beginnt, wenn der Lichtpunkt ankommt (buehne.js wartet) */
.bn--live .bn-plan2:not(.is-play) .bn-plan7 li {
  opacity: 0;
  transform: translateX(-8px);
}
.bn-plan2.is-play .bn-pulse {
  animation: bn-pulse 360ms var(--ease-out) both;
}
.bn-plan2.is-play .bn-net .bn-in {
  transition: opacity 200ms var(--ease-out);
}
.bn-plan2.is-play .bn-net .bn-trunk {
  transition: opacity 260ms var(--ease-out) 300ms;
}
.bn-plan2.is-play .bn-net .bn-branch {
  transition: opacity 260ms var(--ease-out) calc(420ms + var(--i) * 90ms);
}
.bn-plan2.is-play .bn-plan7 li {
  transition: opacity var(--dur-bn-in) var(--ease-out) calc(480ms + var(--i) * 90ms), transform var(--dur-bn-in) var(--ease-out) calc(480ms + var(--i) * 90ms);
}

/* Handy: Kacheln untereinander (.bn--stack aus buehne.js). Die Linie
   läuft vom Knoten über die Lücke in den Plan, der Lichtpunkt fällt mit,
   danach wachsen Stamm und Äste rechts, die Felder kommen von rechts. Text
   und Zahlen lassen rechts Platz für die Linie. */
.bn-cards {
  position: relative;
}
.bn-bridge {
  display: none;
}
.bn--stack .bn-bridge {
  position: absolute;
  left: var(--bx, 0);
  top: var(--by, 0);
  z-index: 4;
  display: block;
  width: 1px;
  height: var(--bh, 0);
  pointer-events: none;
}
.bn-bridge-line {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: 50% 0;
}
.bn-bridge-dot {
  position: absolute;
  top: -5px;
  left: -4.5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
}
.bn--live .bn-bridge:not(.is-run) .bn-bridge-line {
  transform: scaleY(0);
}
.bn--live .bn-bridge.is-run .bn-bridge-line {
  transition: transform var(--dur-bn-bridge) var(--ease-in-out);
}
.bn--live .bn-bridge.is-run .bn-bridge-dot {
  animation: bn-drop var(--dur-bn-bridge) var(--ease-in-out) both;
}
@keyframes bn-drop {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(var(--bh, 0));
  }
}
.bn--stack :is(.bn-abgl, .bn-plan2) .bn-pulse {
  display: none;
}
.bn--stack .bn-plan2-viz {
  padding: 0 24px 28px;
}
.bn--stack .bn-plan2 .bn-txt,
.bn--stack .bn-stats {
  padding-right: 64px;
}
.bn--live.bn--stack .bn-plan2:not(.is-play) .bn-plan7 li {
  transform: translateX(8px);
}
.bn--stack .bn-plan2.is-play .bn-net .bn-trunk {
  transition-delay: var(--dur-bn-bridge);
}
.bn--stack .bn-plan2.is-play .bn-net .bn-branch {
  transition-delay: calc(var(--dur-bn-bridge) + 120ms + var(--i) * 90ms);
}
.bn--stack .bn-plan2.is-play .bn-plan7 li {
  transition-delay: calc(var(--dur-bn-bridge) + 180ms + var(--i) * 90ms);
}

@keyframes bn-scan {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100cqw + 12px));
  }
}

/* ---------- schmal ---------- */

@media (max-width: 1100px) {
  .bn-grid {
    gap: 16px;
  }
  .bn-w3,
  .bn-w2,
  .bn-w1,
  .bn-w4,
  .bn-w3b {
    grid-column: span 10;
  }
  :is(.bn-cr, .bn-prozess, .bn-src) {
    flex-direction: column;
  }
  :is(.bn-cr, .bn-prozess, .bn-src) > .bn-txt {
    display: block;
    flex: none;
    padding-bottom: 0;
  }
  .bn-sink-n {
    font-size: 32px;
  }
  /* zwei Spalten: Kacheln wachsen mit dem Inhalt (Abgleich mit sieben
     Feldern), die Reihe bleibt gleich hoch */
  .bn-tile {
    height: auto;
    min-height: 540px;
  }
  .bn-src .bn-viz,
  .bn-cr .bn-viz,
  .bn-prozess .bn-viz {
    padding-left: 32px;
  }
  .bn-deck {
    inset: 24px 32px 44px;
  }
  .bn-mini--ll,
  .bn-mini--rr {
    display: none;
  }
  /* Award schmal: Text oben auf der Kachel, das Foto darunter */
  .bn-award-bg {
    inset: auto 0 0;
    width: 100%;
    height: 56%;
    object-position: 50% 18%;
    -webkit-mask: linear-gradient(to bottom, transparent, #000 32%);
    mask: linear-gradient(to bottom, transparent, #000 32%);
  }
  .bn-award::before {
    content: none;
  }
  .bn-award .bn-txt h3,
  .bn-award .bn-txt p {
    max-width: 30ch;
  }
  /* die Siegel direkt unter dem Text, auf dem Übergang von der dunklen
     Fläche ins Foto (Jonas, 12.11.2026) */
  .bn-seals {
    position: relative;
    inset: auto;
    margin: 26px 0 0 32px;
  }
  /* die Jahre stehen dort schon über dem Foto: kleine dunkle Pille */
  .bn-seals span {
    padding: 1px 7px;
    border-radius: 99px;
    background: rgba(10, 16, 16, 0.78);
    color: #e9eded;
  }
}

/* Unter 900 px oder wenig Höhe: Handy unter der Überschrift im Fluss,
   die Kacheln kommen als Gruppe (buehne.js, gleiche Abfrage) */
@media (max-width: 899px), (max-height: 599px) {
  html[data-buehne] {
    --bn-k: 0.62;
  }
  .bn-scene {
    grid-template-rows: max(72svh, 500px) auto;
  }
  .bn-stage {
    padding-top: 96px;
  }
  .bn-head .t-display {
    font-size: clamp(2.1rem, 5.2svh, 2.75rem);
  }
  .bn-head .rot-pause {
    top: calc((clamp(2.1rem, 5.2svh, 2.75rem) * 1.04 - 30px) / 2);
  }
  .bn-head .section-head p {
    margin-top: 14px;
    font-size: 15px;
  }
  .bn-phone {
    position: relative;
    inset: auto;
    display: block;
    width: min(74vw, 340px);
    margin-top: 32px;
  }
  .bn-phone-frame {
    height: auto;
    aspect-ratio: auto;
    translate: none;
  }
  .bn-cards {
    padding-top: 40px;
  }
  .bn-fl--pill > .bn-in {
    font-size: 12px;
    padding: 7px 12px 7px 10px;
  }
  /* am Handy gibt es keinen freien Rand: die Dinge rücken halb hinaus und
     treten zurück, damit Überschrift und Untertitel lesbar bleiben */
  .bn-fl.is-l {
    translate: -55% 0;
  }
  .bn-fl.is-r {
    translate: 55% 0;
  }
  .bn-floats {
    opacity: 0.55;
  }
}
@media (max-width: 699px) {
  .bn-w3,
  .bn-w2,
  .bn-w1,
  .bn-w4,
  .bn-w3b {
    grid-column: 1 / -1;
  }
  .bn-tile {
    height: auto;
    min-height: 460px;
  }
  .bn-txt {
    padding: 26px 24px 0;
  }
  .bn-viz {
    flex: none;
    min-height: 300px;
  }
  .bn-cr .bn-viz,
  .bn-src .bn-viz,
  .bn-prozess .bn-viz {
    padding: 28px 20px 48px;
  }
  .bn-src .bn-viz {
    grid-template-columns: auto minmax(20px, 1fr) minmax(0, 150px);
  }
  .bn-sink {
    padding: 14px;
  }
  .bn-sink-n {
    font-size: 32px;
  }
  .bn-deck {
    inset: 28px 20px 48px;
  }
  .bn-ux .bn-viz {
    min-height: 330px;
  }
  .bn-award {
    min-height: 600px;
  }
  .bn-seals {
    margin-left: 24px;
  }
  /* Branchen am Handy: drei Spalten, sonst stoßen die Namen aneinander */
  .bn-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bn-br {
    --bn-lit-n: 3;
  }
  .bn-col:nth-child(n + 4) {
    display: none;
  }
  .bn-premier .bn-viz {
    min-height: 150px;
  }
  .bn-plus {
    inset: auto 24px 28px;
  }
  .bn-br .bn-viz {
    min-height: 320px;
  }
  .bn-note {
    right: 20px;
  }
}

/* ---------- reduzierte Bewegung: nichts festhalten, Endstand ---------- */

.bn--still .bn-scene {
  display: block;
}
.bn--still .bn-back {
  position: absolute;
  inset: 0 0 auto;
  height: 100svh;
}
.bn--still .bn-stage {
  position: relative;
  height: auto;
  overflow: visible;
  padding-top: 72px;
}
.bn--still .bn-phone {
  position: relative;
  inset: auto;
  display: block;
  width: min(70vw, 340px);
  height: min(58svh, 460px);
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask: linear-gradient(to bottom, #000 70%, transparent);
  mask: linear-gradient(to bottom, #000 70%, transparent);
}
.bn--still .bn-phone-frame {
  height: auto;
  aspect-ratio: auto;
  translate: none;
}
.bn--still .bn-cards {
  padding-top: 24px;
}
