/* Approved B: physical switchboard, mobile inline circuits; 18.10.2026. */

.b-sec { --ink: #16181B; --ink-2: #474B52; --v: #D9412A; --e: cubic-bezier(.16,1,.3,1); --spring: cubic-bezier(.34,1.56,.64,1); --g: clamp(16px, 5vw, 72px); }
.b-wrap { width: min(100% - 2 * var(--g), 84rem); margin-inline: auto; }
.b-sec { padding-block: clamp(48px, 9vw, 128px) clamp(64px, 10vw, 160px); }
.b-kicker { color: #B5321D; font-weight: 600; margin: 0 0 14px; }
.b-h2 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: .95; font-size: clamp(2.5rem, 1rem + 5.6vw, 6.25rem); max-width: 15ch; text-wrap: balance; }
.b-lede { margin: 22px 0 0; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); }

.b-grid { position: relative; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }

/* the board */
.b-board { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink); padding: 22px 22px 30px; }
.b-screw { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.b-screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4px; height: 2px; background: var(--ink); transform: rotate(var(--r, 35deg)); }
.b-screw:nth-of-type(1) { top: 10px; left: 10px; } .b-screw:nth-of-type(2) { top: 10px; right: 10px; --r: -20deg; }
.b-screw:nth-of-type(3) { bottom: 10px; left: 10px; --r: 70deg; } .b-screw:nth-of-type(4) { bottom: 10px; right: 10px; --r: 10deg; }

.b-mains { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 6px 18px; border-bottom: 3px solid var(--ink); margin-inline: -4px; }
.b-mains button { all: unset; box-sizing: border-box; cursor: pointer; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; min-height: 48px; display: grid; align-items: center; color: #6B6F76; transition: color .3s var(--e); padding-inline: 4px; border-radius: 6px; }
.b-mains button:first-child { justify-self: end; text-align: right; }
.b-mains button[aria-pressed="true"], .b-mains button:hover { color: var(--ink); }
.b-mains button:focus-visible { outline: 3px solid var(--v); outline-offset: 2px; }
.b-big { position: relative; width: 96px; height: 52px; border-radius: 26px; box-shadow: inset 0 0 0 5px var(--v); cursor: pointer; overflow: hidden; }
.b-big::before { content: ""; position: absolute; inset: 0; background: var(--v); opacity: 0; transition: opacity .3s var(--e); }
.b-big i { position: absolute; top: 8px; left: 8px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--v); transition: transform .6s var(--spring); }
[data-mode="work"] .b-big::before { opacity: 1; }
[data-mode="work"] .b-big i { transform: translateX(44px); }

.b-lamps { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px 4px; font-size: 14px; font-weight: 700; }
.b-lamps span:first-child { display: flex; align-items: center; gap: 8px; }
.b-lamp { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ink); position: relative; overflow: hidden; }
.b-lamp::after { content: ""; position: absolute; inset: 0; background: var(--v); opacity: 0; transition: opacity .3s var(--e); }
.b-lamp.on::after { opacity: 1; }
.b-lamps small { font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: right; }

.b-grp { margin-top: 14px; }
.b-grp__h { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 2px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.b-grp__h span { font-family: "Paytone One", sans-serif; font-weight: 400; color: var(--v); letter-spacing: 0; }
.b-list { list-style: none; margin: 0; padding: 0; }
.b-row { position: relative; }
.b-sw { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; width: 100%; min-height: 60px; padding: 8px 6px; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.b-sw:focus-visible { outline: 3px solid var(--v); outline-offset: 0; }
.b-tog { position: relative; width: 72px; height: 40px; border-radius: 20px; box-shadow: inset 0 0 0 4px var(--v); overflow: hidden; }
.b-tog::before { content: ""; position: absolute; inset: 0; background: var(--v); opacity: 0; transition: opacity .25s var(--e); }
.b-tog i { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--v); transition: transform .55s var(--spring); }
.b-sw:hover .b-tog i { transform: translateX(4px); }
.b-sw:active .b-tog i { transform: translateX(6px) scaleX(1.18); }
.b-sw[aria-checked="true"] .b-tog::before { opacity: 1; }
.b-sw[aria-checked="true"] .b-tog i { transform: translateX(32px); }
.b-sw[aria-checked="true"]:active .b-tog i { transform: translateX(26px) scaleX(1.18); }
.b-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; min-width: 0; }
.b-name small { display: block; font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-n { font-family: "Paytone One", sans-serif; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.b-sw[aria-checked="true"] .b-n { color: var(--v); }
.b-row.trip .b-tog { animation: b-trip .5s var(--e); }
@keyframes b-trip { 20% { transform: translateX(-5px) rotate(-3deg); } 45% { transform: translateX(4px) rotate(2deg); } 70% { transform: translateX(-2px); } }

/* the bench: two circuits */
.b-bench { position: sticky; top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; min-height: 420px; }
.b-empty { grid-column: 1 / -1; padding: 40px 0 0; }
.b-empty p { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem); max-width: 12ch; }
.b-empty p + p { margin-top: 18px; font-weight: 500; letter-spacing: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.b-empty svg { display: block; width: 120px; height: 70px; margin-bottom: 18px; }
.b-slot { min-width: 0; animation: b-out .75s var(--e) both; }
.b-slot.leave { animation: b-back .4s var(--e) both; }
@keyframes b-out { from { opacity: 0; transform: translateX(-90px) scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes b-back { to { opacity: 0; transform: translateX(-60px) scale(.94); } }
.b-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; margin: 0 0 12px; }
.b-cap .b-circ { grid-row: span 2; font-family: "Paytone One", sans-serif; font-size: 34px; line-height: 1; color: var(--v); }
.b-cap b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.b-cap span:last-child { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.b-slot .wsx { background: var(--t); }

.b-board, .b-bench { z-index: 1; }
.b-board { position: relative; }
.b-slot { background: #fff; position: relative; padding: 0 0 6px; }
.b-wires, .b-plugs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.b-plugs { z-index: 2; }
.b-wires path { fill: none; stroke: var(--v); stroke-width: 3.5; stroke-linecap: round; opacity: 0; transition: opacity .5s var(--e); }
.b-wires path.on { opacity: 1; }
.b-plugs circle { fill: #fff; stroke: var(--v); stroke-width: 3.5; opacity: 0; transition: opacity .5s var(--e); }
.b-plugs circle.on { opacity: 1; }

.b-toast { min-height: 1.5em; margin: 12px 4px 0; font-size: 14px; font-weight: 600; color: var(--v); }

/* phones and tablets: no bench, the product slides out right under its switch */
@media (max-width: 1023px) {
  .b-grid { grid-template-columns: minmax(0, 1fr); }
  .b-bench, .b-wires { display: none; }
  .b-board { padding: 18px 14px 12px; box-shadow: 7px 7px 0 var(--ink); max-width: 640px; }
  .b-row > .b-slot { margin: 6px 2px 18px; position: relative; }
  .b-row > .b-slot::before { content: ""; position: absolute; left: 38px; top: -10px; width: 4px; height: 12px; background: var(--v); border-radius: 2px; }
  .b-cap { margin-bottom: 10px; }
  .b-cap { display: block; }
  .b-cap .b-circ, .b-cap b { display: none; }
}
@media (max-width: 420px) { .b-mains button { font-size: 15px; } .b-big { width: 84px; height: 46px; } .b-big i { width: 30px; height: 30px; } [data-mode="work"] .b-big i { transform: translateX(38px); } }
@media (prefers-reduced-motion: reduce) {
  .b-tog i, .b-tog::before, .b-big i, .b-big::before, .b-lamp::after, .b-wires path, .b-plugs circle { transition: none; }
  .b-slot, .b-slot.leave, .b-row.trip .b-tog { animation: none; }
}

/* live widget host: the LiveFan card fills its host at 16:10 instead of its fixed 329 / 520 px */
.ws-live .lf-card, .ws-live .lf-card[data-size] { --lf-w: 100%; }
.ws-live .lf-card[data-size] .lf-area { height: auto; aspect-ratio: 16 / 10; }
.ws-live .lf-open { font-size: 13px; }
.ws-live .lf-open a { min-height: 44px; display: inline-flex; align-items: center; }
.ws-live .lf-try { min-height: 44px; padding-inline: 12px 16px; font-size: 13px; }
.ws-live .lf-try i { width: 20px; height: 20px; font-size: 13px; }

/* still frame for a product without a widget (Lyrics Sheet) */
.ws-still { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(22,24,27,.06), 0 10px 30px -12px rgba(22,24,27,.28); }
.ws-still__bar { height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #F1F0EC; font-size: 13px; color: #5F636A; }
.ws-still__bar i { width: 8px; height: 8px; border-radius: 50%; background: #C9C7C0; }
.ws-still__bar span { margin-left: 8px; }
.ws-still img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.ws-still__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 12px; font-size: 13px; color: #474B52; flex-wrap: wrap; }
.ws-still__foot a { color: #16181B; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-color: #D9412A; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[aria-busy="true"].ws-live::after { content: "Waking it up"; display: block; padding: 24px; font-size: 14px; color: #474B52; }

.b-sec { color-scheme:light; overflow-anchor:none; }
.b-also { font-size:14px; margin:26px 0 0; }
.b-also a { color:var(--ink); text-underline-offset:4px; }
.b-toast { color:#B5321D; min-height:4.5em; }
.b-mains .b-big { pointer-events:auto; display:block; padding:0; min-height:0; }
.b-name { overflow-wrap:anywhere; }
.b-row { scroll-margin-top:100px; }
#work-tools { scroll-margin-top:100px; }
.b-info { font-size:15px; margin-top:16px; }
.b-info summary { cursor:pointer; min-height:44px; font-weight:700; }
.b-info p { margin:8px 0 16px; }
.b-info h4 { font-size:15px; margin:16px 0 4px; }
.b-info summary:focus-visible, .b-slot :focus-visible { outline:3px solid #B5321D; outline-offset:3px; }
.b-slot .ws-live { min-height:270px; }
.b-slot .wsx { --v:#B5321D; }
@media(max-width:1023px) {
 .b-wrap { width:calc(100% - 32px); }
 .b-board { padding:22px 10px 16px; }
 .b-sw { grid-template-columns:54px minmax(0,1fr) 20px; gap:10px; min-height:72px; padding:10px 4px; }
 .b-tog { width:54px; height:32px; }
 .b-tog i { width:22px; height:22px; top:5px; left:5px; }
 .b-sw[aria-checked="true"] .b-tog i { transform:translateX(22px); }
 .b-name { font-size:18px; }
 .b-mains { gap:6px; }
 .b-big { width:70px; height:40px; }
 .b-big i { width:26px; height:26px; top:7px; left:7px; }
 [data-mode="work"] .b-big i { transform:translateX(30px); }
 .b-grp__h { font-size:13px; letter-spacing:.025em; }
 .b-slot { animation-name:b-mobile; }
 .b-row > .b-slot { margin:6px 0 20px; }
 .b-row > .b-slot::before { left:28px; }
 .b-slot .ws-live { min-height:300px; }
}
@keyframes b-mobile { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce) { .b-slot { animation:none; } }

.b-grp { padding-block:0; }
.b-sec { scroll-margin-top:100px; }

.ws-live .lf-card[data-size] .lf-area { aspect-ratio:auto; height:350px; }
.ws-live .lf-bar { font-size:13px; }
.ws-live .lf-url { font-size:13px; }
.b-slot .ws-live { min-height:414px; }
.b-slot:has(.wsx) .ws-live { min-height:0; }
/* The central mains control shares native button semantics, with its own physical shape. */
.b-mains .b-big { position:relative; width:96px; height:52px; border-radius:26px; overflow:hidden; box-shadow:inset 0 0 0 5px var(--v); cursor:pointer; }
@media(max-width:1023px) { .b-mains .b-big { width:70px; height:40px; } }

.b-trip-note { margin:0 0 12px; color:#B5321D; font-size:14px; font-weight:600; line-height:1.4; }
/* Reserve the shell before async widget code arrives, including the full 44px link target. */
.b-slot .ws-live { min-height:439px; }
.b-slot:has(.wsx) .ws-live { min-height:0; }
.ws-live .lf-open { height:59px; }
.ws-live .lf-open.hot a { background:#B5321D; }

/* v3.6.1: hero scenes retain readable controls at their native size. */
.deck .work-scene { position:relative; height:460px; overflow:auto; background:#fff; }
.deck .work-scene .wsx { --v:#B5321D; min-height:100%; border:0; border-radius:0; box-shadow:none; padding:12px; gap:8px; }
.deck .work-scene .wsx__stage { min-height:160px; }
.deck .work-scene .wsx__say { flex:1; }
.deck .work-scene .wsx__ctl { padding-top:36px; }
.deck .work-scene .wsx__hint { display:none; }
.deck .work-scene .wsx__go { min-width:44px; }
@media (min-width:1024px) {
 .deck .work-scene { height:350px; }
 .deck .work-scene .wsx { padding:10px; gap:6px; }
 .deck .work-scene .wsx__stage { min-height:140px; }
 .deck .work-scene .wsx__say { font-size:14px; min-height:2.8em; }
}
.deck .work-scene .wsx__tag { color:#16181B; }
.deck .work-scene { width:100%; aspect-ratio:auto; container-type:inline-size; }
/* Keep the invitation and main action visible as scene content changes. */
.deck .work-scene { overflow:hidden; }
.deck .work-scene .wsx { height:100%; min-height:0; }
.deck .work-scene .wsx__stage { flex:1; min-height:0; overflow:auto; }
.deck .work-scene .wsx__top, .deck .work-scene .wsx__say, .deck .work-scene .wsx__ctl { flex:none; }
/* v3.7: locale and state agree with the central homepage control. */
html[lang="de"] [aria-busy="true"].ws-live::after { content:"Wird geladen"; }
[data-mode="work"] .b-mains .b-big { --v:#16181B; }
/* Stage guidance: a live control hint takes priority over the next-switch hint. */
.b-grid:has(.fm-hint) .flip-hint { visibility:hidden; }

/* Card density, 20.10.2026: descriptions below the live scene. */
.deck .work-scene .wsx__ctl{padding-top:8px}
.deck .work-scene .wsx__b{display:none}
.deck .work-scene .wsx__go{background:#16181b;border-color:#16181b}
.deck .work-scene .wsx-rail{gap:2px;grid-template-columns:repeat(10,minmax(0,1fr))}
.deck .work-scene .wsx-stop i{width:24px;height:24px;font-family:inherit}
.deck .work-scene .wsx-okr{grid-template-columns:minmax(0,1fr) 80px;gap:8px}
.deck .work-scene .wsx-score{min-width:0;box-shadow:none}
.work-scene-description{font:400 14px/1.4 'Hanken Grotesk',sans-serif;margin:12px 0 0}

body:has(.fm-density-hint) .flip-hint{display:none}
