/* Hauskasse
   Richtung: wie eine Apple-App. Systemschrift (SF Pro), iOS-Grautöne,
   Systemfarben als Akzent, echtes Schwarz im Dunkelmodus.
   Einstellbar: Hintergrund (data-bg), Akzentfarbe (data-akzent), Schrift (data-schrift). */

:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #E9E9EE;
  --surface-3: #D1D1D6;
  --ink: #000000;
  --ink-2: #636366;
  --ink-3: #8E8E93;
  --line: rgba(60, 60, 67, .16);
  --line-strong: rgba(60, 60, 67, .26);
  --accent: #007AFF;
  --accent-ink: #FFFFFF;
  --ok: #248A3D;
  --warn: #B25000;
  --warn-soft: #FFF2E0;
  --bad: #D70015;
  --bad-soft: #FFE9EA;
  --shadow: none;
  --radius: 14px;
  --radius-s: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --surface-3: #3A3A3C; --ink: #FFFFFF; --ink-2: #AEAEB2; --ink-3: #8D8D93; --line: rgba(84, 84, 88, .55); --line-strong: rgba(120, 120, 128, .6); --accent: #0A84FF; --accent-ink: #FFFFFF; --ok: #30D158; --warn: #FFB340; --warn-soft: rgba(255, 159, 10, .16); --bad: #FF6961; --bad-soft: rgba(255, 69, 58, .17); --shadow: none; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --surface-3: #3A3A3C; --ink: #FFFFFF; --ink-2: #AEAEB2; --ink-3: #8D8D93; --line: rgba(84, 84, 88, .55); --line-strong: rgba(120, 120, 128, .6); --accent: #0A84FF; --accent-ink: #FFFFFF; --ok: #30D158; --warn: #FFB340; --warn-soft: rgba(255, 159, 10, .16); --bad: #FF6961; --bad-soft: rgba(255, 69, 58, .17); --shadow: none; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Auf dem Desktop: App mittig in Telefonbreite */
.app { position: relative; max-width: 430px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); }
@media (min-width: 600px) { body { background: var(--surface-2); } .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(0,0,0,.35); } }

.view { padding: calc(var(--sat) + 10px) 18px calc(var(--tabbar-h) + var(--sab) + 28px); outline: none; }
.view.no-tabs { padding-bottom: calc(var(--sab) + 110px); }
.view.enter { animation: viewIn .32s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Kopfzeilen ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 6px; }
.topbar .eyebrow { font-size: 13px; color: var(--ink-3); letter-spacing: .01em; }
.title { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; margin: 4px 0 18px; }
.subnav { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0 -6px 4px; }
.subnav h1 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 12px; color: var(--ink); }
.icon-btn:active { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 8px 6px; font-size: 15px; }

.avatar { --c: var(--accent); width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 650; font-size: 14px; color: #fff; background: var(--c); flex: none; letter-spacing: 0; }
.avatar.lg { width: 52px; height: 52px; font-size: 19px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.ghost { background: transparent; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }

/* ---------- Karten ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.card-head h2 { font-size: 15px; font-weight: 650; margin: 0; letter-spacing: -.005em; }
.card-head a, .card-head button { font-size: 14px; color: var(--accent); font-weight: 600; background: none; border: 0; padding: 0; }
.section-label { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 22px 4px 8px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.tnum { font-variant-numeric: tabular-nums; }

/* Monatsauswahl */
.month { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); margin-bottom: 14px; }
.month button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.month button:active { background: var(--surface-2); }
.month button svg { width: 20px; height: 20px; }
.month span { font-weight: 600; font-size: 15px; }

/* Hero-Summe */
.hero { padding: 22px 20px 20px; position: relative; overflow: hidden; }
.hero .label { font-size: 14px; color: var(--ink-2); }
.hero .amount { font-size: 44px; line-height: 1.05; margin: 6px 0 10px; font-weight: 700; letter-spacing: -.02em; }
.hero .amount .cents { font-size: .55em; color: var(--ink-2); margin-left: 1px; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
.pill svg { width: 14px; height: 14px; }
.pill.up { color: var(--bad); background: var(--bad-soft); }
.pill.down { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill.later { background: var(--accent-soft); color: var(--accent); font-size: 11.5px; padding: 3px 8px; font-weight: 650; letter-spacing: .02em; }

/* Hinweise */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: var(--radius-s); margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--accent-soft); color: var(--accent); }
.alert b { font-weight: 650; }
.alert .t { color: var(--ink); }
.alert .t span { color: var(--ink-2); }

/* Donut */
.donut-wrap { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; }
.donut { width: 132px; height: 132px; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; transition: opacity .2s; }
.donut .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .c b { font-size: 17px; font-weight: 500; }
.donut .c small { font-size: 11.5px; color: var(--ink-3); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; }
.legend li .dot { width: 10px; height: 10px; border-radius: 3px; }
.legend li .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.legend li .v { font-variant-numeric: tabular-nums; font-weight: 550; }
.legend button { all: unset; display: contents; cursor: pointer; }

/* Budget-Balken */
.budget { padding: 10px 0; }
.budget + .budget { border-top: 1px solid var(--line); }
.budget .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; }
.budget .row1 .name { font-weight: 550; display: flex; align-items: center; gap: 8px; }
.budget .row1 .name .dot { width: 8px; height: 8px; border-radius: 50%; }
.budget .row1 .val { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); margin: 8px 0 6px; overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--c, var(--ok)); transform-origin: left; animation: grow .7s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar.warn i { background: var(--warn); }
.bar.bad i { background: var(--bad); }
.bar .mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--bg); left: 80%; opacity: .9; }
.budget .row2 { font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; }
.budget .row2 .warn { color: var(--warn); font-weight: 600; }
.budget .row2 .bad { color: var(--bad); font-weight: 600; }
button.budget { all: unset; display: block; width: 100%; cursor: pointer; padding: 10px 0; }
button.budget:focus-visible { outline: 2px solid var(--accent); }

/* Listen / Buchungen */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.card .list { box-shadow: none; border-radius: 0; margin: 0 -18px -18px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; width: 100%; text-align: left; background: none; border: 0; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
a.row:active, button.row:active { background: var(--surface-2); }
.row .tile { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 650; font-size: 15px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); position: relative; }
.row .tile .bon { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 6px; background: var(--surface); display: grid; place-items: center; color: var(--ink-2); box-shadow: 0 0 0 1.5px var(--surface); }
.row .tile .bon svg { width: 12px; height: 12px; }
.row .main { flex: 1; min-width: 0; }
.row .t1 { font-weight: 550; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15.5px; white-space: nowrap; text-align: right; }
.row .amt small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.row .amt.pos { color: var(--ok); }
.row .chev { color: var(--ink-3); width: 18px; height: 18px; flex: none; }
.row .icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.row .icon svg { width: 19px; height: 19px; }
.row.disabled { opacity: .55; pointer-events: none; }
.row.danger .t1 { color: var(--bad); }
.day-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin: 18px 6px 8px; font-weight: 500; }
.day-head:first-child { margin-top: 4px; }

.empty { text-align: center; padding: 38px 20px; color: var(--ink-3); }
.empty svg { width: 34px; height: 34px; margin-bottom: 8px; opacity: .6; }

/* Suche + Filter */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 13px; padding: 0 12px; height: 44px; box-shadow: var(--shadow); margin-bottom: 10px; }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; min-width: 0; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.select-chip { position: relative; flex: none; }
.select-chip select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 8px 30px 8px 13px; font-size: 14px; font-weight: 500; color: var(--ink); }
.select-chip.active select { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.select-chip::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; color: var(--ink-3); }
.select-chip.active::after { color: var(--bg); }
.sumline { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin: 2px 6px 0; }

/* Formulare */
.field { margin-bottom: 14px; }
.field > label, .field > .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 4px 6px; }
.input, .field select, .field textarea { width: 100%; height: 48px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 13px; padding: 0 14px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: 84px; padding: 12px 14px; resize: none; }
.input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input[type="date"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; }
.amount-input { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 18px 0 8px; }
.amount-input input { border: 0; background: transparent; outline: none; text-align: right; width: 100%; max-width: 230px; font-family: var(--font-num); font-size: 52px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; padding: 0; caret-color: var(--accent); }
.amount-input input::placeholder { color: var(--ink-3); opacity: .5; }
.amount-input span { font-family: var(--font-num); font-size: 36px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 8px 13px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s, border-color .15s; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .avatar.sm { width: 20px; height: 20px; font-size: 10px; margin-left: -5px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 3px; border-radius: 12px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.help { font-size: 12.5px; color: var(--ink-3); margin: 6px 4px 0; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 15px; border: 0; font-weight: 650; font-size: 16px; background: var(--accent); color: var(--accent-ink); width: 100%; transition: transform .12s var(--ease), opacity .15s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn.secondary { background: var(--surface-2); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { height: 40px; font-size: 14.5px; border-radius: 12px; width: auto; padding: 0 14px; }
.btn[disabled] { opacity: .45; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sticky-actions { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; padding: 12px 18px calc(var(--sab) + 14px); background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 20; }

/* Tab-Leiste */
.tabbar { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; height: calc(var(--tabbar-h) + var(--sab)); padding: 6px 10px var(--sab); display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; font-size: 10.5px; font-weight: 550; color: var(--ink-3); letter-spacing: .01em; }
.tabbar a .ti svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tab-plus { justify-self: center; width: 52px; height: 52px; margin-top: -2px; border-radius: 18px; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); transition: transform .15s var(--ease); }
.tab-plus:active { transform: scale(.94); }
.tab-plus svg { width: 24px; height: 24px; }

/* Bottom-Sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(15, 12, 10, .38); animation: fade .2s ease; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 8px 18px calc(var(--sab) + 18px); animation: sheetIn .34s var(--ease); }
.sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet h3 { font-size: 19px; margin: 4px 2px 14px; letter-spacing: -.01em; }
.sheet .list { box-shadow: none; border: 1px solid var(--line); }
@keyframes sheetIn { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--sat) + 12px); transform: translate(-50%, -140%); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 550; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transition: transform .35s var(--ease); max-width: calc(100% - 36px); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

/* Anmeldung */
.login { min-height: calc(100dvh - var(--sat) - 40px); display: flex; flex-direction: column; justify-content: center; padding: 20px 4px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.brand img { width: 52px; height: 52px; border-radius: 14px; }
.brand b { font-size: 22px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--ink-3); font-size: 13.5px; font-weight: 400; }
.login h1 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 6px; line-height: 1.1; }
.login p.lead { color: var(--ink-2); margin: 0 0 24px; }
.user-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.user-pick button { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid transparent; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.user-pick button[aria-pressed="true"] { border-color: var(--accent); }
.user-pick button b { display: block; font-size: 16px; }
.user-pick button small { color: var(--ink-3); font-size: 13px; }
.user-pick .check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.user-pick button[aria-pressed="true"] .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.user-pick .check svg { width: 14px; height: 14px; }
.demo-note { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 16px; }

/* Buchungsdetail */
.detail-head { text-align: center; padding: 10px 0 18px; }
.detail-head .tile { width: 58px; height: 58px; border-radius: 17px; margin: 0 auto 12px; display: grid; place-items: center; font-weight: 650; font-size: 22px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.detail-head h1 { font-size: 21px; margin: 0; letter-spacing: -.015em; }
.detail-head .amount { font-size: 40px; margin: 4px 0 2px; font-weight: 500; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 14.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.items li:first-child { border-top: 0; padding-top: 0; }
.items .nm { font-size: 14.5px; }
.items .pr { font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 550; text-align: right; }
.items .ct { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.items .ct .dot { width: 7px; height: 7px; border-radius: 50%; }
.cat-split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: 2px 0 10px; gap: 2px; }
.cat-split i { display: block; }
.bon-thumb { display: flex; gap: 14px; align-items: center; border: 0; background: none; padding: 0; text-align: left; width: 100%; }
.bon-thumb img { width: 64px; height: 86px; object-fit: cover; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-strong), 0 6px 14px -8px rgba(0,0,0,.35); background: #fff; }
.bon-thumb b { display: block; font-size: 15px; }
.bon-thumb small { color: var(--ink-3); font-size: 13px; }
.photo-view { position: fixed; inset: 0; z-index: 70; background: rgba(10, 9, 8, .92); display: grid; place-items: center; padding: calc(var(--sat) + 50px) 16px calc(var(--sab) + 30px); animation: fade .2s; }
.photo-view img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; }
.photo-view button { position: absolute; top: calc(var(--sat) + 10px); right: 12px; color: #fff; }

/* Bon-Scan */
.scan-hero { border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); padding: 26px 20px; text-align: center; margin-bottom: 14px; }
.scan-frame { width: 150px; height: 190px; margin: 6px auto 20px; position: relative; border-radius: 16px; display: grid; place-items: center; color: var(--ink-3); }
.scan-frame::before { content: ""; position: absolute; inset: 0; border-radius: 16px; background:
  linear-gradient(var(--accent), var(--accent)) top left / 26px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 3px 26px no-repeat,
  linear-gradient(var(--accent), var(--accent)) top right / 26px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) top right / 3px 26px no-repeat,
  linear-gradient(var(--accent), var(--accent)) bottom left / 26px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom left / 3px 26px no-repeat,
  linear-gradient(var(--accent), var(--accent)) bottom right / 26px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 3px 26px no-repeat; }
.scan-frame svg { width: 46px; height: 46px; }
.scan-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.scan-frame .line { position: absolute; left: 8px; right: 8px; height: 2px; top: 10%; background: var(--accent); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 2px; animation: scanline 1.3s ease-in-out infinite alternate; }
@keyframes scanline { to { top: 88%; } }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.steps { list-style: none; padding: 0; margin: 16px auto 0; max-width: 240px; text-align: left; display: grid; gap: 8px; font-size: 14px; color: var(--ink-3); }
.steps li { display: flex; align-items: center; gap: 10px; transition: color .2s; }
.steps li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.steps li.on { color: var(--ink); }
.steps li.on i { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done i { background: var(--accent); border-color: var(--accent); }
.steps li.done i::after { content: ""; width: 5px; height: 9px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: translateY(-1px) rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Artikel-Editor (Bon prüfen) */
.item-edit { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 104px 34px; gap: 8px; align-items: center; }
.item-edit:first-of-type { border-top: 0; padding-top: 2px; }
.item-edit .input { height: 42px; font-size: 15px; padding: 0 11px; border-radius: 11px; }
.item-edit .price { text-align: right; font-variant-numeric: tabular-nums; }
.item-edit select { grid-column: 1 / 3; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 10px; font-size: 14px; color: var(--ink-2); -webkit-appearance: none; appearance: none; }
.item-edit .del { grid-row: 1 / 3; grid-column: 3; align-self: center; color: var(--ink-3); }
.item-edit.unsure select { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.check-sum { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-top: 10px; }
.check-sum.bad { background: var(--warn-soft); color: var(--warn); }
.check-sum b { font-variant-numeric: tabular-nums; }

/* Haushalt */
.persons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.person-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; }
.person-card .top { display: flex; align-items: center; gap: 10px; }
.person-card .top b { font-size: 15px; display: block; line-height: 1.2; }
.person-card .top small { color: var(--ink-3); font-size: 12px; }
.person-card .bal { font-size: 19px; font-weight: 500; }
.person-card .bal.pos { color: var(--ok); }
.person-card .bal.neg { color: var(--bad); }
.person-card .cap { font-size: 12px; color: var(--ink-3); margin-top: -8px; }
.debt { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.debt + .debt { border-top: 1px solid var(--line); }
.debt .arrow { color: var(--ink-3); width: 18px; height: 18px; }
.debt .what { flex: 1; font-size: 14.5px; }
.debt .what b { font-weight: 600; }
.debt .sum { font-size: 18px; font-weight: 500; }

/* Verträge (später) */
.later-banner { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink-2); font-size: 14px; }
.later-banner svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.preview-dim { opacity: .62; filter: saturate(.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- v2: Scan-Prüfung, Schnellauswahl, Kategorie-Seite ---------- */
.input.unsure { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: var(--warn-soft); }
.unsure-tag { display: inline-block; font-size: 11px; font-weight: 650; color: var(--warn); background: var(--warn-soft); padding: 1px 7px; border-radius: 99px; margin-left: 4px; letter-spacing: .01em; }
details.raw summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); list-style: none; }
details.raw summary::-webkit-details-marker { display: none; }
details.raw summary::after { content: " ›"; color: var(--ink-3); }
details.raw[open] summary::after { content: " ⌄"; }
details.raw pre { margin: 12px 0 0; font: 12px/1.45 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); max-height: 320px; overflow: auto; background: var(--surface-2); padding: 12px; border-radius: 10px; }
.scroll-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 2px; }
.scroll-chips::-webkit-scrollbar { display: none; }
.scroll-chips .chip { flex: none; }
.chip.add { border-style: dashed; color: var(--accent); }
.chip.store[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.store-row { padding: 10px 0; }
.store-row + .store-row { border-top: 1px solid var(--line); }
.store-row .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.store-row .row1 .name { font-weight: 550; }
.store-row .bar { margin: 7px 0 4px; height: 6px; }

/* ---------- Einstellbar: Hintergrund, Akzentfarbe, Schrift ---------- */
:root[data-theme="light"][data-bg="weiss"] { --bg: #FFFFFF; --surface: #F2F2F7; --surface-2: #E5E5EA; --surface-3: #D1D1D6; }
:root[data-theme="light"][data-bg="creme"] { --bg: #F5F0E6; --surface: #FFFDF8; --surface-2: #EBE5D9; --surface-3: #DED6C7; }
:root[data-theme="dark"][data-bg="dunkelgrau"] { --bg: #1C1C1E; --surface: #2C2C2E; --surface-2: #3A3A3C; --surface-3: #48484A; }
:root[data-theme="dark"][data-bg="nachtblau"] { --bg: #0A1120; --surface: #141C2E; --surface-2: #1E283C; --surface-3: #28344B; }
:root[data-akzent="blau"] { --accent: #007AFF; }
:root[data-akzent="indigo"] { --accent: #5856D6; }
:root[data-akzent="lila"] { --accent: #AF52DE; }
:root[data-akzent="pink"] { --accent: #FF2D55; }
:root[data-akzent="rot"] { --accent: #FF3B30; }
:root[data-akzent="orange"] { --accent: #FF9500; }
:root[data-akzent="gruen"] { --accent: #34C759; }
:root[data-akzent="mint"] { --accent: #00A6A0; }
:root[data-akzent="graphit"] { --accent: #8E8E93; }
@media (prefers-color-scheme: dark) {
  :root[data-akzent="blau"]:not([data-theme="light"]) { --accent: #0A84FF; }
  :root[data-akzent="indigo"]:not([data-theme="light"]) { --accent: #5E5CE6; }
  :root[data-akzent="lila"]:not([data-theme="light"]) { --accent: #BF5AF2; }
  :root[data-akzent="pink"]:not([data-theme="light"]) { --accent: #FF375F; }
  :root[data-akzent="rot"]:not([data-theme="light"]) { --accent: #FF453A; }
  :root[data-akzent="orange"]:not([data-theme="light"]) { --accent: #FF9F0A; }
  :root[data-akzent="gruen"]:not([data-theme="light"]) { --accent: #30D158; }
  :root[data-akzent="mint"]:not([data-theme="light"]) { --accent: #63E6E2; }
  :root[data-akzent="graphit"]:not([data-theme="light"]) { --accent: #98989D; }
}
:root[data-akzent="blau"][data-theme="dark"] { --accent: #0A84FF; }
:root[data-akzent="indigo"][data-theme="dark"] { --accent: #5E5CE6; }
:root[data-akzent="lila"][data-theme="dark"] { --accent: #BF5AF2; }
:root[data-akzent="pink"][data-theme="dark"] { --accent: #FF375F; }
:root[data-akzent="rot"][data-theme="dark"] { --accent: #FF453A; }
:root[data-akzent="orange"][data-theme="dark"] { --accent: #FF9F0A; }
:root[data-akzent="gruen"][data-theme="dark"] { --accent: #30D158; }
:root[data-akzent="mint"][data-theme="dark"] { --accent: #63E6E2; }
:root[data-akzent="graphit"][data-theme="dark"] { --accent: #98989D; }
:root:root:root { --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent); }
:root[data-schrift="rund"] { --font: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif; --font-num: var(--font); }
:root[data-schrift="klassisch"] { --font: ui-serif, "New York", "Iowan Old Style", Georgia, serif; --font-num: var(--font); }
.swatches { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.swatch { display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 0; font-size: 12px; color: var(--ink-2); font-family: inherit; min-width: 52px; }
.swatch i { width: 44px; height: 44px; border-radius: 12px; background: var(--sb); box-shadow: inset 0 0 0 1px rgba(128,128,128,.35); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 600; color: var(--sc); }
.swatch.auto i { background: linear-gradient(135deg, #F2F2F7 0 50%, #000 50% 100%); }
.swatch.dot i { border-radius: 50%; width: 32px; height: 32px; box-shadow: none; }
.swatch[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.swatch[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

/* Synchronisation */
.sdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; }
.sdot.busy { background: var(--accent); animation: sdot-pulse 1.1s ease-in-out infinite; }
.sdot.off { background: var(--warn); }
.sdot.big { width: 12px; height: 12px; margin: 0; }
@keyframes sdot-pulse { 50% { opacity: .35; } }
.sync-inline { margin-left: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sync-card { margin: 12px 0 0; }
.sync-row { width: 100%; text-align: left; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); }
.sync-pill { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--sab) + 10px); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 550; padding: 7px 12px; border-radius: 999px; max-width: calc(100% - 36px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); }
.sync-pill[hidden] { display: none; }
.view.no-tabs ~ .sync-pill { bottom: calc(var(--sab) + 84px); }
.welcome { border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.empty.boot { padding-top: 30vh; }
.empty.boot svg { animation: boot-spin 1.2s linear infinite; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sdot.busy, .empty.boot svg { animation: none; } }

/* Anmeldeseite (login.html) */
.login form .err { color: var(--bad); background: var(--bad-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }
.login form .err:empty { display: none; }
.login .setup-only { display: none; }
.login.setup .setup-only { display: block; }
.login .hint { font-size: 13px; color: var(--ink-3); margin: 14px 2px 0; text-align: center; }

/* ---------- Zusatzfunktionen (js/funktionen.js) ---------- */
.ftile { --fc: var(--accent); width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--fc); color: #fff; }
.ftile svg { width: 20px; height: 20px; }
.ftile.sm { width: 30px; height: 30px; border-radius: 8px; }
.ftile.sm svg { width: 18px; height: 18px; }
.linkpill { color: var(--accent); background: var(--accent-soft); }
.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.shortcut { background: var(--surface); border-radius: var(--radius); padding: 12px 6px 10px; display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.shortcut:active { background: var(--surface-2); }
.shortcut .ftile { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 2px; }
.shortcut b { font-size: 12.5px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shortcut small { font-size: 11px; color: var(--ink-3); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.hints { padding-bottom: 18px; }
.card.hints .list { margin-top: -4px; }
.row + .row::before { left: 62px; }
.warnc { color: var(--warn); font-weight: 600; }
.okc { color: var(--ok); font-weight: 600; }
.negc, .row .amt.neg { color: var(--bad); }
.row .amt small.up { color: var(--bad); }
.row .amt small.down { color: var(--ok); }
.row .t2.wrap { white-space: normal; }
.frow { cursor: pointer; padding: 12px 16px; }
.ftoggles.locked .frow { cursor: default; }
.ftoggles.locked .frow .main, .ftoggles.locked .frow .switch, .ftoggles.locked .frow .ftile { opacity: .5; }
.wcard { padding: 14px 16px; }
.wcard .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wcard .row1 b { font-size: 15.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard .row1 span { white-space: nowrap; }
.wbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wbtns .btn svg { width: 17px; height: 17px; }
.taxgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.taxbox { background: var(--surface); border-radius: var(--radius); padding: 14px; min-width: 0; }
.month button[disabled] { opacity: .3; }
.kvrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; font-size: 14.5px; }
.kvrow + .kvrow { border-top: 1px solid var(--line); }
.kvrow > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 650; margin-right: 8px; }
a.potcard { display: block; padding: 16px 18px; }
a.potcard:active { background: var(--surface-2); }
.hero .potcard { margin-top: 6px; padding: 0; }
.shopadd { display: grid; grid-template-columns: 1fr 52px; gap: 8px; margin-bottom: 6px; }
.shopadd .btn { height: 48px; padding: 0; border-radius: 13px; }
.shoprow { min-height: 54px; padding-left: 8px; }
.shoprow + .shoprow::before { left: 54px; }
.shopchk { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-3); flex: none; padding: 0; }
.shopchk svg { width: 26px; height: 26px; }
.shoprow.done .shopchk { color: var(--accent); }
.shoprow.done .t1 { color: var(--ink-3); text-decoration: line-through; }
.shoprow .icon-btn { color: var(--ink-3); }
.pchart { width: 100%; height: auto; display: block; overflow: visible; }
.items li.tap { padding: 0; }
.items li.tap .itemlink { display: grid; grid-template-columns: 1fr auto 16px; gap: 2px 10px; padding: 10px 0; align-items: center; }
.items li.tap:first-child .itemlink { padding-top: 0; }
.items li.tap .itemlink .ct { grid-column: 1 / 3; }
.items li.tap .ich { grid-column: 3; grid-row: 1 / 3; width: 16px; height: 16px; color: var(--ink-3); }
.items li.tap .itemlink:active { opacity: .6; }
.print-head, .print-foot { display: none; }
.report-hero .amount { font-size: 44px; }

/* Druckansicht / „Als PDF sichern“ – immer hell, nur der Inhalt */
@media print {
  :root, :root[data-theme] { --bg: #fff; --surface: #fff; --surface-2: #EDEDF0; --surface-3: #D1D1D6; --ink: #000; --ink-2: #3A3A3C; --ink-3: #6E6E73; --line: rgba(0,0,0,.14); --line-strong: rgba(0,0,0,.25); color-scheme: light; }
  html, body, .app { background: #fff !important; box-shadow: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tabbar, .toast, .sync-pill, .sheet, .sheet-backdrop, .no-print, .subnav .icon-btn, .subnav .link-btn { display: none !important; }
  .view { padding: 0 !important; }
  .view.enter { animation: none; }
  .card, .list, .taxbox { border: 1px solid var(--line); break-inside: avoid; }
  .print-head, .print-foot { display: block; }
  .print-head { font-size: 12px; color: var(--ink-3); margin: 0 0 10px; }
  .app { max-width: none; }
  a { color: inherit; }
}

/* ---------- Mehrere Haushalte: Umschalter oben (wie iOS-Segmente) ---------- */
.hh-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 3px; border-radius: 12px; gap: 2px; margin: 0 0 10px; }
.hh-seg button { border: 0; background: transparent; border-radius: 9px; height: 34px; padding: 0 8px; font-size: 14px; font-weight: 550; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; transition: background .2s var(--ease), color .2s; }
.hh-seg button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12), inset 0 -2px 0 var(--hc, var(--accent)); }
.hh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hc, var(--accent)); flex: none; display: inline-block; }
.hh-dot.lg { width: 24px; height: 24px; }
.hh-pick { --hc: var(--accent); display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--surface-2); border-radius: 999px; height: 34px; padding: 0 10px 0 12px; font-size: 14px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.hh-pick svg { width: 15px; height: 15px; transform: rotate(90deg); color: var(--ink-3); }
.hh-badge { --hc: var(--accent); width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; background: var(--hc); }
.hh-badge.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 21px; }
.hh-colors .chip { border-color: transparent; background: transparent; }
.hh-colors .chip[aria-pressed="true"] { background: transparent; border-color: var(--ink); }
div.row.static { cursor: default; }

/* ---------- Face ID ---------- */
.faceid-hero, .backup-status { display: flex; gap: 14px; align-items: flex-start; }
.faceid-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.faceid-ico svg { width: 26px; height: 26px; }
.faceid-ico.big { width: 64px; height: 64px; border-radius: 18px; margin: 4px auto 10px; }
.faceid-ico.big svg { width: 38px; height: 38px; }
.faceid-offer { text-align: center; padding: 4px 6px 14px; }
.faceid-offer h3 { margin: 0 0 6px; }
.faceid-offer p { margin: 0; }
.backup-status.due .faceid-ico { background: var(--warn-soft); color: var(--warn); }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 16px 0; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.faceid-btn svg { width: 22px; height: 22px; }
.faceid-note { text-align: center; }

/* ---------- Sicherung ---------- */
.backup-hint { display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: var(--radius-s); margin: 0 0 14px; padding: 0 4px 0 14px; min-height: 46px; font-size: 14px; color: var(--ink-2); }
.backup-hint a { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 0; }
.backup-hint a svg { width: 20px; height: 20px; color: var(--warn); flex: none; }
.backup-hint b { color: var(--accent); font-weight: 600; }
.backup-hint button { border: 0; background: none; color: var(--ink-3); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.backup-hint button svg { width: 16px; height: 16px; }
.import-preview .row { min-height: 46px; }
.import-preview .row + .row::before { left: 16px; }

/* ---------- Installieren, Druckliste ---------- */
.install-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: st; }
.install-steps li { counter-increment: st; position: relative; padding: 10px 4px 10px 44px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.install-steps li:last-child { border-bottom: 0; }
.install-steps li::before { content: counter(st); position: absolute; left: 4px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.install-steps li b { display: block; font-weight: 600; }
.install-steps li span { color: var(--ink-2); font-size: 13.5px; }
.print-doc { background: var(--surface); border-radius: var(--radius); padding: 16px 14px; }
.print-title { font-size: 17px; margin-bottom: 12px; }
.print-title small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pmonth { font-size: 15px; margin: 18px 0 6px; display: flex; justify-content: space-between; }
.pmonth span { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.ptab { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.ptab th { text-align: left; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); padding: 4px 3px; }
.ptab td { border-bottom: 1px solid var(--line); padding: 5px 3px; vertical-align: top; overflow-wrap: anywhere; }
.ptab td small { display: block; color: var(--ink-3); font-size: 11px; }
.ptab .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptab th:nth-child(1) { width: 15%; } .ptab th:nth-child(3) { width: 22%; } .ptab th:nth-child(4) { width: 16%; } .ptab th:last-child { width: 20%; }
.ptab.cats th:last-child { width: 30%; }
.ptab.cats { margin-bottom: 4px; }
@media print { .print-doc { padding: 0; } .ptab tr { break-inside: avoid; } .hh-seg, .hh-pick, .backup-hint { display: none !important; } }
.ptab.cats th:first-child { width: auto; }
