/* DUO HQ – Design-System. Dunkel zuerst, hell per Schalter. Gold = Asim, Blau = Chris. */
@import url(/fonts/fonts.css);

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --bg: #0b0e13; --bg-2: #11151d; --bg-3: #171c26; --bg-4: #1e2431;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --fg: #e8ecf3; --fg-2: #aab3c5; --fg-3: #6f7a90;
  --gold: #f6b73c; --blue: #7c9cff; --green: #34d399; --red: #fb7185; --orange: #fb923c; --pink: #f472b6; --purple: #a78bfa; --cyan: #38bdf8;
  --accent: var(--gold); --accent-fg: #1a1200;
  --shadow: 0 10px 40px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.04) inset;
  --r: 14px; --r-s: 9px; --r-xs: 6px;
  --side: 248px; --top: 58px;
  --sticky-yellow: #fde68a; --sticky-pink: #fbcfe8; --sticky-blue: #bfdbfe; --sticky-green: #bbf7d0; --sticky-orange: #fed7aa; --sticky-purple: #ddd6fe; --sticky-white: #f1f5f9;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f4f5f8; --bg-2: #ffffff; --bg-3: #eef0f4; --bg-4: #e4e7ee;
  --line: rgba(15,23,42,.08); --line-2: rgba(15,23,42,.16);
  --fg: #141824; --fg-2: #454d5f; --fg-3: #7b8497;
  --gold: #d99a14; --blue: #4f6fe6; --green: #16a34a; --red: #e11d48; --orange: #ea780c; --pink: #db2777; --purple: #7c3aed; --cyan: #0284c7;
  --accent-fg: #fff;
  --shadow: 0 10px 30px rgba(15,23,42,.10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14.5px; line-height: 1.45; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--gold) 40%, transparent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--fg-2); } .dim { color: var(--fg-3); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); font-size: .92em; }
.gold { color: var(--gold); } .blue { color: var(--blue); } .green { color: var(--green); } .red { color: var(--red); } .orange { color: var(--orange); }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .gap-s { gap: 6px; } .gap-l { gap: 16px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; } .center { justify-content: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; } .mt-l { margin-top: 24px; }
.hide { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; grid-template-rows: 100dvh; min-height: 100dvh; }
.app.nav-collapsed { --side: 72px; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; gap: 6px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-size: 16px; letter-spacing: .04em; }
.brand small { display: block; color: var(--fg-3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-s); color: var(--fg-2); font-weight: 520; transition: background .15s, color .15s; position: relative; }
.nav a:hover { background: var(--bg-3); color: var(--fg); }
.nav a.active { background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--fg); }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--bg-4); color: var(--fg-2); border-radius: 999px; padding: 1px 7px; }
.nav a .count.hot { background: var(--red); color: #fff; }
.nav-section { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); padding: 12px 10px 4px; font-weight: 700; }
.app.nav-collapsed .nav a span, .app.nav-collapsed .nav-section, .app.nav-collapsed .brand > div, .app.nav-collapsed .side-foot .txt { display: none; }
.app.nav-collapsed .nav a { justify-content: center; padding: 10px; }
.app.nav-collapsed .nav a .count { position: absolute; top: 4px; right: 6px; }
.side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.presence { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r-s); }
.presence .avatar { position: relative; }
.presence .dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3); border: 2px solid var(--bg-2); }
.presence .dot.on { background: var(--green); box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 30%, transparent); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 85%, transparent); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.topbar .title { font-weight: 700; font-size: 15px; }
.topbar .crumb { color: var(--fg-3); }
.search-btn { display: flex; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--line); color: var(--fg-3); border-radius: 10px; padding: 7px 12px; cursor: pointer; min-width: 220px; }
.search-btn kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; background: var(--bg-4); border-radius: 5px; padding: 1px 6px; color: var(--fg-2); }
.content { padding: 22px 24px 90px; flex: 1; container-type: inline-size; container-name: page; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { color: var(--fg-2); margin-top: 4px; }

/* ---------- Buttons & Inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--fg); font-weight: 600; cursor: pointer; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; min-height: 38px; }
.btn:hover { background: var(--bg-4); border-color: var(--fg-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.blue { background: var(--blue); color: #fff; border-color: transparent; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: color-mix(in oklab, var(--red) 15%, transparent); border-color: var(--red); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn.ghost:hover { background: var(--bg-3); color: var(--fg); }
.btn.sm { padding: 5px 10px; min-height: 30px; font-size: 13px; border-radius: 8px; }
.btn.xs { padding: 3px 8px; min-height: 26px; font-size: 12px; border-radius: 7px; }
.btn.icon { padding: 0; width: 38px; }
.btn.icon.sm { width: 30px; }
.btn.icon.xs { width: 26px; }
.btn:disabled { opacity: .5; cursor: default; }
.input, .select, .textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; color: var(--fg); outline: none; transition: border-color .15s, box-shadow .15s; min-height: 40px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.seg { display: inline-flex; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--fg-2); padding: 5px 11px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13px; }
.seg button.active { background: var(--bg-2); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-4); color: var(--fg-2); white-space: nowrap; }
.chip.gold { background: color-mix(in oklab, var(--gold) 20%, transparent); color: var(--gold); }
.chip.blue { background: color-mix(in oklab, var(--blue) 20%, transparent); color: var(--blue); }
.chip.green { background: color-mix(in oklab, var(--green) 18%, transparent); color: var(--green); }
.chip.red { background: color-mix(in oklab, var(--red) 18%, transparent); color: var(--red); }
.chip.orange { background: color-mix(in oklab, var(--orange) 18%, transparent); color: var(--orange); }
.chip.purple { background: color-mix(in oklab, var(--purple) 20%, transparent); color: var(--purple); }
.chip.pink { background: color-mix(in oklab, var(--pink) 20%, transparent); color: var(--pink); }
.chip.cyan { background: color-mix(in oklab, var(--cyan) 20%, transparent); color: var(--cyan); }
.chip.outline { background: transparent; border: 1px solid var(--line-2); }
.chip.xs { font-size: 11px; padding: 1px 7px; }

/* ---------- Avatare ---------- */
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; color: #0b0e13; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; } .avatar.lg { width: 44px; height: 44px; font-size: 15px; } .avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.avatars { display: inline-flex; } .avatars .avatar { margin-left: -8px; border: 2px solid var(--bg-2); } .avatars .avatar:first-child { margin-left: 0; }

/* ---------- Karten ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.pad-s { padding: 12px; }
.card.clickable { cursor: pointer; transition: border-color .15s, transform .12s, box-shadow .15s; }
.card.clickable:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w, 340px); gap: 16px; align-items: start; }
.stat { padding: 14px 16px; }
.stat .n { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--fg-2); font-weight: 600; }
.stat .s { font-size: 12px; color: var(--fg-3); }
.list { display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-s); background: var(--bg-3); border: 1px solid transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.item:hover { border-color: var(--line-2); background: var(--bg-4); }
.item .t { font-weight: 600; } .item .m { font-size: 12px; color: var(--fg-3); }
.empty { text-align: center; padding: 34px 16px; color: var(--fg-3); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty b { display: block; color: var(--fg-2); margin-bottom: 4px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.progress { height: 6px; background: var(--bg-4); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s; }
.check { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--fg-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: all .15s; }
.check.on { background: var(--green); border-color: var(--green); }
.check.on::after { content: ""; width: 5px; height: 9px; border: solid #0b0e13; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.prio { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.prio.niedrig { background: var(--fg-3); } .prio.normal { background: var(--blue); } .prio.hoch { background: var(--orange); } .prio.dringend { background: var(--red); box-shadow: 0 0 0 3px color-mix(in oklab, var(--red) 30%, transparent); }
.due { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.due.over { color: var(--red); font-weight: 700; } .due.today { color: var(--orange); font-weight: 700; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.kanban.cols-6 { grid-template-columns: repeat(6, minmax(230px, 1fr)); }
.kanban.cols-5 { grid-template-columns: repeat(5, minmax(230px, 1fr)); }
.kcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; transition: background .15s, border-color .15s; }
.kcol.over { background: color-mix(in oklab, var(--accent) 8%, var(--bg-2)); border-color: var(--accent); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; font-weight: 700; font-size: 13px; }
.kcol-head .n { margin-left: auto; color: var(--fg-3); font-weight: 600; font-family: var(--mono); font-size: 12px; }
.kcol-head .sum { color: var(--fg-3); font-weight: 600; font-family: var(--mono); font-size: 11.5px; }
.kcard { background: var(--bg-3); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; cursor: grab; transition: border-color .15s, transform .12s, box-shadow .15s; }
.kcard:hover { border-color: var(--line-2); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.kcard.dragging { opacity: .45; transform: rotate(2deg); }
.kcard .t { font-weight: 600; line-height: 1.35; }
.kcard .foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; color: var(--fg-3); }
.kcard .foot .avatar { margin-left: auto; }
.kcard .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.kcol .add { border: 1px dashed var(--line-2); background: transparent; color: var(--fg-3); border-radius: 10px; padding: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.kcol .add:hover { color: var(--fg); border-color: var(--fg-3); }

/* ---------- Whiteboard ---------- */
.board-wrap { position: relative; height: calc(100dvh - var(--top) - 150px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1px); background-size: 24px 24px; cursor: grab; touch-action: none; user-select: none; }
.board-wrap.panning { cursor: grabbing; }
.board-canvas { position: absolute; inset: 0; transform-origin: 0 0; }
.sticky { position: absolute; border-radius: 6px; padding: 12px 12px 30px; color: #1a1a1a; box-shadow: 0 8px 20px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.4) inset; font-size: 14px; line-height: 1.4; cursor: grab; transition: box-shadow .15s; font-family: var(--font); }
.sticky.yellow { background: var(--sticky-yellow); } .sticky.pink { background: var(--sticky-pink); } .sticky.blue { background: var(--sticky-blue); } .sticky.green { background: var(--sticky-green); } .sticky.orange { background: var(--sticky-orange); } .sticky.purple { background: var(--sticky-purple); } .sticky.white { background: var(--sticky-white); }
.sticky:hover, .sticky.focus { box-shadow: 0 14px 32px rgba(0,0,0,.45), 0 0 0 2px rgba(0,0,0,.25); z-index: 5; }
.sticky.dragging { cursor: grabbing; z-index: 10; transform: rotate(-1.5deg); }
.sticky textarea { width: 100%; height: 100%; background: transparent; border: 0; outline: 0; resize: none; color: inherit; font: inherit; padding: 0; cursor: text; overflow: hidden; }
.sticky .sfoot { position: absolute; left: 8px; right: 8px; bottom: 6px; display: flex; align-items: center; gap: 4px; font-size: 11px; color: rgba(0,0,0,.55); }
.sticky .sfoot .avatar { width: 18px; height: 18px; font-size: 8px; }
.sticky .sfoot button { border: 0; background: rgba(0,0,0,.08); border-radius: 5px; padding: 1px 6px; font-size: 11px; cursor: pointer; color: rgba(0,0,0,.7); }
.sticky .sfoot button:hover { background: rgba(0,0,0,.18); }
.sticky .sfoot .tools { margin-left: auto; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }
.sticky:hover .sfoot .tools, .sticky.focus .sfoot .tools { opacity: 1; }
.sticky .resize { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.3) 50%); border-radius: 0 0 5px 0; }
.board-tools { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 6; background: color-mix(in oklab, var(--bg) 80%, transparent); backdrop-filter: blur(8px); padding: 6px; border-radius: 12px; border: 1px solid var(--line); }
.board-tools .sw { width: 26px; height: 26px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; }
.board-tools .sw.on { border-color: var(--fg); }
.board-hint { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; color: var(--fg-3); z-index: 6; background: color-mix(in oklab, var(--bg) 80%, transparent); padding: 4px 8px; border-radius: 8px; }
.board-zoom { position: absolute; right: 12px; top: 12px; z-index: 6; display: flex; gap: 4px; }

/* ---------- Ideen-Matrix ---------- */
.matrix { position: relative; aspect-ratio: 1.6; min-height: 380px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.matrix .q { position: absolute; width: 50%; height: 50%; padding: 10px 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 700; }
.matrix .q.tl { left: 0; top: 0; background: color-mix(in oklab, var(--green) 8%, transparent); } .matrix .q.tr { right: 0; top: 0; background: color-mix(in oklab, var(--gold) 7%, transparent); }
.matrix .q.bl { left: 0; bottom: 0; } .matrix .q.br { right: 0; bottom: 0; background: color-mix(in oklab, var(--red) 6%, transparent); }
.matrix .ax { position: absolute; font-size: 11px; color: var(--fg-3); font-weight: 600; }
.matrix .dot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #0b0e13; cursor: pointer; border: 2px solid var(--bg-2); box-shadow: var(--shadow); transition: transform .15s; }
.matrix .dot:hover { transform: translate(-50%, -50%) scale(1.25); z-index: 3; }
.matrix .dot .tip { position: absolute; top: 110%; left: 50%; transform: translateX(-50%); background: var(--bg-4); color: var(--fg); padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; display: none; border: 1px solid var(--line-2); }
.matrix .dot:hover .tip { display: block; }
.vote { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-4); border-radius: 8px; padding: 2px; }
.vote button { border: 0; background: transparent; color: var(--fg-2); cursor: pointer; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.vote button.on.up { background: var(--green); color: #0b0e13; } .vote button.on.down { background: var(--red); color: #fff; }
.vote .n { font-family: var(--mono); font-size: 12px; min-width: 18px; text-align: center; }
.stage-steps { display: flex; gap: 4px; }
.stage-steps button { flex: 1; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--fg-2); padding: 7px 4px; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 8px; }
.stage-steps button.on { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--bg-4); } .dots i.on { background: var(--fg-2); }
.dots.impact i.on { background: var(--green); } .dots.effort i.on { background: var(--orange); }

/* ---------- Notizen ---------- */
.notes-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.notes-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100dvh - var(--top) - 160px); overflow-y: auto; }
.note-item { padding: 10px 12px; border-radius: var(--r-s); cursor: pointer; border: 1px solid transparent; }
.note-item:hover { background: var(--bg-3); } .note-item.active { background: var(--bg-3); border-color: var(--line-2); }
.note-item .t { font-weight: 650; } .note-item .p { font-size: 12px; color: var(--fg-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.editor { min-height: 60vh; }
.editor .title-input { font-size: 22px; font-weight: 750; border: 0; background: transparent; outline: 0; width: 100%; padding: 4px 0; }
.editor textarea { width: 100%; min-height: 50vh; background: transparent; border: 0; outline: 0; resize: vertical; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--fg); }
.md { line-height: 1.6; } .md h1 { font-size: 24px; margin: 8px 0 10px; } .md h2 { font-size: 19px; margin: 18px 0 8px; } .md h3 { font-size: 15px; margin: 14px 0 6px; }
.md p { margin: 0 0 10px; } .md ul, .md ol { margin: 0 0 10px; padding-left: 22px; } .md li { margin: 3px 0; } .md li.task { list-style: none; margin-left: -22px; display: flex; gap: 8px; align-items: flex-start; }
.md li.task .check { margin-top: 3px; } .md li.task.done { color: var(--fg-3); text-decoration: line-through; }
.md code { font-family: var(--mono); background: var(--bg-4); padding: 1px 5px; border-radius: 4px; font-size: .9em; } .md pre { background: var(--bg-3); padding: 12px; border-radius: 10px; overflow: auto; } .md pre code { background: none; padding: 0; }
.md blockquote { border-left: 3px solid var(--gold); margin: 0 0 10px; padding: 4px 12px; color: var(--fg-2); background: color-mix(in oklab, var(--gold) 6%, transparent); border-radius: 0 8px 8px 0; }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 14px 0; } .md a { text-decoration: underline; } .md strong { font-weight: 700; }
.md .mention { color: var(--gold); font-weight: 700; }

/* ---------- Leads ---------- */
.lead-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 110px 110px 110px 80px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-s); cursor: pointer; border: 1px solid transparent; }
.lead-row:hover { background: var(--bg-3); border-color: var(--line-2); }
.lead-row.head { cursor: default; color: var(--fg-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; } .lead-row.head:hover { background: none; border-color: transparent; }
.stage-pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: inline-block; white-space: nowrap; }
.stage-neu { background: color-mix(in oklab, var(--fg-3) 25%, transparent); color: var(--fg-2); }
.stage-kontaktiert { background: color-mix(in oklab, var(--cyan) 22%, transparent); color: var(--cyan); }
.stage-nachfassen { background: color-mix(in oklab, var(--orange) 22%, transparent); color: var(--orange); }
.stage-angebot { background: color-mix(in oklab, var(--purple) 22%, transparent); color: var(--purple); }
.stage-gewonnen { background: color-mix(in oklab, var(--green) 22%, transparent); color: var(--green); }
.stage-verloren { background: color-mix(in oklab, var(--red) 18%, transparent); color: var(--red); }
.stage-funke { background: color-mix(in oklab, var(--gold) 22%, transparent); color: var(--gold); }
.stage-pruefung { background: color-mix(in oklab, var(--cyan) 22%, transparent); color: var(--cyan); }
.stage-go { background: color-mix(in oklab, var(--green) 22%, transparent); color: var(--green); }
.stage-geparkt { background: color-mix(in oklab, var(--fg-3) 25%, transparent); color: var(--fg-2); }
.stage-verworfen { background: color-mix(in oklab, var(--red) 18%, transparent); color: var(--red); }
.timeline { position: relative; padding-left: 26px; display: flex; flex-direction: column; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; }
.tl-item .ico { position: absolute; left: -26px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-4); display: flex; align-items: center; justify-content: center; font-size: 11px; border: 2px solid var(--bg-2); }
.tl-item .when { font-size: 11.5px; color: var(--fg-3); font-family: var(--mono); }
.funnel { display: flex; gap: 4px; align-items: flex-end; height: 70px; }
.funnel div { flex: 1; border-radius: 6px 6px 2px 2px; position: relative; min-height: 6px; transition: height .4s; }
.funnel div span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; font-family: var(--mono); color: var(--fg-2); }

/* ---------- Funk (Chat) ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--top) - 130px); min-height: 400px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; }
.msg { display: flex; gap: 10px; max-width: 80%; align-items: flex-end; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { background: var(--bg-3); border: 1px solid var(--line); padding: 8px 12px; border-radius: 14px 14px 14px 4px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg.me .bubble { background: color-mix(in oklab, var(--blue) 22%, var(--bg-3)); border-radius: 14px 14px 4px 14px; }
.msg .when { font-size: 10.5px; color: var(--fg-3); margin: 2px 6px; font-family: var(--mono); }
.msg + .msg.same { margin-top: -2px; } .msg.same .avatar { visibility: hidden; }
.day-sep { text-align: center; font-size: 11px; color: var(--fg-3); margin: 12px 0 6px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }
.chat-input { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.chat-input textarea { min-height: 42px; max-height: 140px; }

/* ---------- Aktivität ---------- */
.feed { display: flex; flex-direction: column; gap: 2px; }
.feed .f { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: var(--r-s); cursor: pointer; }
.feed .f:hover { background: var(--bg-3); }
.feed .f .txt { font-size: 13px; line-height: 1.4; } .feed .f .txt b { font-weight: 650; } .feed .f .when { font-size: 11px; color: var(--fg-3); font-family: var(--mono); }

/* ---------- Modal, Drawer, Toast, Dropdown ---------- */
.overlay { position: fixed; inset: 0; background: rgba(4,6,10,.6); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; width: min(640px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2,.9,.3,1.2); container-type: inline-size; container-name: dialog; }
.modal.wide { width: min(900px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { flex: 1; }
.modal-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.overlay.drawer { justify-content: flex-end; padding: 0; }
.overlay.drawer .modal { height: 100dvh; max-height: none; border-radius: 0; width: min(560px, 100%); animation: slide .2s ease-out; border-left: 1px solid var(--line-2); border-top: 0; border-bottom: 0; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } } @keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--bg-4); border: 1px solid var(--line-2); color: var(--fg); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; display: flex; gap: 10px; align-items: center; animation: pop .2s; max-width: 360px; }
.toast.ok { border-color: var(--green); } .toast.err { border-color: var(--red); } .toast.info { border-color: var(--blue); }
.toast a { color: var(--gold); }
.menu { position: absolute; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; min-width: 180px; z-index: 60; box-shadow: var(--shadow); animation: pop .12s; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; color: var(--fg); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 550; }
.menu button:hover { background: var(--bg-4); } .menu button.danger { color: var(--red); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ---------- Kommandozentrale ---------- */
.cmdk { width: min(620px, 100%); align-self: flex-start; margin-top: 10vh; }
.cmdk input { width: 100%; border: 0; background: transparent; font-size: 17px; padding: 16px 18px; outline: 0; border-bottom: 1px solid var(--line); }
.cmdk .res { max-height: 50vh; overflow-y: auto; padding: 8px; }
.cmdk .r { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.cmdk .r.sel, .cmdk .r:hover { background: var(--bg-3); }
.cmdk .r .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); font-weight: 700; width: 64px; flex: none; }
.cmdk .r .m { margin-left: auto; color: var(--fg-3); font-size: 12px; }

/* ---------- Glocke ---------- */
.bell { position: relative; }
.bell .badge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--bg); }
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 30px); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; animation: pop .15s; overflow: hidden; }
.notif-panel .list { max-height: 60vh; overflow-y: auto; padding: 6px; gap: 2px; }
.notif { display: flex; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; align-items: flex-start; }
.notif:hover { background: var(--bg-3); } .notif.unread { background: color-mix(in oklab, var(--gold) 8%, transparent); }
.notif .dotn { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; margin-top: 6px; } .notif:not(.unread) .dotn { background: transparent; }

/* ---------- Quick Capture ---------- */
.capture { display: flex; gap: 8px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 8px 8px 14px; }
.capture input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 15px; min-width: 0; }
.capture .kind { display: flex; gap: 3px; }
.capture .kind button { border: 1px solid transparent; background: var(--bg-3); color: var(--fg-2); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.capture .kind button.on { background: var(--accent); color: var(--accent-fg); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in oklab, var(--gold) 16%, transparent), transparent 60%), radial-gradient(900px 500px at 90% 110%, color-mix(in oklab, var(--blue) 18%, transparent), transparent 60%), var(--bg); }
.login { width: min(420px, 100%); }
.login .who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login .who button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--bg-3); cursor: pointer; font-weight: 700; }
.login .who button.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, var(--bg-3)); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; color: var(--fg-2); padding: 9px 14px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--fg); border-bottom-color: var(--accent); }

/* ---------- Sparkline ---------- */
.spark { width: 100%; height: 44px; }

/* ---------- Bottom-Nav (mobil) ---------- */
.bottom-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .bottom-nav { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bg-2) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 18px; padding: 6px; z-index: 30; box-shadow: var(--shadow); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; color: var(--fg-3); font-size: 10.5px; font-weight: 600; position: relative; }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active { color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); }
  .bottom-nav a .count { position: absolute; top: 2px; right: calc(50% - 18px); background: var(--red); color: #fff; font-size: 9.5px; border-radius: 99px; min-width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
  .content { padding: 16px 14px 100px; }
  .topbar { padding: 0 14px; }
  .search-btn { min-width: 0; } .search-btn span, .search-btn kbd { display: none; }
  .notes-layout { grid-template-columns: 1fr; }
  .notes-list { max-height: none; }
  .notes-layout.editing .notes-list-wrap { display: none; }
  .notes-layout:not(.editing) .editor-wrap { display: none; }
  .board-wrap { height: calc(100dvh - var(--top) - 270px); min-height: 380px; }
  .board-hint { display: none; }
  .board-tools { padding: 4px; gap: 4px; }
  .board-tools .sw { width: 22px; height: 22px; }
  .board-zoom [data-zoom="0"] { display: none; }
  .chat { height: calc(100dvh - var(--top) - 200px); }
  .msg { max-width: 92%; }
}
@container page (max-width: 900px) {
  .layout-side { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 110px; }
  .lead-row > :nth-child(n+4) { display: none; }
}
@container page (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .grid.auto { grid-template-columns: 1fr; }
  .lead-row { grid-template-columns: minmax(0, 1fr) 100px; } .lead-row > :nth-child(n+3) { display: none; }
  .page-head h1 { font-size: 22px; }
  .capture .kind button span { display: none; }
}
@container dialog (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }

/* ============ Ausbaustufe 2 ============ */

/* Tagesleiste im Cockpit */
.daystrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ds-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.ds-card a { display: inline-block; margin-top: 6px; }
.ds-timer.on { border-color: var(--green); background: color-mix(in oklab, var(--green) 7%, var(--bg-2)); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

/* Zeitanzeige in der Kopfleiste */
.timer-btn { display: flex; align-items: center; gap: 8px; background: color-mix(in oklab, var(--green) 14%, var(--bg-3)); border: 1px solid color-mix(in oklab, var(--green) 40%, transparent); color: var(--fg); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-weight: 600; max-width: 280px; min-height: 34px; }
.timer-btn:hover { background: color-mix(in oklab, var(--green) 22%, var(--bg-3)); }
.timer-btn .lbl { font-weight: 500; color: var(--fg-2); font-size: 13px; max-width: 130px; }
.timer-btn .stop { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--green); font-weight: 700; }

/* Kalender */
.cal-grid { display: grid; gap: 8px; }
.cal-grid.woche { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-grid.monat { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-height: 118px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-grid.monat .cal-day { min-height: 92px; }
.cal-day.today { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 7%, var(--bg-2)); }
.cal-day.off { opacity: .45; }
.cal-head { display: flex; align-items: center; gap: 5px; }
.cal-head .wd { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); font-weight: 700; }
.cal-head b { font-size: 14px; font-variant-numeric: tabular-nums; }
.cal-head button { margin-left: auto; opacity: 0; }
.cal-day:hover .cal-head button { opacity: 1; }
.cal-items { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-it { display: flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 3px 6px; border-radius: 6px; cursor: pointer; background: var(--bg-3); border-left: 2px solid var(--fg-3); min-width: 0; }
.cal-it:hover { background: var(--bg-4); }
.cal-it.task { border-left-color: var(--blue); }
.cal-it.lead { border-left-color: var(--green); }
.cal-it.ev { border-left-color: var(--gold); }
.cal-it.k-frist { border-left-color: var(--red); }
.cal-it.k-demo { border-left-color: var(--purple); }

/* Radar */
.score { width: 30px; height: 24px; border-radius: 6px; background: var(--bg-4); color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11.5px; font-weight: 700; flex: none; }
.forecast { display: flex; gap: 6px; align-items: flex-end; height: 110px; }
.fc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.fc .bar { width: 100%; background: linear-gradient(180deg, var(--gold), color-mix(in oklab, var(--gold) 45%, transparent)); border-radius: 5px 5px 2px 2px; min-height: 3px; transition: height .4s; }
.fc .v { font-size: 10.5px; color: var(--fg-2); }
.fc .m { white-space: nowrap; }

/* Geld-Balken */
.bars { display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.bg { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bg .stack { flex: 1; width: 100%; display: flex; gap: 3px; align-items: flex-end; }
.bg .b { flex: 1; border-radius: 4px 4px 2px 2px; min-height: 2px; transition: height .4s; }
.bg .b.ein { background: var(--green); }
.bg .b.aus { background: color-mix(in oklab, var(--red) 70%, transparent); }
i.dot-ein, i.dot-aus { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
i.dot-ein { background: var(--green); }
i.dot-aus { background: color-mix(in oklab, var(--red) 70%, transparent); }

/* Angebotspositionen */
.oitem { display: flex; gap: 8px; align-items: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.oitem .input.sm { min-height: 32px; padding: 5px 9px; font-size: 13.5px; }
.oitem .num { width: 78px; text-align: right; flex: none; }
.oitem .unit { width: 72px; flex: none; }
.oitem .sum { width: 92px; text-align: right; flex: none; padding-top: 6px; }
.oitem label { flex: none; padding-top: 8px; white-space: nowrap; }

/* Textbausteine */
.tpl-body { white-space: pre-wrap; font-family: var(--mono); font-size: 13px; line-height: 1.65; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0; overflow-x: auto; color: var(--fg); }

/* Hinweiskaesten */
.callout, .callout-good, .callout-warn { border-radius: 10px; padding: 10px 14px; border-left: 3px solid var(--line-2); background: var(--bg-3); }
.callout-good { border-left-color: var(--green); background: color-mix(in oklab, var(--green) 8%, var(--bg-3)); }
.callout-warn { border-left-color: var(--orange); background: color-mix(in oklab, var(--orange) 8%, var(--bg-3)); }

kbd { font-family: var(--mono); font-size: 11.5px; background: var(--bg-4); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* Druck: Angebot und Wochenbericht */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  body { background: #fff !important; color: #000 !important; }
  .sidebar, .topbar, .bottom-nav, .toasts, .no-print, .board-tools, .board-zoom { display: none !important; }
  .app { display: block !important; }
  .content { padding: 0 !important; }
  .print-only { display: block; }
  .layout-side, .card, .grid { display: block !important; box-shadow: none !important; border: 0 !important; background: #fff !important; }
  #printarea ~ * { display: none; }
  .doc { color: #111; font-size: 11pt; }
  .doc-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 10px; }
  .doc-logo { font-size: 22pt; font-weight: 800; letter-spacing: .12em; }
  .doc-head .right { text-align: right; }
  .doc-to { margin: 26mm 0 10mm; line-height: 1.5; }
  .doc-title { font-size: 17pt; margin: 0 0 2mm; }
  .doc-p { margin: 6mm 0; line-height: 1.6; }
  .doc-table { width: 100%; border-collapse: collapse; margin: 6mm 0; font-size: 10pt; }
  .doc-table th { text-align: left; border-bottom: 1px solid #111; padding: 3mm 2mm; font-size: 9pt; text-transform: uppercase; letter-spacing: .06em; }
  .doc-table td { padding: 3mm 2mm; border-bottom: 1px solid #ddd; vertical-align: top; }
  .doc-table .r, .doc-table th.r { text-align: right; white-space: nowrap; }
  .doc-sums { margin-left: auto; width: 70mm; font-size: 10.5pt; }
  .doc-sums > div { display: flex; justify-content: space-between; padding: 1.5mm 0; }
  .doc-sums .total { border-top: 1.5px solid #111; margin-top: 2mm; padding-top: 2mm; font-weight: 800; font-size: 12pt; }
  .doc .tiny { font-size: 8.5pt; }
  .doc .dim { color: #555; }
  body.printing-report #repcard { display: block !important; }
}

/* Responsive fuer die neuen Ansichten */
@media (max-width: 980px) {
  .timer-btn .lbl { display: none; }
  .timer-btn .stop { display: none; }
  .timer-btn { padding: 6px 10px; }
}
@container page (max-width: 900px) {
  .daystrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-grid.woche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-day { min-height: 96px; }
  .oitem { flex-wrap: wrap; }
  .oitem > div:first-child { flex-basis: 100%; }
  .oitem .sum { margin-left: auto; }
}
@container page (max-width: 560px) {
  .daystrip { grid-template-columns: 1fr; }
  .cal-grid.woche { grid-template-columns: 1fr; }
  .cal-grid.monat { gap: 3px; }
  .cal-grid.monat .cal-day { min-height: 62px; padding: 4px; }
  .cal-grid.monat .cal-head .wd, .cal-grid.monat .cal-head button { display: none; }
  .cal-grid.monat .cal-it { font-size: 0; padding: 3px; gap: 0; }
  .cal-grid.monat .cal-it > span:first-child { font-size: 10px; }
  .forecast, .bars { height: 90px; }
  .oitem .num, .oitem .unit { width: 62px; }
}

/* Am Handy stapeln sich die Spalten, statt seitlich zu scrollen */
@container page (max-width: 620px) {
  .kanban, .kanban.cols-5, .kanban.cols-6 { grid-template-columns: 1fr; overflow-x: visible; }
  .kcol { min-height: 0; }
  .kcol-head { position: sticky; top: 0; background: var(--bg-2); z-index: 2; padding-top: 6px; }
}

/* Nebeninformationen weichen auf schmalen Bildschirmen */
@container page (max-width: 620px) { [data-hide-sm] { display: none !important; } }
.item > * { flex: none; }
.item > .grow { flex: 1 1 auto; }
