/* Haenni Office – Handy und Laptop. Corporate Design wie in der Mac-App («Created with purpose»). */

@font-face { font-family: 'Hanken Grotesk'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: italic; font-display: swap;
  src: url('fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: italic; font-display: swap;
  src: url('fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --concrete: #1a1a19; --mossy: #315123; --spring: #7fa152; --milk: #fffdf7;
  --bg: #fffdf7; --fg: #1a1a19; --panel: #ffffff; --surface: #f4f2eb; --hairline: #d8d6cf;
  --muted: #6e6e68; --secondary: #45453f; --accent: #315123; --accent-ink: #fffdf7;
  --accent-soft: rgba(127, 161, 82, 0.18); --danger: #8a2f1f; --danger-soft: rgba(138, 47, 31, 0.1);
  --warn: #8a6a1a; --warn-soft: rgba(138, 106, 26, 0.12); --track: #e6e3da;
  --shadow: 0 1px 2px rgba(26, 26, 25, 0.05), 0 6px 18px rgba(26, 26, 25, 0.06);
  --backdrop: rgba(26, 26, 25, 0.42); --tag-l: 38%; --tag-bg-l: 92%;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --r: 12px; --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
/* Dunkel: automatisch wie das Gerät, ausser in den Einstellungen ist «Hell» gewählt – oder fix «Dunkel» */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #1a1a19; --fg: #f4f2eb; --panel: #222220; --surface: #2a2a27; --hairline: #36362f;
    --muted: #9b9a92; --secondary: #c9c7bf; --accent: #7fa152; --accent-ink: #1a1a19;
    --accent-soft: rgba(127, 161, 82, 0.16); --danger: #e2806a; --danger-soft: rgba(226, 128, 106, 0.14);
    --warn: #d9b25a; --warn-soft: rgba(217, 178, 90, 0.14); --track: #33332e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --backdrop: rgba(0, 0, 0, 0.6); --tag-l: 76%; --tag-bg-l: 22%;
    --logo-hell: none; --logo-dunkel: block;
  }
}
:root[data-theme='dark'] {
    --bg: #1a1a19; --fg: #f4f2eb; --panel: #222220; --surface: #2a2a27; --hairline: #36362f;
    --muted: #9b9a92; --secondary: #c9c7bf; --accent: #7fa152; --accent-ink: #1a1a19;
    --accent-soft: rgba(127, 161, 82, 0.16); --danger: #e2806a; --danger-soft: rgba(226, 128, 106, 0.14);
    --warn: #d9b25a; --warn-soft: rgba(217, 178, 90, 0.14); --track: #33332e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --backdrop: rgba(0, 0, 0, 0.6); --tag-l: 76%; --tag-bg-l: 22%;
  --logo-hell: none; --logo-dunkel: block; color-scheme: dark;
}
:root[data-theme='light'] { color-scheme: light; }
.logo.hell { display: var(--logo-hell, block); }
.logo.dunkel { display: var(--logo-dunkel, none); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.4 var(--sans); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Gerüst ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--top) + 10px) 18px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--hairline); }
.top .logo { height: 24px; }
.top .grow { flex: 1; min-width: 0; }
.top .back { display: flex; align-items: center; gap: 4px; margin-left: -6px; padding: 6px; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 16px; }
.status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: #5fae6e; }
.status[data-art='offline'] .dot { background: #8f8e86; }
.status[data-art='laedt'] .dot { background: #d9a441; animation: puls 1.1s ease-in-out infinite; }
.status[data-art='fehler'] .dot { background: var(--danger); }
@keyframes puls { 50% { opacity: 0.3; } }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--fg); font-size: 20px; }
.icon-btn:active { background: var(--surface); }
.icon-btn.on { color: #c99a1b; }

main { padding: 6px 18px calc(var(--bottom) + 96px); max-width: 720px; margin: 0 auto; }
.head { margin: 8px 0 18px; }
.head .eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.head h1 { margin: 4px 0 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.head h1 em { color: var(--accent); font-weight: 400; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 68px 1fr 1fr;
  align-items: center; padding: 6px 8px calc(var(--bottom) + 6px); background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--hairline);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.tabs .side-logo, .tabs .plus .lbl { display: none; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a.active { color: var(--fg); }
.tabs a.active svg { color: var(--accent); }
.tabs .plus { justify-self: center; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.tabs .plus svg { width: 26px; height: 26px; display: block; }
.tabs .plus:active { transform: scale(0.95); }

.banner { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); color: var(--secondary); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.banner.fehler { background: var(--danger-soft); color: var(--danger); }
.banner button { margin-left: auto; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- Abschnitte & Karten ---------- */
.sec { margin: 22px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.sec h2 { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sec .n { font-size: 12px; color: var(--muted); }
.sec.late h2 { color: var(--danger); }
.list { display: grid; gap: 8px; }
.card {
  position: relative; display: block; padding: 12px 14px; border-radius: var(--r); background: var(--panel);
  border: 1px solid var(--hairline); box-shadow: var(--shadow); touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform 0.2s ease, opacity 0.2s;
}
.card.dragging { transition: none; }
.card .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .t { font-weight: 650; font-size: 16px; line-height: 1.25; margin: 2px 0 6px; overflow-wrap: anywhere; }
.card .star { position: absolute; top: 10px; right: 12px; color: #c99a1b; font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); color: var(--secondary); white-space: nowrap; }
.chip.tag { background: hsl(var(--h) 40% var(--tag-bg-l)); color: hsl(var(--h) 45% var(--tag-l)); }
.chip.area::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--h) 40% 50%); }
.chip.col::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.pill { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--surface); color: var(--secondary); }
.pill.late { background: var(--danger-soft); color: var(--danger); }
.pill.soon { background: var(--warn-soft); color: var(--warn); }
.prog { display: inline-flex; align-items: center; gap: 4px; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 15px; }
.empty em { display: block; font-size: 22px; color: var(--fg); margin-bottom: 4px; }
.hint { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }

/* Wisch-Hintergrund */
.swipe { position: relative; border-radius: var(--r); }
.swipe .under { position: absolute; inset: 0; border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent); opacity: 0; }
.swipe .under.back { background: var(--secondary); }

/* ---------- Spalten-Reiter ---------- */
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 14px; padding: 2px 18px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--panel); font-size: 14px; font-weight: 600; color: var(--secondary); }
.seg button .n { font-size: 12px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg button.on .n { color: inherit; opacity: 0.7; }
.seg button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, transparent); }
.filter { display: flex; gap: 8px; margin: -4px 0 12px; }
.filter select { flex: 1; }

/* ---------- Formulare ---------- */
.input, select.input, textarea.input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--panel);
  font-size: 16px; appearance: none; -webkit-appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
label.f { display: grid; gap: 6px; margin-bottom: 14px; }
label.f > span, .f-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; }
.btn.full { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--fg); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn:disabled { opacity: 0.5; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tagpick button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--panel); font-size: 14px; font-weight: 600; color: var(--secondary); }
.tagpick button.on { background: hsl(var(--h) 40% var(--tag-bg-l)); color: hsl(var(--h) 45% var(--tag-l)); border-color: hsl(var(--h) 40% 50% / 0.6); }

/* ---------- Anmelden ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top) + 24px) 24px calc(var(--bottom) + 24px); max-width: 420px; margin: 0 auto; }
.login .logo { height: 30px; margin-bottom: 36px; align-self: flex-start; }
.login h1 { font-size: 36px; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.login h1 em { color: var(--accent); }
.login p { color: var(--muted); margin: 0 0 26px; }

/* ---------- Projekt ---------- */
.p-title { width: 100%; border: 0; background: transparent; resize: none; padding: 0; margin: 6px 0 14px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow: hidden; }
.p-title:focus { outline: none; }
.props { display: grid; grid-template-columns: 92px 1fr; gap: 10px 12px; align-items: center; margin-bottom: 8px; }
.props .k { font-size: 13px; color: var(--muted); }
.props .seg { margin: 0; padding: 2px 0; }
.deadline { display: flex; gap: 8px; }
.deadline .input { flex: 1; }
.box { margin-top: 18px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--hairline); }
.box h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.check { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.check:last-of-type { border-bottom: 0; }
.check input[type='checkbox'] { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--hairline); display: grid; place-items: center; margin: 0; }
.check input[type='checkbox']:checked { background: var(--accent); border-color: var(--accent); }
.check input[type='checkbox']:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check .txt { flex: 1; overflow-wrap: anywhere; }
.check.done .txt { color: var(--muted); text-decoration: line-through; }
.check .x { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 4px 6px; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row .input { flex: 1; }
.notes { min-height: 120px; resize: vertical; line-height: 1.45; }
.linklist a, .linklist button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--hairline); background: none; text-align: left; font-size: 15px; color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.linklist > :last-child { border-bottom: 0; }
.linklist small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.bar { width: 100%; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }

/* ---------- Bereiche ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.area { border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.area .cover { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.area .body { padding: 10px 12px 12px; }
.area .name { font-weight: 700; }
.area .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hero { margin: 0 -18px 16px; aspect-ratio: 16 / 8; background-size: cover; background-position: center; position: relative; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.45)); }
.hero h1 { position: absolute; left: 18px; bottom: 12px; right: 18px; z-index: 1; margin: 0; color: #fffdf7; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Erfassen (Blatt von unten) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: var(--backdrop); display: flex; align-items: flex-end; animation: fade 0.18s ease; }
.sheet { width: 100%; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 18px 18px 0 0; padding: 10px 18px calc(var(--bottom) + 18px); animation: up 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); }
.sheet .grip { width: 38px; height: 5px; border-radius: 3px; background: var(--hairline); margin: 0 auto 12px; }
.sheet h2 { margin: 0 0 16px; font-size: 24px; font-weight: 800; }
.sheet h2 em { color: var(--accent); }
.sheet .actions { display: flex; gap: 10px; margin-top: 6px; }
.sheet .actions .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-wrap { animation: none; } .card { transition: none; } }

#toast { position: fixed; left: 50%; bottom: calc(var(--bottom) + 84px); transform: translateX(-50%) translateY(20px); z-index: 60; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transition: 0.2s; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
#toast button { border: 0; background: none; color: var(--spring); font-weight: 800; padding: 0; }

/* ---------- Einstellungen ---------- */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); }
.seg3 button { padding: 9px 6px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 600; color: var(--secondary); }
.seg3 button.on { background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }
.note { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.note b { color: var(--secondary); }

/* ---------- Laptop & grosse Bildschirme: Seitenleiste wie in der Mac-App ---------- */
@media (min-width: 960px) {
  body { padding-left: 240px; }
  .tabs {
    top: 0; right: auto; width: 240px; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 26px 14px; border-top: 0; border-right: 1px solid var(--hairline); background: var(--surface);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .tabs .side-logo { display: block; padding: 0 10px 28px; }
  .tabs .side-logo .logo { height: 34px; max-width: 100%; }
  .tabs a { flex-direction: row; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--secondary); }
  .tabs a svg { width: 20px; height: 20px; }
  .tabs a:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
  .tabs a.active { background: var(--panel); box-shadow: var(--shadow); }
  .tabs .plus { order: -1; justify-self: auto; width: auto; height: auto; display: flex; gap: 10px; justify-content: center; padding: 11px 14px; margin: 0 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; }
  .tabs .plus svg { width: 18px; height: 18px; }
  .tabs .plus .lbl { display: inline; }
  .tabs .side-logo { order: -2; }
  .tabs a[href='#/einstellungen'] { margin-top: auto; }
  .top { padding: 14px 32px; }
  .top .top-logo { display: none; }
  main { max-width: 860px; padding: 10px 32px 60px; }
  main.weit { max-width: none; }
  .head h1 { font-size: 40px; }
  .hero { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; }
  .card { cursor: pointer; }
  .card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline)); }
  .icon-btn:hover { background: var(--surface); }
  .blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  .areas { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  #toast { bottom: 28px; left: calc(50% + 120px); }
  /* Erfassen als Fenster in der Mitte */
  .sheet-wrap { align-items: center; justify-content: center; padding: 24px; }
  .sheet { max-width: 520px; border-radius: 18px; padding: 22px 24px; animation: fade 0.18s ease; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
  .sheet .grip { display: none; }
  .sheet .seg { margin: 0 0 14px !important; padding: 2px 0; flex-wrap: wrap; }
}
@media (min-width: 1500px) { .blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } main { max-width: 1100px; } }

/* Board: alle Spalten nebeneinander */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.row-head .filter { margin: 0; min-width: 220px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board .col { background: var(--surface); border-radius: 14px; padding: 10px; min-height: 160px; border: 2px solid transparent; transition: border-color 0.15s, background 0.15s; }
.board .col.drop-ziel { border-color: var(--accent); background: var(--accent-soft); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.col-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.col-head h2 { margin: 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); font-weight: 700; }
.col-head .n { font-size: 12px; color: var(--muted); }
.col-add { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.col-add svg { width: 16px; height: 16px; }
.col-add:hover { background: var(--panel); color: var(--fg); }
.board .card { user-select: auto; }
.board .swipe.ziehen { opacity: 0.35; }
