/* Ablage – Prototyp (Design von Kati Blum Studio übernommen). Angelehnt an die Apple Human Interface Guidelines. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-grouped: #f2f2f7;
  --card: #ffffff;
  --sidebar: rgba(236, 236, 240, 0.78);
  --label: #1d1d1f;
  --label-2: rgba(60, 60, 67, 0.62);
  --label-3: rgba(60, 60, 67, 0.36);
  --sep: rgba(60, 60, 67, 0.16);
  --fill: rgba(120, 120, 128, 0.12);
  --fill-2: rgba(120, 120, 128, 0.2);
  --blue: #007aff; --green: #34c759; --orange: #ff9500; --red: #ff3b30;
  --purple: #af52de; --pink: #ff2d55; --teal: #30b0c7; --indigo: #5856d6;
  --yellow: #ffcc00; --gray: #8e8e93;
  --accent: var(--blue);
  --main-bg: var(--bg-grouped);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --main-bg: #121214;
    --bg: #1c1c1e; --bg-grouped: #000000; --card: #1c1c1e; --sidebar: rgba(40, 40, 44, 0.78);
    --label: #f5f5f7; --label-2: rgba(235, 235, 245, 0.6); --label-3: rgba(235, 235, 245, 0.3);
    --sep: rgba(84, 84, 88, 0.55); --fill: rgba(118, 118, 128, 0.24); --fill-2: rgba(118, 118, 128, 0.36);
    --blue: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --purple: #bf5af2;
    --pink: #ff375f; --teal: #40c8e0; --indigo: #5e5ce6; --yellow: #ffd60a; --gray: #98989d;
    --shadow: 0 0 0 1px rgba(255,255,255,.06); --shadow-lg: 0 10px 40px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --main-bg: #121214;
  --bg: #1c1c1e; --bg-grouped: #000000; --card: #1c1c1e; --sidebar: rgba(40, 40, 44, 0.78);
  --label: #f5f5f7; --label-2: rgba(235, 235, 245, 0.6); --label-3: rgba(235, 235, 245, 0.3);
  --sep: rgba(84, 84, 88, 0.55); --fill: rgba(118, 118, 128, 0.24); --fill-2: rgba(118, 118, 128, 0.36);
  --blue: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --purple: #bf5af2;
  --pink: #ff375f; --teal: #40c8e0; --indigo: #5e5ce6; --yellow: #ffd60a; --gray: #98989d;
  --shadow: 0 0 0 1px rgba(255,255,255,.06); --shadow-lg: 0 10px 40px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.4; color: var(--label);
  background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a.card, a.row, a.nav-item { color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; height: 100%; }
.sidebar {
  background: var(--sidebar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid var(--sep); display: flex; flex-direction: column; overflow-y: auto; padding: 14px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.brand b { font-size: 15px; display: block; } .brand span { font-size: 11px; color: var(--label-2); }
.search { display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 8px; padding: 6px 8px; margin: 0 4px 12px; color: var(--label-2); }
.search input { border: 0; background: transparent; outline: none; width: 100%; color: var(--label); }
.nav-group { font-size: 11px; font-weight: 600; color: var(--label-2); padding: 12px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--label); cursor: pointer; user-select: none; }
.nav-item svg { color: var(--accent); }
.nav-item:hover { background: var(--fill); }
.nav-item.active { background: var(--accent); color: #fff; } .nav-item.active svg { color: #fff; }
.nav-item .badge { margin-left: auto; font-size: 12px; color: var(--label-2); }
.nav-item.active .badge { color: rgba(255,255,255,.85); }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sep); }

.main { overflow-y: auto; background: var(--main-bg); position: relative; }
.toolbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 24px;
  background: color-mix(in srgb, var(--bg-grouped) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--sep);
}
.toolbar h1 { font-size: 15px; font-weight: 600; margin: 0; }
.toolbar .spacer { flex: 1; }
.back { display: none; }
.content { padding: 24px; max-width: 1240px; margin: 0 auto; }
.large-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.subtitle { color: var(--label-2); margin: 0 0 20px; }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 6px 12px; background: var(--fill); color: var(--label); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--fill-2); }
.btn.primary { background: var(--accent); color: #fff; } .btn.primary:hover { filter: brightness(1.08); }
.btn.green { background: var(--green); color: #fff; } .btn.red { color: var(--red); }
.btn.plain { background: transparent; color: var(--accent); padding: 6px 8px; }
.btn.small { padding: 4px 9px; font-size: 13px; }
.btn.icon { padding: 6px; }
.btn:disabled { opacity: .45; cursor: default; }

.seg { display: inline-flex; background: var(--fill); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; }
.seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.14); }

.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h3 .btn { margin-left: auto; }
.stat .num { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.stat .lbl { color: var(--label-2); font-size: 13px; }
.stat .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: .02em; margin: 24px 4px 8px; }

.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 48px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--sep); }
.row.click { cursor: pointer; } .row.click:hover { background: var(--fill); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--label-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .chev { color: var(--label-3); }
.muted { color: var(--label-2); } .small { font-size: 12px; }
.empty { padding: 28px; text-align: center; color: var(--label-2); }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
  background: color-mix(in srgb, var(--c, var(--gray)) 16%, transparent); color: var(--c, var(--gray)); }
.tag.solid { background: var(--c); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--gray)); flex: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 12px; background: var(--c, var(--gray)); flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.avatars { display: flex; } .avatars .avatar { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--card); margin-left: -6px; } .avatars .avatar:first-child { margin-left: 0; }

.c-blue { --c: var(--blue); } .c-green { --c: var(--green); } .c-orange { --c: var(--orange); } .c-red { --c: var(--red); }
.c-purple { --c: var(--purple); } .c-pink { --c: var(--pink); } .c-teal { --c: var(--teal); } .c-indigo { --c: var(--indigo); }
.c-yellow { --c: #c79a00; } .c-gray { --c: var(--gray); }
.bg-blue { background: var(--blue); } .bg-green { background: var(--green); } .bg-orange { background: var(--orange); } .bg-pink { background: var(--pink); } .bg-purple { background: var(--purple); } .bg-teal { background: var(--teal); }

.textbox { background: var(--fill); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.textbox .k { font-size: 11px; font-weight: 600; color: var(--label-2); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* Formulare */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--label-2); margin-bottom: 5px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--sep); background: var(--card); border-radius: 8px; padding: 8px 10px; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
textarea.input { min-height: 90px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.toggle { appearance: none; -webkit-appearance: none; width: 42px; height: 26px; border-radius: 13px; background: var(--fill-2); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.toggle:checked { background: var(--green); } .toggle:checked::after { transform: translateX(16px); }
/* Stepper / Fortschritt */
.steps { display: flex; gap: 4px; margin: 6px 0 2px; }
.steps div { flex: 1; height: 5px; border-radius: 3px; background: var(--fill-2); }
.steps div.on { background: var(--accent); }
.steps-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--label-2); }
.bar { height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; } .bar > div { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
/* Sheet / Modal */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .18s; }
.sheet { background: var(--bg-grouped); border-radius: 14px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2,.9,.3,1); }
.sheet.wide { width: min(820px, 100%); }
.sheet-head { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--sep); gap: 8px; }
.sheet-head h2 { font-size: 15px; margin: 0; flex: 1; text-align: center; }
.sheet-body { padding: 18px; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(24px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(30,30,32,.92); color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 80; font-weight: 500; box-shadow: var(--shadow-lg); animation: up .2s; display: flex; gap: 10px; align-items: center; }
.toast button { background: none; border: 0; color: #64b5ff; font-weight: 600; cursor: pointer; }
.banner { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; background: color-mix(in srgb, var(--c, var(--blue)) 12%, transparent); }
.banner svg { color: var(--c, var(--blue)); margin-top: 1px; }
.demo-note { font-size: 11px; color: var(--purple); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters select { width: auto; padding: 5px 8px; }
.kpi-line { display: flex; gap: 16px; flex-wrap: wrap; }
.dropzone { border: 2px dashed var(--fill-2); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--label-2); cursor: pointer; background: var(--card); }
.dropzone:hover { border-color: var(--accent); color: var(--accent); }
.dropzone svg.i { width: 36px; height: 36px; color: var(--accent); }
.user-switch { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.user-switch:hover { background: var(--fill); }

/* Bearbeitbare Texte */
[data-edit][contenteditable="true"] { outline: 1.5px dashed var(--accent); outline-offset: 2px; border-radius: 4px; cursor: text; }
[data-edit][contenteditable="true"]:focus, .inline-edit:focus { outline: 2px solid var(--accent); background: var(--card); }
.inline-edit { border-radius: 6px; padding: 2px 4px; margin: 0 -4px; cursor: text; outline: none; }
.inline-edit:hover { background: var(--fill); }
.edit-bar { position: sticky; top: 52px; z-index: 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 24px; background: color-mix(in srgb, var(--accent) 14%, var(--main-bg)); color: var(--label); font-size: 13px; }
.edit-bar .btn { margin-left: auto; }

/* Tab-Leiste (iPhone) */
.tabbar { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .toolbar { padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); }
  .toolbar h1 { position: absolute; left: 50%; transform: translateX(-50%); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .back { display: inline-flex; }
  .content { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .large-title { font-size: 32px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cols-3, .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .approval { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .approval .thumb { aspect-ratio: 3/4; }
  .week { grid-template-columns: 1fr; } .day { min-height: 0; }
  .month .cell { min-height: 64px; padding: 3px; } .month .pill { font-size: 0; height: 6px; padding: 0; border-left-width: 0; background: var(--c); margin-bottom: 2px; }
  .board { grid-template-columns: repeat(4, 78vw); scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .compare, .field-row { grid-template-columns: 1fr; }
  .overlay { place-items: end center; padding: 0; }
  .sheet, .sheet.wide { width: 100%; border-radius: 14px 14px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .hide-m { display: none !important; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--sep);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--gray); position: relative; }
  .tabbar a svg.i { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--accent); }
  .tabbar .b { position: absolute; top: -2px; left: calc(50% + 6px); background: var(--red); color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px; min-width: 16px; text-align: center; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 861px) { .hide-d { display: none !important; } }
/* Wischen, Lange-Halten, Rechtsklick */
[data-ctx] { -webkit-touch-callout: none; }
@media (hover: none) { [data-ctx] { -webkit-user-select: none; user-select: none; } }
.row[data-ctx] { touch-action: pan-y; overflow: hidden; }
.row.swiping > :not(.swipe-acts) { translate: var(--dx, 0) 0; transition: none; }
.row:not(.swiping) > * { transition: translate .2s ease; }
.swipe-acts { position: absolute; top: 0; bottom: 0; display: flex; z-index: 1; overflow: hidden; }
.swipe-acts.right { right: 0; flex-direction: row; }
.swipe-acts.left { left: 0; }
.sw-btn { flex: 1; min-width: 0; border: 0; color: #fff; background: var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; cursor: pointer; overflow: hidden; white-space: nowrap; }
.sw-btn svg.i { width: 18px; height: 18px; }
.as-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.32); display: flex; align-items: flex-end; justify-content: center; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); animation: fade .15s; }
.actsheet { width: min(420px, 100%); display: grid; gap: 8px; animation: up .22s cubic-bezier(.2,.9,.3,1); }
.as-group { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 14px; overflow: hidden; }
.as-title { font-size: 13px; color: var(--label-2); text-align: center; padding: 12px 16px; border-bottom: 1px solid var(--sep); }
.as-item { width: 100%; border: 0; background: transparent; color: var(--accent); font-size: 17px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.as-item + .as-item { border-top: 1px solid var(--sep); }
.as-item.danger { color: var(--red); }
.as-cancel { justify-content: center; font-weight: 600; }
.cm-catch { position: fixed; inset: 0; z-index: 90; }
.ctxmenu { position: fixed; z-index: 91; min-width: 220px; padding: 5px; border-radius: 10px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 0 0 .5px var(--sep), 0 10px 30px rgba(0,0,0,.22); animation: fade .1s; }
.cm-item { width: 100%; border: 0; background: transparent; color: var(--label); display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; font-size: 13px; text-align: left; cursor: default; }
.cm-item svg.i { width: 15px; height: 15px; color: var(--label-2); }
.cm-item:hover, .cm-item:focus-visible { background: var(--accent); color: #fff; outline: none; } .cm-item:hover svg.i { color: #fff; }
.cm-item.danger { color: var(--red); } .cm-item.danger:hover { background: var(--red); color: #fff; }
.cm-sep { height: 1px; background: var(--sep); margin: 4px 6px; }
.toolbar .back { gap: 2px; padding-left: 0; max-width: 40%; }
.toolbar .back .back-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .toolbar .back { max-width: 32%; } }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--label); }
.steps-list li::marker { color: var(--accent); font-weight: 600; }

/* Comic-Avatare */
.avatar.avimg { background: none; padding: 0; overflow: hidden; }
.avatar.avimg svg { width: 100%; height: 100%; display: block; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; }
.av-opt { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; aspect-ratio: 1; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s; }
.av-opt svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.av-opt:hover { transform: scale(1.05); }
.av-opt.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); }
.av-ini { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--fill-2); color: var(--label-2); font-weight: 600; }
.help-btn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 2px; margin-left: 8px; vertical-align: middle; display: inline-grid; place-items: center; border-radius: 50%; opacity: .85; }
.help-btn:hover { opacity: 1; background: var(--fill); }
.large-title .help-btn svg.i { width: 22px; height: 22px; }
.section-title .help-btn { margin-left: 4px; padding: 1px; } .section-title .help-btn svg.i { width: 15px; height: 15px; }
.help-steps { gap: 10px; font-size: 15px; line-height: 1.45; }
.toolbar h1 .help-btn { margin-left: 4px; } .toolbar h1 .help-btn svg.i { width: 17px; height: 17px; }

/* Archiv-Import */
.arch-steps { display: flex; gap: 6px; margin: 0 0 14px; }
.as-step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--fill); color: var(--label-2); font-size: 13px; font-weight: 500; min-width: 0; }
.as-step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); font-size: 12px; font-weight: 700; flex: none; }
.as-step .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-step.cur { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--label); } .as-step.cur .n { background: var(--accent); color: #fff; }
.as-step.done .n { background: var(--green); color: #fff; }
@media (max-width: 860px) { .as-step .l { display: none; } .as-step.cur .l { display: inline; } .as-step:not(.cur) { flex: none; } }
.arch-guide { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 16px; }
.arch-guide summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.arch-guide summary::-webkit-details-marker { display: none; }
.arch-guide summary::after { content: '›'; margin-left: auto; color: var(--label-3); font-size: 20px; transition: transform .2s; }
.arch-guide[open] summary::after { transform: rotate(90deg); }
.arch-guide ol { margin-top: 12px; }
.arch-sum { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.arch-opts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.arch-date { width: 44px; flex: none; text-align: center; line-height: 1.1; }
.arch-date b { display: block; font-size: 20px; } .arch-date span { font-size: 11px; color: var(--label-2); text-transform: uppercase; }
.inline-input { width: 100%; border: 0; background: transparent; font: inherit; font-weight: 500; color: var(--label); padding: 2px 4px; margin: -2px -4px; border-radius: 6px; }
.inline-input:hover { background: var(--fill); } .inline-input:focus { outline: none; background: var(--fill); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.row.arch-off > :not(.toggle) { opacity: .4; }
.arch-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.arch-done { display: flex; gap: 14px; align-items: center; }
.arch-check { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; } .arch-check svg.i { width: 24px; height: 24px; }
.tchip { cursor: pointer; } .tchip input { display: none; }
.tchip span { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: var(--fill); color: var(--label-2); }
.tchip input:checked + span { background: var(--indigo); color: #fff; }

@media (max-width: 860px) { .list .row .t { white-space: normal; } }
/* Mobile Ansicht fixieren: kein Verschieben, kein Zoomen, kein Gummiband */
html, body { overflow: hidden; overscroll-behavior: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
.main { overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.grid > *, .row .grow { min-width: 0; }
@media (max-width: 860px) {
  .input, select.input, textarea.input, input, select, textarea { font-size: 16px; } /* verhindert Auto-Zoom von iOS beim Tippen */
  .app { height: 100dvh; }
}
#root { height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: none; }

/* ---------- Ablage: eigene Bausteine im selben Stil ---------- */
.kico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c, var(--gray)) 16%, transparent); color: var(--c, var(--gray)); }
.row .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 0; cursor: pointer; font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 99px; background: var(--fill); color: var(--label); white-space: nowrap; }
.chip.on { background: var(--accent); color: #fff; }
.paper { background: #fff; color: #333; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2); aspect-ratio: 1 / 1.414; padding: 9% 10%; font-size: 10px; line-height: 1.5; overflow: hidden; position: relative; }
.paper.card-id { aspect-ratio: 1.586; padding: 6%; background: linear-gradient(135deg, #e9eef6, #cfd9e8); }
.paper .ph { height: 6px; border-radius: 3px; background: #e3e3e8; margin: 6px 0; }
.paper .ph.s { width: 40%; } .paper .ph.m { width: 70%; }
.paper .hd { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; margin-bottom: 14px; color: #111; }
.paper .sum { margin-top: 14px; border-top: 1px solid #ddd; padding-top: 6px; display: flex; justify-content: space-between; font-weight: 700; color: #111; }
.paper .stamp { position: absolute; right: 8%; bottom: 8%; transform: rotate(-8deg); border: 2px solid var(--green); color: var(--green); font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 6px; }
.doc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.kv { display: flex; justify-content: space-between; gap: 12px; }
.kv .k { color: var(--label-2); flex: none; } .kv .v { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.path { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--label-2); overflow-wrap: anywhere; }
.cost-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 80px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.cost-row .bar > div { background: var(--c, var(--accent)); }
.cost-row b { text-align: right; font-variant-numeric: tabular-nums; }
.qr { width: 150px; height: 150px; display: block; margin: 0 auto; border-radius: 8px; background: #fff; padding: 8px; }
.pay-box { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; }
.tax-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.big-num { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.scan-cta { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.scan-cta .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.scan-cta .ico svg.i { width: 24px; height: 24px; }
.mig-tree .row { min-height: 44px; }
.kv-list .row { min-height: 40px; }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-layout .paper-wrap { max-width: 240px; margin: 0 auto; width: 100%; }
  .cost-row { grid-template-columns: 96px minmax(0, 1fr) 70px; }
  .pay-box { grid-template-columns: minmax(0, 1fr); }
  .big-num { font-size: 30px; }
}

/* Haushaltsbuch: Jahresverlauf */
.yr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 84px; gap: 10px; align-items: center; margin-bottom: 12px; }
.yr .yr-bar { height: 7px; border-radius: 4px; margin: 3px 0; }
.yr > span { text-align: right; font-variant-numeric: tabular-nums; }

/* Vorschau als Seitenbilder */
.pages a { display: block; }
.pages img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); margin-bottom: 10px; }

/* Vorschau im Fenster */
.sheet-pages { max-height: 46vh; overflow-y: auto; padding: 8px; background: var(--fill); border-radius: 10px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.sheet-pages img { margin-bottom: 8px; }
@media (min-width: 861px) { .sheet-pages { max-height: 52vh; } }

/* Kinder-Galerie */
.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kid-tile { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; min-width: 0; }
.kid-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.kid-txt { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 6px; padding: 10px; text-align: center; color: var(--label-2); font-size: 13px; background: var(--fill); }
.kid-txt svg.i { width: 28px; height: 28px; color: var(--accent); }
.kid-cap { padding: 6px 8px; font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .kid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Übersicht: Bereiche */
.silos { align-items: stretch; }
.silo { display: flex; flex-direction: column; min-width: 0; }
.silo > .list { flex: 1; display: flex; flex-direction: column; min-height: 96px; }
.silo > .list > .empty { flex: 1; display: flex; align-items: center; justify-content: center; }
.row-btns { display: inline-flex; gap: 6px; align-items: center; }
.silo-h { display: flex; align-items: center; gap: 8px; }
.silo-h .kico svg { width: 13px; height: 13px; }
.silo-more { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--accent); display: inline-flex; align-items: center; gap: 2px; }
.silo-more svg { width: 12px; height: 12px; }

/* Erledigt-Kreis wie in Apple Erinnerungen */
.chk { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--label-3); background: transparent; display: inline-grid; place-items: center; padding: 0; cursor: pointer; color: transparent; transition: background .2s, border-color .2s, transform .15s; }
.chk svg { width: 13px; height: 13px; stroke-width: 3; }
.chk:hover { border-color: var(--accent); }
.chk:active { transform: scale(.88); }
.chk.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.row .t { color: var(--label); }
.row.is-done .t, .row.is-done .amt { color: var(--label-3); font-weight: 400; }
.row.is-done .s { color: var(--label-3); }
.row.is-done .kico { opacity: .45; filter: grayscale(1); }
@media (max-width: 860px) { .chk { width: 24px; height: 24px; } .chk::after { content: ""; position: absolute; inset: -10px; } .chk { position: relative; } }

/* Auswahlmodus (mehrere Dokumente) */
.selc { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--label-3); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s; }
.selc svg { width: 13px; height: 13px; stroke-width: 3; }
.row.sel .selc { background: var(--accent); border-color: var(--accent); color: #fff; }
.row.sel { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 30; display: flex; gap: 8px; align-items: center; padding: 8px 10px 8px 16px; border-radius: 16px; max-width: calc(100vw - 32px);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 8px 30px rgba(0,0,0,.18); border: 1px solid var(--sep); }
.selbar #selcount { font-weight: 600; font-size: 14px; white-space: nowrap; margin-right: 6px; }
.selbar .btn:disabled { opacity: .4; pointer-events: none; }
@media (min-width: 861px) { .selbar { left: calc(50% + 130px); } }
@media (max-width: 860px) { .selbar { bottom: calc(70px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 8px 10px; } .selbar #selcount { font-size: 13px; } }

/* Begrüßung mit Avatar */
.hello { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.hello .large-title { margin-bottom: 2px; }
.hello-av { position: relative; border: 0; background: none; padding: 0; cursor: pointer; flex: none; border-radius: 50%; }
.avatar.xl { width: 60px; height: 60px; font-size: 24px; }
.hello-edit { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.18); display: grid; place-items: center; color: var(--accent); }
.hello-edit svg { width: 12px; height: 12px; }
.hello-av:hover .avatar { transform: scale(1.04); transition: transform .15s; }
@media (max-width: 860px) { .avatar.xl { width: 48px; height: 48px; font-size: 20px; } .hello { gap: 12px; } }

/* Abspielen in der Musikliste */
.player { padding: 4px 16px 12px 60px; }
.player audio { width: 100%; height: 36px; }
.play-btn.on { background: var(--accent); color: #fff; }
@media (max-width: 860px) { .player { padding: 4px 12px 12px; } }

/* Hell/Dunkel-Schalter */
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 2px; }
.theme-seg { padding: 2px; }
.theme-seg button { padding: 4px 9px; display: grid; place-items: center; }
.theme-seg svg { width: 15px; height: 15px; }
.theme-seg button { color: var(--label-2); } .theme-seg button.on { color: var(--accent); }
.hello { margin-bottom: 20px; } .hello .subtitle { margin-bottom: 0; } .hello-av { display: block; line-height: 0; } .hello-av .avatar { display: grid; }
/* iPhone: Titel in der Kopfzeile nicht mehr über die Knöpfe legen */
@media (max-width: 860px) {
  .toolbar { gap: 6px; }
  .toolbar h1 { position: static; transform: none; flex: 1 1 auto; min-width: 0; max-width: none; text-align: center; }
  .toolbar .spacer { display: none; }
  .toolbar > .btn, .toolbar > a.btn { flex: none; }
  .toolbar .back { flex: 0 1 auto; min-width: 0; }
  .toolbar.many h1 { display: none; }
  .toolbar.many .spacer { display: block; flex: 1; }
}

/* Gelesen = grau, ungelesen = schwarz fett mit Punkt, erledigt = noch heller */
.row.is-read .t { color: var(--label-2); font-weight: 400; }
.row.is-read .amt { color: var(--label-2); }
.row.is-read .kico { opacity: .55; filter: grayscale(1); }

/* Anmeldeseite: Person wählen */
.login-people { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.login-p { border: 0; background: none; padding: 6px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: var(--label-2); font-weight: 500; font-size: 14px; min-width: 76px; transition: background .15s; }
.login-p:hover { background: var(--fill); }
.login-p .login-av { width: 58px; height: 58px; font-size: 22px; box-shadow: 0 0 0 3px transparent; transition: box-shadow .15s, transform .15s; }
.login-p.on { color: var(--label); }
.login-p.on .login-av { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); }
.login-p:disabled { opacity: .35; }
@media (max-width: 420px) { .login-people { gap: 4px; } .login-p { min-width: 0; flex: 1 1 0; padding: 6px 2px; font-size: 13px; } .login-p .login-av { width: 52px; height: 52px; } }
/* Symbole bleiben farbig (Dokumenttyp auf einen Blick), Status zeigt die Schrift */
.row.is-read .kico, .row.is-done .kico { opacity: 1; filter: none; }
:root { --brown: #a2845e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brown: #ac8e68; } }
:root[data-theme="dark"] { --brown: #ac8e68; }
.c-brown { --c: var(--brown); }

/* Volltextsuche oben rechts */
.top-search { display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 8px; padding: 5px 9px; width: 230px; color: var(--label-2); flex: none; transition: width .2s; }
.top-search:focus-within { width: 300px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.top-search svg { width: 15px; height: 15px; flex: none; }
.top-search input { border: 0; background: transparent; outline: none; width: 100%; color: var(--label); font: inherit; font-size: 13px; -webkit-appearance: none; }
.top-search input::-webkit-search-cancel-button { cursor: pointer; }
.top-search-btn { display: none; }
@media (max-width: 860px) { .top-search { display: none; } .top-search-btn { display: inline-flex; } }
.kid-tabs { display: flex; width: max-content; max-width: 100%; overflow-x: auto; }
.kid-tabs button { white-space: nowrap; }

/* Diktat: Datum/Uhrzeit Pflicht + Schnellwahl */
.sp-quick { display:flex; flex-wrap:wrap; gap:6px; margin:-6px 0 14px; }
.sp-quick .sp-gap { flex-basis:100%; height:0; }
.input.need { border-color: var(--orange, #ff9500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange, #ff9500) 22%, transparent); }

/* ---------- Start: persönliches Dashboard ---------- */
.start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.tile { background: var(--card); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; color: inherit; }
.tile.wide { grid-column: span 2; }
@media (max-width: 700px) { .tile.wide { grid-column: auto; } .start-grid { grid-template-columns: 1fr; gap: 12px; } }
.tile-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; font-size: 16px; }
.tile-h .grow { min-width: 0; }
.tile-ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.tile-ic.big { width: 44px; height: 44px; border-radius: 11px; }
.tile-ic .i { width: 18px; height: 18px; } .tile-ic.big .i { width: 24px; height: 24px; }
a.tile.area:hover { box-shadow: var(--shadow), 0 0 0 2px var(--fill-2); }
.area-t { display: block; font-size: 17px; font-weight: 600; }
.area-s { display: block; font-size: 13px; font-weight: 400; color: var(--label-2); }
.tile .chev { color: var(--label-3); }
.area-rows { border-top: 1px solid var(--sep); }
.area-r { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sep); font-size: 14px; }
.area-r:last-child { border-bottom: 0; }
.area-r .muted { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.tile .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.kal-sws { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.kal-sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 34px; font-size: 14px; }
.kal-list { border-top: 1px solid var(--sep); }
.kal-day { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: var(--label-2); padding: 12px 0 4px; }
.kal-ev { display: flex; align-items: stretch; gap: 10px; padding: 7px 0; }
.kal-time { width: 72px; flex: none; font-size: 13px; color: var(--label-2); padding-top: 1px; }
.kal-bar { width: 4px; border-radius: 2px; flex: none; }
.kal-t { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-s { display: block; font-size: 12px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-now { display: flex; align-items: center; gap: 14px; }
.w-temp { font-size: 46px; font-weight: 300; letter-spacing: -1px; line-height: 1; white-space: nowrap; }
.w-hours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 13px; margin: 14px 0 6px; }
.w-hours > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.w-days > div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--sep); font-size: 14px; }
.news a { display: block; padding: 8px 0; border-bottom: 1px solid var(--sep); color: inherit; }
.news a:last-child { border-bottom: 0; }
.news-t { display: block; font-weight: 500; line-height: 1.3; }
.news-s { display: block; font-size: 12px; color: var(--label-2); margin-top: 2px; }
.tile.add { border: 2px dashed var(--sep); background: transparent; box-shadow: none; align-items: center; justify-content: center; gap: 6px; min-height: 160px; color: var(--accent); cursor: pointer; font: inherit; }
.tile.add .i { width: 26px; height: 26px; }
.bat { height: 10px; border-radius: 5px; background: var(--fill); overflow: hidden; margin-top: 12px; }
.bat > span { display: block; height: 100%; border-radius: 5px; }

/* Start: ohne Seitenmenü, Kacheln anpassen */
/* Dashboard: Menü und Leiste unten bleiben immer sichtbar */
.app.solo .main { padding-bottom: 24px; }
.app.solo .main > .content, .app.solo .content { max-width: 1280px; margin-left: auto; margin-right: auto; }
.tile-ic.editable { position: relative; cursor: pointer; outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.tile-pen { position: absolute; right: -7px; bottom: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.tile-pen .i { width: 11px !important; height: 11px !important; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.look-ic input, .look-c input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.look-ic span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; background: var(--fill); cursor: pointer; }
.look-ic input:checked + span { background: var(--accent); color: #fff; }
.look-ic input:focus-visible + span, .look-c input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.look-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.look-c span { display: block; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; box-shadow: inset 0 0 0 2px var(--card); }
.look-c input:checked + span { border-color: var(--label); }
.start-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; }
/* Dashboard oben in der Seitenleiste */
a.brand { color: inherit; border-radius: 10px; margin: 0 0 10px; padding: 6px 10px; }
a.brand:hover { background: var(--fill); }
a.brand.active { background: var(--fill-2); }

/* Zahlungsmaske: Felder links, GiroCode rechts */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.pay-code { text-align: center; padding: 14px; }
@media (max-width: 700px) { .pay-grid { grid-template-columns: 1fr; } .pay-code { order: -1; } }

/* Sortieren: Knopf mit Symbol + Menü */
.sort-wrap { position: relative; display: inline-block; }
.sort-btn { gap: 6px; }
.sort-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.sort-menu button { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--label); min-height: 40px; }
.sort-menu button:hover, .sort-menu button:focus-visible { background: var(--fill); outline: none; }
.sort-ck { width: 18px; display: inline-flex; color: var(--accent); }
.sort-h { display: block; font-size: 12px; color: var(--label-2); }

/* Fußleiste wie Kati Blum OS */
.user-switch > div { flex: 1; min-width: 0; line-height: 18px; }
.user-switch > div > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-switch .avatar { width: 36px; height: 36px; flex: none; }
.logout-btn { justify-content: center; padding: 8px 12px; }
.sidebar-foot .logout-btn { width: calc(100% - 20px); margin: 8px 10px 0; display: flex; }
.version-zeile { margin-top: 14px; padding: 0 10px 2px; font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
