/* Website-Relaunch: Die Seite baut sich beim Scrollen selbst auf (relaunch.js), dazu die Relaunch-Werkbank,
   „geht nicht gibt’s nicht“ (Punktewolke) und der Zoom auf die Demo-Karte.
   .lb-on kommt aus relaunch-head.js (vor dem ersten Zeichnen). Ohne JS / reduzierte Bewegung: alles sofort sichtbar. */
:root { --lb-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; --lb-ease: cubic-bezier(.2,.8,.2,1);
  --lb-pink: #E0668F; --lb-mint: #9FD0C0; --lb-gold: #E6C27A; --lb-blue: #7FB8C9; --lb-dark: #0E0C0D; }

/* ---------- Live-Aufbau: Warten, Code-Schicht, Mauszeiger, Statuszeile ---------- */
.lb-on .hero--sub .sub-kicker, .lb-on .hero--sub .hero-title .line, .lb-on .hero--sub .hero-sub, .lb-on .hero--sub .hero-foot > *,
.lb-on .lb-wait { visibility: hidden; }
.lb-on .lb-in { visibility: visible !important; }
.lb-on .hero--sub .hero-title .line > span { animation: none; }
.lb-on .hero--sub .hero-title .line.lb-in > span { animation: line-up .7s var(--lb-ease) both; }
.lb-on .lb-pop.lb-in { animation: lb-pop .5s var(--lb-ease) both; }
.lb-on .lb-rise.lb-in { animation: lb-rise .55s var(--lb-ease) both; }
@keyframes lb-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes lb-rise { from { opacity: 0; transform: translateY(18px); } }
.lb-ch { opacity: 0; } .lb-ch.on { opacity: 1; }

/* Hero füllt von Anfang an das Fenster – der dunkle Hintergrund springt nicht, während der Titel wächst */
.hero--sub { min-height: 100svh; }

/* Titel erscheint erst als rohes HTML (klein, ohne Farbe), CSS-Chip macht ihn groß */
.hero--sub .hero-title { transition: font-size .7s var(--lb-ease), letter-spacing .7s var(--lb-ease); }
.hero--sub .hero-title.lb-small { font-size: 1.7rem; letter-spacing: -.01em; }
.hero--sub .line-2 { transition: color .5s; }
.hero--sub .hero-title.lb-plain .line-2 { color: inherit; }

.lb-fx { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 40; pointer-events: none; }
.lb-src, .lb-chip { position: absolute; font: 13px/1.6 var(--lb-mono); white-space: pre-wrap; max-width: calc(100vw - 32px); transition: opacity .25s, transform .25s, filter .25s; }
.lb-src { color: #D7CFD2; text-shadow: 0 0 18px rgba(224,102,143,.3); }
.lb-src.light { color: #2A2427; text-shadow: none; }
.lb-src.light .t-tag { color: #B4446A; } .lb-src.light .t-attr { color: #7A6A72; } .lb-src.light .t-str { color: #2F7F6E; }
.lb-chip { padding: 5px 10px; border-radius: 7px; background: rgba(13,11,12,.94); border: 1px solid rgba(224,102,143,.5); color: #CFC7CA; font-size: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.lb-chip::before { content: "style.css"; color: #6B6366; margin-right: 8px; }
.lb-src.out, .lb-chip.out { opacity: 0; transform: translateY(-6px); filter: blur(3px); }
.lb-caret { display: inline-block; width: 2px; height: 1.15em; margin: 0 -1px -.22em 1px; background: var(--lb-pink); }
.t-tag { color: var(--lb-pink); } .t-attr { color: #C7A8B6; } .t-str { color: var(--lb-mint); } .t-sel { color: var(--lb-gold); }
.t-prop { color: var(--lb-blue); } .t-num { color: #F0A57A; } .t-pun { color: #8A8184; } .t-fn { color: var(--lb-gold); } .t-cmt { color: #6B6366; }

.lb-cur { position: fixed; left: 0; top: 0; z-index: 70; width: 20px; height: 20px; pointer-events: none; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); transition: opacity .3s; }
.lb-cur path { fill: #fff; stroke: #141113; stroke-width: 1.3; stroke-linejoin: round; }
.lb-cur.on { opacity: 1; }
.lb-ripple { position: fixed; z-index: 69; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--lb-pink); opacity: 0; pointer-events: none; }
.lb-ripple.hit { animation: lb-ripple .42s ease-out; }
@keyframes lb-ripple { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }

/* Statuszeile: sagt in klaren Worten, was gerade entsteht */
.lb-hud {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 65; transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(14,12,13,.92); color: #F4F1F2; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 40px -16px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .86rem; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--lb-ease);
}
.lb-hud.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lb-hud.on.lb-hide { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
.lb-hud-live { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--lb-mono); color: var(--lb-pink); text-transform: uppercase; letter-spacing: .06em; }
.lb-hud-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lb-pink); animation: lb-blink 1.2s infinite; }
.lb-hud.done .lb-hud-live { color: var(--lb-mint); } .lb-hud.done .lb-hud-live::before { background: var(--lb-mint); animation: none; }
@keyframes lb-blink { 50% { opacity: .25; } }
.lb-hud-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-hud-n { font: 11px var(--lb-mono); color: rgba(244,241,242,.5); white-space: nowrap; }
.lb-hud-skip { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: none; color: rgba(244,241,242,.75); font: inherit; font-size: .78rem; cursor: pointer; white-space: nowrap; }
.lb-hud-skip:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.lb-hud.done .lb-hud-skip { display: none; }
@media (max-width: 560px) { .lb-hud { font-size: .78rem; gap: 8px; } .lb-hud-n { display: none; } }

/* Raster erst gestapelt (rohes HTML), dann per CSS-Chip als Raster */
.know-grid.lb-raw { display: block; }
.know-grid.lb-raw > * { margin-bottom: 22px; }
.know-grid > .lb-check { position: relative; }
.lb-tick { position: absolute; right: 0; top: 16px; width: 26px; height: 26px; }
.lb-tick circle { fill: none; stroke: color-mix(in srgb, var(--hero-accent) 35%, transparent); stroke-width: 1.5; }
.lb-tick path { fill: none; stroke: var(--accent-text, var(--hero-accent)); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s .1s var(--lb-ease); }
.lb-tick.on path { stroke-dashoffset: 0; }
.compare.lb-nohl td:nth-child(3), .compare.lb-nohl thead th:nth-child(3) { background: transparent; }
.compare td:nth-child(3), .compare thead th:nth-child(3) { transition: background .6s; }

/* ---------- Werkbank: Relaunch live ---------- */
.rl { --rl-acc: #D9A066; --rl-dark: #17130F; --rl-card: #221C17; --rl-fg: #F3EDE6; background: var(--lb-dark); color: #F4F1F2; --muted: rgba(244,241,242,.6); --line: rgba(244,241,242,.14); }
.rl .label span:last-child, .rl .label > :last-child { color: rgba(244,241,242,.5); }
#so-gehts { scroll-margin-top: 64px; }
.rl-intro { max-width: 30ch; margin: 0 0 clamp(36px, 6vh, 72px); font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 300; line-height: 1.12; letter-spacing: -.025em; color: #F4F1F2; text-wrap: pretty; }
.rl-js .rl-stick { position: relative; height: calc(100svh - var(--rl-top, 64px)); }
.rl-stick { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(14px, 2.4vh, 26px); padding: clamp(10px, 2vh, 20px) 0 clamp(14px, 3vh, 28px); }
.rl-note { margin-top: 18px; font-size: .85rem; color: rgba(244,241,242,.5); }

/* ohne Live-Steuerung (kein JS / reduzierte Bewegung): Bühne in normaler Höhe */
.rl:not(.rl-js) .rl-stage { display: block; container-type: inline-size; }
.rl:not(.rl-js) .rl-win { width: 100%; }
.rl:not(.rl-js) .rl-bench { grid-template-columns: minmax(0, 1fr); }
.rl:not(.rl-js) .rl-editor { display: none; }

/* Hinweis während die Werkbank eingerastet ist */
.rl-hint { position: absolute; right: 0; top: clamp(14px, 2.6vh, 26px); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(21,18,19,.9); font: 12px var(--lb-mono); color: rgba(244,241,242,.75); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.rl-hint b { color: var(--lb-pink); display: inline-block; animation: rl-bob 1.2s ease-in-out infinite; }
@keyframes rl-bob { 50% { transform: translateY(3px); } }
.rl-locked .rl-hint { opacity: 1; transform: none; }
@media (max-width: 900px) { .rl.rl-js .rl-now { padding-right: 0; } .rl-hint { display: none; } }
.rl-hint { white-space: nowrap; }

/* Kopf: aktueller Schritt, groß und klar */
.rl-now { display: none; }
.rl-js .rl-now { display: flex; align-items: baseline; gap: clamp(16px, 2.4vw, 34px); height: clamp(112px, 16vh, 150px); overflow: hidden; padding-right: 220px; }
.rl-now-num { font: 500 clamp(2.6rem, 5.4vw, 4.8rem)/1 "Inter Tight", sans-serif; letter-spacing: -.04em; color: var(--lb-pink); font-variant-numeric: tabular-nums; }
.rl-now b { display: block; font-size: clamp(1.7rem, 3.4vw, 3.1rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.rl-now-text { display: block; margin-top: 8px; color: rgba(244,241,242,.68); max-width: 62ch; font-size: clamp(.98rem, 1.25vw, 1.15rem); }
.rl-now.swap > * { animation: rl-swap .45s var(--lb-ease) both; }
.rl-now.swap > div { animation-delay: .05s; }
@keyframes rl-swap { from { opacity: 0; transform: translateY(10px); } }

/* Werkbank: Editor links, Bühne rechts */
.rl-bench { display: grid; grid-template-columns: minmax(0, 28fr) minmax(0, 72fr); gap: clamp(14px, 1.6vw, 24px); min-height: 0; align-items: stretch; }
.rl-editor { display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 14px; background: #151213; border: 1px solid rgba(255,255,255,.08); overflow: hidden; min-height: 0; }
.rl-ed-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.07); font: 11px var(--lb-mono); color: rgba(244,241,242,.45); }
.rl-ed-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3A3436; }
.rl-ed-bar i:first-child { background: var(--lb-pink); }
.rl-ed-bar span { margin-left: 8px; }
.rl-ed-code { margin: 0; padding: 12px 14px; font: 12px/1.65 var(--lb-mono); color: #CFC7CA; white-space: pre-wrap; word-break: break-word; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.rl-ed-code .old { opacity: .38; }
.rl-ed-code .p { color: var(--lb-pink); } .rl-ed-code .ok { color: var(--lb-mint); } .rl-ed-code .no { color: #F0A57A; } .rl-ed-code .c { color: #6B6366; } .rl-ed-code .s { color: var(--lb-gold); }
.rl-ed-code .lb-caret { height: 1.1em; }

.rl-stage { position: relative; min-height: 0; display: grid; place-items: center; container-type: size; perspective: 1400px; }
.rl-win { position: relative; width: 100%; max-height: 100%; aspect-ratio: 16 / 10.4; border-radius: 1.4cqw; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  transition: width .9s var(--lb-ease), aspect-ratio .9s var(--lb-ease), border-radius .9s var(--lb-ease); container-type: inline-size; }
@supports not (aspect-ratio: 1) { .rl-win { height: 60vh; } }
.rl-stage { --win-w: min(100cqw, 100cqh * 1.538); }
.rl-win { width: var(--win-w); }
.s4 .rl-win { width: min(34cqw, 100cqh * .5); aspect-ratio: 9 / 18; border-radius: 3.4cqw; box-shadow: 0 0 0 10px #0B0909, 0 40px 90px -30px rgba(0,0,0,.9); }

.rl-bar { position: relative; display: flex; align-items: center; gap: .9cqw; padding: 1.5cqw 2cqw; background: #2A2527; }
.rl-bar > i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #4A4346; flex: none; }
.rl-url { flex: 1; margin-left: 1.2cqw; padding: .7cqw 1.8cqw; border-radius: 99px; background: #3A3436; color: #CFC7CA; font: 1.6cqw/1.2 var(--lb-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-lock { font-weight: 400; margin-right: .8cqw; display: inline-block; }
.rl-lock-bad { color: #F0A57A; } .rl-lock-ok, .rl-proto-new { display: none; }
.s6 .rl-lock-bad, .s6 .rl-proto-old { display: none; }
.s6 .rl-lock-ok, .s6 .rl-proto-new { display: inline; }
.rl-anim.s6 .rl-lock { animation: rl-flip .6s var(--lb-ease); }
@keyframes rl-flip { from { transform: rotateY(180deg) scale(1.6); } }
.rl-load { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--lb-mint); transform: scaleX(0); transform-origin: left; }
.rl-anim.s5 .rl-load { animation: rl-load .8s var(--lb-ease); }
@keyframes rl-load { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.s4 .rl-bar { padding: 2.4cqw 3cqw; } .s4 .rl-bar > i { display: none; } .s4 .rl-url { margin: 0; font-size: 3cqw; }

/* Seite: Standard = alt */
.rl-win { display: flex; flex-direction: column; }
.rl-page { position: relative; flex: 1; min-height: 0; overflow: hidden; container-type: inline-size; background: repeating-linear-gradient(45deg, #c9c9c9 0 6px, #d4d4d4 6px 12px); }
.rl-inner { width: 86%; margin: 1.6cqw auto 0; padding: 1.4cqw 2cqw; background: #fff; border: .4cqw ridge #9a9a9a; color: #000; font-family: "Times New Roman", Times, serif; text-align: center; }
.rl-junk { overflow: hidden; max-height: 7cqw; transition: max-height .5s var(--lb-ease), opacity .4s, margin .5s; }
.rl-ticker { background: #ff0; color: #c00; font: 700 1.5cqw/1.8 "Times New Roman", serif; white-space: nowrap; margin-bottom: 1cqw; }
.rl-ticker span { display: inline-block; padding-left: 100%; animation: rl-marquee 9s linear infinite; }
@keyframes rl-marquee { to { transform: translateX(-100%); } }
.rl-logo { display: block; font: 700 3.2cqw/1.1 "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive; color: #0a3d91; }
.rl-logo i { font-style: normal; display: none; color: var(--rl-acc); }
.rl-nav { display: block; margin: .8cqw 0 1.4cqw; font-size: 1.5cqw; }
.rl-nav a { color: #00e; text-decoration: underline; }
.rl-nav a + a::before { content: " | "; color: #000; display: inline-block; white-space: pre; }
.rl-burger { display: none; }
.rl-h { font: 700 2.5cqw/1.2 "Comic Sans MS", "Chalkboard SE", cursive; color: #b00; }
.rl-t-new { display: none; }
.rl-p { margin: 1cqw auto; font-size: 1.6cqw; max-width: 60ch; }
.rl-btn { display: none; }
.rl-img { position: relative; width: 34cqw; height: 13cqw; margin: 1cqw auto; display: grid; place-items: center; border: .25cqw dashed #888; background: #eee; color: #777; font-size: 1.3cqw; overflow: hidden; }
.rl-cards { display: none; }
.rl-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.6cqw; font-size: 1.2cqw; color: #666; margin-top: 1cqw; }
.rl-counter { font-family: var(--lb-mono); background: #000; color: #3f3; padding: 0 .6cqw; }
.rl-chart { position: absolute; right: 4cqw; bottom: 3cqw; width: 24cqw; padding: 1.3cqw 1.5cqw; border-radius: 1.2cqw; background: rgba(34,28,23,.94); border: 1px solid rgba(243,237,230,.14); opacity: 0; transform: translateY(1.5cqw); transition: opacity .5s, transform .6s var(--lb-ease); }
.rl-chart small { display: block; font: 1.2cqw var(--lb-mono); color: rgba(243,237,230,.55); margin-bottom: .6cqw; }
.rl-chart svg { display: block; width: 100%; height: 5cqw; overflow: visible; }
.rl-chart path { fill: none; stroke: var(--lb-mint); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1.2s .2s var(--lb-ease); }
.rl-live { position: absolute; left: 50%; top: 50%; padding: .6cqw 2.4cqw; border: .4cqw solid var(--lb-mint); border-radius: 1cqw; color: var(--lb-mint); font: 700 5cqw/1 "Inter Tight", sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); pointer-events: none; }
.rl-anim.s7 .rl-live { animation: rl-stamp 1.6s var(--lb-ease) both; }
@keyframes rl-stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.8); } 20% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } }

/* 1 · Scan */
.rl-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lb-pink); box-shadow: 0 0 24px 8px rgba(224,102,143,.35); opacity: 0; pointer-events: none; z-index: 3; }
.rl-anim.s1:not(.s2) .rl-scan { animation: rl-scan 1.5s var(--lb-ease) infinite; }
@keyframes rl-scan { 0% { top: 8%; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.rl-anim.s1:not(.s2) .rl-inner > * { outline: 1px dashed rgba(224,102,143,.7); outline-offset: 2px; }

/* 2 · Ballast raus */
.s2 .rl-junk { max-height: 0; opacity: 0; margin: 0; }
.s2 .rl-guest { display: none; }

/* 3 · Neues Design */
.s3 .rl-page, .s3 .rl-win { background: var(--rl-dark); }
.s3 .rl-inner { width: 100%; margin: 0; padding: 3.4cqw 5cqw; background: transparent; border: 0; color: var(--rl-fg); font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif; text-align: left; }
.s3 .rl-head { display: flex; justify-content: space-between; align-items: center; }
.s3 .rl-logo { font: 600 1.9cqw/1 "Inter Tight", sans-serif; color: var(--rl-fg); letter-spacing: -.01em; }
.s3 .rl-logo i { display: inline; font-weight: 800; }
.s3 .rl-nav { margin: 0; display: flex; gap: 2.2cqw; font-size: 1.35cqw; }
.s3 .rl-nav a { color: rgba(243,237,230,.7); text-decoration: none; }
.s3 .rl-nav a + a::before { content: none; }
.s3 .rl-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4cqw; align-items: center; margin-top: 4.4cqw; }
.s3 .rl-t-old { display: none; }
.s3 .rl-t-new { display: block; }
.s3 .rl-h { font: 500 5cqw/1 "Inter Tight", sans-serif; letter-spacing: -.045em; color: var(--rl-fg); }
.rl-h em { display: block; font-style: normal; color: var(--rl-acc); }
.s3 .rl-p { margin: 1.8cqw 0 0; font-size: 1.55cqw; line-height: 1.5; color: rgba(243,237,230,.72); max-width: 34ch; }
.s3 .rl-btn { display: inline-block; margin-top: 2.2cqw; padding: 1cqw 2cqw; border-radius: 99px; background: var(--rl-acc); color: var(--rl-dark); font: 600 1.4cqw "Inter Tight", sans-serif; }
.s3 .rl-img { width: 100%; height: 21cqw; margin: 0; border: 0; border-radius: 1.6cqw; color: transparent;
  background: radial-gradient(60% 50% at 30% 30%, rgba(255,230,190,.55), transparent 70%), linear-gradient(135deg, #6E4325, #C88B52 55%, #4A2E18); filter: blur(1.4cqw) saturate(.6); transform: scale(1.04); transition: filter .9s, transform .9s var(--lb-ease); }
.s3 .rl-img::after { content: ""; position: absolute; inset: 22% 18% 0 30%; border-radius: 1cqw 1cqw 0 0; background: linear-gradient(180deg, rgba(23,19,15,0), rgba(23,19,15,.35)), repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 .3cqw, transparent .3cqw 3cqw); }
.s3 .rl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4cqw; margin-top: 3.4cqw; }
.s3 .rl-cards span { padding: 1.6cqw 1.8cqw; border-radius: 1.2cqw; background: var(--rl-card); font-size: 1.25cqw; color: rgba(243,237,230,.6); }
.rl-cards b { display: block; font-size: 1.6cqw; font-weight: 500; color: var(--rl-fg); margin-bottom: .3cqw; }

/* 4 · Handy: dieselbe Seite bricht im schmalen Fenster um */
/* (Klasse s4 = Handy-Ansicht: dieselbe Seite bricht im schmalen Fenster um) */
.rl-stage.s4 .rl-inner { padding: 6cqw 6cqw; }
.rl-stage.s4 .rl-logo { font-size: 5cqw; }
.rl-stage.s4 .rl-nav { display: none; }
.rl-stage.s4 .rl-burger { display: block; width: 6cqw; height: 4cqw; border-top: .8cqw solid var(--rl-fg); border-bottom: .8cqw solid var(--rl-fg); position: relative; }
.rl-stage.s4 .rl-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -.4cqw; border-top: .8cqw solid var(--rl-fg); }
.rl-stage.s4 .rl-hero { grid-template-columns: 1fr; margin-top: 9cqw; gap: 7cqw; }
.rl-stage.s4 .rl-h { font-size: 11cqw; }
.rl-stage.s4 .rl-p { font-size: 4.2cqw; margin-top: 4cqw; }
.rl-stage.s4 .rl-btn { font-size: 4cqw; padding: 2.6cqw 5cqw; margin-top: 5cqw; }
.rl-stage.s4 .rl-img { height: 44cqw; border-radius: 4cqw; }
.rl-stage.s4 .rl-cards { grid-template-columns: 1fr; gap: 3cqw; margin-top: 6cqw; }
.rl-stage.s4 .rl-cards span { font-size: 3.6cqw; padding: 4cqw; border-radius: 3cqw; }
.rl-stage.s4 .rl-cards b { font-size: 4.6cqw; }
.rl-stage.s4 .rl-chart { display: none; }

/* 5 · Tempo: Bild wird scharf */
.s5 .rl-img { filter: none; transform: none; }
/* 7 · Start & Messung */
.s7 .rl-chart { opacity: 1; transform: none; }
.s7 .rl-chart path { stroke-dashoffset: 0; }

/* Splitter-Effekt beim neuen Design (relaunch.js legt Kacheln über die Seite) */
.rl-shards { position: absolute; inset: 0; z-index: 4; pointer-events: none; transform-style: preserve-3d; }
.rl-shard { position: absolute; overflow: hidden; backface-visibility: hidden; will-change: transform, opacity; }
.rl-shard > .rl-stage { place-items: normal; }

/* Messwerte */
.rl-badges { position: absolute; right: -1.5cqw; top: 50%; transform: translateY(-50%); display: grid; gap: 1.2cqh; z-index: 5; }
.rl-badge { display: grid; min-width: 110px; padding: 9px 13px; border-radius: 12px; background: rgba(21,18,19,.94); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 36px -16px rgba(0,0,0,.7); transition: border-color .4s, transform .35s var(--lb-ease); }
.rl-badge small { font: 10.5px var(--lb-mono); color: rgba(244,241,242,.5); }
.rl-badge b { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .4s; }
.rl-badge.bad b { color: #F0A57A; } .rl-badge.good b { color: var(--lb-mint); }
.rl-badge.good { border-color: rgba(159,208,192,.35); }
.rl-badge.flip { animation: rl-badge .5s var(--lb-ease); }
@keyframes rl-badge { 40% { transform: scale(1.12); } }
.rl-score { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.rl-score svg { grid-row: span 2; width: 38px; height: 38px; transform: rotate(-90deg); }
.rl-score circle { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 3.5; }
.rl-score circle.v { stroke: var(--lb-mint); stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: round; transition: stroke .4s; }
.rl-score.bad circle.v { stroke: #F0A57A; }

/* Zeitleiste = die 7 Schritte (echter Text für Suchmaschinen) */
.rl-steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding-top: 18px; }
.rl-steps::before, .rl-steps::after { content: ""; position: absolute; left: 0; top: 4px; height: 2px; border-radius: 2px; }
.rl-steps::before { right: 0; background: rgba(255,255,255,.1); }
.rl-steps::after { width: var(--rl-p, 100%); background: var(--lb-pink); transition: width .6s var(--lb-ease); }
.rl-steps li { position: relative; }
.rl-steps li::before { content: ""; position: absolute; left: 0; top: -19px; width: 10px; height: 10px; border-radius: 50%; background: #3A3436; border: 2px solid var(--lb-dark); transition: background .3s, transform .3s; }
.rl-steps li > span { display: block; font: 11px var(--lb-mono); color: rgba(244,241,242,.45); }
.rl-steps h3 { font-size: clamp(.95rem, 1.15vw, 1.1rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; color: rgba(244,241,242,.55); transition: color .3s; }
.rl-steps p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rl-steps li.done::before, .rl-steps li.cur::before { background: var(--lb-pink); }
.rl-steps li.cur::before { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(224,102,143,.25); }
.rl-steps li.cur h3 { color: #fff; }
.rl-steps li.done h3 { color: rgba(244,241,242,.8); }
/* ohne JS: Schritte als normale Liste mit Text */
.rl:not(.rl-js) .rl-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.rl:not(.rl-js) .rl-steps p { position: static; width: auto; height: auto; clip: auto; white-space: normal; color: rgba(244,241,242,.65); margin-top: 6px; }
.rl:not(.rl-js) .rl-steps h3 { color: #fff; font-size: 1.1rem; }

/* Vorher / nachher */
.rl-vs { display: none; position: relative; max-width: 980px; margin: clamp(40px, 7vh, 80px) auto 0; }
.rl-js .rl-vs { display: block; }
.rl-vs-frame { position: relative; width: 100%; aspect-ratio: 16 / 9.4; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.rl-vs-new, .rl-vs-old { position: absolute; inset: 0; container-type: inline-size; }
.rl-vs-new > .rl-stage, .rl-vs-old > .rl-stage { position: absolute; inset: 0; display: block; place-items: normal; perspective: none; container-type: normal; }
.rl-vs .rl-page, .rl-shard .rl-page { width: 100%; height: 100%; }
.rl-vs-old { clip-path: inset(0 calc(100% - var(--vs, 50%)) 0 0); }
.rl-vs-handle { position: absolute; top: 0; bottom: 0; left: var(--vs, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); pointer-events: none; }
.rl-vs-handle::after { content: "‹ ›"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #141113; font: 600 15px/1 "Inter Tight", sans-serif; letter-spacing: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.rl-vs-range { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 9.4; height: auto; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.rl-vs figcaption { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 0; font: 12px var(--lb-mono); color: rgba(244,241,242,.55); }
.rl-vs figcaption b { font: 500 .95rem "Inter Tight", sans-serif; color: #fff; }
.rl-vs.hint .rl-vs-handle::after { animation: rl-nudge 1.4s var(--lb-ease) 2; }
@keyframes rl-nudge { 25% { transform: translate(calc(-50% - 10px), -50%); } 75% { transform: translate(calc(-50% + 10px), -50%); } }

@media (max-width: 900px) {
  .rl-stage { --win-w: min(100cqw, (100cqh - 64px) * 1.538); }
  .s4 .rl-win { width: min(50cqw, (100cqh - 64px) * .5); }
  .rl-bench { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .rl-editor { grid-row: 2; max-height: 7.6em; }
  .rl-ed-bar { display: none; }
  .rl-ed-code { font-size: 10.5px; padding: 8px 10px; }
  .rl-badges { position: static; transform: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
  .rl-stage { display: flex; flex-direction: column; justify-content: center; }
  .rl-badge { min-width: 0; padding: 5px 9px; } .rl-badge b { font-size: 1rem; } .rl-score svg { width: 26px; height: 26px; }
  .rl-steps { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .rl-steps h3, .rl-steps li > span { display: none; }
  .rl:not(.rl-js) .rl-steps h3, .rl:not(.rl-js) .rl-steps li > span { display: block; }
  .rl-now-text { font-size: .85rem; }
}

/* ---------- Geht nicht gibt’s nicht ---------- */
.mb { background: #141113; color: #F4F1F2; --muted: rgba(244,241,242,.6); --line: rgba(244,241,242,.14); overflow: hidden; }
.mb .label span:last-child, .mb .label > :last-child { color: rgba(244,241,242,.5); }
.mb-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.mb-big { font-size: clamp(1.9rem, 4vw, 3.8rem); font-weight: 300; line-height: 1.08; letter-spacing: -.03em; max-width: 16ch; }
.mb-big em { font-style: normal; color: var(--lb-pink); }
.mb-p { margin-top: 20px; max-width: 44ch; color: rgba(244,241,242,.72); font-size: 1.05rem; }
.mb-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mb-tags li { padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(244,241,242,.2); font-size: .86rem; }
.mb-tags.lb-in li { animation: lb-pop .4s var(--lb-ease) both; }
.mb-tags.lb-in li:nth-child(2) { animation-delay: .05s; } .mb-tags.lb-in li:nth-child(3) { animation-delay: .1s; } .mb-tags.lb-in li:nth-child(4) { animation-delay: .15s; } .mb-tags.lb-in li:nth-child(5) { animation-delay: .2s; } .mb-tags.lb-in li:nth-child(6) { animation-delay: .25s; }
.mb .plan-btn { margin-top: 26px; display: inline-block; border-color: rgba(244,241,242,.4); color: #F4F1F2; }
.mb .plan-btn:hover { background: #F4F1F2; color: #141113; border-color: #F4F1F2; }
.mb-stage { position: relative; aspect-ratio: 1 / .78; margin: 0; }
.mb-canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.mb-stage figcaption { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font: 12px var(--lb-mono); color: rgba(244,241,242,.4); }
@media (max-width: 900px) { .mb-grid { grid-template-columns: minmax(0, 1fr); } .mb-stage { order: -1; } }

/* ---------- Zoom auf die Demo-Karte (Kamerafahrt in die Seite) ---------- */
main.lb-cam { transition: transform .9s cubic-bezier(.65,0,.25,1); will-change: transform; }
.lb-dim { position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 40%, rgba(10,8,9,.7) 100%); }
.lb-dim.on { opacity: 1; }
.t-demo.lb-build { clip-path: inset(46% 46% 46% 46% round 22px); }
.t-demo.lb-build.lb-open { clip-path: inset(0 0 0 0 round 22px); transition: clip-path .75s var(--lb-ease); }
.t-demo.lb-build::before { transform: scaleX(0); transform-origin: left; transition: transform .7s .35s var(--lb-ease); }
.t-demo.lb-build.lb-open::before { transform: scaleX(1); }
.t-demo .t-demo-links .plan-btn.lb-in { animation: lb-pop .5s var(--lb-ease) both; }
.t-demo .t-demo-links .plan-btn.lb-in + .plan-btn.lb-in { animation-delay: .1s; }
