/* „Gemeinsam einrichten“ – Video-Coach (web/js/designer/coach.js). Designsprache des Show-Designers (DESIGN.md):
   Bühnen-Schwarz, Pult-Bernstein, Hot-Cue-Farben wie am DJ-Pult. */
.co, .co-entry, .co-offer, .co-away { --co-bg: #0f1116; --co-bg2: #161921; --co-line: #262b36; --co-line2: #343a48; --co-text: #eef0f4; --co-muted: #9aa1ae; --co-amber: #ffb020; --co-ink: #1a1205; --co-ok: #3ddc84; }
.co { --cue: var(--co-amber); }

/* ------------------------------------------------------------------ Rahmen */
.co-dim { position: fixed; inset: 0; z-index: 1100; background: radial-gradient(120% 90% at 50% 40%, rgba(6, 7, 10, .55), rgba(6, 7, 10, .86)); backdrop-filter: blur(3px) saturate(.8); }
.co {
  position: fixed; z-index: 1200; display: grid; gap: 0; color: var(--co-text); font: 15px/1.45 var(--font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif);
  background: linear-gradient(180deg, #13161d, var(--co-bg)); border: 1px solid var(--co-line2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 176, 32, .06), 0 0 60px -20px color-mix(in srgb, var(--cue) 45%, transparent);
}
.co[data-mode="theater"] { left: 50%; top: 50%; translate: -50% -50%; width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 24px); }
.co[data-mode="dock"] { right: 20px; bottom: 20px; width: min(392px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow-y: auto; }
.co[data-mode="dock"][data-side="left"] { right: auto; left: 20px; }
.co[data-mode="mini"] { right: 20px; bottom: 20px; width: 300px; cursor: pointer; }
.co[data-mode="mini"][data-side="left"] { right: auto; left: 20px; }

/* Kopf */
.co-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; padding: 12px 12px 10px 16px; }
.co-kick { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1.2 var(--mono, ui-monospace, Menlo, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--cue); }
.co-led { width: 8px; height: 8px; border-radius: 50%; background: var(--cue); box-shadow: 0 0 10px var(--cue); animation: co-led 1.6s ease-in-out infinite; }
@keyframes co-led { 50% { opacity: .35; box-shadow: none; } }
.co-title { grid-column: 1; font-size: 18px; line-height: 1.25; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-hb { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 4px; align-items: start; }
.co-ib { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--co-muted); cursor: pointer; }
.co-ib:hover { color: var(--co-text); background: var(--co-bg2); border-color: var(--co-line); }
.co-ic { width: 20px; height: 20px; flex: none; }
.co[data-mode="theater"] .co-title { font-size: 22px; }

/* Video */
.co-media { position: relative; aspect-ratio: 16 / 9; background: #07080b; margin: 0 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--co-line); }
.co-media video { width: 100%; height: 100%; display: block; object-fit: contain; background: #07080b; }
.co-card-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 700; font-size: 20px; color: var(--co-muted);
  background: radial-gradient(80% 80% at 50% 40%, #1a1d26, #07080b); }
.co-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.co-prog i { display: block; height: 100%; width: 0; background: var(--cue); box-shadow: 0 0 10px var(--cue); }
.co-ph { position: absolute; right: 10px; top: 10px; padding: 4px 9px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, .35); background: rgba(8, 9, 12, .7); color: #cfd3dc; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.co-replay { position: absolute; left: 10px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(8, 9, 12, .78); color: var(--co-text); font-weight: 700; font-size: 13px; cursor: pointer; backdrop-filter: blur(6px); }
.co-replay:hover { border-color: var(--cue); }
.co[data-mode="theater"] .co-replay { display: none; }
.co-bigplay { position: absolute; inset: 0; margin: auto; width: 180px; height: 64px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 0;
  background: var(--co-amber); color: var(--co-ink); font-weight: 800; font-size: 17px; cursor: pointer; box-shadow: 0 10px 40px rgba(255, 176, 32, .4); }
.co-bigplay .ic { width: 22px; height: 22px; }

/* „Bei dir“: persönliche Einblendung über dem Video */
.co-chips { position: absolute; left: 12px; top: 12px; display: grid; gap: 8px; justify-items: start; pointer-events: none; max-width: calc(100% - 140px); }
.co-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; background: rgba(10, 11, 15, .88); border: 1px solid color-mix(in srgb, var(--cue) 55%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); animation: co-chip-in .55s cubic-bezier(.2, .9, .2, 1.15); }
.co-chip span { padding: 4px 8px; border-radius: 7px; background: var(--cue); color: var(--co-ink); font: 800 11px/1 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; }
.co-chip b { font-size: 15px; }
.co-chip.out { animation: co-chip-out .45s ease-in forwards; }
@keyframes co-chip-in { from { opacity: 0; transform: translateX(-24px) scale(.96); } }
@keyframes co-chip-out { to { opacity: 0; transform: translateX(-16px); } }
.co[data-mode="dock"] .co-chip b { font-size: 13px; }

/* Blitz: geschafft / Umleitung / übersprungen */
.co-flash { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 18px;
  white-space: nowrap; pointer-events: none; animation: co-pop .5s cubic-bezier(.2, .9, .2, 1.3); }
.co-flash .co-ic { width: 24px; height: 24px; }
.co-flash.is-ok { background: #10241a; color: #9fe9bf; border: 1px solid #2c7a4f; box-shadow: 0 0 40px rgba(61, 220, 132, .35); }
.co-flash.is-route { background: #2a2110; color: #ffd27a; border: 1px solid #6b5016; box-shadow: 0 0 40px rgba(255, 176, 32, .3); }
.co-flash.is-skip { top: auto; bottom: 14px; translate: -50% 0; font-size: 13.5px; font-weight: 700; padding: 8px 14px; background: rgba(10, 11, 15, .9); color: #cfd3dc; border: 1px solid var(--co-line2); }
@keyframes co-pop { from { opacity: 0; scale: .7; } }

/* Untertitel */
.co-subs { margin: 0; min-height: 2.9em; padding: 10px 18px 2px; text-align: center; font-size: 18px; line-height: 1.4; font-weight: 600; color: #f6f1e7; text-wrap: balance; }
.co[data-mode="dock"] .co-subs { font-size: 14px; min-height: 0; padding: 8px 16px 0; color: #d9d4ca; }
.co[data-mode="dock"] .co-subs:empty { display: none; }

/* Bedienleiste (Kino) */
.co-ctrl { display: flex; align-items: center; gap: 4px; padding: 6px 12px 4px; }
.co-tg { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--co-muted); font: 700 12px/1 var(--mono, monospace); cursor: pointer; }
.co-tg:hover { color: var(--co-text); background: var(--co-bg2); }
.co-tg.off, .co-ib.off { opacity: .45; }
.co-sp { flex: 1; }
.co-skip { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--co-line2); background: var(--co-bg2); color: var(--co-text); font-weight: 700; cursor: pointer; }
.co-skip:hover { border-color: var(--cue); }

/* „Du bist dran“ */
.co-turn { display: grid; gap: 10px; padding: 12px 16px 6px; }
.co-turn-k { font: 800 12px/1 var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--cue); }
.co-turn-k:empty { display: none; }
.co-text { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; }
.co-text:empty { display: none; }
.co-extra { display: grid; gap: 10px; }
.co-extra:empty { display: none; }
.co-watch { display: flex; align-items: center; gap: 8px; color: var(--co-muted); font-size: 13px; }
.co-watch .co-ic { width: 16px; height: 16px; color: var(--cue); }
.co-watch i { width: 4px; height: 4px; border-radius: 50%; background: var(--co-muted); animation: co-dots 1.4s infinite; }
.co-watch i:nth-of-type(2) { animation-delay: .2s; } .co-watch i:nth-of-type(3) { animation-delay: .4s; }
@keyframes co-dots { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.co-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.co-acts[hidden] { display: none; }
.co .btn { min-height: 44px; }
.co .co-stuckb.wiggle { border-color: var(--co-amber); animation: co-wiggle 1.2s ease-in-out 3; }
@keyframes co-wiggle { 10%, 30% { transform: rotate(-2deg); } 20%, 40% { transform: rotate(2deg); } 50% { transform: none; } }

/* Kino: Teile von „Du bist dran“ aus, außer Willkommen */
.co[data-mode="theater"]:not(.is-welcome) .co-turn, .co[data-mode="theater"] .co-stuck { display: none; }
.co[data-mode="theater"].is-welcome .co-watch, .co[data-mode="theater"].is-welcome .co-acts { display: none; }
.co[data-mode="dock"] .co-ctrl, .co[data-mode="mini"] .co-ctrl { display: none; }
.co[data-mode="mini"] .co-media, .co[data-mode="mini"] .co-subs, .co[data-mode="mini"] .co-turn, .co[data-mode="mini"] .co-stuck, .co[data-mode="mini"] .co-confirm { display: none; }
.co[data-mode="mini"] .co-head { padding-bottom: 6px; }
.co[data-mode="mini"] .co-pipb, .co[data-mode="mini"] .co-xb { display: none; }

/* So läuft es (Willkommen) */
.co-how { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.co-how li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: 12px; background: var(--co-bg2); border: 1px solid var(--co-line); }
.co-how li .co-ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #2a2110; color: var(--co-amber); }
.co-how b { display: block; font-size: 15px; }
.co-how span { color: var(--co-muted); font-size: 13.5px; }
.co-go { justify-self: end; min-width: 200px; font-size: 16px; }

/* Ich hänge fest */
.co-stuck { display: grid; gap: 6px; padding: 4px 16px 8px; }
.co-stuck[hidden] { display: none; }
.co-stuck-h { font-size: 13px; color: var(--co-muted); }
.co-stuck button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--co-line); background: var(--co-bg2); color: var(--co-text); font-weight: 600; text-align: left; cursor: pointer; }
.co-stuck button:hover { border-color: var(--co-amber); }
.co-stuck button .co-ic { width: 18px; height: 18px; color: var(--co-amber); }
.co-stuck button.ask .co-ic { color: #6fb3ff; }

/* Spur mit Hot Cues */
.co-track { position: relative; height: 40px; margin: 8px 12px 12px; border-radius: 10px; background: #0a0b0f; border: 1px solid var(--co-line); overflow: visible; }
.co-track canvas { position: absolute; inset: 4px 6px; width: calc(100% - 12px); height: calc(100% - 8px); }
.co-cues { position: absolute; inset: 0; }
.co-cue { position: absolute; top: -7px; translate: -50% 0; width: 22px; height: 18px; border-radius: 5px; border: 1.5px solid var(--c); background: #0f1116; color: var(--c); font: 800 10.5px/1 var(--mono, monospace); padding: 0; cursor: default; }
.co-cue.done { background: var(--c); color: #0b0c10; cursor: pointer; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.co-cue.on { animation: co-cue 1.2s ease-in-out infinite; }
@keyframes co-cue { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 0 18px var(--c); } }
.co[data-mode="mini"] .co-track { margin-top: 0; }

/* Umleitung: Bernstein, gestrichelte Route */
.co.is-detour { --cue: var(--co-amber); border-color: #6b5016; }
.co.is-detour .co-head { background: repeating-linear-gradient(90deg, rgba(255, 176, 32, .12) 0 10px, transparent 10px 18px) bottom / 100% 2px no-repeat; }
.co.is-ok { animation: co-ok 1.1s ease-out; }
@keyframes co-ok { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .7), 0 30px 90px rgba(0, 0, 0, .65); } 100% { box-shadow: 0 0 0 26px rgba(61, 220, 132, 0), 0 30px 90px rgba(0, 0, 0, .65); } }

/* Beenden? */
.co-confirm { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: rgba(10, 11, 15, .94); }
.co-confirm[hidden] { display: none; }
.co-confirm p { margin: 0; max-width: 34ch; font-size: 15px; }
.co-confirm .btn { min-width: 160px; }

/* SoundSwitch-Teil: Checkliste + Antworten */
.co-take { width: 100%; }
.co-ss-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.co-ss-steps button { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--co-line); background: var(--co-bg2); color: var(--co-text); text-align: left; font-weight: 600; cursor: pointer; }
.co-ss-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--co-line2); color: transparent; }
.co-ss-steps i .co-ic { width: 16px; height: 16px; }
.co-ss-steps button[aria-pressed="true"] { border-color: #2c7a4f; }
.co-ss-steps button[aria-pressed="true"] i { background: var(--co-ok); border-color: var(--co-ok); color: #0b2416; }
.co-ss-steps button[aria-pressed="true"] span { color: var(--co-muted); text-decoration: line-through; }
.co-ss-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.co-ss-ans > b { grid-column: 1 / -1; font-size: 14px; margin-top: 4px; }
.co-ss-ans button { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--co-line2); background: var(--co-bg2); color: var(--co-text); font-weight: 600; font-size: 13.5px; text-align: left; cursor: pointer; }
.co-ss-ans button .ic { width: 18px; height: 18px; flex: none; color: var(--co-muted); }
.co-ss-ans button.primary { grid-column: 1 / -1; background: #10241a; border-color: #2c7a4f; color: #c9f5d6; }
.co-ss-ans button.primary .ic { color: var(--co-ok); }
.co-ss-ans button:hover { border-color: var(--co-amber); }

/* ------------------------------------------------------------------ Geisterhand + Ring */
.co-hand { position: fixed; left: 0; top: 0; z-index: 1300; width: 34px; height: 34px; pointer-events: none; will-change: transform; }
.co-hand::before { content: ""; position: absolute; left: -16px; top: -16px; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .55), rgba(255, 176, 32, 0) 65%); }
.co-hand svg { position: relative; width: 34px; height: 34px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.co-tap { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 3px solid var(--co-amber, #ffb020); opacity: 0; }
.co-hand.tap svg { animation: co-press .35s ease-out; }
.co-hand.tap .co-tap { animation: co-ripple .8s ease-out; }
@keyframes co-press { 40% { transform: scale(.82); } }
@keyframes co-ripple { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(5); } }
.co-ring { position: fixed; z-index: 1190; pointer-events: none; border-radius: 12px; border: 3px solid #ffb020;
  box-shadow: 0 0 0 9999px rgba(4, 5, 8, .34), 0 0 24px 4px rgba(255, 176, 32, .6); animation: co-ring 1.4s ease-in-out infinite, co-ring-dim 1.2s ease 3.5s forwards; }
.co-ring-l { position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 0; white-space: nowrap; padding: 9px 14px; border-radius: 10px; background: #ffb020; color: #1a1205; font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.co-ring-l::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 7px solid transparent; border-top-color: #ffb020; }
/* Lage der Beschriftung (coach.js sideLabel): oben, rechts, unten, links – Pfeil zeigt immer auf das Ziel */
.co-ring[data-lab="right"] .co-ring-l { left: calc(100% + 12px); bottom: auto; top: 50%; translate: 0 -50%; }
.co-ring[data-lab="right"] .co-ring-l::after { left: auto; right: 100%; top: 50%; translate: 0 -50%; border-color: transparent; border-right-color: #ffb020; }
.co-ring[data-lab="bottom"] .co-ring-l { bottom: auto; top: calc(100% + 12px); }
.co-ring[data-lab="bottom"] .co-ring-l::after { top: auto; bottom: 100%; border-color: transparent; border-bottom-color: #ffb020; }
.co-ring[data-lab="left"] .co-ring-l { left: auto; right: calc(100% + 12px); bottom: auto; top: 50%; translate: 0 -50%; }
.co-ring[data-lab="left"] .co-ring-l::after { left: 100%; top: 50%; translate: 0 -50%; border-color: transparent; border-left-color: #ffb020; }
.co.is-end .co-watch { display: none; }
@keyframes co-ring { 50% { border-color: #ffd27a; } }
@keyframes co-ring-dim { to { box-shadow: 0 0 0 9999px rgba(4, 5, 8, .06), 0 0 18px 2px rgba(255, 176, 32, .45); } }

/* ------------------------------------------------------------------ Einstieg (Startseite), Angebot, schwebend */
.co-entry { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px 22px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 176, 32, .16), transparent 55%), linear-gradient(180deg, #151820, #101218); border: 1px solid #4a3a16;
  box-shadow: 0 0 0 1px rgba(255, 176, 32, .05), 0 20px 50px -24px rgba(255, 176, 32, .35); }
.co-entry-art { position: relative; width: 120px; height: 92px; border-radius: 12px; background: #07080b; border: 1px solid var(--co-line); overflow: hidden; }
.co-entry-art i { position: absolute; top: -20px; width: 26px; height: 130px; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(255, 176, 32, .9), rgba(255, 176, 32, 0)); filter: blur(3px); mix-blend-mode: screen; animation: co-sweep 3.2s ease-in-out infinite alternate; }
.co-entry-art i:nth-child(1) { left: 14px; } .co-entry-art i:nth-child(2) { left: 47px; background: linear-gradient(180deg, rgba(255, 95, 168, .9), transparent); animation-delay: -1.1s; }
.co-entry-art i:nth-child(3) { left: 80px; background: linear-gradient(180deg, rgba(60, 200, 255, .9), transparent); animation-delay: -2.2s; }
@keyframes co-sweep { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
.co-entry-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #ffb020; color: #1a1205; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.co-entry-play .ic { width: 22px; height: 22px; margin-left: 3px; }
.co-entry-t { display: grid; gap: 4px; }
.co-entry-k { font: 800 12px/1 var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #ffb020; }
.co-entry-t b { font-size: 21px; line-height: 1.2; }
.co-entry-t p { margin: 0; color: var(--co-muted); font-size: 14.5px; max-width: 62ch; }
.co-entry-b { display: grid; gap: 6px; justify-items: center; }
.co-entry-b .btn { min-height: 52px; padding: 0 22px; font-size: 16px; }
.co-entry-b small { color: var(--co-muted); font-size: 12px; }
.co-entry-btn .ic { width: 18px; height: 18px; }
@media (max-width: 760px) { .co-entry { grid-template-columns: 1fr; } .co-entry-art { display: none; } .co-entry-b { justify-items: stretch; } }

.co-offer, .co-away { position: fixed; z-index: 1150; left: 50%; bottom: 22px; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px;
  background: #13161d; border: 1px solid #4a3a16; color: var(--co-text); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: co-chip-in .5s cubic-bezier(.2, .9, .2, 1.15); max-width: calc(100vw - 24px); }
.co-offer-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ffb020; color: #1a1205; flex: none; }
.co-offer-play .ic { width: 20px; height: 20px; margin-left: 2px; }
.co-offer-t { display: grid; } .co-offer-t small { color: var(--co-muted); }
.co-away { left: auto; right: 20px; translate: none; cursor: pointer; font: inherit; font-size: 13.5px; }
.co-away .co-ic { color: #ffb020; } .co-away b { color: #ffb020; }

/* Schwebendes Fenster (Document Picture-in-Picture) */
.co-pipbody { margin: 0; background: #0f1116; overflow: auto; display: block; height: auto; }
.co.in-pip { position: static; translate: none; width: 100%; min-height: 100vh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
.co.in-pip .co-ctrl { display: flex; }
.co.in-pip .co-turn, .co.in-pip .co-subs { display: grid; }
.co.in-pip[data-mode="theater"] .co-turn { display: none; }

/* ------------------------------------------------------------------ Finale: erster Drop */
.co-finale { position: fixed; inset: 0; z-index: 1150; pointer-events: none; overflow: hidden; }
.co-finale .beam { position: absolute; top: -12vh; left: var(--x); width: 16vw; height: 130vh; translate: -50% 0; transform-origin: 50% 0; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(180deg, var(--c), transparent 82%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(6px);
  animation: co-beam-in .5s ease-out var(--d) forwards, co-beam-sweep 2.6s ease-in-out var(--d) infinite alternate; }
.co-finale.out { transition: opacity 1.1s; opacity: 0; }
@keyframes co-beam-in { to { opacity: .5; } }
@keyframes co-beam-sweep { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.co-pass { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 12px; }
.co-pass-k { font: 900 13px/1 var(--mono, monospace); letter-spacing: .3em; text-transform: uppercase; color: #ffb020; }
.co-pass h2 { margin: 0; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -.01em; color: #fff; text-transform: none; max-width: 22ch; }
.co-pass-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(640px, 100%); }
.co-pass-g span { display: grid; gap: 4px; padding: 12px 8px; border-radius: 12px; background: rgba(20, 22, 30, .9); border: 1px solid #3a3020; color: var(--co-muted); font-size: 12.5px; font-weight: 600; }
.co-pass-g b { color: #fff; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.co-pass-g b.long { font-size: 15px; line-height: 1.25; overflow-wrap: normal; hyphens: auto; }   /* Show-Name: nicht mitten im Wort umbrechen */
.co.is-finale .co-card-ph { color: var(--co-text); }
.co-wait { display: grid; justify-items: center; gap: 8px; }
.co-wait i { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--co-amber); animation: co-spin .9s linear infinite; }
.co-wait small { font-size: 14px; font-weight: 600; color: var(--co-muted); }
@keyframes co-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .co-wait i { animation: none; } }

@media (max-width: 640px) {
  .co[data-mode="theater"] { top: auto; bottom: 0; translate: -50% 0; width: 100vw; border-radius: 18px 18px 0 0; }
  .co[data-mode="dock"], .co[data-mode="mini"] { right: 8px; left: 8px; bottom: 8px; width: auto; }
  .co-how { grid-template-columns: 1fr; }
  .co-pass-g { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .co-led, .co-cue.on, .co-ring, .co-entry-art i, .co-finale .beam, .co-watch i { animation: none !important; }
  .co-finale .beam { opacity: .4; }
}

/* Schmaler Einstieg (Startseite mit freigegebenem Ordner) */
.co-slim { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 176, 32, .1), transparent 60%), #12141a; border: 1px solid #3a2f16; }
.co-slim .co-entry-play { position: static; width: 40px; height: 40px; }
.co-slim .co-entry-play .ic { width: 20px; height: 20px; }
.co-slim b { display: block; font-size: 15px; }
.co-slim small { color: var(--muted, #9aa1ae); font-size: 13px; }
@media (max-width: 640px) { .co-slim { grid-template-columns: 1fr; } .co-slim .co-entry-play { display: none; } }

/* Angedockt kompakt: kleines Standbild neben dem Text (verdeckt weniger vom Designer) */
.co[data-mode="dock"] { grid-template-columns: 132px minmax(0, 1fr); grid-template-areas: "head head" "media turn" "subs subs" "stuck stuck" "track track"; column-gap: 12px; width: min(420px, calc(100vw - 24px)); }
.co[data-mode="dock"] .co-head { grid-area: head; padding-bottom: 6px; }
.co[data-mode="dock"] .co-media { grid-area: media; margin: 2px 0 0 12px; align-self: start; border-radius: 10px; }
.co[data-mode="dock"] .co-turn { grid-area: turn; padding: 0 14px 4px 0; gap: 8px; }
.co[data-mode="dock"] .co-subs { grid-area: subs; }
.co[data-mode="dock"] .co-stuck { grid-area: stuck; }
.co[data-mode="dock"] .co-track { grid-area: track; }
.co[data-mode="dock"] .co-chips, .co[data-mode="dock"] .co-ph, .co[data-mode="dock"] .co-flash.is-skip { display: none; }
.co[data-mode="dock"] .co-flash { font-size: 13px; padding: 6px 10px; gap: 6px; }
.co[data-mode="dock"] .co-flash .co-ic { width: 16px; height: 16px; }
.co[data-mode="dock"] .co-replay { left: 50%; top: 50%; bottom: auto; translate: -50% -50%; width: 38px; height: 38px; min-height: 0; padding: 0; justify-content: center; }
.co[data-mode="dock"] .co-replay span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co[data-mode="dock"] .co-text { font-size: 15px; }
.co[data-mode="dock"] .co-acts .btn { min-height: 40px; padding: 0 12px; }
/* SoundSwitch-Teil: Checkliste braucht die volle Breite */
.co.is-ss[data-mode="dock"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "subs" "turn" "stuck" "track"; }
.co.is-ss[data-mode="dock"] .co-media { margin: 0 12px; }
.co.is-ss[data-mode="dock"] .co-turn { padding: 10px 16px 4px; }
@media (max-width: 640px) { .co[data-mode="dock"] { grid-template-columns: 96px minmax(0, 1fr); } }

/* Kino: Breite nach verfügbarer Höhe, damit alles auf kleine Laptop-Bildschirme passt (Video 16:9) */
.co[data-mode="theater"] { width: min(1000px, calc(100vw - 32px), calc((100vh - 230px) * 1.7778 + 26px)); min-width: min(560px, calc(100vw - 32px)); }
.co[data-mode="theater"].is-welcome { width: min(1000px, calc(100vw - 32px), calc((100vh - 420px) * 1.7778 + 26px)); }
@media (max-height: 700px) { .co[data-mode="theater"].is-welcome .co-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } .co-how li { padding: 8px; } .co-how span { font-size: 12.5px; } }
.co.is-welcome .co-ctrl { display: none; }

/* Schwebendes Fenster kompakt: alles ohne Scrollen sichtbar (Fenster 420×624) */
.co.in-pip[data-mode="dock"] { grid-template-columns: 150px minmax(0, 1fr); grid-template-areas: "head head" "media turn" "subs subs" "extra extra" "track track"; column-gap: 10px; }
.co.in-pip[data-mode="dock"] .co-ctrl, .co.in-pip[data-mode="dock"] .co-acts, .co.in-pip[data-mode="dock"] .co-watch { display: none; }
.co.in-pip[data-mode="dock"] .co-media { grid-area: media; margin: 0 0 0 12px; align-self: start; }
.co.in-pip[data-mode="dock"] .co-turn { grid-area: turn; padding: 0 12px 0 0; display: contents; }
.co.in-pip[data-mode="dock"] .co-turn-k { grid-area: turn; align-self: start; margin-top: 2px; }
.co.in-pip[data-mode="dock"] .co-text { grid-area: turn; align-self: start; margin: 20px 12px 0 0; font-size: 14px; line-height: 1.4; }
.co.in-pip[data-mode="dock"] .co-extra { grid-area: extra; padding: 10px 12px 0; gap: 8px; }
.co.in-pip .co-ss-steps button { min-height: 38px; padding: 6px 10px; font-size: 13.5px; }
.co.in-pip .co-ss-steps i { width: 22px; height: 22px; }
.co.in-pip .co-ss-ans button { min-height: 42px; font-size: 13px; padding: 6px 8px; }
.co.in-pip .co-ss-ans > b { font-size: 13px; margin-top: 2px; }
.co.in-pip .co-track { margin: 10px 12px 12px; }
.co.in-pip .co-head { padding: 10px 10px 8px 14px; }
.co-ss-note { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border-radius: 10px; background: #2a1012; border: 1px solid #5a2224; color: #ffb0b2; font-size: 13px; }

/* Fliegendes Standbild beim Wechsel Kino ↔ Ecke (coach.js frameGhost) */
.co-ghost { position: fixed; z-index: 1250; border-radius: 12px; pointer-events: none; box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }

/* Finale: Show und Strahlen sollen wirken – schmale Karte, leichte Abdunklung */
.co.is-finale[data-mode="theater"] { width: min(700px, calc(100vw - 32px)); top: auto; bottom: 28px; translate: -50% 0; }
.co.is-finale .co-ctrl, .co.is-finale .co-subs:empty { display: none; }
body.co-finale-on .co-dim { background: rgba(6, 7, 10, .28); backdrop-filter: none; }
.co-finale .beam { opacity: 0; }
@keyframes co-beam-in { to { opacity: .7; } }

/* Kurse (17.10.2026): Knopf „Gemeinsam bauen (Video)“ rechts im Kopf der Übersicht */
.work-head .co-kurs-btn { margin-left: auto; align-self: center; }
.co-manual { margin-top: 8px; }
