/* DoroPlay – Prototyp. Streng reduziert: Schwarz, Weiß, 1px-Linien. Farbe nur Grün (online/aktiv) und Rot (offline/ausgeblendet/Fehler). */
:root {
  --bg: #000; --fg: #fff; --mut: rgba(255,255,255,.58); --line: rgba(255,255,255,.28); --line-s: rgba(255,255,255,.14);
  --green: #2fd36b; --red: #ff3b30;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { opacity: .35; cursor: not-allowed; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 22px; }
.muted { color: var(--mut); }
.small { font-size: 13px; }
.red { color: var(--red); }
.u { text-decoration: underline; text-underline-offset: 3px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 6px; flex: none; }
.dot.on { background: var(--green); }
.dot.off { background: var(--red); }
.dot.none { border: 1px solid var(--line); }

.proto-banner { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 5px 12px; border-bottom: 1px solid var(--line-s); color: var(--mut); }

/* Kopfzeile */
.topbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: var(--bg); }
.tb-row { display: flex; align-items: center; gap: 28px; padding: 14px 28px; }
.wordmark { font-weight: 700; letter-spacing: .32em; font-size: 17px; white-space: nowrap; }
.tabs { display: flex; gap: 22px; }
.tab { color: var(--mut); padding: 4px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--fg); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.st-sum { font-size: 14px; }
.st-sum b { font-weight: 600; margin-right: 2px; }
.st-sum .sep { color: var(--mut); margin: 0 4px; }
.clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-variant-numeric: tabular-nums; }
#clockT { font-size: 15px; font-weight: 600; }
#clockD { font-size: 11px; color: var(--mut); letter-spacing: .04em; }
.role { font-size: 12px; color: var(--mut); display: flex; align-items: center; gap: 8px; }
select { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 6px 8px; color: var(--fg); }
.phone-only { display: none; }
.pb-short { display: none; }

/* Buttons */
.btn { border: 1px solid var(--fg); padding: 8px 14px; font-size: 14px; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); background: none; color: var(--fg); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.red-o { border-color: var(--red); color: var(--red); }
.btn.red-o:hover { background: var(--red); color: var(--bg); }
.btn.green-o { border-color: var(--green); color: var(--green); }
.btn.green-o:hover { background: var(--green); color: var(--bg); }
.btn.red-t { border-color: transparent; color: var(--red); padding-left: 0; }
.btn.red-t:hover { background: none; text-decoration: underline; }
.btn.wide { width: 100%; margin-top: 14px; }
.icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--mut); flex: none; }
.icon-btn:hover { color: var(--fg); }
.badge { display: inline-block; border: 1px solid var(--fg); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; line-height: 1.5; white-space: nowrap; }
.tag { display: inline-block; font-size: 11px; color: var(--mut); margin-top: 3px; }
.tag.green { color: var(--green); }
.tag.red { color: var(--red); }

.app { padding: 0 28px 60px; }
.ov-bar { display: flex; align-items: baseline; gap: 22px; padding: 22px 0 18px; flex-wrap: wrap; }
.ov-bar .hint { margin: 0; color: var(--mut); font-size: 13px; flex: 1; min-width: 260px; }
.ov-bar .btn { align-self: center; }

/* Übersicht: Gebäude-Spalten */
.ov { display: flex; gap: 28px; align-items: flex-start; }
.ov-main { flex: 1; min-width: 0; }
.board { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.bcol { flex: 1 1 0; min-width: 194px; max-width: 360px; }
.bhead { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 0 10px; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line-s); margin-bottom: 14px; cursor: grab; }
.bhead h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcount { font-size: 12px; color: var(--mut); white-space: nowrap; font-weight: 400; letter-spacing: 0; text-transform: none; }
.bcount .dot { width: 6px; height: 6px; margin: 0 3px 0 4px; }
.bdrop { display: none; position: absolute; inset: 0; background: var(--bg); border: 1px dashed var(--fg); align-items: center; justify-content: center; font-size: 12px; }
body.drag-poster .bhead .bdrop { display: flex; color: var(--mut); }
body.drag-poster .bhead.over .bdrop { color: var(--fg); border-style: solid; }
.bbody { display: flex; flex-direction: column; gap: 18px; min-height: 80px; }
.bcol.over .bbody { outline: 1px dashed var(--line); outline-offset: 6px; }
.bcol.dragging { opacity: .4; }

.stele { border: 1px solid var(--line); padding: 10px 10px 12px; background: var(--bg); }
.stele.over { border: 1px dashed var(--fg); }
.stele.dragging { opacity: .35; }
body.drag-poster .stele:not([data-auto]) { border-style: dashed; }
body.drag-poster .stele[data-auto] { opacity: .35; }
.st-head { display: flex; align-items: center; gap: 7px; margin: -2px -4px 8px 0; cursor: grab; min-width: 0; }
.st-icon { width: 20px; height: 20px; flex: none; opacity: .95; }
.st-icon.lg { width: 44px; height: 44px; }
.st-name { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-head .dot { margin: 0; }

.screen { position: relative; aspect-ratio: 9 / 16; border: 1px solid var(--line-s); background: #000; overflow: hidden; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.screen.is-off img, .screen.is-hid img { opacity: .3; }
.empty-screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mut); font-size: 12px; text-align: center; padding: 10px; }
.offline-flag { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--red); color: var(--red); font-size: 11px; letter-spacing: .08em; padding: 6px 8px; }
.prog { height: 1px; background: var(--line-s); margin-top: 6px; }
.prog i { display: block; height: 1px; background: var(--fg); transition: width 1s linear; }

.plist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pitem { display: flex; gap: 9px; align-items: flex-start; }
.pthumb { position: relative; width: 38px; flex: none; aspect-ratio: 9 / 16; border: 1px solid var(--line-s); overflow: hidden; display: block; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb:hover { border-color: var(--fg); }
.pitem.is-hidden .pthumb { border-color: var(--red); }
.pitem.is-hidden .pthumb img { opacity: .25; }
.hid-x { position: absolute; inset: 0; }
.hid-x::after { content: ''; position: absolute; left: calc(50% - 1px); top: -20%; width: 2px; height: 140%; background: var(--red); transform: rotate(29deg); }
.pinfo { text-align: left; display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 12px; line-height: 1.35; color: var(--mut); }
.pinfo b { color: var(--fg); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pitem.is-hidden .pinfo b { color: var(--mut); text-decoration: line-through; text-decoration-color: var(--red); }
.pitem.st-window .pthumb img, .pitem.st-expired .pthumb img, .pitem.st-future .pthumb img { opacity: .55; }
.plist-empty { font-size: 12px; color: var(--mut); margin: 10px 0 0; }
.pitem.auto .pinfo .ln.u { color: var(--fg); }

/* Medienpool */
.pool { width: 248px; flex: none; position: sticky; top: 74px; max-height: calc(100vh - 86px); overflow-y: auto; padding: 22px 16px 20px 0; border-right: 1px solid var(--line); }
.pool-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pool-head h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.pool-head h2 .muted { font-weight: 400; margin-left: 6px; }
.dropzone { border: 1px dashed var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; cursor: pointer; font-size: 13px; }
.dropzone small { color: var(--mut); font-size: 11px; }
.dropzone:hover, .dropzone.over { border-color: var(--fg); border-style: solid; }
.pool p.small { margin: 10px 0 14px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.pcard { display: flex; flex-direction: column; gap: 6px; cursor: grab; min-width: 0; }
.pcard.dragging { opacity: .35; }
.pc-img { aspect-ratio: 9 / 16; border: 1px solid var(--line-s); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard:hover .pc-img { border-color: var(--fg); }
.pc-meta { display: flex; flex-direction: column; font-size: 11px; line-height: 1.35; min-width: 0; }
.pc-meta b { font-weight: 600; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-btns { display: flex; align-items: center; justify-content: space-between; }

/* Stele-Detail */
.sd { padding-top: 18px; }
.back { color: var(--mut); font-size: 14px; display: inline-block; padding: 4px 0; }
.back:hover { color: var(--fg); }
.sd-grid { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 560px); gap: 48px; margin-top: 16px; }
.sd-screen { max-width: 300px; }
.sd-title { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.sd-title p { margin: 4px 0 0; font-size: 14px; }
.sd-right h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-weight: 500; margin-bottom: 4px; }
.plist.large { gap: 0; }
.plist.large .pitem { padding: 14px 0; border-bottom: 1px solid var(--line-s); flex-wrap: wrap; }
.plist.large .pthumb { width: 56px; }
.plist.large .pinfo { font-size: 13px; }
.plist.large .pinfo b { font-size: 15px; white-space: normal; }
.pbtns { display: flex; gap: 8px; flex-direction: column; flex: none; }
.pbtns .btn { min-width: 118px; padding: 10px 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--mut); }
.field select { color: var(--fg); }

/* Geräte */
.dev-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.dev-card { border: 1px solid var(--line); padding: 14px 16px; }
.dev-card.has-off { border-color: var(--red); }
.dev-card h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.dev-card p { margin: 2px 0; font-size: 14px; }
.dev-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dev-table th { text-align: left; font-weight: 500; color: var(--mut); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--fg); }
.dev-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-s); vertical-align: middle; }
.dev-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dev-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.dev-now { display: inline-flex; align-items: center; gap: 10px; }
.dev-now img { width: 22px; aspect-ratio: 9/16; object-fit: cover; border: 1px solid var(--line-s); }
.dev-table tr.offline .dev-now img { opacity: .35; }

/* Grilltheke */
.grill-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 48px; align-items: start; }
.sheet-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.sheet-scroll { overflow-x: auto; }
.sheet { border-collapse: collapse; width: 100%; font-size: 14px; }
.sheet th { font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); text-align: left; padding: 6px 8px; border: 1px solid var(--line); }
.sheet td { border: 1px solid var(--line); padding: 0; }
.sheet td.rn, .sheet th.rn { width: 34px; text-align: center; color: var(--mut); font-size: 12px; }
.sheet th.pc { width: 110px; }
.sheet td.del, .sheet th.del { width: 36px; border-color: transparent; border-left-color: var(--line); text-align: center; }
.sheet input { width: 100%; background: transparent; border: 0; padding: 9px 8px; color: var(--fg); outline: none; min-width: 0; }
.sheet input:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.sheet input::placeholder { color: rgba(255,255,255,.3); }
.sheet-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fallback { border: 1px solid var(--line); margin: 22px 0 10px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fallback legend { font-size: 12px; color: var(--mut); padding: 0 6px; }
.fallback input { accent-color: #fff; margin-right: 8px; }
.gp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.gp-head .dot { margin: 0 0 0 auto; }
.grill-prev .screen { max-width: 380px; }

/* Erweitert */
.ext-wrap { border-top: 1px solid var(--line); max-width: 760px; }
.ext-wrap > summary, .ext-item > summary { cursor: pointer; padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 10px; }
.ext-wrap > summary::before, .ext-item > summary::before { content: '+'; width: 14px; }
.ext-wrap[open] > summary::before, .ext-item[open] > summary::before { content: '–'; }
.ext-wrap > summary::-webkit-details-marker, .ext-item > summary::-webkit-details-marker { display: none; }
.ext-item { border-top: 1px solid var(--line-s); margin-left: 24px; }
.ext-item ul { margin: 0 0 6px; padding-left: 38px; color: var(--mut); font-size: 14px; }
.ext-item p { margin: 0 0 14px 24px; }

/* Modal */
body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.78); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.modal { background: var(--bg); border: 1px solid var(--fg); width: 100%; max-width: 420px; padding: 22px 24px; }
.modal h2 { font-size: 17px; margin-bottom: 4px; }
.modal-edit { max-width: 1000px; }
.ed-form { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 32px; }
.ed-col > .field:first-child { margin-top: 0; }
.ed-note { margin-top: 22px; max-width: 320px; }
.modal-assign, .modal-pickposter { max-width: 560px; }
.modal-foot { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-s); }
.grow { flex: 1; }
.menu-list { display: flex; flex-direction: column; margin-top: 12px; }
.menu-item { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line-s); font-size: 15px; }
.menu-item:hover:not(:disabled) { padding-left: 6px; }
.menu-item.red { color: var(--red); }
.menu-sep { margin: 16px 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.ed-head p { margin: 0; font-size: 13px; }
.ed-grid { display: grid; grid-template-columns: 190px 1fr; gap: 32px; margin-top: 18px; }
.ed-prev .screen img { object-fit: cover; }
.switch { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.switch input, .chk input { accent-color: #fff; width: 16px; height: 16px; margin: 0; }
.ed-form .field:first-child { margin-top: 0; }
.flabel { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.range-txt { margin: 0; color: var(--fg); font-size: 15px; }
.chk { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 14px; }
.cal { border: 1px solid var(--line); padding: 10px 12px 12px; max-width: 330px; color: var(--fg); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cw { font-size: 11px; color: var(--mut); text-align: center; padding: 4px 0; }
.cd { height: 31px; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.cd.blank { display: block; }
.cd:hover { outline: 1px solid var(--fg); outline-offset: -1px; }
.cd.past { color: rgba(255,255,255,.35); }
.cd.in { background: rgba(255,255,255,.14); color: var(--fg); }
.cd.start, .cd.end { background: var(--fg); color: var(--bg); font-weight: 600; }
.cd.today { text-decoration: underline; text-underline-offset: 4px; }
.time-row { display: flex; gap: 14px; align-items: center; color: var(--fg); }
.time-row label { display: flex; align-items: center; gap: 6px; }
.wd-row { display: flex; gap: 4px; flex-wrap: wrap; }
.wd { width: 40px; height: 34px; border: 1px solid var(--line); font-size: 13px; color: var(--mut); }
.wd.on { border-color: var(--fg); background: var(--fg); color: var(--bg); font-weight: 600; }
.wd-quick { display: flex; gap: 6px; margin-top: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); align-self: flex-start; }
.seg button { padding: 7px 16px; font-size: 13px; color: var(--mut); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--fg); color: var(--bg); font-weight: 600; }
.as-list { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.as-bh { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.as-s { display: flex; align-items: center; width: 100%; text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line-s); font-size: 14px; }
.as-s:hover:not(:disabled) { padding-left: 6px; }
.as-s .muted { margin-left: 6px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; margin-top: 14px; }
.pick { display: flex; flex-direction: column; gap: 4px; font-size: 11px; text-align: left; }
.pick img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border: 1px solid var(--line-s); }
.pick:hover img { border-color: var(--fg); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--bg); border: 1px solid var(--fg); padding: 10px 16px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* iPad / kleinere Desktops */
@media (max-width: 1180px) {
  .tabs { gap: 16px; }
  .tb-row { gap: 18px; }
  .tb-right { gap: 14px; }
  .role { display: none; }
}
@media (max-width: 1000px) {
  .ed-form { grid-template-columns: 1fr; gap: 0; }
  .ed-col + .ed-col > .field:first-child { margin-top: 18px; }
  .tb-row { flex-wrap: wrap; row-gap: 8px; }
  .tabs { order: 3; width: 100%; }
  .role.desk { display: flex; }
  .pool { width: 232px; }
  .grill-grid { grid-template-columns: 1fr; }
  .grill-prev .screen { max-width: 320px; }
}

/* iPhone */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .proto-banner { font-size: 10px; letter-spacing: .06em; }
  .pb-more { display: none; }
  .pb-short { display: inline; }
  .tb-row { padding: 10px 16px; gap: 10px; flex-wrap: nowrap; }
  .wordmark { font-size: 14px; letter-spacing: .22em; }
  .tabs, .desk { display: none !important; }
  .phone-only { display: inline-block; }
  .tb-right { gap: 12px; }
  .st-sum { font-size: 12px; }
  .st-sum .dot { width: 7px; height: 7px; margin-right: 3px; }
  .clock { display: none; }
  .app { padding: 0 16px 48px; }
  .ov-bar { padding: 16px 0 12px; }
  .hint { color: var(--mut); font-size: 13px; margin: 14px 0 6px; }
  .m-b { margin-top: 18px; }
  .m-b h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; border-top: 1px solid var(--fg); display: flex; justify-content: space-between; }
  .m-stele { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-s); min-height: 64px; }
  .m-thumb { width: 36px; aspect-ratio: 9/16; flex: none; border: 1px solid var(--line-s); overflow: hidden; }
  .m-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .m-stele.offline .m-thumb img { opacity: .3; }
  .m-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--mut); }
  .m-txt b { color: var(--fg); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
  .m-txt b .st-icon { width: 16px; height: 16px; }
  .chev { font-size: 22px; color: var(--mut); }
  .sd { padding-top: 10px; }
  .sd-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 8px; }
  .sd-title { margin-bottom: 12px; }
  .sd-title h1 { font-size: 19px; }
  .st-icon.lg { width: 34px; height: 34px; }
  .sd-screen { width: 46%; margin: 0 auto; max-width: none; }
  .plist.large .pitem { display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px; }
  .plist.large .pthumb { width: 48px; grid-row: span 2; }
  .pbtns { flex-direction: row; grid-column: 2; }
  .pbtns .btn { min-width: 0; flex: 1; padding: 11px 8px; }
  .dev-table thead { display: none; }
  .dev-table, .dev-table tbody, .dev-table tr, .dev-table td { display: block; width: 100%; }
  .dev-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .dev-table td { border: 0; padding: 2px 0; }
  .dev-sum { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dev-card { padding: 10px 12px; }
  .grill-grid { gap: 26px; }
  .grill-prev .screen { max-width: 100%; width: 70%; margin: 0 auto; }
  .sheet thead { display: none; }
  .sheet, .sheet tbody { display: block; }
  .sheet tr { display: grid; grid-template-columns: 30px 1fr 84px 36px; border: 1px solid var(--line); border-bottom: 0; }
  .sheet tr:last-child { border-bottom: 1px solid var(--line); }
  .sheet td { border: 0; }
  .sheet td:nth-child(1) { grid-column: 1; grid-row: 1 / 3; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
  .sheet td:nth-child(2) { grid-column: 2; grid-row: 1; border-bottom: 1px solid var(--line-s); }
  .sheet td:nth-child(3) { grid-column: 3; grid-row: 1; border-left: 1px solid var(--line-s); border-bottom: 1px solid var(--line-s); }
  .sheet td:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
  .sheet td:nth-child(5) { grid-column: 4; grid-row: 1 / 3; width: auto; border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
  .sheet td.rn, .sheet td.del { width: auto; }
  .pool.as-view { width: auto; position: static; max-height: none; border: 0; padding: 16px 0 0; overflow: visible; }
  .pool.as-view .pgrid { gap: 18px 14px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-width: none !important; border-width: 1px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
  .ed-grid { grid-template-columns: 1fr; gap: 16px; }
  .ed-form { grid-template-columns: 1fr; gap: 0; }
  .ed-col + .ed-col > .field:first-child { margin-top: 18px; }
  .ed-prev { display: flex; gap: 14px; align-items: flex-end; }
  .ed-prev .screen { width: 90px; flex: none; }
  .cal { max-width: none; }
  .modal-foot { flex-wrap: wrap; }
  .ext-item { margin-left: 0; }
}

/* ---------- v2: Standort-Filter, Redaktion, Grilltheke aus DoroKantine ---------- */
.green { color: var(--green); }
.clock.sim #clockD { color: var(--fg); letter-spacing: .08em; }
.clock.sim #clockT { text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; }
.chips-l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-right: 6px; }
.chip { border: 1px solid var(--line); padding: 5px 12px; font-size: 13px; color: var(--mut); line-height: 1.3; }
.chip:hover:not(:disabled) { border-color: var(--fg); color: var(--fg); }
.chip.on { border-color: var(--fg); color: var(--fg); background: rgba(255,255,255,.1); }
.chip:disabled { opacity: .6; cursor: default; }
.chip-link { font-size: 13px; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; padding: 5px 4px; }
.chip-link:hover { color: var(--fg); }
.chips-who { flex-basis: 100%; margin-top: 2px; }
.bcol.ro .stele { border-color: var(--line-s); }
.bcol.ro .stele .screen img { opacity: .75; }
.ro-note { font-size: 11px; color: var(--mut); margin: -8px 0 12px; letter-spacing: .04em; }

.grill-grid3 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, 330px) minmax(260px, 0.9fr); gap: 40px; align-items: start; }
.dk { border: 1px solid var(--line); padding: 16px 18px 18px; }
.dk-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.kw-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-s); }
.kw-btn { border: 1px solid var(--line); width: 34px; height: 34px; font-size: 20px; color: var(--fg); }
.kw-btn:hover { border-color: var(--fg); }
.kw-box { display: flex; flex-direction: column; align-items: center; min-width: 116px; }
.kw-box b { font-size: 20px; letter-spacing: .04em; }
.kw-state { font-size: 13px; color: var(--mut); margin-left: 8px; }
.kw-state.live { color: var(--green); }
.dk-body { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; margin-top: 14px; }
.dk-fields { display: flex; flex-direction: column; gap: 10px; }
.dk-f { display: flex; flex-direction: column; gap: 4px; }
.dk-f textarea { background: var(--bg); border: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 14px; padding: 7px 9px; resize: vertical; min-height: 44px; border-radius: 0; }
.dk-f textarea:focus { outline: none; border-color: var(--fg); }
.dk-f textarea:disabled { opacity: .55; }
.dk-prev { display: flex; flex-direction: column; gap: 6px; }
.dk-weeks { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.dk-weeks .chips { margin: 0; }
.chip-st { font-size: 11px; margin-left: 4px; color: var(--mut); }
.chip-st.live { color: var(--green); }
.gp .screen { max-width: 330px; }
.pub { margin: 10px 0 0; font-size: 14px; }
#pubWait { color: var(--mut); font-size: 13px; margin-top: 4px; }
.sync h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-weight: 500; margin: 22px 0 8px; }
.sync h3:first-child { margin-top: 0; }
.sync p { margin: 4px 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.cdl { font-size: 14px; font-variant-numeric: tabular-nums; }
.sim-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.eds { border: 1px solid var(--line); padding: 16px 18px; max-width: 760px; margin-bottom: 26px; }
.eds h2 { font-size: 15px; margin-bottom: 4px; }
.ed-row { display: grid; grid-template-columns: 90px 1fr; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-s); }
.ed-row > .muted { grid-column: 1; grid-row: 2; }
.ed-row .chips { grid-column: 2; grid-row: 1 / 3; margin: 0; }
@media (max-width: 1180px) { .grill-grid3 { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); } .sync { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .grill-grid3 { grid-template-columns: 1fr; gap: 26px; }
  .dk { padding: 14px 12px; }
  .dk-body { grid-template-columns: 1fr; }
  .dk-prev { display: none; }
  .kw-state { margin-left: 0; flex-basis: 100%; }
  .gp .screen { width: 70%; margin: 0 auto; max-width: none; }
  .chips { margin-bottom: 8px; }
  .chip { padding: 7px 11px; }
  .ed-row { grid-template-columns: 1fr; }
  .ed-row > .muted, .ed-row .chips { grid-column: 1; grid-row: auto; }
}
.src-seg { display: flex; flex-wrap: wrap; margin-bottom: 8px; }
.src-seg button { padding: 7px 12px; }
@media (max-width: 700px) { .gp { order: -1; } }
/* Grilltheke: hat die Küche die Woche eingetragen? */
.kwst { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.kwb { display: inline-block; border: 1.5px solid currentColor; font-weight: 700; font-size: 13px; padding: 3px 8px; line-height: 1.3; white-space: nowrap; }
.kwb.ok { color: var(--green); }
.kwb.miss { color: var(--red); }
#kwStatus { margin: 12px 0 2px; }
#kwStatus .kwb { font-size: 16px; padding: 5px 10px; }
.m-txt .kwst { margin: 4px 0 0; }
.m-txt .kwb { font-size: 12px; padding: 2px 6px; }
/* Grilltheke-Kopf: Name voll sichtbar, Badge darunter */
.st-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.st-nm .st-name { flex: none; max-width: 100%; }
.badge.sm { font-size: 9px; padding: 0 5px; line-height: 1.5; }
/* ONE (DEMO): importierte Plakate – invertiert (weiß mit schwarzer Schrift), gut erkennbar */
.one-badge { display: inline-block; width: max-content; margin: 3px 0 1px; background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 700; }
@media (max-width: 1340px) { .tabs { gap: 16px; } .tb-right { gap: 14px; } }

/* ===== v3: Medienpool-Start & Playlists ===== */
.plsel { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--mut); min-width: 0; }
.plsel select { flex: 1; min-width: 0; max-width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); padding: 4px 6px; font-size: 13px; font-weight: 600; }
.plsel select:hover:not(:disabled) { border-color: var(--fg); }
.plsel select:disabled { color: var(--mut); }
.plsel .pl-n { white-space: nowrap; font-size: 11px; color: var(--mut); text-decoration: underline; text-underline-offset: 2px; }
.plsel.big { font-size: 14px; margin: 0 0 8px; }
.plsel.big select { font-size: 16px; padding: 8px; }
.plsel.inline { margin: 0; }
.plsel.inline > span:first-child { display: none; }
.dev-pl { min-width: 170px; }

.mp { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.mp .dropzone { padding: 26px 16px; font-size: 15px; }
.pgrid.big { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 24px 18px; margin-top: 22px; }
.pgrid.big .pc-meta b { font-size: 13px; }
.pc-in { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-btns .btn.red-t { padding-right: 0; }
.mp-side { position: sticky; top: 74px; max-height: calc(100vh - 86px); overflow-y: auto; padding: 22px 0 20px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mp-side-head { display: flex; align-items: baseline; justify-content: space-between; }
.mp-side-head h2, .pl-list-head h2, .pl-pool h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.pl-drop { border: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.pld-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pld-hint { font-size: 11px; color: var(--mut); border-top: 1px dashed var(--line-s); padding-top: 5px; margin-top: 3px; }
.pl-drop.auto, .pl-drop.ro { opacity: .6; }
body.drag-poster .pl-drop:not(.auto):not(.ro), body.drag-poster .pl-target:not(.ro) { border-style: dashed; border-color: var(--fg); }
.pl-drop.over, .pl-target.over { border-color: var(--green) !important; border-style: solid !important; box-shadow: 0 0 0 1px var(--green) inset; }
.m-quick { display: block; text-align: center; margin: 14px 0 0; padding: 12px; font-size: 15px; }

.pls { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-top: 22px; }
.pl-list { display: flex; flex-direction: column; gap: 6px; }
.pl-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pl-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--line-s); }
.pl-row:hover { border-color: var(--fg); }
.pl-row.on { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.pl-row.on .muted { color: var(--bg); opacity: .7; }
.pl-ed-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.pl-ed-head h1 { font-size: 26px; }
.pl-ed .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
#plUse { margin: 8px 0 14px; line-height: 1.5; }
.pl-target { border: 1px solid var(--line); padding: 6px 14px 10px; min-height: 160px; }
.pl-items { list-style: none; margin: 0; padding: 0; }
.pl-it { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-s); background: var(--bg); }
.pl-it[draggable="true"] { cursor: grab; }
.pl-it.dragging { opacity: .35; }
.pl-it .grip { color: var(--mut); letter-spacing: -2px; font-size: 13px; width: 12px; flex: none; }
.pl-it .pthumb { width: 44px; }
.pl-it.is-hidden .pthumb { border-color: var(--red); }
.pl-it.is-hidden .pthumb img { opacity: .25; }
.pl-it.is-hidden .pinfo b { color: var(--mut); text-decoration: line-through; text-decoration-color: var(--red); }
.pl-it .pinfo b { white-space: normal; }
.it-btns { display: flex; gap: 2px; flex: none; }
.icon-btn:disabled { opacity: .25; cursor: default; }
.icon-btn.red { color: var(--red); }
.pl-drophint { font-size: 12px; color: var(--mut); margin: 10px 0 0; }
.pl-auto { border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pl-auto p { margin: 0; }
.pl-pool { position: sticky; top: 74px; max-height: calc(100vh - 86px); overflow-y: auto; padding-left: 20px; border-left: 1px solid var(--line); }
.pgrid.mini { grid-template-columns: 1fr 1fr 1fr; gap: 12px 10px; margin-top: 10px; }
.pcard.mini { gap: 4px; }
.pcard.mini .pc-meta b { font-size: 11px; font-weight: 500; }
.pcard.mini .btn { padding: 3px 6px; font-size: 12px; }
.pcard.mini.in .pc-img { opacity: .45; }
.as-pl { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line-s); gap: 2px; font-size: 15px; }
.as-pl:hover:not(:disabled) { border-color: var(--fg); }
.as-pl.done { border-color: var(--green); }
.as-pl:disabled { opacity: .45; }
.as-list:has(.as-pl) { gap: 8px; }
#grillPaused { margin: 0 0 8px; }

@media (max-width: 1180px) {
  .pls { grid-template-columns: 220px minmax(0, 1fr); }
  .pl-pool { grid-column: 1 / -1; position: static; max-height: none; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .pgrid.mini { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .mp { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
}
@media (max-width: 900px) {
  .mp { grid-template-columns: 1fr; }
  .mp-side { position: static; max-height: none; border-left: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .pls { grid-template-columns: 1fr; padding-top: 14px; gap: 18px; }
  .pl-ed-head h1 { font-size: 22px; }
  .pl-it { gap: 8px; }
  .pl-it .grip { display: none; }
  .dev-pl { min-width: 0; }
  .plsel select { font-size: 15px; padding: 7px; }
}
@media (max-width: 1340px) { .tb-row { gap: 18px; padding-left: 22px; padding-right: 22px; } .tabs { gap: 14px; } .tb-right { gap: 12px; } .role select { max-width: 150px; } }
@media (max-width: 1340px) { .tabs { gap: 12px; } }
@media (max-width: 1180px) { .tb-row { flex-wrap: wrap; row-gap: 8px; } .tabs { order: 3; width: 100%; } .role.desk { display: flex; } }
.dev-scroll { overflow-x: auto; }
@media (max-width: 1000px) { .dev-table th:nth-child(2), .dev-table td:nth-child(2) { display: none; } }
@media (max-width: 700px) { .dev-scroll { overflow: visible; } .dev-table td:nth-child(2) { display: block; } }

/* ===== v4: Testbetrieb, PIN, Super-Prio, Sortieren per Ziehen, iPad-Medienpool ===== */
#modeInfo.red { color: var(--red); }
body.gated .topbar { display: none; }
.gate { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.gate-box { width: 100%; max-width: 340px; border: 1px solid var(--line); padding: 30px 28px 22px; display: flex; flex-direction: column; gap: 10px; }
.gate-box .wordmark { font-size: 20px; }
.gate-sub { margin: 0 0 14px; font-size: 11px; letter-spacing: .14em; color: var(--mut); }
.gate-box input { background: var(--bg); border: 1px solid var(--line); border-radius: 0; color: var(--fg); font-size: 24px; letter-spacing: .4em; padding: 10px 12px; width: 100%; }
.gate-box input:focus { outline: none; border-color: var(--fg); }
.gate-box .btn.wide { margin-top: 4px; padding: 11px 14px; }
.gate-box p { margin: 0; }
.gate-box #pinErr:empty { display: none; }

.screen.clickable { cursor: pointer; }
.stele .screen.clickable:hover { border-color: var(--line); }
.sp-flag { position: absolute; left: 0; right: 0; top: 0; background: var(--fg); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 5px 8px; line-height: 1.3; }
.sp-mini { display: inline-block; background: var(--fg); color: var(--bg); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 1px 5px; line-height: 1.4; white-space: nowrap; }
.pitem.st-paused .pthumb img { opacity: .45; }
.pitem.is-super .pthumb { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.seg .sp-btn { color: var(--fg); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.seg .sp-btn.on { background: var(--fg); color: var(--bg); }
.sp-box { border: 1px solid var(--fg); padding: 10px 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; color: var(--fg); font-size: 13px; line-height: 1.4; }
.sp-box > b:first-child { letter-spacing: .08em; font-size: 12px; }
.sp-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ed-ord { margin-top: 14px; }
.ed-ord .small { color: var(--fg); }
.ed-ord-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pb-ord { display: flex; gap: 4px; justify-content: flex-end; }

/* Miniaturen sortieren */
.plist.sortable > .pitem { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.plist.sortable > .pitem .pthumb { cursor: grab; }
.pitem.sdragging { outline: 1px dashed var(--fg); outline-offset: 3px; background: rgba(255,255,255,.08); }
.plist.sorting .pitem:not(.sdragging) { opacity: .75; }
body.sdrag, body.sdrag * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

/* Upload abgelehnt */
.up-msg { border: 1px solid var(--red); padding: 10px 12px; margin-top: 10px; font-size: 13px; }
.up-msg-h { display: flex; align-items: center; justify-content: space-between; color: var(--red); }
.up-msg ul { margin: 4px 0 6px; padding-left: 18px; color: var(--red); }

/* Erweitert: Speicher & Beispieldaten */
.ext-sub { border-top: 1px solid var(--line-s); margin-top: 12px; }
.ext-sub > summary { cursor: pointer; padding: 10px 0; list-style: none; font-size: 14px; color: var(--mut); }
.ext-sub > summary::-webkit-details-marker { display: none; }
.ext-sub > summary::before { content: '+ '; }
.ext-sub[open] > summary::before { content: '– '; }
.ext-sub p { margin: 6px 0; }
#storage code { font-size: 12px; color: var(--fg); }
#storage p { margin: 6px 0; }

/* iPad (ca. 701–1279 px, hoch und quer): Medienpool klebt unter der (höheren) Kopfzeile
   und ist über eine Lasche am linken Rand jederzeit erreichbar. Desktop ≥ 1280 px unverändert. */
.pool-tab { display: none; }
@media (min-width: 701px) and (max-width: 1279px) {
  .ov.with-pool .pool { top: var(--tbh, 74px); max-height: calc(100vh - var(--tbh, 74px) - 8px); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  @supports (height: 100dvh) { .ov.with-pool .pool { max-height: calc(100dvh - var(--tbh, 74px) - 8px); } }
  .pool-tab { display: block; position: fixed; left: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; background: var(--bg); border: 1px solid var(--fg); border-left: 0; padding: 16px 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; z-index: 18; }
  .pool-tab:hover { background: var(--fg); color: var(--bg); }
}
@media (max-width: 700px) { .m-ov .m-quick { margin-top: 12px; } .sp-flag { font-size: 9px; padding: 3px 5px; } }
/* Stelen-Symbol nach Dirks Vorlage (hohes Gehäuse, Bildschirm, Sockelplatte) – etwas größer, damit gut erkennbar */
.st-icon { width: 22px; height: 22px; }
.st-head { gap: 6px; }
@media (max-width: 700px) { .m-txt b .st-icon { width: 18px; height: 18px; } }

/* ---------- Geräteformat 16:9 (TV quer) · Geräte anlegen/bearbeiten ---------- */
.screen.wide { aspect-ratio: 16 / 9; }
.screen.wide img { object-fit: contain; }             /* wie der Player: ganzes Bild, schwarze Ränder */
.fmt-tag { position: absolute; right: 5px; top: 5px; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); font-size: 9px; letter-spacing: .08em; padding: 0 4px; line-height: 1.5; }
.sd-screen.wide { max-width: 520px; }
.st-icon.wide { width: 24px; }
.st-icon.lg.wide { width: 52px; }
.plist.wide .pthumb, .pl-items.wide .pthumb { aspect-ratio: 16 / 9; width: 64px; }
.plist.wide .pthumb img, .pl-items.wide .pthumb img { object-fit: contain; }
.plist.large.wide .pthumb { width: 92px; }
.pc-img.land img { object-fit: contain; }
.m-thumb.wide { width: 58px; aspect-ratio: 16/9; }
.m-thumb.wide img { object-fit: contain; }
.tag.fmt-clash { color: var(--fg); border: 1px solid var(--line); padding: 0 4px; align-self: flex-start; }
.dev-id { display: block; font-size: 11px; margin-top: 2px; letter-spacing: .02em; }
.dev-fmt { white-space: nowrap; }
.dev-act { white-space: nowrap; }
.dev-act .btn + .btn { margin-left: 6px; }
.dev-info { margin-top: 14px; border-top: 1px solid var(--line-s); padding-top: 10px; }
.dev-info p { margin: 4px 0; }
.dev-info code, .dev-idbox code { font-size: 12px; color: var(--fg); word-break: break-all; }
code.sel { user-select: all; -webkit-user-select: all; }
.modal-device { max-width: 520px; }
.modal-device .field input[type="text"], .modal-device .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 0; color: var(--fg); font: inherit; font-size: 15px; padding: 8px 10px; width: 100%; resize: vertical; }
.modal-device .field input[type="text"]:focus, .modal-device .field textarea:focus { outline: none; border-color: var(--fg); }
.modal-device .field input::placeholder, .modal-device .field textarea::placeholder { color: rgba(255,255,255,.3); }
.fmt-seg { width: 100%; }
.fmt-seg button { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; }
.fmt-seg button span { display: flex; flex-direction: column; line-height: 1.3; }
.fmt-seg button small { font-size: 11px; opacity: .75; font-weight: 400; }
.fmt-seg button.on .st-icon { filter: invert(1); }
.fmt-seg button:disabled { opacity: .35; }
.dev-idbox { gap: 4px; }
.dev-idbox .btn { align-self: flex-start; margin-top: 6px; }
.dev-st { white-space: nowrap; }
.dev-now img.wide { aspect-ratio: 16 / 9; width: 40px; object-fit: contain; }

/* Rollen- und Live-Schutz */
.press-hint { color: #a85b00; font-size: .8rem; white-space: nowrap; }
.live-badge { background: #b42318; color: #fff; }
.dropzone.disabled { opacity: .55; cursor: not-allowed; }
.live-toggle { border: 1px solid #f0c7c2; border-radius: .4rem; padding: .55rem .7rem; background: #fff8f7; }

/* ===== Stelen-Look: Gehäuse, Display-Rahmen, ruhige Bedienflächen ===== */
:root {
  --panel: #1a1a1a;
  --panel-raised: #202020;
  --device-line: rgba(255,255,255,.18);
}

/* Die Gerätekarte erinnert an das helle, rund gefasste Stelengehäuse. */
.stele {
  border: 1px solid var(--device-line);
  border-radius: 20px;
  padding: 12px 12px 14px;
  background: var(--panel);
}
.stele.over { border-style: dashed; border-color: var(--fg); }
.stele .st-head { margin: -2px -4px 10px 0; }

/* Schwarzer, schmaler Display-Rand; Seitenverhältnis bleibt je Gerät erhalten. */
.stele .screen {
  border: 3px solid #080808;
  border-radius: 9px;
  background: #050505;
}
.stele .screen img { object-fit: contain; }

/* Kleine Playlist-Karten innerhalb des Gehäuses. */
.stele .pitem {
  padding: 7px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: var(--panel-raised);
}

/* Ruhigere, weichere Steuerelemente statt harter Weißflächen. */
select,
.plsel select {
  background: #111;
  border-color: rgba(255,255,255,.22);
  border-radius: 7px;
}
.btn {
  border-color: rgba(255,255,255,.28);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
}
.btn.primary {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: var(--fg);
}
.btn.primary:hover { background: rgba(255,255,255,.20); color: var(--fg); }
.badge { border-radius: 999px; }

/* Referenz-LED/Progress-Anmutung: sichtbar, aber ohne Glow. */
.prog { height: 2px; border-radius: 2px; }
.prog i { height: 2px; border-radius: 2px; }

@media (max-width: 700px) {
  .stele { border-radius: 16px; padding: 10px 10px 12px; }
  .stele .screen { border-radius: 8px; }
}

/* Zugewiesene Playlist zwischen Stelenkopf und Display. */
:root { --orange: #f7931a; }
.stele-pl {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  margin: -2px 0 8px;
  padding: 0 0 7px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.stele-pl-label {
  flex: none;
  color: var(--orange);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.stele-pl-name {
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Mischpult-Look: anthrazit, feine Linien, orange aktive Zustände ===== */
:root {
  --bg: #141414;
  --fg: #f1f1f1;
  --mut: rgba(241,241,241,.58);
  --line: rgba(241,241,241,.24);
  --line-s: rgba(241,241,241,.14);
  --orange: #f7931a;
  --orange-soft: rgba(247,147,26,.18);
}

body { font-weight: 300; }
:focus-visible { outline: 1px solid var(--orange); outline-offset: 2px; }

/* Monospace-Anmutung für die obere Zeit-/Zahlenzeile. */
.clock,
#clockT,
#clockD,
.st-sum {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
}

/* Aktive Navigation und Filter: Orange als Akzent, nicht als Statusfarbe. */
.tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab:hover { color: var(--orange); }
.chip { border-radius: 999px; }
.chip:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.chip.on { border-color: var(--orange); color: var(--orange); background: rgba(247,147,26,.08); }
.chip-link:hover { color: var(--orange); }
.seg { border-radius: 999px; overflow: hidden; }
.seg button.on { background: rgba(247,147,26,.10); color: var(--orange); font-weight: 500; }
.pl-row { border-radius: 10px; }
.pl-row:hover { border-color: var(--orange); }
.pl-row.on { border-color: var(--orange); background: rgba(247,147,26,.10); color: var(--fg); }
.pl-row.on .muted { color: var(--mut); opacity: 1; }

/* Weiche Bedienflächen statt harter Weißflächen. */
.btn {
  border-color: rgba(241,241,241,.28);
  border-radius: 999px;
  background: #1b1b1d;
  color: var(--fg);
}
.btn:hover { border-color: var(--orange); background: rgba(247,147,26,.08); color: var(--orange); }
.btn.ghost { border-color: rgba(241,241,241,.22); }
.btn.ghost:hover { border-color: var(--orange); background: rgba(247,147,26,.08); color: var(--orange); }
.btn.primary { border-color: var(--orange); background: transparent; color: var(--orange); }
.btn.primary:hover { border-color: var(--orange); background: rgba(247,147,26,.12); color: var(--orange); }
select,
.plsel select {
  border-color: rgba(241,241,241,.22);
  border-radius: 8px;
  background: #18181a;
}
select:focus,
.plsel select:focus { outline: 1px solid var(--orange); outline-offset: 1px; }

/* Versalien-/Pult-Beschriftungen. */
.pool-head h2,
.bhead h2,
.chips-l,
.flabel,
.plsel > span:first-child,
.stele-pl-label,
.tag {
  letter-spacing: .14em;
  text-transform: uppercase;
}
.flabel,
.chips-l,
.plsel > span:first-child { font-size: 10px; font-weight: 400; }

/* Anthrazit-Kanalzüge und vorhandene Displayrahmen beibehalten. */
.bhead { border-top-color: var(--line); }
.stele { border-color: rgba(241,241,241,.18); background: #1a1a1a; }
.stele.over { border-color: var(--orange); }
.stele .pitem { border-color: rgba(241,241,241,.10); background: #202020; }
.dev-card,
.pl-drop,
.pl-target,
.pl-auto { border-color: rgba(241,241,241,.18); background: #1a1a1a; }
.pool { border-right-color: rgba(241,241,241,.18); }
.modal { border-color: rgba(241,241,241,.28); background: #181818; }
.modal-foot { border-top-color: rgba(241,241,241,.14); }

/* Aktive Playlist-/Pult-Beschriftung bleibt orange, ohne Leuchteffekt. */
.stele-pl-label { color: var(--orange); }
.stele-pl { border-bottom-color: rgba(241,241,241,.10); }
.pl-drop.over,
.pl-target.over { border-color: var(--orange) !important; box-shadow: none !important; }
.live-toggle {
  border-color: rgba(241,241,241,.18);
  border-radius: 9px;
  background: #1a1a1a;
}

/* ===== Anzeige je Gerät: Statusleiste + Lauftext (schwarz/weiß, dünne Linien, kein Glow) ===== */
.modal-gticker { max-width: 560px; }
.dev-display, .tk-box { border: 1px solid rgba(241,241,241,.18); border-radius: 9px; background: #1a1a1a; padding: .6rem .75rem; gap: 8px; }
.tk-box input[type="text"], .tk-sched input { background: var(--bg); border: 1px solid var(--line); border-radius: 0; color: var(--fg); font: inherit; font-size: 15px; padding: 8px 10px; width: 100%; box-sizing: border-box; color-scheme: dark; }
.tk-box input[type="text"]:focus, .tk-sched input:focus { outline: none; border-color: var(--fg); }
.tk-box input::placeholder { color: rgba(255,255,255,.3); }
.tk-sched { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.tk-sched label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mut); }
.tk-sched .tk-days, .tk-sched > .small { grid-column: 1 / -1; }
.tk-days .wd-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tk-state { font-size: 11px; letter-spacing: .04em; border: 1px solid var(--line); padding: 0 6px; line-height: 1.6; white-space: nowrap; color: var(--mut); }
.tk-state.live { border-color: var(--fg); color: var(--fg); }
.tk-state.old { text-decoration: line-through; }
.tk-sum { color: var(--fg); }
.tk-global { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid rgba(241,241,241,.18); border-radius: 9px; background: #1a1a1a; padding: 10px 14px; margin: 14px 0; font-size: 13px; }
.tk-global-txt { flex: 1; min-width: 200px; }
.tk-global-hint { margin-top: 8px; }
.dsp-badge { margin-left: 6px; border-color: var(--line); color: var(--fg); }
.dsp-badge.dim { opacity: .5; }

/* ===== v5 (30.09.2026): Bundesdesigner Schwarz-Orange – passend zur Portal-Seite =====
   Flächen #111 / #171717 / #1c1c1c, Linien #2a2a2a / #3a3a3a, Orange #EE9832, Inter 800/300 (selbst gehostet),
   dünne weit gesperrte Beschriftungen, Pill-Buttons. Status Grün/Rot bleibt. Nur Optik. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-var-latin.woff2") format("woff2"); }
:root {
  --bg: #111111; --fg: #ffffff; --mut: #9a9a9a; --dim: #6b6b6b;
  --line: #2a2a2a; --line-s: #222222; --line-strong: #3a3a3a;
  --panel: #171717; --panel-raised: #1c1c1c; --device-line: #2a2a2a;
  --orange: #EE9832; --orange-soft: rgba(238,152,50,.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body { background: var(--bg); font-family: var(--font); font-weight: 300; }
button, select, input, textarea { font-family: var(--font); }
h1, h2, h3 { font-weight: 300; letter-spacing: .02em; }
b, strong { font-weight: 600; }
:focus-visible { outline: 1px solid var(--orange); outline-offset: 2px; }
::selection { background: var(--orange); color: #111; }

/* Kopfzeile + Banner */
.topbar { background: var(--bg); border-bottom-color: var(--line); }
.proto-banner { border-bottom-color: var(--line); color: var(--dim); letter-spacing: .22em; }
.wordmark { display: inline-flex; align-items: center; letter-spacing: 0; }
.wordmark .dp-wm { display: block; height: 22px; width: auto; }
.gate-box .wordmark .dp-wm { height: 26px; }
.tab { color: var(--mut); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: var(--orange); }
.clock, #clockT, #clockD, .st-sum { font-family: var(--font); font-variant-numeric: tabular-nums; }
#clockT { font-weight: 300; letter-spacing: .06em; }
#clockD { color: var(--dim); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.st-sum { font-size: 12px; letter-spacing: .08em; }
.st-sum b { font-weight: 600; }

/* Buttons: Pill, dünne Kontur, Orange als Akzent */
.btn { border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .1em; padding: 8px 16px; }
.btn.sm { font-size: 11px; padding: 5px 12px; }
.btn:hover, .btn.ghost:hover { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.btn.ghost { border-color: var(--line-strong); }
.btn.primary { border-color: var(--orange); background: transparent; color: var(--orange); }
.btn.primary:hover { background: var(--orange); border-color: var(--orange); color: #111; }
.btn.red-t { border-color: transparent; background: none; }
.icon-btn:hover { color: var(--orange); }
.badge { border-color: var(--line-strong); border-radius: 999px; letter-spacing: .14em; font-weight: 500; }
.chip { border-color: var(--line-strong); letter-spacing: .1em; }
.chip:hover:not(:disabled), .chip.on { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.chip-link:hover { color: var(--orange); }
.seg { border-color: var(--line-strong); }
.seg button.on, .seg .sp-btn.on { background: var(--orange-soft); color: var(--orange); }
.wd.on { border-color: var(--orange); background: var(--orange); color: #111; }
.cd.start, .cd.end { background: var(--orange); color: #111; }
.fallback input, .switch input, .chk input, input[type="checkbox"], input[type="radio"] { accent-color: var(--orange); }

/* Eingaben */
select, .plsel select { background: var(--panel-raised); border: 1px solid var(--line-strong); border-radius: 8px; color: #fff; font-weight: 400; }
select:hover:not(:disabled), .plsel select:hover:not(:disabled) { border-color: var(--orange); }
select:focus, .plsel select:focus { outline: 1px solid var(--orange); outline-offset: 1px; }
.gate-box input, .tk-box input[type="text"], .tk-sched input, .modal-device .field input[type="text"], .modal-device .field textarea, .sheet input, .dk-f textarea {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; color: #fff; }
.gate-box input:focus, .tk-box input[type="text"]:focus, .tk-sched input:focus, .modal-device .field input[type="text"]:focus, .modal-device .field textarea:focus, .dk-f textarea:focus { outline: none; border-color: var(--orange); }

/* Flächen & Linien */
.bhead { border-top-color: var(--line-strong); border-bottom-color: var(--line); }
.bdrop, .stele.over { border-color: var(--orange); }
.stele { background: var(--panel); border-color: var(--line); }
.stele.over { border-color: var(--orange); }
.stele .pitem { background: var(--panel-raised); border-color: var(--line); }
.stele-pl { border-bottom-color: var(--line); }
.dev-card, .pl-drop, .pl-target, .pl-auto, .live-toggle, .dev-display, .tk-box, .tk-global { background: var(--panel); border-color: var(--line); }
.pool { border-right-color: var(--line); }
.dropzone { border-color: var(--line-strong); border-radius: 14px; }
.dropzone:hover, .dropzone.over { border-color: var(--orange); color: var(--orange); }
.pthumb:hover, .pcard:hover .pc-img, .pick:hover img, .kw-btn:hover, .as-pl:hover:not(:disabled), .pl-row:hover { border-color: var(--orange); }
.pl-row { border-color: var(--line); }
.pl-row.on { border-color: var(--orange); background: var(--orange-soft); color: #fff; }
.dev-table th { border-bottom-color: var(--line-strong); color: var(--dim); font-weight: 400; font-size: 10px; letter-spacing: .18em; }
.dev-table td { border-bottom-color: var(--line); }
.prog i { background: var(--orange); }
body.drag-poster .pl-drop:not(.auto):not(.ro), body.drag-poster .pl-target:not(.ro) { border-color: var(--orange); }

/* Hervorhebungen: früher weiß gefüllt → jetzt Orange */
.one-badge { background: var(--orange); color: #111; border-color: var(--orange); font-weight: 700; }
.sp-flag, .sp-mini { background: var(--orange); color: #111; }
.pitem.is-super .pthumb { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.sp-box { border-color: var(--orange); border-radius: 12px; }
.tk-state { border-color: var(--line-strong); border-radius: 999px; }
.tk-state.live { border-color: var(--orange); color: var(--orange); }
.fmt-tag { border-color: var(--line-strong); background: var(--bg); border-radius: 999px; padding: 0 5px; }
.pool-tab { border-color: var(--line-strong); background: var(--panel); }
.pool-tab:hover { background: var(--orange); border-color: var(--orange); color: #111; }
.press-hint { color: var(--orange); }

/* Beschriftungen dünn und weit gesperrt */
.pool-head h2, .bhead h2, .chips-l, .flabel, .plsel > span:first-child, .stele-pl-label, .tag { letter-spacing: .18em; }
.pool-head h2, .bhead h2 { font-weight: 500; }
.stele-pl-label { color: var(--orange); }

/* Modal, Toast, Anmeldung */
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.modal-foot { border-top-color: var(--line); }
.toast { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 20px; }
.gate-box { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px 24px; }
.gate-sub { color: var(--dim); letter-spacing: .22em; }
@media (max-width: 700px) {
  .m-b h2 { border-top-color: var(--line-strong); }
  .wordmark .dp-wm { height: 18px; }
}
/* Kopfzeile kompakt halten (Abstände der bestehenden Breakpoints bleiben gültig) */
.wordmark .dp-wm { height: 20px; }
@media (min-width: 1341px) { .tb-row { gap: 22px; } .tabs { gap: 18px; } }
.tab { font-size: 11px; letter-spacing: .12em; }
@media (max-width: 1340px) { .tab { letter-spacing: .07em; } .st-sum { letter-spacing: .02em; } }
@media (max-width: 1260px) { .tb-row { flex-wrap: wrap; row-gap: 8px; } .tabs { order: 3; width: 100%; } }
