/* Fallstudie Nuvibit (20.11.2026). Gerüst von smart dynamic (sd-), eigene Teile mit Präfix nb-.
   Farben aus dem Markenkonzept von Nuvibit: Nachtblau #19053A, Königsblau #1B2AA2, Blau #4760EB,
   Himmelblau #85D3FF, Wolkenweiss #F6F7FC, Akzent Gelb #FBAF00 (Variante 1, heute im Einsatz).
   Ohne Skript steht alles ruhig und vollständig da: alle drei Varianten untereinander, das Zeichen fertig. */
.sd.nb { --sd-nacht: #12042b; --sd-tief: #19053a; --sd-grau: #a9a6d6; --sd-linie: rgba(133, 211, 255, .16); }
.nb .sd-held__licht { background:
  radial-gradient(44% 52% at 24% 34%, rgba(71, 96, 235, .62), transparent 70%),
  radial-gradient(36% 46% at 80% 44%, rgba(27, 42, 162, .7), transparent 70%),
  radial-gradient(30% 34% at 62% 88%, rgba(251, 175, 0, .18), transparent 70%); }
.nb .sd-marke.nb-marke { height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.nb .sd-marke.nb-marke img { width: clamp(11rem, 24vw, 17rem); height: auto; }
.nb .sd-held__titel em { color: #85d3ff; }

/* Grundfarben */
.nb .nb-farben { list-style: none; margin: clamp(2rem, 5vw, 3.2rem) 0 clamp(2.4rem, 5vw, 3.6rem); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.nb .nb-farben li { display: grid; gap: .15rem; min-width: 0; }
.nb .nb-farben li::before { content: ""; display: block; aspect-ratio: 1 / 1; border-radius: 18px; background: var(--f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); margin-bottom: .55rem; }
.nb .nb-farben b { font-size: .98rem; color: #fff; }
.nb .nb-farben code { font-size: .82rem; color: #a9a6d6; font-family: inherit; letter-spacing: .02em; }
@media (max-width: 760px) { .nb .nb-farben { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Die Wahl der Variante. Ohne Skript: alle Tafeln untereinander, die Knöpfe ausgeblendet. */
.nb .nb-wahl__knoepfe { display: none; }
.nb .nb-wahl__tafel { display: grid; gap: clamp(.8rem, 2vw, 1.2rem); margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.nb .nb-wahl__tafel figure { margin: 0; }
.nb .nb-wahl__tafel img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.nb .nb-wahl__titel { display: flex; align-items: center; gap: .6rem; font: 700 1rem/1.2 var(--font-display); color: #fff; }
.nb .nb-wahl__titel span { width: 14px; height: 14px; border-radius: 50%; background: var(--a); flex: none; }
.nb .nb-heute { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .98rem; line-height: 1.5; color: #dcdaf5; }
.nb .nb-heute b { flex: none; padding: .32rem .8rem; border-radius: 999px; background: #fbaf00; color: #19053a; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.nb-js .nb-wahl__knoepfe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.nb-js .nb-wahl__knoepfe button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem .8rem; min-height: 64px; padding: .8rem 1rem; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--sd-linie); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background .25s ease, box-shadow .25s ease; }
.nb-js .nb-wahl__knoepfe button span { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--a); color: #19053a; font: 800 .9rem/1 var(--font-display); }
.nb-js .nb-wahl__knoepfe button b { font: 700 1.02rem/1.1 var(--font-display); }
.nb-js .nb-wahl__knoepfe button code { font: 500 .8rem/1 var(--font-body); color: #a9a6d6; }
.nb-js .nb-wahl__knoepfe button:hover { background: rgba(255, 255, 255, .08); }
.nb-js .nb-wahl__knoepfe button[aria-selected="true"] { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px var(--a); }
.nb-js .nb-wahl__knoepfe button:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
.nb-js .nb-wahl__tafel { display: none; }
.nb-js .nb-wahl__tafel.is-an { display: grid; animation: nb-ein .45s ease both; }
.nb-js .nb-wahl__titel { display: none; }
@keyframes nb-ein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .nb-js .nb-wahl__knoepfe button { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: .7rem .4rem; }
  .nb-js .nb-wahl__knoepfe button span { grid-row: auto; }
  .nb-js .nb-wahl__knoepfe button code { display: none; }
}

/* Die Bühne: das echte Zeichen von nuvibit.com, Strich für Strich freigezeichnet */
.nb-buehne { position: relative; background: #19053a; color: #fff; border-top: 1px solid var(--sd-linie); }
.nb-buehne__klebt { position: relative; display: grid; place-items: center; gap: 2rem; padding: clamp(5rem, 10vw, 8rem) var(--sd-pad, 1.25rem); overflow: hidden; }
.nb-buehne__klebt::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 50% 55%, rgba(71, 96, 235, .35), transparent 70%); }
.nb-buehne__mitte { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.4rem); width: 100%; }
.nb-zeichen { width: min(80%, 26rem, calc((100svh - var(--nav-h, 74px)) * .46)); height: auto; overflow: visible; }
.nb-wort { width: min(80%, 26rem); height: auto; }
.nb-buehne__texte { position: relative; display: grid; gap: 1.2rem; text-align: center; }
.nb-akt { margin: 0; display: grid; gap: .3rem; }
.nb-akt__klein { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #85d3ff; }
.nb-akt__gross { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
/* ohne Skript: nur der letzte Satz, das Zeichen fertig */
.nb-buehne:not(.nb-laeuft) .nb-akt { display: none; }
.nb-buehne:not(.nb-laeuft) .nb-akt--4 { display: grid; }
.nb-buehne:not(.nb-laeuft) .nb-drei { display: none; }

.nb-laeuft.nb-buehne { height: 560svh; }
.nb-laeuft .nb-buehne__klebt { position: sticky; top: var(--nav-h, 74px); height: calc(100svh - var(--nav-h, 74px)); padding: 3.6rem var(--sd-pad, 1.25rem) 1.2rem; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.nb-laeuft .nb-buehne__texte { grid-row: 1; min-height: 6.4rem; width: 100%; }
.nb-laeuft .nb-buehne__mitte { grid-row: 2; min-height: 0; align-self: center; }
.nb-laeuft .nb-akt { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(.6rem); transition: opacity .35s ease, transform .35s ease; }
.nb-laeuft .nb-akt.is-an { opacity: 1; transform: none; }
.nb-laeuft .nb-strich { stroke-dasharray: 1 3; }
.nb-laeuft .nb-strich--n { stroke-dashoffset: var(--nb-n, 1.02); }
.nb-laeuft .nb-strich--wolke { stroke-dashoffset: var(--nb-w, 1.02); }
.nb-laeuft .nb-strich--bogen { stroke-dashoffset: var(--nb-b, 1.02); }
.nb-laeuft .nb-wort { opacity: var(--nb-wort, 0); width: calc(min(80vw, 26rem) * var(--nb-wort, 0)); }
@media (max-width: 760px) {
  .nb-buehne__mitte { flex-direction: column; gap: .8rem; }
  .nb-zeichen { width: min(60%, 13rem, calc((100svh - var(--nav-h, 74px)) * .3)); }
  .nb-wort { width: min(70%, 16rem); }
  .nb-laeuft .nb-wort { width: calc(min(70vw, 16rem) * var(--nb-wort, 0)); }
  .nb-laeuft .nb-buehne__texte { min-height: 7.4rem; }
}

/* Drei Wege (20.11.2026): nach dem Zeichen legen sich die drei Varianten aus dem Markenkonzept
   nebeneinander, dann rückt №1 in die Mitte, die zwei anderen treten zurück. Belegt: Variante №1
   mit Gelb trägt heute den Auftritt (CSS von nuvibit.com, quellen/nuvibit.md). */
.nb-laeuft .nb-buehne__mitte { opacity: var(--nb-m, 1); transform: translateY(calc((1 - var(--nb-m, 1)) * -40px)) scale(calc(.85 + .15 * var(--nb-m, 1))); }
.nb-drei { grid-row: 2; align-self: center; justify-self: center; width: min(100%, 64rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.4rem); pointer-events: none; }
.nb-laeuft .nb-buehne__mitte, .nb-laeuft .nb-drei { grid-column: 1; grid-row: 2; }
.nb-weg { position: relative; margin: 0; opacity: var(--e, 0); z-index: var(--z, 1);
  transform: translate(calc(var(--tx, 0px) * var(--f, 0)), calc((1 - var(--e, 0)) * 90px + var(--ty, 0px) * var(--f, 0))) scale(var(--s, 1)); transition: none; }
.nb-weg img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 70px -30px rgba(0, 0, 0, .9), 0 0 calc(var(--glanz, 0) * 70px) calc(var(--glanz, 0) * 6px) color-mix(in srgb, var(--a) 45%, transparent); }
.nb-weg figcaption { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font: 700 .95rem/1 var(--font-display); color: #fff; }
.nb-weg figcaption span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--a); color: #19053a; font-size: .74rem; }
.nb-weg--1 { --z: 3; --tx: calc(100% + clamp(.8rem, 2vw, 1.4rem)); }
.nb-weg--2, .nb-weg--3 { opacity: calc(var(--e, 0) * (1 - .82 * var(--f, 0))); }
.nb-weg--2 { --ty: 50px; }
.nb-weg--3 { --ty: 50px; }
@media (max-width: 760px) {
  .nb-drei { grid-template-columns: minmax(0, 1fr); width: min(66%, 16.5rem); justify-self: center; gap: .7rem; }
  .nb-weg figcaption { margin-top: .35rem; font-size: .82rem; }
  .nb-weg figcaption span { width: 1.6rem; height: 1.6rem; font-size: .64rem; }
  .nb-weg--1 { --tx: 0px; --ty: calc(100% + .7rem); }
  .nb-weg--2 { --ty: 0px; }
  .nb-weg--3 { --ty: 0px; }
}

/* Anwendungen */
.nb .nb-wort-lang { font-size: clamp(2.4rem, 10.5vw, 8.4rem) !important; }
.nb .nb-folien { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; margin-top: clamp(3rem, 7vw, 5rem); }
.nb .nb-folien p { color: #dcdaf5; line-height: 1.6; }
.nb .nb-folien figure { margin: 0; }
.nb .nb-folien img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.nb .nb-folien figcaption { margin-top: .6rem; font-size: .88rem; color: #a9a6d6; }
.nb .nb-h3 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.nb .nb-h3 em { font-family: var(--font-serif, serif); font-weight: 400; }
@media (max-width: 860px) { .nb .nb-folien { grid-template-columns: minmax(0, 1fr); } }
