:root {
  --side-bg: #efede7; --hover: rgba(0,0,0,.04);
  --bg: #f5f4f0; --card: #fff; --ink: #1c1d1f; --muted: #6b6e73; --line: #e4e2dc;
  --accent: #1f5c86; --accent-ink: #fff; --accent-soft: #e6eef4;
  --pos: #23744b; --neg: #b3362c; --warn-bg: #fff5dc; --warn-line: #ecd48f;
  --ok-bg: #e7f3ec; --err-bg: #fbe9e7; --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 2px 8px rgba(20, 20, 20, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151618; --card: #1f2023; --ink: #ececea; --muted: #9a9ca1; --line: #303236;
    --accent: #6aa7d3; --accent-ink: #0f1a22; --accent-soft: #1d2a34; --pos: #6cc495; --neg: #f08a80;
    --warn-bg: #3a3220; --warn-line: #6b5a2a; --ok-bg: #1d3125; --err-bg: #3a2220; color-scheme: dark; --side-bg: #1a1b1d; --hover: rgba(255,255,255,.05); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; margin: 0; letter-spacing: -.01em; line-height: 1.25; }
h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
code { background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .r { text-align: right; } .nowrap { white-space: nowrap; }
.pos { color: var(--pos); } .neg { color: var(--neg); } .hidden { display: none !important; }

/* Seitenleiste (Desktop) */
body.has-side main { margin-left: 250px; }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 250px; background: var(--side-bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px 12px; z-index: 20; }
.sidebar .brand { padding: 4px 10px 16px; }
.side-search input { background: var(--card); border-color: var(--line); min-height: 40px; padding: 8px 12px 8px 34px; font-size: .95rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 10px center; background-size: 16px; }
.side-nav { flex: 1; overflow-y: auto; margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.side-nav > a, .side-sub a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .97rem; }
.side-nav > a .ico { width: 20px; height: 20px; margin: 0; color: var(--muted); flex: none; }
.side-nav > a span, .side-sub a span { flex: 1; }
.side-nav > a:hover, .side-sub a:hover { background: var(--hover); }
.side-nav > a.active { background: var(--card); font-weight: 600; box-shadow: var(--shadow); } .side-nav > a.active .ico { color: var(--accent); }
.side-sub { margin: 2px 0 6px 20px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.side-sub a { padding: 7px 10px; font-size: .92rem; color: var(--muted); } .side-sub a.active { color: var(--ink); font-weight: 600; background: var(--card); }
.side-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 10px 6px; }
.nb { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.nb-red { background: var(--neg); color: #fff; } .nb-amber { background: #e7a628; color: #2a1c00; } .nb-blue { background: var(--accent); color: #fff; }
.side-user { position: relative; border-top: 1px solid var(--line); padding-top: 10px; }
.side-user summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; }
.side-user summary:hover { background: var(--hover); }
.side-user .who { flex: 1; min-width: 0; } .side-user .who b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .side-user .who small { color: var(--muted); font-size: .8rem; }
.side-user .dots { color: var(--muted); }
.menu-pop.up { top: auto; bottom: calc(100% + 6px); left: 0; right: 0; }
.mobilebar { display: none; }
.subnav { display: none; }
.ico-offers { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M8 9h8M8 13h8M8 17h4'/%3E%3C/svg%3E"); }
.ico-bank { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M10 10v8M14 10v8M19 10v8M3 21h18'/%3E%3C/svg%3E"); }
.ico-euer { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20V4M4 20h16M8 16l4-5 3 3 5-6'/%3E%3C/svg%3E"); }
.ico-import { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 19h16'/%3E%3C/svg%3E"); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 62px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { display: block; flex: none; }
.mainnav { display: flex; gap: 2px; flex: 1; }
.mainnav a { padding: 9px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.mainnav a:hover { background: var(--bg); color: var(--ink); }
.mainnav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
details.newmenu, details.usermenu { position: relative; }
details.newmenu > summary, details.usermenu > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.menu-pop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; z-index: 30; }
.menu-pop.right { left: auto; right: 0; }
.menu-pop a, .menu-link { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu-pop a:hover, .menu-link:hover { background: var(--bg); }
.menu-pop a b { display: block; font-weight: 600; } .menu-pop a span { display: block; font-size: .82rem; color: var(--muted); }
.tabbar { display: none; }
.subnav { display: flex; gap: 6px; margin: -4px 0 20px; overflow-x: auto; padding-bottom: 2px; }
.subnav a { padding: 7px 16px; border-radius: 99px; color: var(--muted); text-decoration: none; background: var(--card); border: 1px solid var(--line); font-size: .92rem; white-space: nowrap; }
.subnav a.active { background: var(--ink); border-color: var(--ink); color: var(--card); font-weight: 600; }
.ico { display: block; width: 22px; height: 22px; margin: 0 auto 2px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-dashboard { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.ico-documents { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M14 2v6h6M9 13h7M9 17h5'/%3E%3C/svg%3E"); }
.ico-customers { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-6 7-6s7 2 7 6M16 4a4 4 0 0 1 0 8M22 21c0-3-1.5-5-4-5.7'/%3E%3C/svg%3E"); }
.ico-bookings { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 20h18M6 16v-5M11 16V7M16 16v-8M21 16V4'/%3E%3C/svg%3E"); }
.ico-settings { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }

main { max-width: 1180px; margin: 0 auto; padding: 24px; }
main.plain { display: grid; place-items: center; min-height: 100vh; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Karten & Layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card.narrow { max-width: 640px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid2 > .card { margin-bottom: 0; } .grid2 { margin-bottom: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tile span { display: block; color: var(--muted); font-size: .85rem; }
.tile strong { display: block; font-size: 1.5rem; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile small { color: var(--muted); }
.tile.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile.accent span { color: inherit; opacity: .8; }

.bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.bar div { height: 100%; background: var(--accent); border-radius: 99px; }
.bar div.warn { background: #d08a1c; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--neg); }
.btn.danger:hover { border-color: var(--neg); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .88rem; border-radius: 8px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; }
form.inline { display: inline; }

/* Formulare */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.fields .full { grid-column: 1 / -1; }
label { display: block; font-size: .88rem; color: var(--muted); font-weight: 500; }
label > input, label > select, label > textarea, label > .with-btn, label > .suffix, label > div { margin-top: 5px; }
label > .with-btn, label > .suffix { display: flex; }
label .muted { font-weight: 400; }
.hint-inline { display: block; margin-top: 4px; }
.seg label, .swatch, label.check, .inline-label { display: flex; }
.choice { display: flex; flex-direction: column; gap: 6px; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; min-height: 44px; }
input[type=file] { padding: 8px; }
input[readonly] { background: var(--bg); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { background: transparent; border-color: transparent; color: var(--ink); padding-left: 0; -webkit-text-fill-color: var(--ink); opacity: 1; }
fieldset:disabled select { appearance: none; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-weight: 400; margin: 10px 0; }
label.check input { width: 20px; min-height: 20px; height: 20px; }
.inline-label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.inline-label input { width: auto; }
.with-btn { display: flex; gap: 8px; } .with-btn > :first-child { flex: 1; }
.search { display: flex; gap: 8px; margin-bottom: 16px; } .search input { max-width: 420px; } .search select { width: auto; }
.head .search { margin: 0; }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.seg label { flex-direction: row; } .seg input { display: none; }
.seg span { padding: 8px 20px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 1rem; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }

/* Tabellen */
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
table.list th.r { text-align: right; }
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr[onclick], table.list td[onclick] { cursor: pointer; }
table.list tr[onclick]:hover td { background: var(--bg); }
table.list tr.sumrow td { font-weight: 700; border-top: 2px solid var(--ink); }
table.list tr.inactive { opacity: .55; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--bg); color: var(--muted); vertical-align: middle; }
h1 .badge { font-size: .8rem; }
.badge.offen, .badge.versendet { background: var(--accent-soft); color: var(--accent); }
.badge.bezahlt, .badge.angenommen, .badge.abgerechnet { background: var(--ok-bg); color: var(--pos); }
.badge.overdue, .badge.abgelehnt { background: var(--err-bg); color: var(--neg); }
.badge.storniert { text-decoration: line-through; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-color: var(--accent); font-weight: 600; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; background: var(--ok-bg); border: 1px solid transparent; }
.flash.err { background: var(--err-bg); }
.flash.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.status-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 20px; }
.overdue-note { width: 100%; background: var(--err-bg); padding: 10px 14px; border-radius: 9px; }

/* Positionen */
.item { display: grid; grid-template-columns: 1fr 76px 104px 110px 110px 40px; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
fieldset:disabled .item { grid-template-columns: 1fr 76px 104px 110px 110px; }
fieldset:disabled ::placeholder { color: transparent; -webkit-text-fill-color: transparent; }
fieldset:disabled textarea { resize: none; }
.item-main { display: flex; flex-direction: column; gap: 6px; }
.item-main textarea { font-size: .9rem; min-height: 38px; }
.i-qty, .i-price { text-align: right; }
.i-sum { text-align: right; padding-top: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.i-del { margin-top: 4px; }
.item-tools { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; } .item-tools select { width: auto; max-width: 100%; }
.total { display: flex; justify-content: flex-end; gap: 24px; align-items: baseline; font-size: 1.05rem; margin-top: 10px; }
.total strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.sticky-actions { position: sticky; bottom: 0; background: var(--card); padding: 14px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); }
form > .sticky-actions { background: var(--bg); border: 0; padding: 14px 0; margin-bottom: 20px; }

details summary { cursor: pointer; color: var(--accent); font-weight: 500; padding: 8px 0; }
details[open] summary { margin-bottom: 8px; }

/* Briefpapier */
.design { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 20px; align-items: start; }
.design-preview { position: sticky; top: 80px; }
.preview-bar { margin-bottom: 10px; }
.paper { position: relative; width: 100%; overflow: hidden; border-radius: 6px; box-shadow: 0 4px 24px rgba(0,0,0,.12); background: #fff; }
.paper iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; transform-origin: top left; background: #fff; }
.small-seg { margin: 0; } .small-seg span { padding: 6px 14px; font-size: .9rem; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.choice { cursor: pointer; align-items: center; text-align: center; color: var(--ink); }
.choice input { position: absolute; opacity: 0; }
.choice b { font-weight: 500; font-size: .9rem; }
.lay { display: flex; flex-direction: column; gap: 5px; width: 100%; aspect-ratio: 0.72; border: 2px solid var(--line); border-radius: 8px; padding: 10px 9px; background: #fff; }
.choice input:checked + .lay { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.lay i { display: block; height: 5px; border-radius: 2px; background: #d9dbde; }
.lay i:nth-child(1) { width: 40%; height: 9px; } .lay i:nth-child(3) { margin-top: auto; height: 12px; }
.lay-modern { border-top: 8px solid #1f5c86; } .lay-modern i:nth-child(3) { background: #1f5c86; width: 55%; margin-left: auto; }
.lay-elegant i:nth-child(1) { margin: 0 auto; } .lay-elegant { background: linear-gradient(#fff, #fff) padding-box; } .lay-elegant i:nth-child(3) { background: none; border-top: 1px solid #999; border-bottom: 3px double #999; border-radius: 0; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { flex-direction: row; cursor: pointer; }
.swatch input[type=radio] { position: absolute; opacity: 0; }
.swatch span, .swatch input[type=color] { width: 36px; height: 36px; border-radius: 50%; display: block; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + span, .swatch.custom input[type=radio]:checked ~ input[type=color] { box-shadow: 0 0 0 2px var(--ink); }
.swatch input[type=color] { padding: 0; min-height: 0; cursor: pointer; overflow: hidden; }
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .swatch input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.logo-drop { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.logo-prev { flex: 1 1 100%; min-height: 90px; display: grid; place-items: center; background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 14px; }
.logo-prev img { max-height: 70px; max-width: 100%; }
.logo-prev.empty { color: var(--muted); font-size: .9rem; text-align: center; }
.design-teaser { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 10px; background: var(--accent-soft); flex-wrap: wrap; }
.c { text-align: center; }

/* Sicherheits-Check */
.checklist { list-style: none; padding: 0; margin: 8px 0 16px; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.checklist li:last-child { border-bottom: 0; }
.ci { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .85rem; }
.ok .ci { background: var(--ok-bg); color: var(--pos); } .todo .ci { background: var(--err-bg); color: var(--neg); }

/* Einstellungen */
.settings { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.settings-main { max-width: 720px; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; }
.side a:hover { background: var(--card); color: var(--ink); }
.side a.active { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d9a441; }
.suffix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card); overflow: hidden; }
.suffix input { border: 0; border-radius: 0; } .suffix span { padding: 0 12px; color: var(--muted); }
.hint-inline { font-size: .82rem; color: var(--muted); font-weight: 400; }
.tabs-inline { display: flex; gap: 6px; margin: 4px 0 12px; }
details.card > summary { cursor: pointer; list-style: none; }

/* Einrichtungsassistent */
.wizard { max-width: 620px; margin: 10px auto; }
.wizard h1 { font-size: 1.5rem; margin-bottom: 4px; }
.wiz-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.wiz-steps span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; flex: 1; min-width: 140px; padding-bottom: 8px; border-bottom: 3px solid var(--line); }
.wiz-steps span.on { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.wiz-steps span.done { color: var(--pos); border-color: var(--pos); }
.wiz-steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-size: .8rem; font-weight: 700; }
.wiz-steps .on i { background: var(--accent); color: #fff; } .wiz-steps .done i { background: var(--pos); color: #fff; }
.wiz-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 22px; }
.next { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--bg); }
.next:hover { border-color: var(--accent); } .next b { display: block; margin-bottom: 4px; } .next span { font-size: .85rem; color: var(--muted); }

/* Formulare: weitere Angaben */
details.more-fields { border-top: 1px solid var(--line); padding-top: 12px; }
details.more-fields summary { cursor: pointer; list-style: none; font-weight: 500; color: var(--accent); }
details.more-fields summary::before { content: "+ "; } details.more-fields[open] summary::before { content: "– "; }
.big-input { font-size: 1.5rem !important; font-weight: 600; font-variant-numeric: tabular-nums; }
label.upload { position: relative; }
label.upload input[type=file] { border-style: dashed; padding: 14px; background: var(--bg); }
.upload-hint { font-size: .85rem; color: var(--muted); font-weight: 400; }

/* Editor */
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 4px; }
.editor { max-width: 980px; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-h h2 { margin: 0; font-size: 1.1rem; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; flex: none; }
.meta-edit { margin-top: 12px; }
.meta-edit summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; padding: 10px 12px; background: var(--bg); border-radius: 9px; }
.meta-edit summary b { color: var(--ink); font-weight: 600; }
.meta-edit summary em { color: var(--accent); font-style: normal; margin-left: auto; }
.meta-edit[open] summary em { visibility: hidden; }
.add-product { margin-bottom: 14px; font-weight: 500; color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.items-head { display: grid; grid-template-columns: 1fr 76px 104px 110px 110px 34px; gap: 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 2px 6px; border-bottom: 1px solid var(--line); }
.items-head span:nth-child(n+2):nth-child(-n+5) { text-align: right; }
.item { grid-template-columns: 1fr 76px 104px 110px 110px 34px !important; border-bottom: 1px solid var(--line) !important; }
.i-desc.collapsed { display: none; }
.i-adddesc { align-self: flex-start; padding: 0; }
.icon-btn { width: 34px; height: 34px; margin-top: 5px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; font-size: .95rem; }
.icon-btn:hover { background: var(--err-bg); color: var(--neg); }
#addItem { margin-top: 12px; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 4px 0; }
.linkbtn.danger { color: var(--neg); }
details.texts summary { cursor: pointer; list-style: none; }
details.texts summary::before { content: "▸ "; color: var(--muted); }
details.texts[open] summary::before { content: "▾ "; }
.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: 0 -4px 24px rgba(0,0,0,.08); margin-bottom: 20px; }
.savebar-total span { color: var(--muted); font-size: .85rem; display: block; }
.savebar-total strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.savebar-total small { display: block; color: var(--muted); font-size: .75rem; }
.savebar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.seg-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
details.more { position: relative; } details.more > summary { list-style: none; }

/* Belegansicht */
.doc-view { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.doc-side { position: sticky; top: 80px; }
.big-total { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn.wide { width: 100%; min-height: 48px; font-size: 1.05rem; }
.paid-note { background: var(--ok-bg); color: var(--pos); font-weight: 600; padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); } .timeline li:last-child { border: 0; }
.timeline b { display: block; font-weight: 500; font-size: .92rem; } .timeline span { font-size: .8rem; color: var(--muted); }

/* Versand */
.attach { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin-bottom: 8px; }
.attach-icon { width: 42px; height: 50px; border-radius: 6px; background: var(--neg); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

/* Bank */
.tx { padding: 14px 0; border-bottom: 1px solid var(--line); } .tx:last-child { border-bottom: 0; }
.tx-head { display: flex; justify-content: space-between; gap: 16px; }
.tx-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Diagramm */
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 180px; align-items: end; }
.chart .col { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 6px; }
.chart .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.chart .b { width: 40%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 1px; }
.chart .b.in, .legend i.in { background: var(--accent); } .chart .b.out, .legend i.out { background: #d9a441; }
.chart span { font-size: .72rem; color: var(--muted); }
.legend { display: flex; gap: 18px; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* Login */
.auth { width: 100%; max-width: 380px; background: var(--card); padding: 32px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth h1 { margin-bottom: 8px; }
.auth-logo { margin-bottom: 18px; }
.auth-links { text-align: center; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 4px; }
.code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; } .auth form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }

@media (max-width: 860px) {
  .sidebar { display: none; } body.has-side main { margin-left: 0; }
  .mobilebar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; padding: 0 16px; height: 58px; background: var(--card); border-bottom: 1px solid var(--line); }
  .subnav { display: flex; }
  .tabbar a { position: relative; } .tb-dot { position: absolute; top: 2px; left: 58%; width: 8px; height: 8px; border-radius: 50%; background: var(--neg); }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; font-size: .7rem; color: var(--muted); text-decoration: none; padding: 4px 0; }
  .tabbar a.active { color: var(--accent); font-weight: 600; }
  main { padding: 16px 16px 96px; }
  .grid2, .design, .doc-view, .settings, .next-grid { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; } .side a { white-space: nowrap; background: var(--card); border: 1px solid var(--line); padding: 7px 12px; }
  .doc-side { position: static; }
  .items-head { display: none; }
  .item { grid-template-columns: 1fr 1fr 1fr 34px !important; }
  .savebar { bottom: 64px; padding: 10px 12px; gap: 8px; border-radius: 12px; }
  .savebar-total { display: flex; align-items: baseline; gap: 8px; } .savebar-total small { display: none; } .savebar-total strong { font-size: 1.3rem; }
  .savebar-btns { width: 100%; flex-wrap: nowrap; } .savebar-btns .btn { flex: 1; min-height: 42px; font-size: .95rem; padding: 0 10px; }
  .with-btn { flex-wrap: wrap; } .with-btn > :first-child { flex: 1 1 100%; }
  .meta-edit summary { font-size: .88rem; }
  .design-preview { position: static; }
  .hide-sm { display: none; }
  h1 { font-size: 1.35rem; }
  .item { grid-template-columns: 1fr 1fr 1fr 40px; }
  .item-main { grid-column: 1 / -1; }
  .i-sum { grid-column: 1 / -2; text-align: left; padding-top: 0; }
  fieldset:disabled .item { grid-template-columns: 1fr 1fr 1fr; }
  .card { padding: 16px; }
}
@media (max-width: 520px) {
  .fields { grid-template-columns: 1fr; }
  .head .actions { width: 100%; } .head .actions .btn { flex: 1; }
  .tile strong { font-size: 1.3rem; }
}
@media print {
  .top, .actions, .search, .sticky-actions, .flash, .btn { display: none !important; }
  body { background: #fff; } .card, .tile { box-shadow: none; }
}
form.card > .sticky-actions { background: var(--card); border-top: 1px solid var(--line); margin: 16px -20px 0; padding: 14px 20px; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Farben für Status (überall gleich) ---------- */
:root { --c-red: #c4392d; --c-red-bg: #fde8e5; --c-amber: #a86a00; --c-amber-bg: #fdf1d6; --c-blue: #1f5c86; --c-blue-bg: #e3eef6;
        --c-green: #23744b; --c-green-bg: #e2f2e8; --c-violet: #5b4ac4; --c-violet-bg: #ece9fb; --c-grey: #6b6e73; --c-grey-bg: #ecebe7; }
@media (prefers-color-scheme: dark) { :root { --c-red: #f08a80; --c-red-bg: #3a2220; --c-amber: #f2c55c; --c-amber-bg: #3a3220; --c-blue: #7fb6dd; --c-blue-bg: #1d2a34;
        --c-green: #6cc495; --c-green-bg: #1d3125; --c-violet: #b3a8f3; --c-violet-bg: #2a2540; --c-grey: #a0a2a6; --c-grey-bg: #2a2b2e; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-red { background: var(--c-red-bg); color: var(--c-red); } .pill-red::before { background: none; border: 2px solid currentColor; width: 5px; height: 5px; }
.pill-amber { background: var(--c-amber-bg); color: var(--c-amber); } .pill-blue { background: var(--c-blue-bg); color: var(--c-blue); }
.pill-green { background: var(--c-green-bg); color: var(--c-green); } .pill-violet { background: var(--c-violet-bg); color: var(--c-violet); } .pill-violet::before { display: none; }
.pill-grey { background: var(--c-grey-bg); color: var(--c-grey); }
.warn-t { color: var(--c-amber); font-weight: 600; } .strike { text-decoration: line-through; }

/* ---------- Listen wie in sevdesk ---------- */
body.has-side main { max-width: 1260px; padding: 28px 36px 40px; }
.list-head h1 { font-size: 1.8rem; } .subline { margin: 4px 0 0; color: var(--muted); }
.btn.big { min-height: 46px; padding: 0 22px; font-size: 1rem; }
.table-card { padding: 0; overflow: hidden; }
.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chips .chip { text-decoration: none; border-color: transparent; background: none; color: var(--ink); font-weight: 500; }
.chips .chip:hover { background: var(--bg); } .chips .chip.on { background: var(--bg); border-color: var(--line); font-weight: 600; color: var(--ink); }
.chips .chip i { font-style: normal; font-size: .75rem; color: var(--muted); margin-left: 2px; }
.chips .chip.alert i { background: var(--c-red); color: #fff; border-radius: 99px; padding: 1px 6px; }
.filter-tools { display: flex; gap: 8px; } .filter-tools select, .filter-tools input { min-height: 38px; padding: 6px 10px; width: auto; } .filter-tools input { width: 180px; }
table.list.doc-table th { background: var(--bg); padding: 14px 14px; border-bottom: 1px solid var(--line); font-size: .74rem; vertical-align: middle; }
table.list.doc-table td { padding: 16px 14px; vertical-align: middle; line-height: 1.35; }
table.list.doc-table th { white-space: nowrap; }
table.list.doc-table td:has(> .pill), table.list.doc-table td.nowrap { white-space: nowrap; width: 1%; }
table.list.doc-table th:first-child, table.list.doc-table td:first-child { padding-left: 22px; }
table.list.doc-table th:last-child, table.list.doc-table td:last-child { padding-right: 18px; white-space: nowrap; }
.doc-table .cust { display: block; font-weight: 500; } .doc-table .sub { display: block; margin-top: 3px; }
.doc-table tr.row-red td:first-child { box-shadow: inset 3px 0 0 var(--c-red); }
.nr { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); } .nr svg { color: var(--muted); }
.row-actions { width: 1%; } .row-actions form { display: inline; }
.icon-act { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; }
.icon-act:hover { background: var(--bg); color: var(--ink); } .icon-act.ok:hover { background: var(--c-green-bg); color: var(--c-green); } .icon-act.warn { color: var(--c-red); } .icon-act.warn:hover { background: var(--c-red-bg); }
.empty { text-align: center; padding: 48px 20px; } .empty p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Startseite ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.quick a { position: relative; display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.quick a:hover { border-color: var(--accent); transform: translateY(-1px); }
.quick .ico { width: 26px; height: 26px; margin: 0 0 18px; color: var(--ink); } .quick b { font-weight: 600; }
.quick .nb { position: absolute; top: 14px; right: 14px; }
.lbl { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.profit { padding: 0; overflow: hidden; }
.profit-head { display: flex; justify-content: space-between; gap: 20px; padding: 24px 24px 8px; flex-wrap: wrap; }
.profit-head strong { display: block; font-size: 2.2rem; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpis { display: flex; gap: 10px; } .kpis > div { background: var(--bg); border-radius: 12px; padding: 12px 18px; text-align: right; } .kpis b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.sq { width: 9px; height: 9px; border-radius: 2px; display: inline-block; } .sq.v { background: #8c7ee0; } .sq.r { background: #eda79e; }
.mchart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; height: 220px; padding: 10px 24px 0; align-items: end; }
.mcol { display: flex; flex-direction: column; height: 100%; gap: 8px; } .mcol span { text-align: center; font-size: .8rem; color: var(--muted); }
.mbars { flex: 1; display: flex; align-items: flex-end; gap: 4px; } .mb { flex: 1; border-radius: 6px 6px 0 0; min-height: 2px; } .mb.v { background: #a99ee9; } .mb.r { background: #f0b3aa; }
.card-foot { display: block; text-align: right; padding: 12px 24px; margin-top: 16px; background: var(--bg); color: var(--accent); text-decoration: none; font-weight: 600; font-size: .92rem; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .dash-grid > .card { margin: 0; }
.dash-grid h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 14px; }
.bigbox { background: var(--bg); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; } .bigbox strong { display: block; font-size: 1.7rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.srow { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.srow:last-child { border: 0; } .srow:hover { background: var(--bg); border-radius: 8px; } .srow span { flex: 1; } .srow b { font-variant-numeric: tabular-nums; } .srow em { color: var(--muted); font-style: normal; }
.cnt { font-style: normal; min-width: 34px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-size: .82rem; font-weight: 700; }
.cnt.red { background: var(--c-red-bg); color: var(--c-red); } .cnt.blue { background: var(--c-blue-bg); color: var(--c-blue); } .cnt.violet { background: var(--c-violet-bg); color: var(--c-violet); } .cnt.grey { background: var(--c-grey-bg); color: var(--c-grey); }
.kubar { height: 40px; background: var(--c-violet-bg); border-radius: 10px; overflow: hidden; margin: 14px 0 8px; } .kubar div { height: 100%; background: #a99ee9; border-radius: 10px 0 0 10px; }
.kubar div.warm { background: #e7a628; } .kubar div.hot { background: var(--c-red); }
.bankrow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; text-decoration: none; color: var(--ink); border-radius: 8px; position: relative; } .bankrow:hover { background: var(--bg); }
.bav { width: 38px; height: 38px; border-radius: 50%; background: var(--c-blue-bg); color: var(--c-blue); display: grid; place-items: center; font-weight: 700; flex: none; }
.bt { flex: 1; min-width: 0; } .bt b { display: block; font-weight: 500; } .bt small { color: var(--muted); font-size: .82rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba { font-variant-numeric: tabular-nums; white-space: nowrap; } .ba.in { background: var(--c-green-bg); color: var(--c-green); padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.todo-dot { position: absolute; left: 32px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #e7a628; border: 2px solid var(--card); }
.empty-s { text-align: center; padding: 20px 0; }
.gauge { width: 100%; max-width: 280px; display: block; margin: 0 auto 6px; } .gauge-t { font-size: 30px; font-weight: 700; fill: var(--ink); }
.g-green { stroke: #3fa66b; } .g-amber { stroke: #e7a628; } .g-red { stroke: #d9695b; }
ul.todo { list-style: none; padding: 0; margin: 8px 0 0; } ul.todo a { display: flex; align-items: center; gap: 10px; padding: 9px 6px; text-decoration: none; color: var(--ink); border-radius: 8px; }
ul.todo a:hover { background: var(--bg); } ul.todo em { margin-left: auto; color: var(--muted); font-style: normal; }
.dotc { width: 10px; height: 10px; border-radius: 50%; flex: none; } .dotc.red { background: var(--c-red); } .dotc.amber { background: #e7a628; } .dotc.blue { background: var(--c-blue); } .dotc.violet { background: var(--c-violet); }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; } .donut { width: 170px; flex: none; } .donut-t { font-size: 15px; font-weight: 700; fill: var(--ink); }
.legend-l { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 180px; } .legend-l li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .92rem; }
.legend-l i { width: 12px; height: 12px; border-radius: 3px; flex: none; } .legend-l span { flex: 1; } .legend-l b { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--muted); }
.prow { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); } .prow:last-child { border: 0; }
.prow small { display: block; color: var(--muted); font-size: .8rem; } .bigbox.soft .lbl { margin-bottom: 6px; }
ul.feed { list-style: none; padding: 0; margin: 0; } ul.feed li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); } ul.feed li:last-child { border: 0; }
ul.feed li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 18px; height: 18px; background: var(--muted); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3C/svg%3E"); }
ul.feed li.f-customer::before { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
ul.feed li.f-paid::before { background: var(--c-green); } ul.feed li.f-mail::before { background: var(--c-blue); }
ul.feed small { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--muted); } ul.feed a { color: var(--accent); text-decoration: none; }

/* ---------- Import ---------- */
.wizard.wide { max-width: 980px; }
.pick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.pick { cursor: pointer; } .pick input { position: absolute; opacity: 0; }
.pick span { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); } .pick b { display: block; color: var(--ink); } .pick small { color: var(--muted); font-weight: 400; }
.pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.mapgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; margin: 14px 0 20px; }
.mapgrid select.mapped { border-color: var(--c-green); } .sample { display: block; font-size: .78rem; color: var(--muted); margin-top: 3px; min-height: 1em; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; } .preview-t th { background: var(--bg); padding: 10px; } .preview-t td { font-size: .88rem; white-space: nowrap; }
ul.result { padding-left: 20px; line-height: 1.9; } .tip { background: var(--c-blue-bg); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
details.help ul { line-height: 1.8; padding-left: 18px; margin: 12px 0 0; } details.help summary { cursor: pointer; }

@media (max-width: 1100px) { .quick { grid-template-columns: repeat(2, 1fr); } .dash-grid, .mapgrid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  body.has-side main { padding: 16px 16px 96px; }
  .filter-tools input { width: 120px; } .doc-table th:nth-child(2), .doc-table td:nth-child(2) { display: none; }
  table.list.doc-table td, table.list.doc-table th { padding: 14px 10px; } .pick3 { grid-template-columns: 1fr; } .profit-head strong { font-size: 1.7rem; }
  .mchart { gap: 8px; height: 170px; } .kpis { width: 100%; } .kpis > div { flex: 1; }
}

/* ---------- Belege ---------- */
.dropzone { position: relative; display: block; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 60%, var(--card)); border-radius: 16px; padding: 26px 20px; text-align: center; cursor: pointer; margin-bottom: 20px; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.over { background: var(--accent-soft); border-color: var(--accent); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-inner .ico { width: 30px; height: 30px; color: var(--accent); margin: 0 auto 8px; }
.dz-inner b { display: block; font-size: 1.1rem; } .dz-inner span { display: block; color: var(--muted); margin-top: 2px; } .dz-inner small { display: block; color: var(--muted); margin-top: 10px; font-size: .82rem; }
.dz-busy { display: none; font-weight: 600; color: var(--accent); }
.dropzone.busy .dz-inner { display: none; } .dropzone.busy .dz-busy { display: block; padding: 24px 0; }
.dropzone.busy .dz-busy::before { content: ""; display: inline-block; width: 16px; height: 16px; border: 3px solid var(--accent); border-right-color: transparent; border-radius: 50%; margin-right: 10px; vertical-align: -3px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips .chip.alert-amber i { background: #e7a628; color: #2a1c00; border-radius: 99px; padding: 1px 6px; }
.doc-table tr.row-amber td:first-child { box-shadow: inset 3px 0 0 #e7a628; }
.review-note { background: var(--c-amber-bg); color: var(--ink); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; border-left: 4px solid #e7a628; }
.bank-linked { background: var(--c-green-bg); color: var(--c-green); padding: 8px 12px; border-radius: 8px; }
.receipt-view { display: grid; grid-template-columns: minmax(320px, 460px) 1fr; gap: 20px; align-items: start; }
.receipt-view > form { margin: 0; }
.receipt-paper { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 20px; }
.receipt-paper img { width: 100%; border-radius: 8px; display: block; } .receipt-paper iframe { width: 100%; height: 78vh; border: 0; border-radius: 8px; background: #fff; }
@media (max-width: 1000px) { .receipt-view { grid-template-columns: 1fr; } .receipt-paper { position: static; } .receipt-paper iframe { height: 60vh; } }
@media (min-width: 861px) { body.has-side .subnav { display: none; } }

.show-md { display: none !important; }
@media (max-width: 1240px) { .hide-md { display: none; } .show-md { display: block !important; } }

details.assign { display: contents; } details.assign > summary { list-style: none; } details.assign > summary::-webkit-details-marker { display: none; }
details.assign[open] > summary { background: var(--bg); } details.assign > form { flex-basis: 100%; margin-top: 4px; max-width: 640px; }
details.assign select { min-width: 0; flex: 1; }

.admin-pop { max-height: 70vh; overflow-y: auto; } .admin-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.pop-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 12px 4px; }
.side-user.on > summary { background: var(--hover); }
.ico-times { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2.5M9 2h6'/%3E%3C/svg%3E"); }

.upload-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; margin-top: 14px; }
.upload-drop:hover { border-color: var(--accent, #1f5c86); } .upload-drop input { display: none; }
.update-hero.new { border-color: var(--c-blue, #3b82f6); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; } .update-hero h2 { margin: 0; }
details.card > summary { cursor: pointer; }
.inbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 18px; padding: 0 4px; }
.times-top { align-items: start; } .timer .clock { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; margin: 4px 0; }
.timer.is-running { border-color: var(--c-green, #2f9e62); box-shadow: inset 4px 0 0 var(--c-green, #2f9e62); } .btn.big { min-height: 48px; padding: 0 22px; font-size: 1rem; margin-top: 12px; }
.time-group + .time-group { border-top: 1px solid var(--line); } .tg-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px 6px; flex-wrap: wrap; } .tg-head b { font-size: 1.02rem; } .tg-head .btn { margin-left: auto; }
.euer-lines .zeile { display: inline-block; min-width: 36px; text-align: center; padding: 2px 8px; border-radius: 6px; background: var(--c-blue-bg, #e8f0f8); }
.euer-lines tr.sec td { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 18px; }
