/* Abhaken – Oberflaeche wie Microsoft To Do, eigene Hausfarbe Indigo (#4f46e5). Farben ueber CSS-Variablen, Dunkelmodus per .dark */
:root {
  --brand: #4f46e5; --brand-dark: #4338ca;
  --surface: #faf9f8; --sidebar: #ffffff; --card: #ffffff; --card-hover: #f5f5f5; --detail: #faf9f8;
  --text: #323130; --text-2: #605e5c; --text-3: #8a8886; --line: #edebe9; --hover: #f3f2f1; --active: #eef0fd;
  --danger: #a4262c; --overdue: #a4262c; --today: #4f46e5;
  --shadow: 0 .3px .9px rgba(0,0,0,.1), 0 1.6px 3.6px rgba(0,0,0,.12);
  --shadow-lg: 0 6.4px 14.4px rgba(0,0,0,.13), 0 1.2px 3.6px rgba(0,0,0,.11);
  --accent: #4f46e5; --title: #4f46e5;
  color-scheme: light;
}
.dark {
  --surface: #11100f; --sidebar: #1b1a19; --card: #252423; --card-hover: #2d2c2b; --detail: #1b1a19;
  --text: #f3f2f1; --text-2: #c8c6c4; --text-3: #979593; --line: #323130; --hover: #2d2c2b; --active: #2a2950;
  --danger: #f1707b; --overdue: #f1707b; --today: #a5b4fc;
  --shadow: 0 .3px .9px rgba(0,0,0,.4), 0 1.6px 3.6px rgba(0,0,0,.4);
  --shadow-lg: 0 6.4px 14.4px rgba(0,0,0,.5), 0 1.2px 3.6px rgba(0,0,0,.4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { font: 14px/1.4 "Segoe UI", "Segoe UI Web (West European)", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif; color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea { outline: none; }
a { color: var(--brand); }
.ic { flex: none; display: block; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }

/* ---------- Grundgeruest */
.shell { display: flex; flex-direction: column; height: 100%; }
.topbar { height: 48px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; background: var(--brand); color: #fff; z-index: 30; }
.dark .topbar { background: #312e81; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; min-width: 200px; }
.brand img { border-radius: 5px; background: #fff; }
.search { flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; border-radius: 4px; background: rgba(255,255,255,.85); color: #323130; }
.search:focus-within { background: #fff; }
.search input { flex: 1; border: 0; background: none; min-width: 0; color: #323130; }
.top-actions { min-width: 200px; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.topbar .icon-btn { color: #fff; }
.topbar .icon-btn:hover { background: rgba(255,255,255,.15); }
.sync-state { opacity: .8; padding: 0 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 600; font-size: 13px; display: grid; place-items: center; margin-left: 6px; }
.avatar.small { width: 32px; height: 32px; background: var(--brand); color: #fff; flex: none; }
.mini-avatar { width: 20px; height: 20px; border-radius: 50%; background: #c7e0f4; color: #004578; font-size: 10px; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.body { flex: 1; display: flex; min-height: 0; position: relative; }

.icon-btn { width: 32px; height: 32px; border-radius: 4px; display: inline-grid; place-items: center; color: var(--text-2); flex: none; }
.icon-btn:hover { background: var(--hover); }
.icon-btn.small { width: 24px; height: 24px; }

/* ---------- Seitenleiste */
.sidebar { width: 290px; flex: none; background: var(--sidebar); display: flex; flex-direction: column; border-right: 1px solid var(--line); margin-left: -290px; transition: margin .2s; z-index: 20; }
.sidebar.open { margin-left: 0; }
.sb-head { height: 48px; display: flex; align-items: center; padding: 0 12px; flex: none; }
.sb-scroll { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.sb-item { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px 0 24px; color: var(--text); text-decoration: none; cursor: pointer; user-select: none; position: relative; }
.sb-item:hover { background: var(--hover); }
.sb-item.active { background: var(--active); font-weight: 600; }
.sb-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--brand); }
.sb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-count { font-size: 12px; color: var(--text-2); min-width: 20px; text-align: center; background: var(--hover); border-radius: 10px; padding: 0 6px; line-height: 20px; }
.sb-item.active .sb-count { background: var(--card); }
.sb-emoji { width: 20px; text-align: center; font-size: 16px; }
.sb-sep { height: 1px; background: var(--line); margin: 8px 16px; }
.sb-group-head { color: var(--text); }
.sb-group-head .ic:first-child { color: var(--text-2); }
.sb-group-rename { flex: 1; border: 1px solid var(--brand); border-radius: 3px; padding: 3px 6px; background: var(--card); min-width: 0; }
.sb-sub { padding-left: 44px; }
.sb-empty { padding: 6px 16px 10px 58px; font-size: 12px; color: var(--text-3); }
.sb-dropend { min-height: 40px; }
.sb-bottom { flex: none; display: flex; align-items: center; gap: 4px; padding: 4px 12px 4px 8px; border-top: 1px solid var(--line); height: 48px; }
.sb-new { flex: 1; display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px 0 16px; color: var(--brand); border-radius: 4px; }
.sb-new:hover { background: var(--hover); }
.sb-scrim { display: none; }

/* ---------- Hauptbereich */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
.main-head { padding: 16px 24px 4px; flex: none; }
.title-row { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.title { font-size: 20px; font-weight: 600; margin: 0; color: var(--title); cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 4px; border-radius: 4px; }
.title-input { font-size: 20px; font-weight: 600; color: var(--title); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; background: var(--card); min-width: 200px; }
.title-emoji { font-size: 24px; cursor: pointer; }
.title-more, .head-menu { color: var(--title); }
.main.solid .title, .main.solid .title-more, .main.solid .head-menu, .main.solid .subtitle { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.main.solid .icon-btn:hover { background: rgba(255,255,255,.18); }
.subtitle { font-size: 12px; color: var(--text-2); padding: 0 4px; margin-top: -2px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 4px; color: var(--title); }
.tool:hover, .tool.active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.main.solid .tool { color: #fff; }
.main.solid .tool:hover, .main.solid .tool.active { background: rgba(255,255,255,.18); }
.members { display: inline-flex; gap: 2px; cursor: pointer; padding: 0 4px; }
.sort-chip { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 4px; font-size: 12px; color: var(--title); }
.main.solid .sort-chip { color: #fff; }
.chip-btn { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 3px; }
.chip-btn:hover { background: rgba(127,127,127,.18); }

.addbar { margin: 10px 24px 6px; background: var(--card); border-radius: 4px; box-shadow: var(--shadow); flex: none; }
.add-row { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; }
.add-icon { color: var(--accent); }
.add-input { flex: 1; border: 0; background: none; height: 100%; }
.add-input::placeholder { color: var(--accent); }
.addbar.focused .add-input::placeholder { color: var(--text-3); }
.add-tools { display: flex; align-items: center; gap: 2px; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--detail); border-radius: 0 0 4px 4px; }
.add-tools .icon-btn { width: auto; min-width: 32px; padding: 0 6px; gap: 6px; display: inline-flex; align-items: center; }
.add-tools .icon-btn.set { color: var(--brand); }
.set-label { font-size: 12px; }
.btn-add { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: var(--brand); font-size: 12px; }
.btn-add:disabled { color: var(--text-3); cursor: default; }

.tasks-scroll { flex: 1; overflow-y: auto; padding: 4px 24px 40px; }
.task-list { display: flex; flex-direction: column; gap: 2px; }
.task { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px 8px 16px; background: var(--card); border-radius: 4px; box-shadow: var(--shadow); cursor: pointer; user-select: none; }
.task:hover { background: var(--card-hover); }
.task.selected { background: var(--active); }
.dark .task.selected { background: #2c3443; }
.task-body { flex: 1; min-width: 0; }
.task-title { overflow-wrap: anywhere; }
.task.done .task-title { text-decoration: line-through; color: var(--text-2); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-2); margin-top: 1px; }
.meta { display: inline-flex; align-items: center; gap: 4px; }
.meta + .meta::before { content: '•'; margin: 0 6px; color: var(--text-3); }
.meta.overdue { color: var(--overdue); }
.meta.today { color: var(--today); }
.meta-emoji { font-size: 11px; }
.meta-repeat { margin-left: 2px; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cat-dot.big { width: 12px; height: 12px; }

/* Kreis-Haken */
.chk { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.chk-ring { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; color: transparent; transition: background .15s; }
.chk:hover .chk-ring { color: var(--accent); }
.task.done .chk-ring, .chk.on .chk-ring { background: var(--accent); color: #fff; }
.chk.small .chk-ring { width: 16px; height: 16px; }
.star { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); flex: none; border-radius: 4px; }
.star:hover { background: var(--hover); }

.section { margin-top: 6px; }
.section-head { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px; margin-top: 8px; font-weight: 600; color: var(--title); border-radius: 4px; }
.section-head:hover { background: rgba(127,127,127,.1); }
.main.solid .section-head { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.section-count { font-weight: 400; opacity: .8; }

.empty { text-align: center; color: var(--text-2); max-width: 340px; margin: 60px auto 0; }
.main.solid .empty { color: #fff; }
.empty-art { display: grid; place-items: center; color: var(--accent); opacity: .7; margin-bottom: 12px; }
.main.solid .empty-art { color: #fff; }
.empty h2 { font-size: 16px; color: var(--text); margin: 0 0 6px; }
.main.solid .empty h2 { color: #fff; }
.empty.small { margin-top: 30px; }

.row-move, .row-enter-active, .row-leave-active { transition: all .25s ease; }
.row-enter-from, .row-leave-to { opacity: 0; transform: translateY(-6px); }
.row-leave-active { position: absolute; width: calc(100% - 48px); }

/* ---------- Detailbereich */
.detail { width: 360px; flex: none; background: var(--detail); border-left: 1px solid var(--line); display: flex; flex-direction: column; z-index: 15; }
.detail-scroll { flex: 1; overflow-y: auto; padding: 8px 8px 16px; }
.card { background: var(--card); border-radius: 4px; box-shadow: var(--shadow); margin: 8px; overflow: hidden; }
.d-title-row { display: flex; align-items: flex-start; gap: 10px; padding: 14px 8px 8px 16px; }
.d-title-row .chk { margin-top: 3px; }
.d-title { flex: 1; resize: none; border: 0; background: none; font-size: 17px; font-weight: 600; line-height: 1.35; overflow: hidden; padding: 2px 0; }
.d-title.done { text-decoration: line-through; color: var(--text-2); }
.steps { padding: 0 8px 6px 16px; }
.step { display: flex; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line); }
.step-title { flex: 1; border: 0; background: none; min-width: 0; padding: 6px 0; }
.step-title.done { text-decoration: line-through; color: var(--text-2); }
.step .icon-btn { opacity: 0; }
.step:hover .icon-btn { opacity: 1; }
.step-add { border-bottom: 0; color: var(--brand); padding-left: 1px; }
.step-add input { flex: 1; border: 0; background: none; padding: 8px 0 8px 1px; }
.step-add input::placeholder { color: var(--brand); }
.d-row { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 8px 12px 8px 16px; color: var(--text-2); cursor: pointer; }
.d-row + .d-row { border-top: 1px solid var(--line); }
.d-row:hover { background: var(--card-hover); }
.d-row.set { color: var(--brand); }
.d-row.overdue { color: var(--overdue); }
.d-label { flex: 1; display: flex; flex-direction: column; }
.d-label small { font-size: 12px; color: var(--text-2); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.file:hover { background: var(--card-hover); }
.file-ext { width: 40px; height: 40px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-info b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info small { color: var(--text-2); font-size: 12px; }
.d-note { width: 100%; min-height: 90px; border: 0; background: none; resize: none; padding: 14px 16px; overflow: hidden; }
.d-foot { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
.d-created { flex: 1; text-align: center; }

.sugg-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 20px; }
.sugg-head h2 { font-size: 18px; margin: 0; }
.sugg-sec h3 { font-size: 13px; color: var(--text-2); margin: 16px 12px 6px; font-weight: 600; }
.sugg { display: flex; align-items: center; gap: 8px; background: var(--card); box-shadow: var(--shadow); border-radius: 4px; margin: 0 8px 2px; padding: 8px 8px 8px 14px; }
.sugg-body { flex: 1; min-width: 0; }

/* Einstellungen */
.set-sec { background: var(--card); box-shadow: var(--shadow); border-radius: 4px; margin: 8px; padding: 6px 16px 10px; }
.set-sec h3 { font-size: 14px; margin: 10px 0 6px; }
.toggle-row, .radio-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; cursor: pointer; }
.radio-row { justify-content: flex-start; }
.radio-row input { accent-color: var(--brand); }
.toggle { width: 40px; height: 20px; border-radius: 10px; border: 1px solid var(--text-2); position: relative; flex: none; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: left .15s; }
.toggle.on { background: var(--brand); border-color: var(--brand); }
.toggle.on span { left: 23px; background: #fff; }
.set-hint { font-size: 12px; color: var(--text-2); margin: 6px 0; }
.set-hint.center { text-align: center; margin: 16px 0; }

/* ---------- Buttons, Formulare */
.btn-primary, .btn-secondary, .btn-danger { height: 32px; padding: 0 16px; border-radius: 4px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-secondary { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.btn-secondary:hover { background: var(--hover); }
.btn-secondary.danger { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }
.dark .btn-danger { color: #11100f; }
.block { width: 100%; margin: 6px 0; }
.form-error { color: var(--danger); font-size: 13px; margin: 6px 0; }

/* ---------- Menues */
.menu-backdrop { position: fixed; inset: 0; z-index: 100; }
.menu { position: fixed; z-index: 101; min-width: 260px; max-width: 340px; max-height: calc(100vh - 16px); overflow-y: auto; background: var(--card); border-radius: 4px; box-shadow: var(--shadow-lg); padding: 4px 0; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 14px; text-align: left; }
.menu-item:hover { background: var(--hover); }
.menu-item.danger { color: var(--danger); }
.menu-ic { width: 20px; display: grid; place-items: center; color: var(--text-2); }
.menu-item.danger .menu-ic { color: var(--danger); }
.menu-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-hint { color: var(--text-3); font-size: 12px; }
.menu-check { color: var(--brand); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-header { padding: 8px 14px 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ---------- Dialoge */
.dialog-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.4); display: grid; place-items: center; padding: 16px; }
.dialog { background: var(--card); border-radius: 6px; box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; padding: 20px 24px; max-height: calc(100vh - 32px); overflow-y: auto; outline: none; }
.dlg-date, .dlg-datetime { max-width: 320px; }
.dialog h2 { font-size: 18px; margin: 0 0 14px; }
.dlg-text { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.dlg-sub { color: var(--text-2); margin: 0 0 12px; }
.dlg-h3 { font-size: 13px; color: var(--text-2); margin: 16px 0 8px; }
.dlg-list-name { font-size: 15px; font-weight: 600; margin: -6px 0 12px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dlg-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.dlg-field input { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: var(--card); }
.repeat-row { display: flex; gap: 8px; }
.repeat-row input, .repeat-row select { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: var(--card); }
.repeat-row input { width: 80px; }
.repeat-row select { flex: 1; }
.dlg-days { display: flex; gap: 6px; margin-top: 14px; }
.dlg-days button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; }
.dlg-days button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cal-head { display: flex; align-items: center; font-weight: 600; margin-bottom: 8px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-wd { font-size: 11px; color: var(--text-2); padding: 4px 0; }
.cal-day { height: 34px; border-radius: 50%; }
.cal-day:hover { background: var(--hover); }
.cal-day.other { color: var(--text-3); }
.cal-day.today { color: var(--brand); font-weight: 700; }
.cal-day.sel { background: var(--brand); color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.swatch { aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center; border: 1px solid var(--line); }
.swatch.sel { outline: 2px solid var(--text); outline-offset: 2px; }
.emojis { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.emojis button { font-size: 20px; height: 36px; border-radius: 4px; }
.emojis button:hover { background: var(--hover); }
.member { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.member-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.member-info small { color: var(--text-2); font-size: 12px; }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: var(--detail); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: #323130; color: #fff; padding: 10px 10px 10px 16px; border-radius: 4px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); }
.toast .icon-btn { color: #fff; }
.toast-enter-active, .toast-leave-active { transition: all .2s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translate(-50%, 10px); }

/* ---------- Anmeldung, Einladung, Start */
.login, .splash { min-height: 100%; overflow-y: auto; display: grid; place-items: center; background: linear-gradient(160deg, #4f46e5, #312e81); padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--card); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.login-card .logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.login-card h1 { font-size: 20px; margin: 0 0 6px; }
.login-card input { height: 40px; border: 0; border-bottom: 1px solid var(--text-2); padding: 0 2px; background: none; }
.login-card input:focus { border-bottom: 2px solid var(--brand); }
.login-card .btn-primary { height: 40px; margin-top: 8px; }
.login-switch { font-size: 13px; color: var(--text-2); margin: 4px 0 0; }
.login-intro { margin: -4px 0 6px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.login-note { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.login-legal { font-size: 12px; text-align: center; margin: 8px 0 0; color: var(--text-3); }
.login-legal a { color: var(--text-2); }
.btn-social { height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; font-weight: 600; background: var(--card); }
.btn-social:hover { background: var(--hover); }
.btn-social span { display: grid; }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; margin: 4px 0; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.linked-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.set-input { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: var(--card); margin: 4px 0; }
.invite { display: grid; place-items: center; }
.invite-card { background: var(--card); box-shadow: var(--shadow-lg); border-radius: 8px; padding: 32px; max-width: 420px; text-align: center; }
.invite-icon { font-size: 48px; }
.invite-card .dlg-actions { justify-content: center; }

/* ---------- Schmal (Tablet/Handy) */
@media (max-width: 900px) {
  .sidebar { position: absolute; top: 0; bottom: 0; left: 0; box-shadow: var(--shadow-lg); }
  .sb-open .sb-scrim { display: block; position: absolute; inset: 0; background: rgba(0,0,0,.3); z-index: 19; }
  .detail { position: absolute; top: 0; right: 0; bottom: 0; box-shadow: var(--shadow-lg); }
  .brand { min-width: 0; } .brand span { display: none; }
  .top-actions { min-width: 0; }
}
@media (max-width: 600px) {
  .detail { width: 100%; }
  .main-head { padding: 12px 12px 4px; }
  .addbar { margin: 8px 12px; }
  .tasks-scroll { padding: 4px 12px 40px; }
  .tool span { display: none; }
  .title { font-size: 18px; }
}

/* ---------- Drucken: nur die aktuelle Liste */
@media print {
  .topbar, .sidebar, .detail, .addbar, .tool, .title-more, .head-menu, .star, .sort-chip, .sb-scrim { display: none !important; }
  body, .main { background: #fff !important; color: #000; }
  .main .title, .section-head { color: #000 !important; text-shadow: none !important; }
  .tasks-scroll { overflow: visible; }
  .task { box-shadow: none; border-bottom: 1px solid #ccc; border-radius: 0; break-inside: avoid; }
  .shell, .body { display: block; height: auto; }
}
