/* Lagerplaner – Tab „Aufgabe & Lösung" (nur Tokens aus SPEC) */
#taskRoot { overflow-y: auto; height: 100%; background: var(--bg); color: var(--ink); }
.task-inner { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; box-sizing: border-box; }
.task-title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(28px, 5vw, 40px); margin: 0 0 6px; letter-spacing: .01em; line-height: 1.1; }
.task-lead { max-width: 70ch; margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.task-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.task-sec { margin-top: 36px; }
.task-h2 { font-family: var(--f-disp); font-weight: 600; font-size: 22px; letter-spacing: .03em; margin: 0 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.task-h3 { font-family: var(--f-disp); font-weight: 600; font-size: 17px; margin: 18px 0 8px; letter-spacing: .02em; }
.task-card .task-h3, .task-check-h .task-h3 { margin-top: 0; }
.task-note, .task-sec p, .task-list li { max-width: 70ch; line-height: 1.5; }
.task-note { color: var(--muted); margin: 10px 0 0; }
.task-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.task-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; margin: 0; }
.task-facts > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.task-facts dt { font-family: var(--f-disp); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.task-facts dd { margin: 2px 0 0; line-height: 1.4; }

.task-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.task-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.task-table th, .task-table td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.task-table thead th { font-family: var(--f-disp); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.task-table tbody th { font-weight: 600; }
.task-table .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-table tfoot th, .task-table tfoot td { font-weight: 700; background: var(--panel-2); border-bottom: 0; }
.task-table.small { font-size: 13px; }
.task-table tbody tr:last-child th, .task-table tbody tr:last-child td { border-bottom: 0; }
.task-table tfoot tr th, .task-table tfoot tr td { border-top: 2px solid var(--line); }

.task-bars { display: grid; gap: 6px; }
.task-bar-row { display: grid; grid-template-columns: 150px 1fr 120px; gap: 10px; align-items: center; font-size: 13px; }
.task-bar-t { height: 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.task-bar-f { display: block; height: 100%; opacity: .85; }
.task-bar-f.top { opacity: 1; outline: 2px solid var(--warn); outline-offset: -2px; }
.task-bar-v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }

.task-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 12px; }
.task-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.task-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.task-check { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.task-check p { margin: 6px 0 10px; flex: 1; }
.task-check-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.task-list { margin: 0; padding-left: 18px; }
.task-list li { margin: 3px 0; }

.task-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.task-chain li { position: relative; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; line-height: 1.35; max-width: 210px; }
.task-chain.wa li { border-left-color: var(--accent); }
.task-chain li:not(:last-child)::after { content: ""; position: absolute; right: -17px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }

.task-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; max-width: 70ch; }
.task-steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; line-height: 1.4; }
.task-steps li::before { content: counter(s); font-family: var(--f-disp); font-weight: 700; font-size: 20px; color: var(--accent-ink); background: var(--accent); min-width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; flex: none; }

@media (max-width: 640px) {
  .task-bar-row { grid-template-columns: 1fr; gap: 2px; }
  .task-bar-v { text-align: left; }
  .task-chain { flex-direction: column; gap: 18px; }
  .task-chain li { max-width: none; }
  .task-chain li:not(:last-child)::after { right: auto; left: 20px; top: auto; bottom: -14px; margin: 0; transform: rotate(135deg); }
}
