/* Eventkontor Stagetimer – Regie, Agenda, Moderator */
:root {
  /* Eventkontor Markenfarben: Bühnenschwarz & Scheinwerfer-Amber */
  --bg: #0d0f12;        /* Bühnenschwarz */
  --panel: #15181d;     /* Case-Grau */
  --row: #1b1f25; --row2: #22262d;
  --line: #262a31;      /* Kabelgrau */
  --line2: #343941;
  --fg: #e9e6df;        /* Spotweiß */
  --dim: #9a9890;       /* Nebelgrau */
  --dim2: #6c6a64;
  --accent: #f2b544;    /* Scheinwerfer-Amber */
  --accent2: #ffc65e;
  --ink: #1a1306;       /* Amber-Tinte – Schrift auf Amber */
  --go: #3ecf6e; --warn: #f2b544; --stop: #ef4c43;
  --radius: 6px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
a.btn { text-decoration: none; color: inherit; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 12px;
  background: var(--row2); border: 1px solid var(--line2); border-radius: 8px; cursor: pointer; font-weight: 600; white-space: nowrap; user-select: none; }
.btn:hover { border-color: #4a4f58; background: #2a2e35; }
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 30px; padding: 0 9px; font-size: 13px; }
.btn.icon { width: 38px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn.go { color: var(--go); }
.btn.go.big { background: #13231a; border-color: #24452f; }
.btn.danger { color: #ff8a80; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--accent2); border-color: var(--accent2); }
.btn.on { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn.warnon { background: var(--warn); color: #111; border-color: var(--warn); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

input[type=text], input[type=password], input[type=time], select, textarea {
  background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; padding: 8px 10px; min-height: 38px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; min-height: 70px; }
label.f { display: block; font-size: 12px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.chk { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 0; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel > h3 { margin: 0; padding: 12px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.panel .body { padding: 12px 14px; }
.muted { color: var(--dim); }
.hide { display: none !important; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login form { width: min(360px, 100%); display: grid; gap: 12px; }
.login h1 { margin: 0 0 6px; font-size: 22px; }
.login .err { color: #ff8a80; min-height: 20px; font-size: 14px; }

/* ---------- Regie-Layout ---------- */
.app { display: grid; grid-template-rows: auto auto 1fr; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
.brand .ev { font-size: 22px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; border-radius: 6px; padding: 0 4px; }
.brand .ev:hover { background: var(--row); }
.brand .sub { color: var(--dim2); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.conn { width: 9px; height: 9px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px #22c55e22; }
html.offline .conn { background: var(--stop); box-shadow: 0 0 0 3px #ef444433; }

.rooms { display: flex; gap: 6px; padding: 10px 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.rtab { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; background: var(--row); border: 1px solid var(--line); cursor: pointer; white-space: nowrap; font-weight: 600; }
.rtab:hover { border-color: var(--line2); }
.rtab.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.rtab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim2); flex: none; }
.rtab .dot.run { background: var(--go); }
.rtab .dot.warn { background: var(--warn); } .rtab .dot.over { background: var(--stop); }
.rtab .dot.msg { box-shadow: 0 0 0 2px var(--fg); }
.rtab .src { font-size: 11px; opacity: .6; font-weight: 600; }
.rtab .t { font-variant-numeric: tabular-nums; font-size: 13px; opacity: .75; }

.main { display: grid; grid-template-columns: minmax(330px, 420px) 1fr; gap: 18px; padding: 18px; align-items: start; }
.side { display: grid; gap: 14px; position: sticky; top: 12px; }

.preview { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); background: #000; }
.preview iframe { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
.preview .flags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.preview .flags span { background: rgba(0,0,0,.7); border: 1px solid #444; font-size: 11px; padding: 2px 6px; border-radius: 5px; color: #ddd; }

.bigtime { text-align: center; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bigtime.yellow { color: var(--warn); } .bigtime.red, .bigtime.over { color: var(--stop); }
.transport { display: grid; grid-template-columns: 1fr 1fr 1.8fr 1fr; gap: 6px; }
.transport .btn { min-height: 48px; font-size: 16px; }
.transport .btn svg { width: 22px; height: 22px; }
.adjrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.cues { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; margin-top: 12px; gap: 6px; }
.cues .l { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.cues .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.srcnote { background: #221c10; border: 1px solid #4a3a1a; color: #f0d79f; padding: 10px 12px; border-radius: 8px; font-size: 14px; }

.msgcolors { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px #0006; }
.sw.sel { border-color: var(--fg); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { display: inline-flex; align-items: center; background: var(--row); border: 1px solid var(--line); border-radius: 999px; padding: 5px 4px 5px 12px; font-size: 13px; cursor: pointer; }
.preset:hover { border-color: var(--line2); }
.preset .x { margin-left: 4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--dim2); }
.preset .x:hover { background: #3a2020; color: #ff8a80; }
.row2 { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.stack { display: grid; gap: 10px; }

/* Ablaufplan */
.plan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.plan-head h2 { margin: 0; font-size: 18px; }
.plan-head .grow { flex: 1; }
.plan-head input[type=time] { width: 120px; }
.tl { display: grid; gap: 8px; }
.ti { display: grid; grid-template-columns: 30px 22px 82px 82px 1fr auto; align-items: center; gap: 10px; padding: 12px 12px 12px 6px;
  background: var(--row); border: 1px solid var(--line); border-radius: var(--radius); }
.ti .no { color: var(--dim2); text-align: center; font-weight: 700; }
.ti .grip { cursor: grab; color: var(--dim2); text-align: center; user-select: none; font-size: 18px; line-height: 1; }
.ti .start, .ti .dur { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; }
.ti .start small, .ti .dur small { display: block; font-size: 11px; color: var(--dim); font-weight: 600; }
.ti .name { min-width: 0; }
.ti .name b { font-size: 17px; }
.ti .name .spk { color: var(--dim); margin-left: 8px; font-weight: 600; }
.ti .tags { display: flex; gap: 5px; margin-top: 3px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #2a2d33; color: #c7c4bc; font-weight: 600; }
.tag.auto { background: #1d3326; color: #7fe0a0; }
.ti .notes { color: var(--dim); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti .acts { display: flex; gap: 6px; }

.ti.active { background: var(--accent); border-color: var(--accent); }
.ti.active, .ti.active .name b, .ti.active .start, .ti.active .dur { color: var(--ink); }
.ti.active .no, .ti.active .grip, .ti.active .name .spk, .ti.active .start small, .ti.active .dur small, .ti.active .notes { color: #4a3a17; }
.ti.active .tag { background: #1a130618; color: var(--ink); }
.ti.active .btn { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.ti.active .btn.go { color: var(--go); }
.ti.drag { opacity: .4; }
.ti.dropbefore { box-shadow: 0 -3px 0 0 var(--accent); }
.ti.dropafter { box-shadow: 0 3px 0 0 var(--accent); }
.tl-empty { padding: 30px; text-align: center; color: var(--dim); border: 1px dashed var(--line2); border-radius: var(--radius); }
.timeline { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 14px; }
.timeline .track { flex: 1; display: flex; gap: 3px; height: 8px; }
.timeline .track i { display: block; height: 100%; background: #30343b; border-radius: 2px; min-width: 2px; }
.timeline .track i.done { background: #6c6a64; } .timeline .track i.cur { background: var(--accent); }

/* Menü & Dialoge */
.menu { position: absolute; z-index: 50; background: #1c2026; border: 1px solid var(--line2); border-radius: 10px; padding: 5px; min-width: 190px; box-shadow: 0 12px 30px #0009; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu button:hover { background: var(--row2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
dialog { background: var(--panel); color: var(--fg); border: 1px solid var(--line2); border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 24px 60px #000c; }
dialog::backdrop { background: #000a; }
dialog .dh { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
dialog .dh h2 { margin: 0; font-size: 18px; }
dialog .db { padding: 16px 18px; display: grid; gap: 14px; max-height: 70vh; overflow: auto; }
dialog .df { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.seg-ctl { display: flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg-ctl button { flex: 1; border: 0; background: none; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--dim); }
.seg-ctl button.on { background: var(--accent); color: var(--ink); }
.hint { font-size: 12px; color: var(--dim); margin-top: 4px; }
.linkrow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.linkrow:last-child { border-bottom: 0; }
.linkrow .lt b { display: block; }
.linkrow .lt span { font-size: 12px; color: var(--dim); word-break: break-all; }
.qrbox { background: #fff; padding: 8px; border-radius: 10px; line-height: 0; }
.qrbox svg { display: block; max-width: 100%; height: auto; }
.teamqr { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px; background: #1a1610; border: 1px solid #4a3a1a; border-radius: 8px; }
@media (max-width: 520px) { .teamqr { grid-template-columns: 1fr; justify-items: center; text-align: center; } .teamqr .row2 { justify-content: center; } .linkrow { grid-template-columns: 1fr; } }
.devrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.devrow:last-child { border-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #22262d; border: 1px solid var(--line2); padding: 10px 16px; border-radius: 10px; z-index: 100; box-shadow: 0 10px 30px #0008; }
.kbd { font-size: 12px; color: var(--dim2); }
.kbd kbd { background: var(--row); border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; font: inherit; color: var(--dim); }

.main > * { min-width: 0; }
@media (max-width: 960px) {
  .main { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .panel > h3 .kbd { display: none; }
  .transport .btn { font-size: 14px; padding: 0 6px; }
  .adjrow { grid-template-columns: repeat(3, 1fr); }
  .brand .ev { font-size: 19px; }
  .topbar .btn { min-height: 34px; padding: 0 9px; }
  .side { position: static; }
  .ti { grid-template-columns: 22px 64px 64px 1fr; padding: 10px; gap: 8px; }
  .ti .grip { display: none; }
  .ti .acts { grid-column: 1 / -1; justify-content: flex-end; }
  .ti .start, .ti .dur { font-size: 15px; }
  .topbar, .rooms { padding-left: 12px; padding-right: 12px; }
}

/* ---------- Agenda ---------- */
.agenda { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }
.agenda header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.agenda header img { max-height: 44px; max-width: 160px; }
.agenda h1 { margin: 0; font-size: 26px; }
.agenda .now { margin-left: auto; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--dim); }
.agenda section { margin-bottom: 28px; }
.agenda h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.agenda .ai { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--row); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 6px; }
.agenda .ai .tm { font-variant-numeric: tabular-nums; font-weight: 700; }
.agenda .ai .tm small { display: block; color: var(--dim); font-weight: 500; }
.agenda .ai .nm b { font-size: 17px; }
.agenda .ai .nm span { color: var(--dim); margin-left: 6px; }
.agenda .ai .rt { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; text-align: right; }

.agenda .ai.active { background: var(--accent); border-color: var(--accent); }
.agenda .ai.active, .agenda .ai.active .nm b, .agenda .ai.active .rt { color: var(--ink); }
.agenda .ai.active .tm small, .agenda .ai.active .nm span { color: #4a3a17; }
.agenda .ai.nextup { border-color: var(--accent); }
.agenda select { width: auto; }
.agenda .viewbar { display: flex; gap: 10px; align-items: center; margin: -6px 0 22px; flex-wrap: wrap; }
.agenda .viewbar .seg-ctl { flex: 0 1 auto; }
.agenda .viewbar .seg-ctl button { padding: 9px 16px; font-size: 15px; }
.agenda h2 .btn { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--fg); }
@media (max-width: 600px) {
  .agenda { padding: 16px 12px 40px; }
  .agenda h1 { font-size: 21px; }
  .agenda .now { font-size: 20px; }
  .agenda .viewbar .seg-ctl { flex: 1 1 100%; }
  .agenda .viewbar select { flex: 1; }
  .agenda .ai { grid-template-columns: 62px 1fr auto; gap: 10px; padding: 11px 12px; }
  .agenda .ai .nm b { font-size: 16px; display: block; }
  .agenda .ai .nm span { margin-left: 0; font-size: 14px; }
}

/* ---------- Moderator ---------- */
.mod { height: 100vh; display: grid; grid-template-columns: 1fr 340px; grid-template-rows: auto 1fr; gap: 14px; padding: 14px; }
.mod .mh { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.mod .mh h1 { margin: 0; font-size: 20px; }
.mod .mh .clk { margin-left: auto; font-size: 24px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.mod .left { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.mod .tbox { background: var(--bg); border-radius: 14px; border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; padding: 14px 20px; min-height: 0; }
.mod .tbox .tt { font-size: 22px; font-weight: 700; text-align: center; }
.mod .tbox .tt span { color: var(--dim); font-weight: 600; margin-left: 8px; }
.mod .tbox .tv { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.mod .tbox .tv div { font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mod .tbox.yellow .tv div { color: var(--warn); } .mod .tbox.red .tv div, .mod .tbox.over .tv div { color: var(--stop); }
.mod .tbox .nx { text-align: center; font-size: 20px; font-weight: 600; color: var(--dim); }
.mod .mbox { background: var(--bg); border-radius: 14px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 20px; min-height: 0; overflow: hidden; }
.mod .mbox .mt { font-weight: 800; text-align: center; line-height: 1.1; overflow-wrap: break-word; max-width: 100%; }
.mod .mbox .mt.flash { animation: mblink 1s steps(1) infinite; }
.mod .mbox.empty .mt { color: var(--dim2); font-weight: 600; }
@keyframes mblink { 50% { opacity: .2; } }
.mod .list { overflow: auto; display: grid; gap: 6px; align-content: start; }
.mod .li { padding: 10px 12px; background: var(--row); border: 1px solid var(--line); border-radius: 10px; }
.mod .li .a { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; color: var(--dim); font-size: 13px; }
.mod .li b { display: block; }
.mod .li .sp { color: var(--dim); font-size: 14px; }
.mod .li.done { } .mod .li.active { background: var(--accent); border-color: var(--accent); }
.mod .li.active, .mod .li.active b { color: var(--ink); }
.mod .li.active .a, .mod .li.active .sp { color: #4a3a17; }
@media (max-width: 800px) { .mod { grid-template-columns: 1fr; height: auto; min-height: 100vh; } .mod .left { grid-template-rows: 40vh 30vh; } }

/* Eventkontor-Typografie: Überschriften in Big Shoulders, Zahlen in Plex Mono */
.brand .ev, .plan-head h2, .login h1, .agenda h1, .mod .mh h1, dialog .dh h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.brand .ev { font-size: 26px; }
.plan-head h2 { font-size: 24px; }
.agenda h1 { font-size: 32px; }
.brand .sub, .panel > h3, label.f, .agenda h2, .cues .l { font-family: var(--mono); font-weight: 500; letter-spacing: .12em; }
.brand .sub { color: var(--accent); }
.bigtime, .cues .v, .ti .start, .ti .dur, .agenda .now, .agenda .ai .tm, .agenda .ai .rt, .mod .mh .clk, .rtab .t, .timeline { font-family: var(--mono); }
.bigtime { font-weight: 500; font-size: 32px; }
.panel > h3 > span { white-space: nowrap; }
.panel > h3 .kbd { font-family: var(--font); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.cutinfo { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.cutbig { font-family: var(--mono); font-size: 34px; font-weight: 600; color: var(--stop); }
.tag.cut { background: #3a1a17; color: #ffb4ad; }
.ti.active .tag.cut { background: #1a130630; color: var(--ink); }

/* ---------- Rollen ---------- */
body.role-operator .adm, body.role-messages .adm, body.role-messages .opr { display: none !important; }
.brand .who { font-family: var(--mono); font-size: 12px; color: var(--dim); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.brand .who:empty { display: none; }

/* ---------- Zeitleiste (Scrub) ---------- */
.scrub { position: relative; height: 54px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg); cursor: pointer; user-select: none; touch-action: none; overflow: hidden; }
.scrub.off { opacity: .35; pointer-events: none; }
.scrub-ticks { position: absolute; inset: 0 0 8px 0; }
.scrub-ticks i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line2); }
.scrub-ticks i.min { top: 60%; border-color: #2c3037; }
.scrub-ticks b { position: absolute; top: 4px; transform: translateX(3px); font: 500 11px var(--mono); color: var(--dim); white-space: nowrap; }
.scrub-zones { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; display: flex; }
.scrub-zones .g { background: var(--go); } .scrub-zones .y { background: var(--warn); } .scrub-zones .r { background: var(--stop); }
.scrub-pos { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fg); transform: translateX(-1px); box-shadow: 0 0 0 1px #0008; }
.scrub-pos::before { content: ""; position: absolute; top: -1px; left: -6px; border: 7px solid transparent; border-top-color: var(--fg); }
.scrub-done { position: absolute; top: 0; bottom: 0; left: 0; background: #ffffff0d; }
.scrub-ghost { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.scrub-ghost span { position: absolute; bottom: 12px; left: 6px; background: var(--accent); color: var(--ink); font: 600 12px var(--mono); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.scrub-ghost.flipl span { left: auto; right: 6px; }
.btn.blinkon { background: var(--accent); color: var(--ink); border-color: var(--accent); animation: mblink 1s steps(1) infinite; }

/* ---------- Auswahl im Ablaufplan ---------- */
.ti { cursor: default; }
.ti.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.ti.active.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.bulk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--accent); border-radius: 6px; background: #1a1610; }
.bulk b { color: var(--accent); margin-right: 6px; font-family: var(--mono); font-weight: 600; }
.tag.link { background: #1d2a3a; color: #a8c8f0; }
.ti.active .tag.link { background: #1a130630; color: var(--ink); }

/* ---------- Verknüpfungen, Checklisten, Import ---------- */
.links { display: grid; gap: 6px; margin-bottom: 6px; }
.linkr { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; align-items: center; }
.linkr .chk { font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) { .linkr { grid-template-columns: 1fr 1fr; } }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 12px; }
.listrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.listrow:last-child { border-bottom: 0; }
.listrow .muted { font-size: 13px; }
.sec-title { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 2px; }
.teamcard { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--row); }
.teamcard .qrbox { padding: 5px; }
@media (max-width: 520px) { .teamcard { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.xlsprev { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.xlsprev table { width: 100%; border-collapse: collapse; font-size: 13px; }
.xlsprev th { position: sticky; top: 0; background: var(--panel); text-align: left; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.xlsprev td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.xlsprev td.n { font-family: var(--mono); white-space: nowrap; }
.xlsprev tr.warn td { color: var(--warn); }
.keyrow { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.keyrow:last-child { border-bottom: 0; }
.keyrow .btn { min-width: 110px; font-family: var(--mono); }
.keyrow .btn.wait { background: var(--accent); color: var(--ink); }
kbd { background: var(--row); border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; font: 12px var(--mono); color: var(--dim); }
.side > * { min-width: 0; }
.panel > h3 { flex-wrap: wrap; row-gap: 4px; }
.panel > h3 > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.role-messages .main { grid-template-columns: minmax(330px, 560px); }

/* ---------- Gespielte Programmpunkte (abgehakt, grün markiert) ---------- */
:root { --played-bg: #13201a; --played-line: #23402d; --played-fg: #8fcca0; --played-dim: #5f8f6c; }
.ti.done, .agenda .ai.done, .mod .li.done { background: var(--played-bg); border-color: var(--played-line); }
.ti.done .name b, .agenda .ai.done .nm b, .mod .li.done b { color: var(--played-fg); }
.ti.done .no, .ti.done .start, .ti.done .dur, .ti.done .name .spk, .ti.done .notes, .ti.done small,
.agenda .ai.done .tm, .agenda .ai.done .tm small, .agenda .ai.done .nm span, .mod .li.done .a, .mod .li.done .sp { color: var(--played-dim); }
.ti.done .no::before { content: "✓"; color: var(--go); }
.ti.done .no { font-size: 0; } .ti.done .no::before { font-size: 16px; }
.agenda .ai.done .tm::before, .mod .li.done b::before { content: "✓ "; color: var(--go); }
.ti.done .btn { opacity: .7; }
