/* Reise-App – Komponenten auf Basis von tokens.css (iOS-26-Stil, dezent). */
:root {
  --hatch: rgba(60,60,67,.16);
  --orange-text: #A15C00;
  --accent: var(--blue);
  --tint: rgba(var(--blue-rgb), .12);
  --tab-h: 64px;
}
@media (prefers-color-scheme: dark) {
  html.allow-dark { --hatch: rgba(235,235,245,.14); --orange-text: #FF9F0A; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-grouped); color: var(--label);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.3; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; padding-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom, 0px)); }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tnum { font-feature-settings: "tnum"; }

/* Icons */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; stroke-width: 1.5; }
.icon-xl { width: 44px; height: 44px; stroke-width: 1.4; }

/* Kopfbereich */
.app-header { padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px 8px; max-width: 720px; margin: 0 auto; }
.app-header h1 { font-size: var(--fs-large-title); margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.app-sub { color: var(--label-2); font-size: var(--fs-callout); margin-top: 2px; }
.nav-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 45; height: calc(env(safe-area-inset-top, 0px) + 44px);
  padding-top: env(safe-area-inset-top, 0px); display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: var(--hairline) solid var(--glass-border); font-size: var(--fs-headline); font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 150ms ease-out; }
.nav-bar.visible { opacity: 1; }
main { padding: 0 16px 20px; max-width: 720px; margin: 0 auto; }
.tab-panel { animation: fadeIn .18s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Tab Bar (Glas-Kapsel) */
.tab-bar { position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto;
  display: flex; padding: 4px; z-index: 40; border-radius: 999px;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: var(--hairline) solid var(--glass-border); box-shadow: var(--glass-light), 0 4px 24px rgba(0,0,0,.08);
  transition: transform 200ms ease-out, opacity 200ms ease-out; }
.tab-bar.hide { transform: translateY(calc(100% + 24px)); opacity: 0; }
.tab-btn { flex: 1; min-height: 52px; background: none; border: none; color: var(--label-2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; padding: 4px 2px; font-size: var(--fs-caption2); border-radius: 999px; position: relative; }
.tab-btn.active { color: var(--blue); font-weight: 600; background: var(--tint); }
.tab-btn .dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--orange);
  color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

/* Gruppierte Listen */
.group-title { font-size: var(--fs-footnote); text-transform: uppercase; letter-spacing: .03em; color: var(--label-2); margin: 24px 16px 6px; }
.group-foot { font-size: var(--fs-footnote); color: var(--label-2); margin: 6px 16px 0; line-height: 1.4; }
.group { background: var(--bg-elevated); border-radius: var(--radius-l); overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; width: 100%; text-align: left;
  background: none; border: none; position: relative; color: inherit; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: var(--hairline); background: var(--separator); }
.cell-ic { color: var(--blue); }
.cell-body { flex: 1; min-width: 0; }
.cell-title { font-size: var(--fs-body); font-weight: 400; overflow-wrap: anywhere; }
.cell-sub { font-size: var(--fs-footnote); color: var(--label-2); margin-top: 1px; overflow-wrap: anywhere; }
.cell-end { color: var(--label-3); display: flex; align-items: center; gap: 6px; }
.cell-value { color: var(--label-2); font-size: var(--fs-callout); }
.cell.danger .cell-title { color: var(--red); }
.cell.warn .cell-ic { color: var(--orange-text); }
.cell.pressable.pressed { background: var(--fill); }
.pressable { transition: transform 100ms ease-out, background-color 100ms ease-out; touch-action: manipulation; }
.pressable.pressed { transform: scale(.98); }
.cell.pressable.pressed { transform: none; }

/* Badges / Chips */
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: .6875rem; font-weight: 500; line-height: 1; padding: 3px 7px; border-radius: 999px; white-space: nowrap; background: var(--fill); color: var(--label-2); letter-spacing: .01em; }
.badge.ok { background: rgba(var(--green-rgb), .10); color: var(--green-strong); }
.badge.warn { background: rgba(255,149,0,.10); color: var(--orange-text); }
.badge.accent { background: var(--blue); color: #fff; }
.badge .icon { width: 10px; height: 10px; stroke-width: 2.2; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: none; background: var(--bg-elevated); color: var(--label); font-size: var(--fs-sub); }
.chip.active { background: var(--blue); color: #fff; font-weight: 600; }

/* Buttons */
.btn { min-height: 50px; border: none; border-radius: 14px; padding: 0 20px; font-size: var(--fs-headline); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-tint { background: var(--tint); color: var(--blue); }
.btn-plain { background: transparent; color: var(--blue); }
.btn-danger { background: rgba(255,59,48,.12); color: var(--red); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-sub); border-radius: 999px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border: none; border-radius: 50%; background: transparent; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.round-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--fill); color: var(--label-2); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.round-btn::after, .icon-btn::after { content: ""; position: absolute; inset: -8px; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row .btn { flex: 1; }

/* Statuszeile (Reise-Tab) */
.status-card { background: var(--bg-elevated); border-radius: var(--radius-l); padding: 14px 16px; margin: 8px 0 4px; display: flex; align-items: center; gap: 12px; }
.status-main { flex: 1; min-width: 0; }
.status-big { font-size: var(--fs-title3); font-weight: 700; letter-spacing: -.01em; }
.status-sub { color: var(--label-2); font-size: var(--fs-footnote); margin-top: 2px; }
.banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: none; border-radius: var(--radius-l); padding: 12px 16px; margin: 8px 0; background: var(--tint); color: var(--blue); font-weight: 600; min-height: 52px; }

/* Abschnitts-Band (leicht schraffiert) */
.section-band { position: relative; margin: 26px 0 12px; min-height: 40px; display: flex; align-items: center; }
.band-hatch { position: absolute; inset: 0; border-radius: 12px; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--hatch) 5px 6px); }
.band-label { position: relative; margin-left: 10px; padding: 5px 12px; border-radius: 999px; background: var(--bg-grouped); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.band-label b { font-size: var(--fs-headline); font-weight: 700; letter-spacing: -.01em; }
.band-label span { font-size: var(--fs-footnote); color: var(--label-2); }

/* Tageskarten */
.day-card { display: grid; grid-template-columns: 54px 1fr 18px; gap: 12px; align-items: start; background: var(--bg-elevated); border-radius: var(--radius-l);
  padding: 14px 14px 14px 12px; margin-bottom: 10px; width: 100%; text-align: left; border: var(--hairline) solid transparent; color: inherit; }
.day-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px; background: var(--fill); padding: 6px 0; }
.day-date .wd { font-size: var(--fs-caption2); text-transform: uppercase; letter-spacing: .05em; color: var(--label-2); font-weight: 600; }
.day-date .dn { font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-feature-settings: "tnum"; }
.day-date .mo { font-size: var(--fs-caption2); color: var(--label-2); }
.day-title { font-size: var(--fs-headline); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.day-title.empty { color: var(--label-2); font-weight: 400; }
.day-sub { font-size: var(--fs-footnote); color: var(--label-2); margin: 1px 0 8px; }
.day-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.day-rows li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sub); line-height: 1.3; }
.day-rows li .icon { margin-top: 1px; color: var(--label-2); width: 18px; height: 18px; }
.day-rows li .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.day-rows li.open .icon { color: var(--orange-text); }
.day-rows li.open .txt { color: var(--orange-text); }
.day-rows li .badge { margin-top: 1px; }
.day-rows li.sub { color: var(--label-2); font-size: var(--fs-footnote); }
.day-card .chev { color: var(--label-3); margin-top: 18px; }
.day-card.past { opacity: .68; }
/* Heute: groß hervorgehoben */
.day-card.today { opacity: 1; padding: 18px 16px 18px 14px; grid-template-columns: 64px 1fr 18px; border: 2px solid var(--blue);
  background: color-mix(in srgb, var(--blue) 6%, var(--bg-elevated)); scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 60px); }
.day-card.today .day-date { background: var(--blue); min-height: 66px; border-radius: 16px; }
.day-card.today .day-date .wd, .day-card.today .day-date .mo { color: rgba(255,255,255,.85); }
.day-card.today .day-date .dn { color: #fff; font-size: 1.875rem; }
.day-card.today .day-title { font-size: var(--fs-title3); font-weight: 700; letter-spacing: -.01em; }
.day-card.today .day-rows li { font-size: var(--fs-body); }
.day-card.today .day-rows li .icon { width: 20px; height: 20px; }
.day-card.today .chev { margin-top: 24px; }

/* Sheets */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.3); display: flex; align-items: flex-end; z-index: 60; animation: fadeOnly .2s ease-out; }
.modal.closing { opacity: 0; transition: opacity .18s ease-in; }
.modal.closing .modal-content { transform: translateY(40px); transition: transform .18s ease-in; }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(32px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-content { animation: sheetUp .3s cubic-bezier(.2,.9,.3,1); background: var(--bg-grouped); width: 100%; max-width: 720px; margin: 0 auto;
  height: min(92dvh, 900px); display: flex; flex-direction: column; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: var(--shadow-float); overflow: hidden; }
.modal-content.short { height: auto; max-height: 88dvh; }
.grabber-wrap { padding: 8px 0 2px; touch-action: none; cursor: grab; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 0 auto; }
.sheet-head { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: 4px 8px 8px; touch-action: none; min-height: 48px; }
.sheet-head .t { text-align: center; font-weight: 600; font-size: var(--fs-headline); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head .l { justify-self: start; } .sheet-head .r { justify-self: end; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.sheet-hero { padding: 0 4px 8px; }
.sheet-hero h2 { margin: 0; font-size: var(--fs-title1); letter-spacing: -.02em; line-height: 1.15; font-weight: 700; }
.sheet-hero p { margin: 2px 0 0; color: var(--label-2); font-size: var(--fs-callout); }

/* Formulare */
.field { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 16px; position: relative; }
.field + .field::before, .field + .cell::before, .cell + .field::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: var(--hairline); background: var(--separator); }
.field label { flex: 0 0 34%; max-width: 140px; font-size: var(--fs-body); }
.field .in { flex: 1; min-width: 0; background: transparent; border: none; text-align: right; padding: 10px 0; font-size: 1rem; outline: none; width: 100%; }
.field.stack { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
.field.stack label { flex: none; max-width: none; font-size: var(--fs-footnote); color: var(--label-2); }
.field.stack .in { text-align: left; padding: 6px 0 10px; resize: vertical; min-height: 44px; font-family: inherit; line-height: 1.4; }
.field .in::placeholder { color: var(--label-3); }
select.in { -webkit-appearance: none; appearance: none; text-align-last: right; color: var(--blue); }
.seg { position: relative; display: flex; background: var(--fill); border-radius: 10px; padding: 2px; margin: 6px 0; flex: 1; }
.seg-thumb { position: absolute; top: 2px; bottom: 2px; left: 2px; border-radius: 8px; background: var(--bg-elevated); box-shadow: 0 1px 3px rgba(0,0,0,.15), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .3s cubic-bezier(.3,1.2,.4,1); }
.seg button { position: relative; flex: 1; min-height: 36px; border: none; background: none; border-radius: 8px; font-size: var(--fs-sub); font-weight: 500; }
.seg button[aria-checked="true"] { font-weight: 600; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; z-index: 1; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 16px; background: var(--fill); transition: background-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.3,1.2,.4,1); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--blue); outline-offset: 2px; }
.field-error { color: var(--red); font-size: var(--fs-footnote); margin: 6px 16px 0; }

/* Aktivitäten-/Transfer-Zeilen in Sheets */
.check { width: 44px; height: 44px; margin: -10px -10px -10px -14px; border: none; background: none; color: var(--label-3); display: flex; align-items: center; justify-content: center; flex: none; }
.check.on { color: var(--green-strong); }
.check .icon { width: 24px; height: 24px; }
.time-chip { font-size: var(--fs-footnote); color: var(--label-2); font-feature-settings: "tnum"; min-width: 40px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.suggest button { border: none; border-radius: 999px; background: var(--fill); padding: 6px 12px; font-size: var(--fs-footnote); min-height: 32px; }

/* Leer-/Fehlerzustände */
.empty-state { text-align: center; color: var(--label-2); padding: 48px 24px; line-height: 1.5; }
.empty-state .icon { color: var(--label-3); margin-bottom: 8px; }
.empty-state h3 { margin: 0 0 4px; color: var(--label); font-size: var(--fs-title3); }
.skeleton { height: 96px; border-radius: var(--radius-l); background: var(--bg-elevated); margin-bottom: 10px; opacity: .7; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Karte */
.map-wrap { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--bg-elevated); margin-top: 8px; }
#map { height: calc(100dvh - 330px); min-height: 340px; width: 100%; z-index: 1; }
.pin { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin.idea { background: #8E8E93; width: 20px; height: 20px; font-size: 0; }
.pin.stay { background: var(--green-strong); border-radius: 8px; }
.pin.stay svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }
.map-pop { min-width: 160px; font-family: var(--font); }
.map-pop b { display: block; font-size: 15px; margin-bottom: 2px; }
.map-pop small { color: #666; display: block; margin-bottom: 8px; }
.map-pop a.pop-btn { display: inline-block; padding: 8px 12px; border-radius: 999px; background: #007AFF; color: #fff; font-weight: 600; font-size: 13px; margin-right: 6px; margin-top: 2px; }
.map-pop a.pop-btn.sec { background: rgba(0,122,255,.12); color: #007AFF; }
@media (prefers-color-scheme: dark) { html.allow-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.8); } }

/* Import */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem !important; line-height: 1.4; }
.diff-pill { display: inline-flex; gap: 6px; align-items: center; }
.conflict { padding: 12px 16px; position: relative; }
.conflict + .conflict::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: var(--hairline); background: var(--separator); }
.conflict h4 { margin: 0 0 2px; font-size: var(--fs-body); font-weight: 600; }
.conflict .fld { color: var(--label-2); font-size: var(--fs-footnote); margin-bottom: 8px; }
.opt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { border: 1.5px solid var(--separator); background: transparent; border-radius: 12px; padding: 10px 12px; text-align: left; min-height: 64px; }
.opt small { display: block; color: var(--label-2); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; font-weight: 600; }
.opt span { display: block; font-size: var(--fs-sub); overflow-wrap: anywhere; max-height: 7.5em; overflow: hidden; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--tint); }
details.fold > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary .chev { transform: rotate(90deg); }
details.fold .fold-body { padding: 0 16px 12px; font-size: var(--fs-sub); }
.fold-body ul { margin: 0; padding-left: 18px; } .fold-body li { margin: 3px 0; overflow-wrap: anywhere; }
.chev { transition: transform .2s; color: var(--label-3); }

/* Toast */
#toast-container { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--hairline) solid var(--glass-border);
  box-shadow: var(--glass-light), var(--shadow-float); padding: 12px 20px; border-radius: 999px; font-size: var(--fs-sub); display: flex; align-items: center; gap: 8px; animation: fadeIn .2s ease-out; max-width: 90vw; }
.toast.err { color: var(--red); }

/* Alert */
.alert-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 120; padding: 24px; animation: fadeOnly .15s; }
.alert { background: var(--bg-elevated); border-radius: 20px; max-width: 320px; width: 100%; padding: 20px; box-shadow: var(--shadow-float); }
.alert h3 { margin: 0 0 6px; font-size: var(--fs-headline); text-align: center; }
.alert p { margin: 0 0 16px; font-size: var(--fs-sub); color: var(--label-2); text-align: center; line-height: 1.4; }
.alert .btn { width: 100%; margin-top: 8px; min-height: 46px; }

/* Responsive / Zugänglichkeit */
@media (min-width: 720px) { .modal { align-items: center; } .modal-content { border-radius: var(--radius-sheet); height: min(86dvh, 860px); } .modal-content.short { max-height: 86dvh; } }
@media (prefers-reduced-motion: reduce) {
  .tab-panel, .modal, .modal-content, .toast { animation: fadeOnly .15s linear; }
  .seg-thumb, .switch .track::after, .pressable, .tab-bar { transition: none; }
  .skeleton { animation: none; }
}
@media (prefers-reduced-transparency: reduce) { .tab-bar, .nav-bar, .toast { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .group, .day-card { border: 1px solid var(--label-2); } }

/* Ausfaden unter der Tab-Leiste */
body::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + 48px + env(safe-area-inset-bottom, 0px)); pointer-events: none; z-index: 30;
  background: linear-gradient(to bottom, transparent, var(--bg-grouped) 80%); }

/* Erledigte Orte: grüne Pinnadel */
.day-rows li.done .icon { color: var(--green-strong); }
.day-rows li.done .txt { color: var(--label-2); }
/* Ideen-Kategorien */
details.cat { margin-top: 10px; }
details.cat > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; cursor: pointer; font-weight: 600; background: var(--bg-elevated); border-radius: var(--radius-l); }
details.cat > summary::-webkit-details-marker { display: none; }
details.cat > summary > span:first-child { flex: 1; }
details.cat .cat-n { color: var(--label-2); font-weight: 400; font-size: var(--fs-footnote); }
details.cat > summary .icon { color: var(--label-3); transition: transform 200ms ease-out; }
details.cat[open] > summary .icon { transform: rotate(90deg); }
details.cat[open] > summary { border-radius: var(--radius-l) var(--radius-l) 0 0; }
details.cat > .group { margin-top: 1px; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Wischen zum Löschen */
.swipe { position: relative; overflow: hidden; touch-action: pan-y; }
.swipe > .cell { position: relative; z-index: 1; background: var(--bg-elevated); }
.swipe-del { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; border: none; background: var(--red); color: #fff; font: inherit; font-size: var(--fs-footnote); font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.swipe-del .icon { width: 20px; height: 20px; }
.swipe + .swipe > .cell::before, .cell + .swipe > .cell::before, .swipe + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: var(--hairline); background: var(--separator); }
