/* VideoHub – ruhige, LUKS-inspirierte Oberfläche. Farbwerte als Arbeitsannahme. */
:root {
  --blue: #2A71B8;
  --blue-dark: #1d5592;
  --blue-soft: #e8f0f9;
  --apricot: #E88276;
  --apricot-soft: #fcebe8;
  --ink: #1B2B44;
  --ink-2: #4a5a72;
  --ink-3: #6b7a90;
  --line: #d9e0ea;
  --line-soft: #eaeef4;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ok: #1f7a4d;
  --ok-soft: #e4f3ea;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --bad: #b3261e;
  --bad-soft: #fbe7e6;
  --focus: #2A71B8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 43, 68, .06), 0 2px 8px rgba(27, 43, 68, .05);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; font-weight: 650; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Kopfzeile */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 1.25rem; padding: .55rem 1rem; }
.brand { font-weight: 750; font-size: 1.1rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--blue) 0 62%, var(--apricot) 62%); display: inline-block; }
.nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; }
.nav a { text-decoration: none; color: var(--ink-2); padding: .45rem .7rem; border-radius: 8px; white-space: nowrap; font-weight: 550; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.usermenu { display: flex; align-items: center; gap: .5rem; }
.env-badge { background: var(--warn-soft); color: var(--warn); font-size: .75rem; font-weight: 650; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }

main { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head p { color: var(--ink-2); margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: .75rem; }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem 1rem; }
@media (max-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* Flächen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card h2 { margin-bottom: .75rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.card-head h2, .card-head h3 { margin: 0; }
details.fold { border-top: 1px solid var(--line-soft); padding-top: .5rem; margin-top: .75rem; }
details.fold > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: .25rem 0; }
details.fold[open] > summary { margin-bottom: .5rem; }
.notice { border-radius: 8px; padding: .6rem .8rem; background: var(--blue-soft); color: var(--ink); font-size: .9rem; }
.notice.warn { background: var(--warn-soft); }
.notice.bad { background: var(--bad-soft); }
.notice.ok { background: var(--ok-soft); }
.empty { padding: 1.5rem; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }

/* Buttons */
button, .btn { font: inherit; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .45rem .85rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; }
button:hover, .btn:hover { border-color: var(--ink-3); }
button.primary, .btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
button.primary:hover, .btn.primary:hover { background: var(--blue-dark); }
button.danger { color: var(--bad); }
button.ghost, .btn.ghost { border-color: transparent; background: transparent; color: var(--blue-dark); padding-left: .5rem; padding-right: .5rem; }
button.ghost:hover { background: var(--blue-soft); }
button.icon { padding: .3rem .5rem; min-height: 32px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; border-radius: 0; min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }

/* Formulare */
label { display: block; font-weight: 600; font-size: .85rem; color: var(--ink-2); margin-bottom: .2rem; }
.field { min-width: 0; }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: .15rem; }
.field.missing label::after { content: " · noch zu klären"; color: var(--warn); font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], select, textarea {
  font: inherit; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; background: var(--surface); color: var(--ink); min-height: 38px;
}
textarea { min-height: 4.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue-soft); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); vertical-align: middle; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; color: var(--ink); font-size: .95rem; }
.err-text { color: var(--bad); font-size: .85rem; }
.problems { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--bad); }

/* Status: immer Text + Symbol */
.status { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--line-soft); color: var(--ink-2); white-space: nowrap; }
.status::before { content: "●"; font-size: .7em; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.ok::before { content: "✓"; font-size: .9em; }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.warn::before { content: "!"; font-weight: 800; }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.status.bad::before { content: "■"; }
.status.info { background: var(--blue-soft); color: var(--blue-dark); }
.status.info::before { content: "◆"; }
.status.test { background: var(--warn-soft); color: var(--warn); }
.status.test::before { content: "⚗"; }

/* Dringlichkeit */
.urg { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.urg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.urg.hoch { color: var(--bad); } .urg.hoch i { background: var(--bad); }
.urg.mittel { color: var(--warn); } .urg.mittel i { background: #e3a21a; transform: rotate(45deg); }
.urg.tief { color: var(--ok); } .urg.tief i { background: var(--ok); border-radius: 50%; }
.urg.unbekannt { color: var(--ink-3); } .urg.unbekannt i { border: 2px solid var(--ink-3); }

/* Aufgaben oben im Arbeitsplatz */
.next-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.task-tile { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: .6rem .75rem; background: var(--surface); }
.task-tile a { font-weight: 600; text-decoration: none; color: var(--ink); }
.task-tile a:hover { text-decoration: underline; }

/* Projektliste */
.plist { list-style: none; margin: 0; padding: 0; }
.prow { display: grid; grid-template-columns: 28px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 2.4fr) auto; gap: .75rem; align-items: center; padding: .7rem .75rem; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.prow:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.prow:last-child { border-bottom: 0; border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.prow:hover { background: #fafbfd; }
.prow.dragging { opacity: .5; }
.prow.drop-before { box-shadow: inset 0 3px 0 var(--blue); }
.prow .title { font-weight: 650; }
.prow .next { font-size: .9rem; }
.prow .next b { font-weight: 600; }
.handle { cursor: grab; color: var(--ink-3); text-align: center; user-select: none; font-size: 1.1rem; }
.handle.off { cursor: default; opacity: .3; }
.plist-wrap { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .prow { grid-template-columns: 24px minmax(0, 1fr); }
  .prow > .c-phase, .prow > .c-next, .prow > .c-actions { grid-column: 2; }
}

/* Board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.col { background: var(--line-soft); border-radius: var(--radius); padding: .5rem; min-height: 160px; }
.col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); padding: .25rem .35rem; display: flex; justify-content: space-between; }
.col.drop-target { outline: 2px dashed var(--blue); background: var(--blue-soft); }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .65rem; margin-bottom: .5rem; cursor: grab; }
.bcard .title { font-weight: 600; font-size: .92rem; }

/* Projekt */
.proj-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; }
.proj-head h1 { margin-bottom: .25rem; }
.stand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.stand > div { padding: .7rem .85rem; border-right: 1px solid var(--line-soft); min-width: 0; }
.stand > div:last-child { border-right: 0; }
.stand .k { font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.stand .v { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 900px) { .stand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .stand > div { border-bottom: 1px solid var(--line-soft); } }
@media (max-width: 520px) { .stand { grid-template-columns: minmax(0, 1fr); } }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .55rem .8rem; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--blue-dark); border-bottom-color: var(--blue); }

/* Listen und Tabellen */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.list > li:last-child { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); background: #fafbfd; position: sticky; top: 0; }
.tbl input, .tbl textarea { min-height: 32px; }

/* Szenen */
.scene { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: .85rem; }
.scene.dragging { opacity: .5; }
.scene.drop-before { box-shadow: 0 -3px 0 var(--blue); }
.scene-head { display: flex; gap: .6rem; align-items: center; padding: .6rem .85rem; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.scene-head .uid { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--ink-3); }
.scene-body { padding: .75rem .85rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .5rem 1.25rem; }
.scene-body.with-img { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 220px; }
@media (max-width: 900px) { .scene-body, .scene-body.with-img { grid-template-columns: minmax(0, 1fr); } }
.sf .k { font-size: .75rem; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.sf .v { white-space: pre-wrap; overflow-wrap: anywhere; }
.sf.speaker .v { font-size: 1.02rem; background: var(--blue-soft); border-radius: 8px; padding: .45rem .6rem; }
.sf .v:empty::after { content: "–"; color: var(--ink-3); }
.lock-note { font-size: .75rem; color: var(--ink-3); }
.sugg { border: 1px solid var(--apricot); background: var(--apricot-soft); border-radius: 8px; padding: .5rem .65rem; margin-top: .5rem; }
.diff del { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.diff ins { background: var(--ok-soft); color: var(--ok); text-decoration: none; }
.preview-img { border-radius: 8px; border: 1px solid var(--line); display: block; }
.vis-label { font-size: .72rem; color: var(--warn); font-weight: 600; margin-top: .2rem; }
.totals { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; }
.totals b { font-weight: 650; }

/* Ablage */
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; text-align: center; background: var(--surface); color: var(--ink-2); transition: background .15s; }
.dropzone.over { border-color: var(--blue); background: var(--blue-soft); }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--line-soft); border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; margin: .15rem .2rem .15rem 0; }
.evidence { font-size: .78rem; color: var(--ink-3); margin-top: .15rem; }

/* Grafik-Editor */
.gfx-stage { position: relative; background: #2b3340; border-radius: 8px; overflow: hidden; touch-action: none; max-width: 100%; }
.gfx-stage svg { display: block; width: 100%; height: auto; }
.gfx-el { cursor: move; }
.gfx-el.sel { filter: drop-shadow(0 0 3px #fff); }
.gfx-handle { fill: #fff; stroke: var(--blue); stroke-width: 2; cursor: nwse-resize; }

/* Dialog, Toast */
dialog { border: 0; border-radius: 12px; padding: 0; max-width: min(720px, 94vw); width: 100%; box-shadow: 0 12px 40px rgba(0,0,0,.25); color: var(--ink); }
dialog::backdrop { background: rgba(27, 43, 68, .45); }
.dlg-head { padding: .9rem 1.1rem .4rem; }
.dlg-body { padding: .2rem 1.1rem 1rem; max-height: 65vh; overflow: auto; }
.dlg-foot { padding: .75rem 1.1rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
#toasts { position: fixed; bottom: 1rem; right: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 200; max-width: min(420px, 92vw); }
.toast { background: var(--ink); color: #fff; padding: .65rem .9rem; border-radius: 8px; box-shadow: var(--shadow); }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

.loading { padding: 2rem; text-align: center; color: var(--ink-3); }
.loading::before { content: ""; display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: .5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.saving { font-size: .8rem; color: var(--ink-3); }

.login-wrap { max-width: 420px; margin: 8vh auto; }
.callsheet { max-width: 640px; }
.callsheet .when { font-size: 1.25rem; font-weight: 700; }
pre.prompt { white-space: pre-wrap; background: #f8f9fb; border: 1px solid var(--line); border-radius: 8px; padding: .6rem; max-height: 260px; overflow: auto; font-size: .8rem; }


.only-print { display: none; }
@media print {
  .only-print { display: block; }
  .top, .tabs, .no-print, #toasts { display: none !important; }
  body { background: #fff; }
  .card, .scene { box-shadow: none; break-inside: avoid; }
  main { padding: 0; }
}

/* Feinschliff */
.row > select, .row > input[type=date], .row > input[type=time], .row > input[type=file], .card-head select { width: auto; max-width: 100%; }
.stand .status { white-space: normal; }
.img-tools { font-size: .85rem; }
.img-tools select { min-height: 32px; padding: .2rem .4rem; }
.card .status { white-space: normal; }

@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; gap: .4rem .75rem; padding: .45rem .75rem; }
  .nav { order: 3; flex-basis: 100%; min-width: 0; }
  .usermenu { margin-left: auto; min-width: 0; }
  .usermenu .uname, .usermenu .btn.ghost { display: none; }
  main { padding: 1rem .75rem 3rem; }
  .page-head > * { min-width: 0; }
  .seg { flex-wrap: wrap; }
  .tbl { font-size: .82rem; }
  .scene-head { gap: .35rem; }
  .card { padding: .85rem; }
}

.fb-btn { position: fixed; left: 1rem; bottom: 1rem; z-index: 150; background: var(--ink); color: #fff; border: 0; border-radius: 999px; box-shadow: var(--shadow); padding: .5rem .9rem; }
.fb-btn:hover { background: var(--blue-dark); }
.live-banner { position: sticky; top: 56px; z-index: 15; margin-bottom: .75rem; }
@media print { .fb-btn { display: none; } }
main:focus { outline: none; }

/* ---------- Ruhigeres Layout: Navigation links (Desktop), oben (Mobil) ---------- */
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.nav-ic { display: inline-block; width: 1.3rem; text-align: center; color: var(--ink-3); }
.nav a[aria-current="page"] .nav-ic { color: var(--blue); }
.me { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.uname { font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-link { font-size: .85rem; justify-content: flex-start; }
@media (min-width: 1000px) {
  body.has-side main { margin-left: 232px; max-width: 1180px; padding: 1.75rem 2rem 4rem; }
  .top { position: fixed; top: 0; bottom: 0; left: 0; width: 232px; border-right: 1px solid var(--line); border-bottom: 0; }
  .top-inner { flex-direction: column; align-items: stretch; height: 100%; padding: 1.25rem .9rem; gap: 1.5rem; max-width: none; }
  .brand { font-size: 1.3rem; padding: 0 .4rem; }
  .nav { flex-direction: column; flex: 1; overflow: visible; gap: .2rem; }
  .nav a { padding: .6rem .7rem; font-size: .95rem; }
  .usermenu { flex-direction: column; align-items: stretch; gap: .45rem; border-top: 1px solid var(--line); padding-top: .9rem; }
  .usermenu .env-badge { align-self: flex-start; }
  .usermenu > button.ghost { justify-content: flex-start; }
  .live-banner { top: .5rem; }
}
@media (max-width: 999px) {
  .usermenu .fb-link, .usermenu .uname { display: none; }
}

/* ---------- Arbeitsplatz ---------- */
.hero { background: linear-gradient(135deg, var(--blue-soft), #f4f8fd); border: 1px solid #d6e4f4; border-radius: 14px; padding: 1.4rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.hero h2 { font-size: 1.45rem; margin: .1rem 0 .35rem; }
.hero .meta { color: var(--ink-2); }
@media (max-width: 640px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
.todo li:last-child { border-bottom: 0; }
.todo .t { font-weight: 600; }
.plist .prow { grid-template-columns: 22px minmax(0, 2fr) minmax(0, 2.4fr) auto; }
.prow .c-actions .mv { opacity: 0; transition: opacity .12s; }
.prow:hover .c-actions .mv, .prow:focus-within .c-actions .mv { opacity: 1; }
.phase-badge { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--line-soft); border-radius: 6px; padding: .05rem .45rem; }
@media (max-width: 760px) { .plist .prow { grid-template-columns: 22px minmax(0, 1fr); } }

/* ---------- Chips (Mehrfachauswahl) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; border: 0; padding: 0; margin: 0; }
.chips button { min-height: 32px; padding: .2rem .7rem; border-radius: 999px; font-size: .88rem; }
.chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips button[aria-pressed="true"]::before { content: "✓ "; }
.chips button:disabled[aria-pressed="false"] { display: none; }
.chips-ro { display: flex; flex-wrap: wrap; gap: .3rem; }

/* ---------- Storyboard ---------- */
.timeline { display: flex; height: 34px; border-radius: 8px; overflow: hidden; background: var(--line-soft); position: relative; margin: .5rem 0 .25rem; }
.timeline .seg-s { height: 100%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; color: #fff; border-right: 2px solid var(--surface); overflow: hidden; white-space: nowrap; cursor: pointer; }
.timeline .target { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--bad); }
.tl-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.sb-grid.vertical { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.frame:hover, .frame:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .10); }
.frame.dragging { opacity: .5; }
.frame.drop-before { box-shadow: -4px 0 0 var(--blue); }
.frame .pic { position: relative; background: #dfe8f3; aspect-ratio: 16 / 9; overflow: hidden; }
.sb-grid.vertical .frame .pic { aspect-ratio: 9 / 16; }
.frame .pic img, .frame .pic svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame .no { position: absolute; top: .5rem; left: .5rem; background: rgba(27, 43, 68, .85); color: #fff; font-weight: 700; font-size: .8rem; border-radius: 6px; padding: .1rem .45rem; }
.frame .dur { position: absolute; top: .5rem; right: .5rem; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600; font-size: .78rem; border-radius: 6px; padding: .1rem .45rem; }
.frame .vis { position: absolute; bottom: .4rem; left: .5rem; font-size: .68rem; background: rgba(255, 255, 255, .9); color: var(--warn); border-radius: 4px; padding: 0 .3rem; }
.frame .body { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.frame .ttl { font-weight: 700; }
.frame .say { font-size: .88rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; border-left: 3px solid var(--blue); padding-left: .5rem; }
.frame .foot { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-top: auto; }
.frame.add { align-items: center; justify-content: center; min-height: 200px; border-style: dashed; color: var(--blue-dark); font-weight: 600; box-shadow: none; }
dialog.wide { max-width: min(1040px, 96vw); }
.card .card { box-shadow: none; border: 0; padding: 0; margin-top: 0; } .card .card h2 { display: none; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(27,43,68,.14); padding: .5rem; display: flex; flex-direction: column; gap: .35rem; min-width: 260px; }
.menu-pop > button { justify-content: flex-start; }

/* ---------- LUKS-Gestaltungselemente (luks.ch): Weiss, Blau #2A71B8, Interaktionsblau #188DFC, Hellblau #F4F7FA, Gelb #FFCB00, Grau #9EA0A3 ---------- */
:root {
  --blue: #2A71B8;
  --blue-dark: #1f5b97;
  --interact: #188DFC;
  --blue-soft: #F4F7FA;
  --yellow: #FFCB00;
  --yellow-dark: #e6b700;
  --apricot: #FFCB00;
  --apricot-soft: #fff7d6;
  --ink: #000000;
  --ink-2: #333a44;
  --ink-3: #6f7378;
  --grey: #9EA0A3;
  --line: #dfe3e8;
  --line-soft: #edf0f3;
  --bg: #ffffff;
  --focus: #188DFC;
  --font: "Vectora Pro", "Vectora LT Std", "Vectora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --shadow: none;
}
body { background: #fff; color: var(--ink-2); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 750; }
a { color: var(--interact); text-decoration: none; }
a:hover { text-decoration: underline; }
.btn, button { color: var(--ink); }
/* Primäre Aktion = Call to Action auf gelbem Hintergrund */
button.primary, .btn.primary { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 700; padding: .55rem 1.5rem; border-radius: 4px; }
button.primary:hover, .btn.primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); text-decoration: none; }
button, .btn { border-radius: 4px; border-color: var(--blue); color: var(--blue); }
button:hover, .btn:hover { border-color: var(--interact); color: var(--interact); background: var(--blue-soft); text-decoration: none; }
button.ghost, .btn.ghost { color: var(--interact); }
button.danger { color: var(--bad); border-color: var(--line); }
.seg { border-color: var(--line); border-radius: 4px; }
.seg button { color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
/* Beschriftungen wie Formularfelder auf luks.ch */
label, .sf .k, .stand .k, .eyebrow, .tbl th { color: var(--blue); }
label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.check, label.check { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink-2); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], select, textarea { border-radius: 2px; border-color: #c9ced4; }
input:focus, select:focus, textarea:focus { border-color: var(--interact); outline: 2px solid rgba(24, 141, 252, .18); }
/* Flächen: weiss mit Hellblau als Ruhefläche */
.top { background: var(--blue-soft); border-color: var(--line); }
.nav a { color: var(--ink-2); border-radius: 4px; }
.nav a[aria-current="page"] { background: #fff; color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.card, .scene, .plist-wrap, .stand, .frame { border-color: var(--line); border-radius: 6px; }
.hero { background: var(--blue-soft); border: 0; border-left: 4px solid var(--blue); border-radius: 6px; }
.notice { background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 2px; }
.notice.warn { background: #fff7d6; border-left-color: var(--yellow-dark); }
.notice.bad { border-left-color: var(--bad); }
.notice.ok { border-left-color: var(--ok); }
.col { background: var(--blue-soft); border-radius: 6px; }
.bcard, .task-tile { border-radius: 4px; }
.status.info { background: #e8f2fe; color: var(--blue); }
.urg.mittel i { background: var(--yellow-dark); }
.chips button { border-radius: 2px; border-color: #c9ced4; color: var(--ink-2); }
.chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip { border-radius: 2px; background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.brand-mark { background: var(--blue); border-radius: 4px; }
.frame .say { border-left-color: var(--yellow); }
.sf.speaker .v { background: var(--blue-soft); border-left: 3px solid var(--yellow); border-radius: 2px; }
.sugg { border-color: var(--yellow-dark); background: #fffbe8; }
.avatar { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.env-badge { background: var(--yellow); color: #000; border-radius: 2px; }
ul.bullets { list-style: none; padding-left: 1.1rem; }
ul.bullets li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--blue); margin: 0 .6rem .12rem -1.1rem; }
.tbl th { background: var(--blue-soft); }
.tabs a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.prow:hover { background: var(--blue-soft); }
.timeline .target { border-left-color: #000; }
:focus-visible { outline-color: var(--interact); }
label.btn { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--blue); font-weight: 500; }
@media (max-width: 600px) {
  .sb-grid.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .sb-grid { grid-template-columns: minmax(0, 1fr); }
  .frame .body { padding: .5rem .55rem .6rem; }
  .frame .say { -webkit-line-clamp: 2; }
  .stand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stand > div { padding: .5rem .6rem; }
  .stand .v { font-size: .9rem; }
  h1 { font-size: 1.35rem; }
}
