/* Gemeinsame Gestaltung der Verkaufs-Seiten (Umsatz, Bestellungen, Was ist übrig) */
:root {
  --bg: #f4f6f8; --surface: #ffffff; --surface-2: #eceff3; --border: #dde2e8; --border-strong: #c8d0da;
  --text: #1a2029; --text-muted: #59636f; --text-faint: #8a94a1;
  --accent: #2d5c8f; --accent-soft: #e7eef6; --good: #2c8a52; --good-soft: #e3f2e8;
  --warn: #b06d12; --warn-soft: #f7ecd8; --danger: #c0392b; --danger-soft: #f8e6e3;
  --shadow: 0 1px 2px rgba(20,30,45,.04), 0 2px 8px rgba(20,30,45,.05); --radius: 10px; --maxw: 1180px; font-synthesis: none;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1319; --surface: #171d26; --surface-2: #1e2530; --border: #29313d; --border-strong: #38424f;
  --text: #e6eaef; --text-muted: #99a3b0; --text-faint: #6b7683; --accent: #6ea3e0; --accent-soft: #1b2a3c;
  --good: #4dba71; --good-soft: #16281d; --warn: #d6a24a; --warn-soft: #2c2416; --danger: #e07064; --danger-soft: #2c1a18;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 2px 10px rgba(0,0,0,.35); } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
header.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.btn-home { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 650; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--accent); text-decoration: none; }
.btn-home:hover { border-color: var(--accent); background: var(--accent-soft); }
.crumb { font-size: 17px; font-weight: 600; color: var(--text); } .crumb a { color: var(--accent); text-decoration: none; font-weight: 600; } .crumb a:hover { text-decoration: underline; }
.topbar-spacer { flex: 1; }
.nav a { color: var(--text-muted); text-decoration: none; margin-left: 14px; font-size: 15px; } .nav a.aktiv, .nav a:hover { color: var(--accent); font-weight: 600; }
main { max-width: var(--maxw); margin: 0 auto; padding: 22px 16px 64px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.sub { margin: 0 0 16px; color: var(--text-muted); font-size: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }
.btn, .btn2 { font: inherit; font-size: 16px; font-weight: 600; padding: 10px 16px; border-radius: 9px; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.btn2 { background: var(--surface); color: var(--accent); }
.btn:hover, .btn2:hover { filter: brightness(1.06); }
.btn.gross { font-size: 18px; padding: 12px 22px; }
input[type=date], select { font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.banner { padding: 12px 16px; border-radius: 9px; margin: 0 0 16px; font-size: 16px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.banner.danger { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.banner.info { background: var(--accent-soft); color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 18px; }
.card h2 { margin: 0 0 10px; font-size: 20px; }
.card h2 small { font-weight: 500; color: var(--text-muted); font-size: 15px; margin-left: 10px; }
table.t { border-collapse: collapse; width: 100%; font-size: 16px; }
table.t th, table.t td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
table.t th { color: var(--text-muted); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t tr.sum td { font-weight: 700; border-top: 2px solid var(--border-strong); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .l { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi .v { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.kpi .d { font-size: 15px; color: var(--text-muted); margin-top: 4px; }
.plus { color: var(--good); } .minus { color: var(--danger); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.tabs button { font: inherit; font-size: 16px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); cursor: pointer; }
.tabs button.aktiv { background: var(--accent); border-color: var(--accent); color: #fff; }
.bar { display: flex; align-items: center; gap: 10px; margin: 3px 0; font-size: 15px; }
.bar .n { width: 150px; flex: none; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .b { height: 14px; border-radius: 0 4px 4px 0; background: var(--accent); min-width: 2px; }
.bar .v { color: var(--text); font-weight: 600; white-space: nowrap; }
.stand { font-size: 15px; color: var(--text-muted); }
.stand b { color: var(--text); }
@media (max-width: 700px) { h1 { font-size: 23px; } .kpi .v { font-size: 28px; } table.t { font-size: 15px; } table.t th, table.t td { padding: 6px 6px; } }
@media print { header.topbar, .toolbar, .banner, .noprint { display: none !important; } body { background: #fff; color: #000; } main { padding: 0; max-width: none; } }
