/* Checklabs – Oberfläche. Eine Aufgabe pro Bildschirm, von oben nach unten nach Dringlichkeit. */
:root {
  --ground: #F2F4F7; --panel: #FFFFFF; --panel-2: #F7F8FA; --ink: #0E1B2C; --muted: #5B6778; --rule: #E1E5EB;
  --line: #1F3FD1; --line-soft: #E6EBFC; --go: #00A676; --go-soft: #E0F5EE; --wait: #C98600; --wait-soft: #FFF3DC;
  --stop: #D8412F; --stop-soft: #FDE7E3; --focus: #1F3FD1;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0A111C; --panel: #111B2A; --panel-2: #0E1623; --ink: #E7EDF6; --muted: #9AA8BB; --rule: #22304A;
    --line: #7C95FF; --line-soft: #1A2744; --go: #2BD19A; --go-soft: #123527; --wait: #FFB931; --wait-soft: #3A2C10;
    --stop: #FF6B57; --stop-soft: #3D1A16; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0A111C; --panel: #111B2A; --panel-2: #0E1623; --ink: #E7EDF6; --muted: #9AA8BB; --rule: #22304A;
  --line: #7C95FF; --line-soft: #1A2744; --go: #2BD19A; --go-soft: #123527; --wait: #FFB931; --wait-soft: #3A2C10;
  --stop: #FF6B57; --stop-soft: #3D1A16; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.55 var(--body); }
a { color: var(--line); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
.label { font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12px; }

/* Kopfzeile */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); border-bottom: 1px solid var(--rule); }
.top-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; gap: 22px; align-items: center; min-height: 56px; flex-wrap: wrap; }
.brand { font: 900 28px/1 var(--display); text-transform: none; color: var(--ink); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand i { font-style: normal; color: var(--line); }
.tabs { display: flex; gap: 4px; align-self: stretch; }
.tabs a { display: flex; align-items: center; padding: 0 12px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--line); }
.tabs .count { margin-left: 6px; font: 700 11px/1 var(--mono); background: var(--stop); color: #fff; border-radius: 99px; padding: 3px 6px; }
.spacer { flex: 1; }

main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 72px; }
.page-head { margin-bottom: 22px; }
.page-head p { margin: 8px 0 0; font-size: 17px; color: var(--muted); }
.page-head p b { color: var(--ink); }
.section { margin-top: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }

/* Signal-Pillen */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); padding: 5px 9px; border-radius: 99px;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--rule); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.go { background: var(--go-soft); color: var(--ink); border-color: transparent; } .pill.go::before { background: var(--go); }
.pill.wait { background: var(--wait-soft); color: var(--ink); border-color: transparent; } .pill.wait::before { background: var(--wait); }
.pill.stop { background: var(--stop-soft); color: var(--ink); border-color: transparent; } .pill.stop::before { background: var(--stop); }
.pill.line { background: var(--line-soft); color: var(--ink); border-color: transparent; } .pill.line::before { background: var(--line); }
.pill.plain::before { display: none; }

/* Systemanzeige: ein Punkt statt drei Pillen */
.sysdot { position: relative; }
.sysdot summary { list-style: none; cursor: pointer; }
.sysdot summary::-webkit-details-marker { display: none; }
.sysdot .pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--rule); border-radius: 10px;
  padding: 12px; width: 280px; display: grid; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); z-index: 20; }
.sysdot .pop div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }

/* Flächen */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; min-width: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 16px; align-content: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* „Braucht Sie“ */
.attn { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--wait); border-radius: var(--radius);
  padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.card.decision { border-left-color: var(--line); }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card b { font-size: 16px; }
.card .actions { display: flex; gap: 8px; margin-top: 4px; }
.calm { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--go-soft); font-weight: 700; }
.calm::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--go); }

/* Prozessliste */
.rows { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.prow { display: grid; grid-template-columns: 6px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: center;
  padding: 14px 18px 14px 0; border-top: 1px solid var(--rule); color: inherit; }
.prow:first-child { border-top: 0; }
.prow:hover { background: var(--panel-2); text-decoration: none; }
.prow .stripe { align-self: stretch; margin: -14px 0; background: var(--rule); }
.prow.t-stop .stripe { background: var(--stop); } .prow.t-wait .stripe { background: var(--wait); }
.prow.t-line .stripe { background: var(--line); } .prow.t-go .stripe { background: var(--go); }
.prow .ref { font: 800 17px/1.1 var(--display); text-transform: uppercase; }
.prow .who b { display: block; }
@media (max-width: 800px) {
  .prow { grid-template-columns: 6px 1fr; gap: 6px 14px; }
  .prow > :nth-child(n+3) { grid-column: 2; }
}

/* Mini-Strecke in der Liste */
.mini { display: flex; align-items: center; gap: 0; margin-bottom: 4px; }
.mini i { width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--rule); background: var(--panel); flex: none; }
.mini i + i { margin-left: 12px; position: relative; }
.mini i + i::before { content: ""; position: absolute; right: 100%; top: 50%; width: 15px; height: 3px; margin-top: -1.5px; background: var(--rule); }
.mini i.done { border-color: var(--line); background: var(--line); }
.mini i.done + i::before { background: var(--line); }
.mini i.now { border-color: var(--line); }
.mini i.now.wait { border-color: var(--wait); background: var(--wait); }
.mini i.now.go { border-color: var(--go); background: var(--go); }

/* Große Streckenkarte */
.route { list-style: none; margin: 16px 0 4px; padding: 0; display: flex; }
.route li { flex: 1; position: relative; min-width: 0; padding-top: 30px; }
.route li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 6px; background: var(--rule); }
.route li:first-child::before { left: 50%; }
.route li:last-child::before { right: 50%; }
.route li.done::before { background: var(--line); }
.route li.now::before { background: linear-gradient(90deg, var(--line) 50%, var(--rule) 50%); }
.route li:first-child.now::before { background: var(--rule); }
.route .stn { position: absolute; top: 1px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: var(--panel); border: 5px solid var(--rule); z-index: 1; }
.route li.done .stn { border-color: var(--line); background: var(--line); }
.route li.now .stn { border-color: var(--line); }
.route li.now.wait .stn { border-color: var(--wait); background: var(--wait); }
.route li.now.go .stn { border-color: var(--go); background: var(--go); }
.route li.now .stn::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--line); opacity: .35;
  animation: pulse 2.2s ease-out infinite; }
.route li.now.wait .stn::after { border-color: var(--wait); }
.route .lbl { display: block; text-align: center; font: 600 11.5px/1.25 var(--mono); letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); padding: 0 4px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.route li.now .lbl { color: var(--ink); }
@media (max-width: 560px) { .route .lbl { display: none; } }
@keyframes pulse { from { transform: scale(.7); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .route li.now .stn::after { animation: none; } }

/* Drei Antworten */
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--rule); }
.answers > div { background: var(--panel); padding: 14px 16px; min-width: 0; }
.answers .v { font: 800 21px/1.1 var(--display); text-transform: uppercase; margin-top: 6px; }
.answers .you { background: var(--wait-soft); }
@media (max-width: 700px) { .answers { grid-template-columns: 1fr; } }

/* Verlauf / Aktivität */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 92px 16px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); align-items: start; }
.feed li:first-child { border-top: 0; }
.feed .t { font: 12px var(--mono); color: var(--muted); padding-top: 2px; }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--muted); justify-self: center; }
.feed .dot.go { background: var(--go); } .feed .dot.wait { background: var(--wait); } .feed .dot.stop { background: var(--stop); }
.feed .dot.line { background: var(--line); }
.feed .who { font: 600 11px var(--mono); color: var(--muted); }
.feed.compact li { grid-template-columns: 50px 16px minmax(0, 1fr); padding: 7px 0; font-size: 14px; }
.more-link { display: inline-block; margin-top: 10px; font-weight: 700; }

.out { list-style: none; margin: 0; padding: 0; }
.out li { border-top: 1px solid var(--rule); }
.out li:first-child { border-top: 0; }
.out summary { cursor: pointer; padding: 10px 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: start; list-style: none; }
.out summary::-webkit-details-marker { display: none; }
.out pre { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: var(--panel-2); border-radius: 8px; padding: 12px; margin: 0 0 12px 68px; }
@media (max-width: 600px) { .out summary { grid-template-columns: 1fr; } .out pre { margin-left: 0; } }

.subtabs { display: flex; gap: 8px; margin-bottom: 14px; }
.subtabs a { padding: 7px 12px; border-radius: 99px; font-weight: 700; color: var(--muted); border: 1px solid var(--rule); background: var(--panel); }
.subtabs a.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.subtabs a:hover { text-decoration: none; }

/* Unterlagen als Checkliste */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.checklist .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--rule); margin-top: 2px; }
.checklist .received .box { background: var(--go); border-color: var(--go); }
.checklist .requested .box { border-color: var(--wait); background: var(--wait-soft); }
.checklist .open { color: var(--muted); }

/* Aufgaben der Gewerke */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; }
.task { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); }
.task:first-child { border-top: 0; }
.task .box { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--rule); margin-top: 3px; background: var(--panel); }
.task.done .box { background: var(--go); border-color: var(--go); }
.task.ready .box { border-color: var(--line); }
.task.ready.waiting_docs .box, .task.ready.needs_appointment .box { border-color: var(--wait); }
.task.ready.awaiting_completion .box { border-color: var(--stop); }
.task.ready.scheduled .box { border-color: var(--line); background: var(--line-soft); }
.task.blocked { color: var(--muted); }
.task .state { display: block; color: var(--muted); }
.task.ready .state { color: var(--ink); }
.task .docs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.task .doc { font: 11px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--panel-2); border: 1px dashed var(--rule); }
.task .doc.ok { border-style: solid; background: var(--go-soft); border-color: transparent; }
.mytask { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule); }
.mytask:first-of-type { border-top: 0; }
.mytask form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mytask input[type=date] { width: auto; }

/* Stränge (Neubau) */
.lanes { display: grid; gap: 14px; }
.lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 14px; border-top: 1px solid var(--rule); }
.lane:first-child { border-top: 0; padding-top: 0; }
.lane-name { font: 800 18px/1.1 var(--display); text-transform: uppercase; padding-top: 8px; }
.lane-trades { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.trade { flex: 0 0 200px; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; display: grid; gap: 5px; background: var(--panel-2); }
.trade.active { border-color: var(--line); background: var(--panel); }
.trade b { font-size: 14px; }
.steps2 { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: 12px; }
.steps2 .k { font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chip { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--rule); color: var(--muted); white-space: nowrap; }
.chip.go { background: var(--go-soft); color: var(--ink); } .chip.line { background: var(--line-soft); color: var(--ink); }
.chip.wait { background: var(--wait-soft); color: var(--ink); } .chip.stop { background: var(--stop-soft); color: var(--ink); }
@media (max-width: 700px) { .lane { grid-template-columns: 1fr; } }

/* Preisspiegel */
.tender { border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.tender h3 { font-size: 20px; }
table.bids td { font-size: 14px; }
table.bids tr.lowest td { background: var(--go-soft); }
.actions-cell { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
details.inline summary { cursor: pointer; color: var(--line); padding: 8px 0; }
details.inline form { margin-top: 6px; min-width: 240px; }
a.btn { display: inline-block; text-decoration: none; }
a.btn.primary { background: var(--line); color: #fff; border-color: var(--line); }

/* Formulare */
button, .btn { font: 700 14px/1 var(--body); border: 1px solid var(--rule); background: var(--panel); color: var(--ink); border-radius: 8px;
  padding: 9px 14px; cursor: pointer; }
button:hover { border-color: var(--ink); }
button.primary { background: var(--line); border-color: var(--line); color: #fff; }
button.primary:hover { filter: brightness(1.08); }
.htmx-request button { opacity: .6; cursor: progress; }
input, select, textarea { font: inherit; width: 100%; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--panel-2); color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
label { display: block; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 5px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
details.more > summary { cursor: pointer; font-weight: 700; margin-top: 12px; }

/* Demo-Fach */
dialog.drawer { position: fixed; z-index: 40; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: none; width: min(400px, 100vw);
  border: 0; border-left: 1px solid var(--rule); padding: 0; background: var(--panel); color: var(--ink); box-shadow: -12px 0 40px rgba(0, 0, 0, .15); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: var(--panel); }
.drawer-body { padding: 4px 20px 32px; }
.drawer-body section { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.drawer-body h3 { font-size: 16px; margin-bottom: 6px; }

/* Tabellen (Technik-Ansicht) */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
code { font: 12px var(--mono); }

/* Hinweise */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px;
  z-index: 100; width: min(460px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--panel); border-radius: 10px; padding: 12px 14px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: toast-in .2s ease-out; }
.toast ul { margin: 6px 0 0; padding-left: 18px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.spin { display: none; font: 12px var(--mono); color: var(--muted); }
.htmx-request .spin, .spin.htmx-request { display: inline; }

/* Statusseite für Beteiligte */
.status-wrap { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.need { border: 2px solid var(--wait); }
.chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; }
.msg.q { align-self: flex-end; background: var(--line); color: #fff; border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.msg.pending { opacity: .6; }
.foot { text-align: center; font: 12px var(--mono); color: var(--muted); }

/* Neues Projekt, Bauzeitenplan, Gewerke */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px;
  cursor: pointer; text-transform: none; letter-spacing: 0; font: 15px/1.4 var(--body); color: var(--ink); }
.choice input { width: auto; margin-top: 4px; }
.choice:has(input:checked) { border-color: var(--line); background: var(--line-soft); }
.neu-fields { display: none; }
form:has(input[name="ziel"][value="neu"]:checked) .neu-fields { display: grid; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--line-soft); margin-bottom: 14px; }
.notice.stop { background: var(--stop-soft); }
.start { display: grid; gap: 8px; text-decoration: none; color: var(--ink); border-left: 4px solid var(--line); padding: 22px; }
.start:hover { text-decoration: none; border-color: var(--line); }
.start h2 { font-size: 28px; }
.plan-table td { vertical-align: top; }
.plan-table input:not([type=checkbox]), .plan-table select { min-width: 150px; margin: 0 0 4px; }
.show-on-submit { display: none; }
form:has(button:disabled) .show-on-submit { display: inline; }
ul.plain { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
ul.plain li.ms::before { content: "◆ "; color: var(--wait); }
.findings { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; }
.findings li { padding-left: 16px; position: relative; }
.findings li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.findings li.ok::before { background: var(--go); } .findings li.warnung::before { background: var(--stop); }
.findings li.hinweis::before { background: var(--wait); }
.late-txt { color: var(--stop); }
.inv { border: 1px solid var(--rule); border-left: 4px solid var(--go); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.inv.warnung { border-left-color: var(--stop); } .inv.hinweis { border-left-color: var(--wait); }

.gw-axis, .gw > summary { display: grid; grid-template-columns: 210px minmax(160px, 1fr) 190px 210px; gap: 14px; align-items: center; }
.gw-axis { font: 11px var(--mono); color: var(--muted); padding: 0 12px 4px; }
.gw-axis .gw-track { height: 16px; background: none; }
.gw-axis .tick { position: absolute; top: 0; transform: translateX(-1px); padding-left: 3px; border-left: 1px solid var(--rule); white-space: nowrap; }
.gw { border-top: 1px solid var(--rule); }
.gw > summary { list-style: none; cursor: pointer; padding: 10px 12px; border-radius: 8px; }
.gw > summary::-webkit-details-marker { display: none; }
.gw > summary:hover { background: var(--panel-2); }
.gw.active > summary { box-shadow: inset 3px 0 0 var(--line); }
.gw.behind > summary { box-shadow: inset 3px 0 0 var(--stop); }
.gw-name { display: grid; min-width: 0; }
.gw-state { display: grid; gap: 4px; }
.gw-facts { display: grid; gap: 2px; }
.gw-track { position: relative; height: 22px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.gw-track .bar { position: absolute; top: 5px; height: 12px; border-radius: 3px; background: var(--line); min-width: 3px; }
.gw-track .bar.tender { top: 9px; height: 4px; background: var(--wait); opacity: .8; }
.gw-track .bar.done { background: var(--go); }
.gw-track .bar.late { background: var(--stop); }
.gw-track .today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .5; }
.gw-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 6px 12px 16px 24px; }
@media (max-width: 900px) {
  .gw-axis { display: none; }
  .gw > summary { grid-template-columns: 1fr; gap: 8px; }
  .gw-body { grid-template-columns: 1fr; }
}
.plan-table tr:has(option[value="offen"]:checked) .firm-fields > * { display: none; }
.plan-table tr:has(option[value="offen"]:checked) .firm-fields::after { content: "–"; color: var(--muted); }

/* Ausfall eines KI-Dienstes */
.alarm { background: var(--stop); color: #fff; }
.alarm-in { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: grid; gap: 2px; }
.alarm code { color: #fff; opacity: .85; font-size: 12px; word-break: break-word; }
.alarm summary { cursor: pointer; opacity: .85; }

/* Rollen und Schritte */
.step { font: 600 11px var(--mono); background: var(--line-soft); padding: 2px 6px; border-radius: 5px; }
table.rules td { vertical-align: top; }
table.rules select { min-width: 150px; margin: 0; }
tr.proposed td { background: var(--line-soft); }
.alarm.test { background: var(--wait); color: #1b1300; }
.setup { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.setup li { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.setup li.done { opacity: .6; }
.setup li b::before { content: "○ "; color: var(--wait); }
.setup li.done b::before { content: "✓ "; color: var(--go); }
