/* Planungsboard – Gestaltung. Farben als Variablen, hell und dunkel. */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f0f2f6; --surface-3: #e4e8ee; --border: #d5dbe3; --border-strong: #b9c2ce;
  --text: #18212d; --text-2: #4a5666; --text-3: #6f7b8b;
  --accent: #c2530f; --accent-hover: #a3440a; --accent-soft: #fdeedd; --on-accent: #fff;
  --danger: #c0392f; --danger-soft: #fbe9e7; --ok: #1d7f4f; --ok-soft: #e0f3e8; --warn: #9a6200; --warn-soft: #fdf0d2;
  --list-bg: #ebeef3; --card-bg: #ffffff; --shadow: 0 1px 2px rgba(20,30,45,.14), 0 0 0 1px rgba(20,30,45,.05);
  --shadow-lg: 0 12px 32px rgba(15,25,40,.24), 0 0 0 1px rgba(15,25,40,.08);
  --overlay: rgba(12,20,32,.55); --radius: 8px; --series-1: #2a78d6; --sub: #a8246f; --sub-soft: #fbe4f0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #12161c; --surface: #1c222b; --surface-2: #232a35; --surface-3: #2e3744; --border: #364150; --border-strong: #4a5769;
  --text: #e6eaf0; --text-2: #b3bcc9; --text-3: #8a95a5;
  --accent: #f0914a; --accent-hover: #f5a868; --accent-soft: #3f2713; --on-accent: #1f1206;
  --danger: #ef7166; --danger-soft: #40221f; --ok: #56c28a; --ok-soft: #173526; --warn: #e2b04a; --warn-soft: #3c2f12;
  --list-bg: #161b22; --card-bg: #232a35; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); --overlay: rgba(0,0,0,.65); --series-1: #3987e5; --sub: #f08cc0; --sub-soft: #40203a; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #12161c; --surface: #1c222b; --surface-2: #232a35; --surface-3: #2e3744; --border: #364150; --border-strong: #4a5769;
  --text: #e6eaf0; --text-2: #b3bcc9; --text-3: #8a95a5;
  --accent: #f0914a; --accent-hover: #f5a868; --accent-soft: #3f2713; --on-accent: #1f1206;
  --danger: #ef7166; --danger-soft: #40221f; --ok: #56c28a; --ok-soft: #173526; --warn: #e2b04a; --warn-soft: #3c2f12;
  --list-bg: #161b22; --card-bg: #232a35; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); --overlay: rgba(0,0,0,.65); --series-1: #3987e5; --sub: #f08cc0; --sub-soft: #40203a; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
#app { height: 100%; display: flex; flex-direction: column; }
#main { flex: 1; min-height: 0; overflow: auto; position: relative; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; } h4 { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
code, .mono, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
pre.code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 10px; overflow: auto; margin: 0; }
kbd { background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font: 12px var(--font); white-space: nowrap; }
ul.plain { margin: 0; padding-left: 18px; }
.loading, .empty-page { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty-page h2 { margin-bottom: 8px; color: var(--text); } .empty-page .btn { margin-top: 16px; }

/* Hilfsklassen */
.row { display: flex; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.end-items { align-items: flex-end; }
.gap { gap: 8px; } .gap-s { gap: 5px; } .stack { display: flex; flex-direction: column; gap: 14px; } .stack-s { display: flex; flex-direction: column; gap: 6px; }
.spacer { flex: 1; } .grow { flex: 1; min-width: 0; } .muted { color: var(--text-3); } .small, small { font-size: 12px; } .center { text-align: center; align-self: center; } .left { text-align: left; }
.mt { margin-top: 14px; } .mt-s { margin-top: 6px; } .pad { padding: 12px; } .pad-x { padding: 0 12px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.narrow-col { max-width: 640px; }

/* Schaltflächen & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 500; white-space: nowrap; text-decoration: none !important; min-height: 32px; }
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: var(--danger-soft); } .btn.danger:hover:not(:disabled) { background: var(--danger); color: #fff; }
.btn.small { padding: 3px 9px; font-size: 12.5px; min-height: 26px; } .btn.block { display: flex; width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--text-2); flex: none; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); } .icon-btn.on { color: var(--accent); background: var(--accent-soft); }
.link-btn { color: var(--accent); font-size: 12.5px; padding: 2px 0; } .link-btn:hover { text-decoration: underline; }
.input { width: 100%; padding: 6px 9px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); min-height: 32px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea.input { resize: vertical; line-height: 1.45; display: block; } select.input { padding-right: 4px; width: auto; max-width: 100%; }
.input.small { min-height: 26px; padding: 2px 6px; font-size: 12.5px; } .input.bare { border-color: transparent; background: transparent; } .input.bare:hover { border-color: var(--border-strong); }
.input.narrow { width: 80px; } input[type=color] { width: 44px; height: 30px; padding: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: none; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); flex: none; margin: 0; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .field.inline { flex-direction: row; align-items: center; gap: 8px; }
.field > .btn:not(.block) { align-self: flex-start; }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-2); } .field-hint { font-size: 12px; color: var(--text-3); }
.inline-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); } .inline-field .input { width: auto; min-width: 90px; } .inline-field.grow .input { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 2px 0; }
.form-error { color: var(--danger); min-height: 1.2em; font-size: 13px; }
.switch { position: relative; display: inline-block; width: 34px; height: 20px; flex: none; } .switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 10px; background: var(--border-strong); transition: background .15s; } .switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { transform: translateX(14px); }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600; flex: none; -webkit-user-select: none; user-select: none; letter-spacing: .02em; }
.avatar.more, .avatar.sys { background: var(--surface-3); color: var(--text-2); width: 28px; height: 28px; font-size: 11px; }
.avatars { display: flex; cursor: pointer; } .avatars .avatar { margin-left: -6px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); } .avatars .avatar:first-child { margin-left: 0; }
.chip, .chip-light, .pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.chip { background: var(--surface-2); border: 1px solid var(--border); padding: 2px 9px; color: var(--text); }
.chip-light { background: rgba(255,255,255,.25); color: #fff; padding: 2px 9px; font-weight: 600; } .chip-light.warn { background: var(--warn-soft); color: var(--warn); }
.modal .chip-light, .tpl .chip-light { background: var(--surface-3); color: var(--text-2); align-self: flex-start; }
.pill { padding: 1px 8px; background: var(--surface-3); color: var(--text-2); font-weight: 600; margin-left: 6px; } .pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--danger-soft); color: var(--danger); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-btn:hover { background: var(--surface-3); } .chip-btn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dot { width: 16px; height: 16px; border-radius: 4px; flex: none; display: inline-block; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tab:hover { color: var(--text); } .tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-top: 10px; }
.tbl { border-collapse: collapse; width: 100%; } .tbl th, .tbl td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl thead th { font-size: 12px; color: var(--text-2); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; z-index: 1; } .tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl th.sortable { cursor: pointer; } .tbl th.sorted { color: var(--accent); } .tbl td.actions { white-space: nowrap; text-align: right; } .tbl td.actions .btn { margin-left: 4px; }
.tbl tr.inactive td { color: var(--text-3); } .tbl.kv th { width: 220px; color: var(--text-2); font-weight: 500; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; } .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; min-width: 120px; } .stat b { display: block; font-size: 24px; } .stat span { color: var(--text-2); font-size: 12px; }
.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.page-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.upload-bar { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 12.5px; overflow: hidden; margin-bottom: 8px; }
.upload-bar i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .2s; }

/* Popover, Menü, Dialog, Hinweise */
.pop { position: fixed; z-index: 300; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg); width: 304px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); display: flex; flex-direction: column; }
.pop.wide { width: 360px; } .pop.search-pop { width: 420px; } .pop.notif-pop { width: 420px; } .pop.quick-edit { width: 260px; }
.pop-head { display: flex; align-items: center; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--border); } .pop-title { flex: 1; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-body { padding: 12px; overflow: auto; } .pop-body.menu, .menu-pop .pop-body { padding: 6px; }
.menu { display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; text-align: left; color: var(--text); width: 100%; text-decoration: none !important; min-height: 32px; }
.menu-item:hover:not(:disabled), .menu-item.on { background: var(--surface-2); } .menu-item.on { color: var(--accent); font-weight: 600; } .menu-item.danger { color: var(--danger); }
.menu-item .ico { color: var(--text-3); } .menu-item.danger .ico, .menu-item.on .ico { color: inherit; }
.menu-label { flex: 1; min-width: 0; } .menu-item.two .menu-label { display: flex; flex-direction: column; } .menu-label small { color: var(--text-3); }
.menu-hint { color: var(--text-3); font-size: 12px; } .menu-check { width: 16px; height: 16px; display: grid; place-items: center; color: var(--accent); }
.menu-sep { height: 1px; background: var(--border); margin: 5px 0; } .menu-head { font-size: 11.5px; font-weight: 700; color: var(--text-3); padding: 6px 10px 3px; text-transform: uppercase; letter-spacing: .04em; }
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: min(600px, 100%); display: flex; flex-direction: column; }
.modal.small { width: min(460px, 100%); } .modal.medium { width: min(680px, 100%); } .modal.wide { width: min(960px, 100%); } .modal.tall .modal-body { min-height: 420px; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px 20px; } .modal-head h2 { flex: 1; }
.modal-body { padding: 4px 20px 20px; } .dlg-text { margin-bottom: 16px; color: var(--text-2); }
.tip { position: fixed; z-index: 700; display: none; background: #1d2733; color: #fff; font-size: 12.5px; line-height: 1.35; padding: 5px 9px; border-radius: 6px; max-width: 290px; white-space: pre-line; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.toasts { position: fixed; bottom: 18px; left: 18px; z-index: 500; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: #1d2733; color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; border-left: 4px solid #6f8194; }
.toast.ok { border-left-color: #3fb37f; } .toast.error { border-left-color: #f0685c; } .toast-act { color: #8fc6ff; font-weight: 600; white-space: nowrap; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .swatches.wide { grid-template-columns: repeat(6, 1fr); }
.swatch { height: 30px; border-radius: 6px; border: 2px solid transparent; } .swatch:hover { filter: brightness(1.08); } .swatch.on { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); }
.emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; } .emoji { font-size: 20px; padding: 4px; border-radius: 6px; } .emoji:hover { background: var(--surface-2); } .emoji.on { background: var(--accent-soft); }
.pick-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; max-height: 280px; overflow: auto; }
.pick-row { display: flex; align-items: center; gap: 8px; min-height: 32px; } .pick-row.btnrow { padding: 4px 6px; border-radius: 6px; text-align: left; width: 100%; } .pick-row.btnrow:hover, .pick-row.btnrow.on { background: var(--surface-2); }
.lbl-wide { flex: 1; min-height: 30px; border-radius: 5px; padding: 4px 10px; text-align: left; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lbl-wide:hover { filter: brightness(1.07); }
.label-prev { background: var(--surface-2); border-radius: 6px; padding: 16px; display: grid; place-items: center; margin-bottom: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .thumb { aspect-ratio: 4/3; border-radius: 6px; background: var(--surface-3) center/cover; border: 2px solid transparent; } .thumb.on { border-color: var(--accent); }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); text-align: left; width: 100%; } .choice:hover:not(:disabled) { background: var(--surface-2); } .choice.on { border-color: var(--accent); background: var(--accent-soft); }
.choice span { flex: 1; display: flex; flex-direction: column; gap: 2px; } .choice small { color: var(--text-2); }
.bg-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; } .bg-opt { aspect-ratio: 3/2; border-radius: 6px; border: 2px solid transparent; } .bg-opt.on { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); } .bg-opt.wide { aspect-ratio: 16/7; width: 100%; margin-bottom: 6px; }
.drawer .bg-grid { grid-template-columns: repeat(4, 1fr); }
.bg-preview { height: 110px; border-radius: 8px; display: flex; gap: 8px; padding: 14px; justify-content: center; } .prev-list { width: 70px; height: 70px; border-radius: 5px; background: rgba(255,255,255,.85); } .prev-list.short { height: 46px; }

/* Anmeldung */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark, :root:not([data-theme="light"]) .auth-logo { filter: invert(1); } }
:root[data-theme="dark"] .brand-mark, :root[data-theme="dark"] .auth-logo { filter: invert(1); }
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #1f2329, #5a3520 55%, #d9772b); overflow: auto; height: 100%; }
.auth-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 28px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: none !important; font-size: 15px; } .brand.big { font-size: 18px; margin-bottom: 4px; }
.brand-mark { height: 30px; width: auto; display: block; } .brand-a { font-weight: 600; } .brand-b { font-weight: 800; color: var(--accent); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; } .auth-logo { width: min(240px, 70%); height: auto; } .auth-brand .brand { letter-spacing: .02em; } .auth-sub { font-size: 22px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-right: -.32em; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 48px; background: var(--surface); border-bottom: 1px solid var(--border); flex: none; z-index: 20; }
.top-link { color: var(--text-2); font-weight: 500; padding: 6px 8px; border-radius: 6px; text-decoration: none !important; } .top-link:hover { background: var(--surface-2); color: var(--text); }
.search { position: relative; flex: 0 1 380px; display: flex; align-items: center; } .search .ico { position: absolute; left: 9px; color: var(--text-3); pointer-events: none; }
.search-input { width: 100%; height: 32px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 10px 0 32px; background: var(--surface-2); } .search-input:focus { background: var(--surface); outline: 2px solid var(--accent); outline-offset: -1px; }
.icon-btn.top { width: 34px; height: 34px; position: relative; } .avatar-btn { border-radius: 50%; display: grid; }
.bell-count { position: absolute; top: 1px; right: 0; background: var(--danger); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }
.offline { position: fixed; top: 54px; left: 50%; transform: translateX(-50%); background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); border-radius: 8px; padding: 6px 14px; z-index: 150; font-size: 13px; box-shadow: var(--shadow-lg); }
.notif-pop .pop-body { padding: 8px 0; } .notif-list { display: flex; flex-direction: column; max-height: 60vh; overflow: auto; margin-top: 6px; }
.notif { display: flex; gap: 10px; padding: 9px 12px; text-align: left; align-items: flex-start; border-top: 1px solid var(--border); } .notif:hover { background: var(--surface-2); } .notif.unread { background: var(--accent-soft); }
.notif-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; } .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }

/* Startseite */
.home { display: grid; grid-template-columns: 240px 1fr; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; }
.home-side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; align-self: start; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--text); font-weight: 500; text-decoration: none !important; text-align: left; width: 100%; } .side-link:hover { background: var(--surface-3); }
.side-link.on { background: var(--accent-soft); color: var(--accent); } .side-link.small { font-size: 13px; padding: 5px 10px 5px 20px; font-weight: 400; }
.side-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 16px 10px 4px; border-top: 1px solid var(--border); margin-top: 12px; }
.ws-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, #2a2f38, #c2530f); color: #fff; font-weight: 700; font-size: 12px; flex: none; } .ws-badge.big { width: 36px; height: 36px; font-size: 17px; }
.home-content { min-width: 0; } .home-group { margin-bottom: 30px; display: flex; flex-direction: column; gap: 12px; } .home-group h2 { display: flex; align-items: center; gap: 8px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { position: relative; height: 96px; border-radius: 8px; padding: 10px 12px; color: #fff; font-weight: 700; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none !important; overflow: hidden; box-shadow: var(--shadow); text-align: left; }
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); transition: background .15s; } .tile:hover::before { background: rgba(0,0,0,.32); } .tile > * { position: relative; }
.tile-name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tile.new { background: var(--surface-3); color: var(--text-2); align-items: center; justify-content: center; gap: 4px; font-weight: 500; box-shadow: none; flex-direction: row; } .tile.new::before { display: none; } .tile.new:hover { background: var(--border); color: var(--text); }
.tile-badge { align-self: flex-start; background: rgba(255,255,255,.9); color: #1c2430; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.tile-star { position: absolute; right: 8px; bottom: 8px; color: #fff; opacity: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; } .tile:hover .tile-star, .board-row:hover .tile-star, .tile-star.on, .tile-star:focus-visible { opacity: 1; }
.tile-star.on { color: #ffd34d; } .tile-star.on .ico { fill: currentColor; } .tile-star:hover { background: rgba(0,0,0,.3); }
.board-rows { display: flex; flex-direction: column; gap: 2px; } .board-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--text); text-decoration: none !important; position: relative; } .board-row:hover { background: var(--surface-2); }
.board-row .tile-name { flex: 1; text-shadow: none; } .board-row .tile-star { position: static; color: var(--text-3); } .board-row .tile-star.on { color: #d49b00; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; } .tpl { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.tpl-bg { height: 64px; padding: 8px; } .tpl-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; } .tpl-body .row { margin-top: auto; }
.search-wide { max-width: 520px; }
.home-cols { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; } .home-aside { width: 260px; display: flex; flex-direction: column; gap: 2px; } .home-aside h3 { display: flex; gap: 8px; align-items: center; color: var(--text-2); margin-bottom: 6px; }
.row-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; text-align: left; width: 100%; } .row-card:hover { border-color: var(--accent); } .row-card .grow { display: flex; flex-direction: column; }
.card-hint { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 16px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.member-row { padding: 5px 0; border-bottom: 1px solid var(--border); } .member-row:last-child { border-bottom: 0; }
.search-page, .admin-page { max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; } .search-page { display: flex; gap: 28px; align-items: flex-start; }
.search-side { width: 250px; flex: none; display: flex; flex-direction: column; gap: 12px; } .search-results { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.result { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); text-decoration: none !important; } .result:hover { border-color: var(--accent); }
.result .grow { display: flex; flex-direction: column; gap: 2px; } .result-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }

/* Board */
.board-page { height: 100%; display: flex; flex-direction: column; position: relative; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: rgba(0,0,0,.28); color: #fff; flex: none; flex-wrap: wrap; backdrop-filter: blur(6px); }
.bh-left, .bh-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.board-name { font-size: 17px; padding: 3px 8px; border-radius: 6px; cursor: pointer; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .board-name:hover { background: rgba(255,255,255,.18); }
.bh-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 6px; color: #fff; font-weight: 500; background: rgba(255,255,255,.14); white-space: nowrap; }
.bh-btn:hover { background: rgba(255,255,255,.28); } .bh-btn.icon-only { padding: 0; width: 32px; justify-content: center; } .bh-btn.static { background: none; cursor: default; }
.bh-btn.starred { color: #ffd34d; } .bh-btn.starred .ico { fill: currentColor; } .bh-btn.active { background: #fff; color: #18212d; }
.count { background: var(--accent); color: #fff; border-radius: 9px; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.inline-input { font: inherit; font-weight: inherit; border: 2px solid var(--accent); border-radius: 6px; padding: 2px 6px; background: var(--surface); color: var(--text); width: 100%; min-width: 120px; }
.board-head .inline-input { width: 280px; font-size: 17px; font-weight: 700; } .inline-input.title-input { font-size: 19px; font-weight: 700; resize: vertical; }
.board-body { flex: 1; min-height: 0; display: flex; position: relative; }
.canvas, .panel, .switcher, .board-head, .sel-bar { -webkit-user-select: none; user-select: none; } .board-body input, .board-body textarea, .board-head input { -webkit-user-select: text; user-select: text; }
.board-main { flex: 1; min-width: 0; height: 100%; position: relative; }
.canvas { display: flex; align-items: flex-start; gap: 12px; height: 100%; overflow-x: auto; overflow-y: hidden; padding: 12px 12px 70px; scrollbar-color: rgba(255,255,255,.5) rgba(0,0,0,.15); }
.canvas-empty { color: #fff; padding: 24px; }
.list { flex: 0 0 284px; max-height: 100%; display: flex; flex-direction: column; background: var(--list-bg); border-radius: 12px; box-shadow: var(--shadow); position: relative; }
.list.colored { border-top: 5px solid var(--list-accent); } .list.pinned { box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,.55); } .list.drop-hi { outline: 3px solid var(--accent); }
.list-head { display: flex; align-items: center; gap: 4px; padding: 8px 6px 4px 12px; cursor: grab; }
.list-title { flex: 1; min-width: 0; font-size: 14px; padding: 3px 4px; border-radius: 5px; overflow-wrap: anywhere; cursor: pointer; } .list-title:hover { background: var(--surface-3); }
.list-count { font-size: 12px; color: var(--text-3); padding: 0 4px; white-space: nowrap; } .list-count.over, .strip-count.over { color: #fff; background: var(--danger); border-radius: 9px; padding: 0 7px; font-weight: 700; }
.list-pin, .list-eye { color: var(--text-3); display: grid; }
.cards { flex: 1; min-height: 6px; overflow-y: auto; padding: 4px 8px 0; scrollbar-width: thin; }
.list-foot, .panel-add { display: flex; align-items: center; gap: 4px; padding: 4px 8px 8px; }
.add-card { flex: 1; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; color: var(--text-2); text-align: left; } .add-card:hover { background: var(--surface-3); color: var(--text); }
.composer { padding: 0 8px 8px; } .composer textarea { box-shadow: var(--shadow); border-color: transparent; }
.list.collapsed { flex: 0 0 44px; cursor: pointer; } .list-strip { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; width: 100%; min-height: 150px; }
.strip-name { writing-mode: vertical-rl; font-weight: 700; max-height: 50vh; overflow: hidden; } .strip-count { font-size: 12px; color: var(--text-3); writing-mode: vertical-rl; }
.add-list { flex: 0 0 284px; background: rgba(255,255,255,.22); border-radius: 12px; padding: 8px; } .add-list-btn { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; width: 100%; padding: 4px 6px; border-radius: 8px; } .add-list-btn:hover { background: rgba(255,255,255,.18); }
.add-list:has(.input) { background: var(--list-bg); }

.card { position: relative; background: var(--card-bg); border-radius: 8px; box-shadow: var(--shadow); padding: 8px 10px; margin-bottom: 8px; cursor: pointer; display: block; overflow-wrap: anywhere; outline-offset: -2px; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.card:hover, .card.kbd { outline: 2px solid var(--accent); } .card.selected { outline: 2px solid var(--accent); background: var(--accent-soft); } .card.tpl { border-left: 4px solid var(--border-strong); }
.card-cover { height: 36px; margin: -8px -10px 8px; border-radius: 8px 8px 0 0; } .card-cover.img { height: 130px; background-size: cover; background-position: center; } .card-cover.full { height: 76px; } .card-cover.full.img { height: 170px; }
/* Unteraufgaben */
.card.subtask { border-left: 4px solid var(--sub); }
.sub-parent { display: flex; align-items: center; gap: 5px; max-width: 100%; margin-bottom: 5px; padding: 1px 7px 1px 5px; border-radius: 5px; background: var(--sub-soft); color: var(--sub); font-size: 11.5px; text-align: left; }
.sub-parent:hover { filter: brightness(.95); text-decoration: underline; } .sub-word { font-weight: 700; flex: none; } .sub-of { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sub-word.inline { color: var(--sub); margin-right: 5px; } .badge.subs { color: var(--sub); } .badge.subs.complete { color: var(--ok); }
.list-done { color: var(--ok); display: grid; }
.sub-banner { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 7px 12px; border-radius: 8px; background: var(--sub-soft); color: var(--sub); text-align: left; border: 1px solid color-mix(in srgb, var(--sub) 30%, transparent); }
.sub-banner:hover { filter: brightness(.96); } .sub-banner b { color: var(--text); } .sub-banner .pill { margin-left: 0; }
.subrow .sub-link { text-align: left; cursor: pointer; font-weight: 500; } .subrow .sub-link:hover { text-decoration: underline; color: var(--accent); } .subrow.done .sub-link { text-decoration: line-through; }
.sub-list { font-size: 11.5px; padding: 0 7px; max-width: 34%; overflow: hidden; text-overflow: ellipsis; flex: none; }
.cd-sec.subs { border: 1px solid color-mix(in srgb, var(--sub) 28%, var(--border)); border-radius: 10px; padding: 12px; } .cd-sec.subs > .sec-head > .ico { color: var(--sub); }
.card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.lbl { display: inline-block; min-width: 40px; height: 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 16px; } .lbl.named { height: auto; min-height: 20px; padding: 2px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 16px; }
.lbl.cb { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 3px, transparent 3px 7px) !important; }
.lbl.cb-yellow, .lbl.cb-sky { background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.22) 0 3px, transparent 3px 7px) !important; } .lbl.cb-orange, .lbl.cb-lime { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 3px, transparent 3px 8px) !important; }
.lbl.cb-red, .lbl.cb-pink { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.45) 0 2px, transparent 2px 5px) !important; } .lbl.cb-purple { background-image: radial-gradient(rgba(255,255,255,.55) 1.5px, transparent 2px) !important; background-size: 7px 7px !important; } .lbl.cb-black, .lbl.cb-blue { background-image: none !important; }
.card-stickers { font-size: 15px; line-height: 1.3; flex: none; max-width: 40%; text-align: right; }
.card-row { display: flex; gap: 7px; align-items: flex-start; } .card-title { flex: 1; min-width: 0; } .card.done .card-title { color: var(--text-3); }
.done-toggle { width: 17px; height: 17px; border-radius: 50%; border: 1.6px solid var(--border-strong); flex: none; margin-top: 1.5px; display: grid; place-items: center; color: #fff; background: var(--surface); }
.done-toggle:hover:not(:disabled) { border-color: var(--ok); } .card.done .done-toggle, .done-toggle.on { background: var(--ok); border-color: var(--ok); } .done-toggle.big { width: 24px; height: 24px; margin-top: 3px; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 6px; } .card-badges { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; } .card-members { display: flex; gap: 2px; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-2); border-radius: 4px; padding: 1px 4px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.badge.due.done, .badge.complete { background: var(--ok-soft); color: var(--ok); } .badge.due.overdue { background: var(--danger-soft); color: var(--danger); } .badge.due.soon { background: var(--warn-soft); color: var(--warn); }
.badge.voted { color: var(--accent); } .badge.field { background: var(--surface-2); } .badge.tplb { background: var(--surface-3); }
.card-edit, .card-arch { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); display: none; place-items: center; box-shadow: var(--shadow); }
.card-arch { right: 32px; } .card:hover .card-edit, .card:hover .card-arch { display: grid; } .card-edit:hover, .card-arch:hover { background: var(--surface-3); color: var(--text); }
.card-ph { background: rgba(120,135,155,.28); border-radius: 8px; margin-bottom: 8px; } .list-ph { flex: none; background: rgba(0,0,0,.25); border-radius: 12px; }
.ghost { position: fixed !important; z-index: 1000; pointer-events: none; transform: rotate(2.5deg); box-shadow: var(--shadow-lg) !important; margin: 0 !important; opacity: .96; max-height: 70vh; overflow: hidden; }
.drag-src { display: none !important; } body.dragging, body.dragging * { cursor: grabbing !important; -webkit-user-select: none !important; user-select: none !important; }
.sel-bar { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px 12px; display: flex; gap: 8px; align-items: center; z-index: 30; flex-wrap: wrap; max-width: calc(100% - 24px); }
.switcher { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; overflow-x: auto; background: var(--surface); border-radius: 12px; padding: 4px; box-shadow: var(--shadow-lg); z-index: 25; max-width: calc(100% - 16px); }
.sw-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; white-space: nowrap; } .sw-btn:hover { background: var(--surface-2); color: var(--text); }
.sw-btn.on { background: var(--accent-soft); color: var(--accent); } .sw-sep { width: 1px; background: var(--border); margin: 4px 3px; }
.panel { flex: 0 0 300px; background: var(--list-bg); display: flex; flex-direction: column; border-right: 1px solid var(--border); min-height: 0; padding-bottom: 56px; }
.planner-panel { flex-basis: 320px; } .panel-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 4px 12px; } .panel-head h3 { flex: 1; }
.panel-hint { font-size: 12px; color: var(--text-3); padding: 0 12px 6px; } .panel .cards { padding-top: 2px; }
.planner-nav { display: flex; align-items: center; gap: 4px; padding: 0 8px 6px; } .planner-title { font-weight: 600; margin-left: 6px; font-size: 13px; }
.planner-body { flex: 1; overflow: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.plan-day { background: var(--surface); border-radius: 8px; padding: 6px 8px; border: 2px solid transparent; display: flex; flex-direction: column; gap: 3px; } .plan-day.today { border-color: var(--accent); }
.plan-day-head { font-size: 12px; font-weight: 700; color: var(--text-2); } .plan-empty { color: var(--text-3); font-size: 12px; }
.plan-item { display: flex; gap: 8px; text-align: left; padding: 3px 6px; border-radius: 5px; background: var(--surface-2); width: 100%; } .plan-item:hover { background: var(--surface-3); }
.plan-item.overdue { box-shadow: inset 3px 0 0 var(--danger); } .plan-item.done { color: var(--text-3); text-decoration: line-through; } .plan-time { color: var(--text-3); font-size: 12px; flex: none; } .plan-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; } .mini-grid.head span { text-align: center; font-size: 11px; color: var(--text-3); font-weight: 700; }
.mini-day { aspect-ratio: 1; border-radius: 6px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; border: 2px solid transparent; }
.mini-day.other { color: var(--text-3); background: transparent; } .mini-day.today { border-color: var(--accent); font-weight: 700; } .mini-day i { font-style: normal; font-size: 10px; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 0 5px; }
.drop-hi { outline: 3px solid var(--accent) !important; outline-offset: -2px; }

/* Kartendialog */
.modal.card-modal { width: min(1080px, 100%); position: relative; } .card-modal .modal-body { padding: 0; } .card-modal.dropping { outline: 4px dashed var(--accent); outline-offset: -8px; }
.cd-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px 8px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; } .cd-head .chip-light { background: var(--surface-3); color: var(--text-2); }
.cd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 390px; min-height: 420px; }
.cd-main { padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; } .cd-side { padding: 18px 16px 24px; background: var(--surface-2); border-radius: 0 0 12px 0; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cd-cover { height: 120px; margin: -18px -20px 0; background-size: cover; background-position: center; background-color: var(--surface-3); }
.cd-titlerow { display: flex; gap: 10px; align-items: flex-start; } .cd-title { font-size: 21px; flex: 1; min-width: 0; padding: 0 4px; border-radius: 6px; cursor: text; overflow-wrap: anywhere; } .cd-title:hover { background: var(--surface-2); }
.cd-addrow { display: flex; gap: 6px; flex-wrap: wrap; } .cd-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.round-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); } .round-btn.sq { border-radius: 5px; height: 24px; width: 30px; } .round-btn:hover { background: var(--surface-3); }
.date-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--surface-2); font-weight: 500; flex-wrap: wrap; } .date-btn:hover:not(:disabled) { background: var(--surface-3); } .date-btn.stick { font-size: 18px; } .date-btn .pill { margin-left: 0; }
.cd-sec { display: flex; flex-direction: column; gap: 8px; } .sec-head { display: flex; align-items: center; gap: 8px; } .sec-head h3 { flex: 1; font-size: 15px; min-width: 0; } .sec-head > .ico { color: var(--text-2); }
.placeholder-btn { background: var(--surface-2); border-radius: 8px; padding: 14px; text-align: left; color: var(--text-2); width: 100%; } .placeholder-btn:hover { background: var(--surface-3); }
.md { overflow-wrap: anywhere; line-height: 1.55; } .md > * + * { margin-top: .6em; } .md p { margin: 0; } .md h1 { font-size: 19px; } .md h2 { font-size: 17px; } .md h3 { font-size: 15px; } .md h4, .md h5, .md h6 { font-size: 14px; color: var(--text); }
.md ul, .md ol { margin: 0; padding-left: 22px; } .md blockquote { margin: 0; border-left: 3px solid var(--border-strong); padding: 2px 12px; color: var(--text-2); } .md hr { border: 0; border-top: 1px solid var(--border); }
.md code { background: var(--surface-3); border-radius: 4px; padding: 1px 5px; } .md pre { background: var(--surface-3); border-radius: 6px; padding: 10px; overflow: auto; } .md pre code { background: none; padding: 0; } .md img { max-width: 100%; border-radius: 6px; }
.md.desc.clickable { cursor: text; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; } .md.desc.clickable:hover { background: var(--surface-2); } .mention { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 3px; font-weight: 600; } .mdbox { font-size: 15px; }
.md-editor { border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); padding: 6px; } .md-editor:focus-within { border-color: var(--accent); }
.md-bar { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 6px; } .md-bar select { margin-right: 4px; }
.tb-btn { min-width: 26px; height: 26px; padding: 0 5px; border-radius: 5px; color: var(--text-2); display: inline-grid; place-items: center; font-size: 12.5px; } .tb-btn:hover { background: var(--surface-2); color: var(--text); }
.draft-note { font-size: 12px; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 4px 8px; }
.md-thumbs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 6px; } .md-thumb { width: 72px; height: 54px; border-radius: 5px; background: var(--surface-3) center/cover; border: 1px solid var(--border); }
.md-editor.busy { opacity: .7; } .md-editor.busy::after { content: 'Datei wird hochgeladen …'; display: block; font-size: 12px; color: var(--text-3); padding: 2px 6px; }
.md img { cursor: zoom-in; max-height: 420px; }
.md-input { border: 0 !important; outline: 0 !important; padding: 4px 6px; background: transparent; } .md-preview { padding: 4px 6px; min-height: 60px; }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; } .fields-grid select.input { width: 100%; }
.att-list { display: flex; flex-direction: column; gap: 8px; } .att { display: flex; gap: 12px; align-items: center; }
.att-thumb { width: 84px; height: 60px; border-radius: 6px; background: var(--surface-3) center/cover; display: grid; place-items: center; color: var(--text-2); font-weight: 700; font-size: 12px; flex: none; text-decoration: none !important; }
.att-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .att-name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; } .att-info .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-actions { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; } .att-actions button, .att-actions a { color: var(--text-2); text-decoration: underline; } .att-actions button:hover, .att-actions a:hover { color: var(--text); }
.progress { display: flex; align-items: center; gap: 8px; } .pct { font-size: 11.5px; color: var(--text-3); width: 38px; } .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .2s; } .bar i.full { background: var(--ok); }
.items { display: flex; flex-direction: column; } .item { display: flex; align-items: center; gap: 8px; padding: 2px 6px; border-radius: 6px; min-height: 36px; } .item:hover { background: var(--surface-2); }
.item-text { flex: 1; min-width: 0; cursor: text; overflow-wrap: anywhere; } .item.done .item-text { text-decoration: line-through; color: var(--text-3); } .item-actions { display: flex; visibility: hidden; } .item:hover .item-actions, .item:focus-within .item-actions { visibility: visible; }
@media (hover: none) { .item-actions { visibility: visible; } .card-edit { display: grid; opacity: .7; } }
.feed { display: flex; flex-direction: column; gap: 12px; } .feed-act { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; text-align: left; } .feed-act > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; } .feed-act.clickable { cursor: pointer; border-radius: 6px; } .feed-act.clickable:hover { background: var(--surface-2); }
.comment { display: flex; gap: 8px; align-items: flex-start; } .comment-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .comment-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment-body { background: var(--surface); border-radius: 8px; padding: 8px 10px; box-shadow: var(--shadow); } .comment-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .comment-foot .link-btn { color: var(--text-2); }
.react { border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 7px; font-size: 12.5px; background: var(--surface); } .react.on { border-color: var(--accent); background: var(--accent-soft); }

/* Ansichten */
.view { height: 100%; display: flex; flex-direction: column; background: var(--bg); } .view-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.view-body { flex: 1; overflow: auto; padding: 14px 16px 76px; } .cal-title { min-width: 130px; text-align: center; }
.title-cell { font-weight: 500; min-width: 220px; cursor: pointer; } .tbl tr.done .title-cell { color: var(--text-3); } .tbl tbody tr:hover td { background: var(--surface-2); }
.done-dot { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--border-strong); margin-right: 8px; vertical-align: -2px; color: #fff; } .done-dot.on { background: var(--ok); border-color: var(--ok); }
.cell-btn { display: flex; gap: 4px; flex-wrap: wrap; min-height: 24px; min-width: 60px; cursor: pointer; border-radius: 5px; align-items: center; padding: 1px 3px; } .cell-btn:hover { background: var(--surface-3); }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; } .cal-head span { font-size: 12px; font-weight: 700; color: var(--text-2); padding: 0 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .cal-day { background: var(--surface); border-radius: 8px; min-height: 108px; padding: 4px 5px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.other { background: transparent; } .cal-day.other .cal-num span { color: var(--text-3); } .cal-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-num { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; height: 22px; } .cal-day.today .cal-num span { background: var(--accent); color: var(--on-accent); border-radius: 10px; padding: 0 7px; }
.cal-add { width: 20px; height: 20px; opacity: 0; } .cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.card.mini { padding: 2px 6px; margin: 0; font-size: 12px; box-shadow: none; background: var(--surface-2); border-left: 3px solid var(--border-strong); border-radius: 4px; } .card.mini .card-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.mini.overdue, .tl-bar.overdue { border-left-color: var(--danger); } .card.mini.soon, .tl-bar.soon { border-left-color: var(--warn); } .card.mini.done, .tl-bar.done { border-left-color: var(--ok); }
.viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.viz-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; } .viz-sub { font-size: 12px; color: var(--text-3); }
.viz-bars { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; } .viz-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 6px; } .viz-row:hover, .viz-row:focus-visible { background: var(--surface-2); }
.viz-label { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-2); font-size: 13px; } .viz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .viz-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.viz-track { display: flex; align-items: center; gap: 8px; min-width: 0; } .viz-bar { display: block; height: 16px; min-width: 2px; background: var(--series-1); border-radius: 0 4px 4px 0; flex: none; max-width: calc(100% - 44px); }
.viz-val { font-size: 12.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.tl { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; } .tl-names { flex: 0 0 150px; border-right: 1px solid var(--border); background: var(--surface-2); }
.tl-corner { height: 30px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--text-3); border-bottom: 1px solid var(--border); } .tl-name { padding: 8px 10px; font-weight: 600; border-bottom: 1px solid var(--border); overflow: hidden; font-size: 13px; }
.tl-scroll { flex: 1; overflow-x: auto; } .tl-head { position: relative; height: 30px; border-bottom: 1px solid var(--border); }
.tl-day { position: absolute; top: 0; height: 30px; font-size: 11px; color: var(--text-3); display: grid; place-items: center; border-left: 1px solid var(--border); overflow: hidden; white-space: nowrap; } .tl-day.we { background: var(--surface-2); } .tl-day.today { color: var(--accent); font-weight: 700; }
.tl-row { position: relative; border-bottom: 1px solid var(--border); } .tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 1; }
.card.tl-bar { position: absolute; height: 24px; margin: 0; padding: 2px 8px; font-size: 12px; background: var(--accent-soft); border-left: 3px solid var(--accent); box-shadow: none; border-radius: 5px; z-index: 2; } .card.tl-bar .card-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-unsched { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; } .tl-unsched .chip { padding-right: 2px; } .tl-unsched .icon-btn { width: 22px; height: 22px; }
.map { position: relative; height: min(62vh, 640px); border-radius: 10px; overflow: hidden; background: #cfd8dc; border: 1px solid var(--border); cursor: grab; touch-action: none; } .map-layer { position: absolute; inset: 0; }
.map-tile { position: absolute; width: 256px; height: 256px; -webkit-user-select: none; user-select: none; pointer-events: none; } .map { -webkit-user-select: none; user-select: none; }
.map-pin { position: absolute; transform: translate(-50%, -100%); color: #c0392f; display: flex; flex-direction: column; align-items: center; z-index: 2; } .map-pin .ico { fill: #e45a4f; stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); order: 2; }
.map-pin span { background: #fff; color: #18212d; font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.35); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; order: 1; } .map-pin.done .ico { fill: #2f9e63; }
.map-ctl { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 3; } .map-ctl .btn { width: 32px; padding: 0; background: #fff; color: #18212d; border-color: #b9c2ce; }
.map-attr { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); color: #18212d; font-size: 11px; padding: 1px 6px; z-index: 3; } .map-attr a { color: #1b6fb8; }

/* Board-Menü & Automatisierung */
.drawer { position: fixed; top: 48px; right: 0; bottom: 0; width: min(360px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 100; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); } .drawer-head h2 { flex: 1; text-align: center; font-size: 15px; } .drawer-body { flex: 1; overflow: auto; padding: 6px; }
.arch-row { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--border); } .arch-row input { margin-top: 10px; } .arch-card { display: block; width: 100%; text-align: left; } .arch-card .card { margin-bottom: 4px; box-shadow: none; border: 1px solid var(--border); } .arch-card .card-edit, .arch-card .card-arch { display: none !important; }
.auto { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; } .auto-nav { display: flex; flex-direction: column; gap: 2px; } .auto-content { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; } .auto-content > .stack { width: 100%; }
.auto-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; } .auto-item.off { opacity: .6; }
.auto-action { display: flex; gap: 8px; align-items: flex-start; background: var(--surface-2); border-radius: 8px; padding: 8px; } .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; flex: none; margin-top: 4px; }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; } .keys h3 { margin-bottom: 8px; } .key-row { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; } .key-row kbd { flex: none; }

/* Schmale Bildschirme */
@media (max-width: 860px) {
  .hide-sm { display: none !important; } .home { grid-template-columns: 1fr; gap: 12px; padding: 14px 12px 60px; } .home-side { position: static; flex-direction: row; flex-wrap: wrap; } .home-side .side-link { width: auto; } .side-head { width: 100%; }
  .cd-cols { grid-template-columns: 1fr; } .cd-side { border-left: 0; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; } .overlay { padding: 12px 8px; }
  .search-page { flex-direction: column; } .search-side { width: 100%; } .auto { grid-template-columns: 1fr; } .auto-nav { flex-direction: row; flex-wrap: wrap; } .auto-nav .menu-item { width: auto; }
  .board-body { overflow-x: auto; scroll-snap-type: x proximity; } .panel { flex: 0 0 min(320px, 88vw); scroll-snap-align: start; } .board-main { flex: 0 0 100vw; scroll-snap-align: start; }
  .sw-btn { padding: 6px 8px; font-size: 12.5px; } .sw-btn .sw-wide { display: none; } .board-name { max-width: 60vw; }
  .list, .add-list { flex-basis: min(284px, 84vw); } .bg-grid { grid-template-columns: repeat(4, 1fr); } .cal-day { min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Drucken: Board bzw. geöffnete Karte */
@media print {
  html, body { height: auto !important; } .list-head .icon-btn, .pop, .tip, .list-foot, .composer, .item-actions, .md-bar, .cd-side .sec-head .btn, .sec-head .btn, .att-actions, .sub-banner .ico:last-child, input[data-additem], input[data-addsub], .field-hint, .round-btn { display: none !important; }
  .card, .cd-sec, .comment, .att { break-inside: avoid; } .cd-side { background: none !important; border: 0 !important; } .card-modal .cd-cover { print-color-adjust: exact; -webkit-print-color-adjust: exact; } .lbl, .badge, .pill, .sub-parent, .done-toggle { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body { overflow: visible; background: #fff; } #app, #main, .board-page, .board-body, .board-main, .canvas, .view, .view-body { height: auto !important; overflow: visible !important; display: block; }
  .topbar, .switcher, .drawer, .toasts, .panel, .bh-right, .list-foot, .add-list, .card-edit, .card-arch, .sel-bar, .offline { display: none !important; }
  .board-page { background: #fff !important; } .board-head { background: none; color: #000; } .canvas { display: flex !important; flex-wrap: wrap; padding: 0; } .list { max-height: none; break-inside: avoid; box-shadow: none; border: 1px solid #ccc; } .cards { overflow: visible; }
  body:has(.overlay) #app { display: none; } .overlay { position: static; background: none; padding: 0; display: block; } .modal { box-shadow: none; width: 100% !important; } .cd-cols { display: block; } .cd-head .icon-btn, .cd-addrow, .md-editor, .comment-editor { display: none !important; }
}
