/* Pillipp Dashboard. Farben der Lebküchnerei: Braun als Marke, Gold nur für die eine Hauptaktion je Seite. */
:root {
  --bg: #f4f3f0; --card: #ffffff; --ink: #1c1a17; --muted: #6a665f; --line: #e3e0da;
  --brand: #56462e; --brand-deep: #2f261a; --on-brand: #f6efe2; --gold: #dcaa45; --gold-ink: #2f261a;
  --ok: #2f6b3f; --ok-bg: #e4f1e6; --warn: #8a5a00; --warn-bg: #fbefd2; --bad: #8b2420; --bad-bg: #f6e3df; --info-bg: #ece8df;
  --radius: 14px; --nav-w: 15rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; line-height: 1.5; font-size: 1rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.boot { padding: 3rem 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── Gerüst: links Navigation (Desktop), unten Leiste (Handy) ── */
.shell { display: grid; min-height: 100svh; }
.side { display: none; }
.main { min-width: 0; padding: 1.25rem 1rem calc(5.5rem + env(safe-area-inset-bottom)); max-width: 70rem; width: 100%; margin-inline: auto; display: grid; gap: 1.25rem; align-content: start; }
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 0.15rem; padding: 0.55rem 0.25rem 0.5rem; font-size: 0.6875rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current] { color: var(--brand); font-weight: 700; }
.tabbar svg, .side svg { width: 1.4rem; height: 1.4rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar img { height: 2.25rem; width: auto; }
.topbar a { font-size: 0.875rem; }
@media (min-width: 60em) {
  .shell { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 0.25rem; position: sticky; top: 0; height: 100svh; padding: 1.25rem 0.9rem; background: var(--brand-deep); color: var(--on-brand); }
  .side__logo { display: block; padding: 0.5rem 0.6rem 1.25rem; }
  .side__logo img { height: 2.75rem; width: auto; filter: brightness(0) invert(0.93) sepia(0.2); }
  .side a.nav { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.75rem; border-radius: 10px; color: #d2c4aa; text-decoration: none; font-weight: 500; }
  .side a.nav:hover { background: rgb(255 255 255 / 0.07); color: var(--on-brand); }
  .side a.nav[aria-current] { background: rgb(255 255 255 / 0.13); color: #fff; }
  .side__foot { margin-top: auto; display: grid; gap: 0.35rem; padding: 0.75rem; font-size: 0.875rem; color: #d2c4aa; }
  .side__foot a, .side__foot button { color: inherit; background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 0.2em; }
  .tabbar, .topbar { display: none; }
  .main { padding: 2rem 2rem 3rem; }
}

/* ── Bausteine ── */
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 1rem; }
.head p { color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(28 26 23 / 0.04); padding: 1.1rem; display: grid; gap: 0.9rem; min-width: 0; }
.card--flush { padding: 0; gap: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #3f3322; }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: #cc9a35; }
.btn--quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px #cfcbc3; }
.btn--quiet:hover { background: var(--bg); }
.btn--danger { background: var(--card); color: var(--bad); box-shadow: inset 0 0 0 1px #e0b8b3; }
.btn--danger:hover { background: var(--bad-bg); }
.btn--small { min-height: 2.25rem; padding: 0 0.8rem; font-size: 0.875rem; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn--block { width: 100%; }
.field { width: 100%; min-height: 2.75rem; padding: 0.55rem 0.8rem; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #cfcbc3; }
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
textarea.field { resize: vertical; min-height: 5rem; }
.fld { display: grid; gap: 0.35rem; min-width: 0; align-content: start; }
.fld > span { font-size: 0.875rem; font-weight: 600; }
.fld small { color: var(--muted); }
.grid2 { display: grid; gap: 0.9rem; }
@media (min-width: 36em) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .wide { grid-column: 1 / -1; } }
.check { display: flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; padding: 0.6rem 0.8rem; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.check:has(input:checked) { background: #faf6ec; box-shadow: inset 0 0 0 2px var(--brand); }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); flex: none; }
.error { padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.empty { padding: 1.5rem 1.1rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; background: var(--info-bg); color: var(--brand-deep); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chips { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 2.5rem; padding: 0 0.95rem; border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 0.875rem; }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: none; }
.toolbar { display: grid; gap: 0.75rem; }
@media (min-width: 48em) { .toolbar { grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); align-items: center; } }
.toast { position: fixed; left: 50%; bottom: calc(5rem + env(safe-area-inset-bottom)); translate: -50% 1rem; z-index: 50; max-width: calc(100vw - 2rem); padding: 0.7rem 1rem; border-radius: 10px; background: var(--brand-deep); color: #fff; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.2s, translate 0.2s; }
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast.is-bad { background: var(--bad); }
@media (min-width: 60em) { .toast { bottom: 2rem; } }

/* ── Start ── */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 48em) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { display: grid; gap: 0.2rem; padding: 1rem; background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
a.kpi:hover { box-shadow: 0 0 0 2px var(--brand); }
.kpi strong { font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 0.875rem; color: var(--muted); }
.kpi--todo strong { color: var(--brand); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--brand); color: var(--on-brand); }
.cta p { color: #d9ccb4; }

/* ── Listen ── */
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); text-decoration: none; }
.row:first-child { border-top: 0; }
a.row:hover { background: #faf9f6; }
.row__title { font-weight: 600; overflow-wrap: anywhere; }
.row__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; font-size: 0.875rem; color: var(--muted); }
.more { display: flex; justify-content: center; padding: 0.9rem; border-top: 1px solid var(--line); }

/* ── Bestellung ── */
.detail { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60em) { .detail { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.note { padding: 0.9rem 1rem; border-radius: 10px; background: var(--warn-bg); color: #4d3600; white-space: pre-wrap; overflow-wrap: anywhere; }
.note--alert { background: var(--bad-bg); color: var(--bad); font-weight: 700; }
.lines { width: 100%; border-collapse: collapse; }
.lines td, .lines th { padding: 0.55rem 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.lines th { border-top: 0; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.lines td.num, .lines th.num { text-align: right; padding-left: 0.75rem; }
.lines tfoot td { font-weight: 600; }
.lines .qty { width: 3rem; font-weight: 700; }
.actions { display: grid; gap: 0.6rem; }
.addr { font-style: normal; line-height: 1.45; }

/* ── Telefonauftrag ── */
.phone { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 64em) { .phone { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .phone__sum { position: sticky; top: 1.5rem; } }
.step-n { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-right: 0.5rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.875rem; font-weight: 700; }
.pick { display: grid; max-height: 22rem; overflow-y: auto; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.pick button { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.pick button:first-child { border-top: 0; }
.pick button:hover { background: #faf6ec; }
.pick img, .pick .noimg { width: 2.75rem; height: 2.75rem; border-radius: 8px; object-fit: cover; background: var(--bg); }
.pick small { color: var(--muted); }
.cartline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.6rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.cartline:first-child { border-top: 0; }
.stepper { display: inline-flex; align-items: center; border-radius: 10px; box-shadow: inset 0 0 0 1px #cfcbc3; }
.stepper button { width: 2.5rem; height: 2.5rem; border: 0; background: none; font-size: 1.15rem; font-weight: 700; }
.stepper input { width: 2.75rem; height: 2.5rem; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sumrows { display: grid; gap: 0.4rem; }
.sumrows div { display: flex; justify-content: space-between; gap: 1rem; }
.sumrows .total { padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 1.25rem; font-weight: 700; }
.custcard { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border-radius: 10px; background: #faf6ec; box-shadow: inset 0 0 0 2px var(--brand); }

/* ── Artikel ── */
.prod { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0.75rem 0.9rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); align-items: center; }
.prod:first-child { border-top: 0; }
.prod img, .prod .noimg { width: 3.25rem; height: 3.25rem; border-radius: 8px; object-fit: cover; background: var(--bg); }
.prod__edit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; align-items: end; }
.prod--variant { padding-left: 2rem; background: #fbfaf8; }
.prod.is-off .row__title { color: var(--muted); }
@media (min-width: 48em) {
  .prod { grid-template-columns: 3.25rem minmax(0, 1fr) auto; }
  .prod__edit { grid-column: auto; grid-template-columns: 7rem 6rem auto auto; }
}
.switch { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.switch input { width: 1.15rem; height: 1.15rem; accent-color: var(--ok); }

/* ── Anmeldung ── */
.login { min-height: 100svh; display: grid; place-items: center; padding: 1.25rem; }
.login form { width: min(100%, 24rem); display: grid; gap: 1rem; padding: 1.75rem; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgb(47 38 26 / 0.5); }
.login img { height: 3.5rem; width: auto; justify-self: start; }

/* ── Packliste drucken: je Bestellung ein Blatt, nichts drumherum ── */
.pack { display: grid; gap: 1rem; }
.pack__sheet { break-inside: avoid; }
.pack__head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.pack__box { width: 1.4rem; height: 1.4rem; border: 2px solid var(--ink); border-radius: 4px; display: inline-block; vertical-align: middle; }
@media print {
  .side, .tabbar, .topbar, .noprint, .toast { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #999; border-radius: 0; }
  .pack__sheet { break-after: page; }
  .pack__sheet:last-child { break-after: auto; }
}

/* ── Artikel bearbeiten ── */
.row__title a { color: inherit; text-decoration: none; }
.row__title a:hover { text-decoration: underline; }
.rte__bar { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rte__bar button { min-height: 2.25rem; padding: 0 0.7rem; border: 0; border-radius: 8px; background: var(--bg); font-size: 0.875rem; font-weight: 600; }
.rte__bar button:hover { background: var(--info-bg); }
.rte { min-height: 12rem; max-height: 32rem; overflow-y: auto; padding: 0.8rem 0.9rem; line-height: 1.55; }
.rte p, .rte ul, .rte ol, .rte h2, .rte h3 { margin: 0 0 0.7rem; }
.rte h2, .rte h3 { font-size: 1rem; }
.rte ul, .rte ol { padding-left: 1.25rem; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; }
.img { margin: 0; display: grid; gap: 0.4rem; padding: 0.4rem; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.img.is-cover { box-shadow: inset 0 0 0 2px var(--ok); }
.img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--bg); }
.img figcaption { display: grid; gap: 0.35rem; justify-items: stretch; }
.img .badge { justify-content: center; min-height: 2.25rem; }
.savebar { position: sticky; bottom: calc(4.75rem + env(safe-area-inset-bottom)); z-index: 5; }
@media (min-width: 60em) { .savebar { bottom: 1rem; } }

/* ── Ausbau 2.12.2026: Bestand, Kunden, Gutscheine, Auswertung ── */
.rule { border: 0; border-top: 1px solid var(--line); margin: 0.25rem 0; }
.code { padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--info-bg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.02em; }
.stockrow { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 5.5rem; align-items: center; gap: 0.9rem; padding: 0.7rem 1.1rem; border-top: 1px solid var(--line); }
.stockrow:first-child { border-top: 0; }
.stockrow img, .stockrow .noimg { width: 3rem; height: 3rem; border-radius: 8px; object-fit: cover; background: var(--bg); }
.side { overflow-y: auto; }
/* Diagramm: eine Reihe, eine Farbe (Markenbraun), Raster und Achsen treten zurück */
.chartwrap { position: relative; }
.chart { display: block; width: 100%; height: auto; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart__bar path { fill: var(--brand); transition: fill 0.12s; }
.chart__bar.is-on path { fill: #8a6f3f; }
.chart__bar { cursor: default; }
.chart__tip { position: absolute; top: 0; width: 150px; display: grid; gap: 0.1rem; padding: 0.5rem 0.65rem; border-radius: 8px; background: var(--brand-deep); color: #fff; font-size: 0.8125rem; pointer-events: none; }
.chart__tip strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.chart__tip span { color: #d2c4aa; }
.toplist { display: grid; gap: 0.6rem; padding: 0; margin: 0; list-style: none; counter-reset: top; }
.toplist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: center; }
.toplist__name { overflow-wrap: anywhere; }
.toplist__bar { grid-column: 1 / -1; grid-row: 2; height: 0.5rem; border-radius: 4px; background: var(--bg); overflow: hidden; }
.toplist__bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--brand); }
@media (min-width: 48em) {
  .toplist li { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) 6.5rem; }
  .toplist__bar { grid-column: auto; grid-row: auto; }
  .toplist li strong { text-align: right; }
}

/* Telefonauftrag: Zwischenüberschriften in der Artikelliste */
.pick__label { position: sticky; top: 0; z-index: 1; margin: 0; padding: 0.45rem 0.75rem; background: var(--info-bg); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-deep); }
.pick .pick__label + button { border-top: 0; }

/* ── Firmenanfragen und Shop-Texte ── */
.inqs { display: grid; gap: 1rem; }
.cta--light { background: var(--card); color: var(--ink); box-shadow: 0 0 0 2px var(--brand); text-decoration: none; }
.cta--light p { color: var(--muted); }
.slotrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; align-items: end; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.slotrow:first-child { border-top: 0; }
@media (min-width: 48em) { .slotrow { grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1fr) auto; } }

/* ── Belege in der Bestellung ── */
.docs { display: grid; gap: 0.5rem; }
.doc { display: grid; gap: 0.1rem; padding: 0.7rem 0.9rem; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.doc:hover { background: var(--bg); box-shadow: inset 0 0 0 1px var(--brand); }
.docs__new { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.docs__new:empty { display: none; }

.bankbox { padding: 0.7rem 0.9rem; border-radius: 10px; background: #faf6ec; box-shadow: inset 0 0 0 1px #e3d6b8; }
.bankbox p { margin: 0; line-height: 1.5; }

/* Telefonauftrag: Sorten und Größen eines Artikels klappen unter der Zeile auf */
.pick > button[aria-expanded="true"] { background: #faf6ec; }
.pick > button[data-group] strong::after { content: " ›"; color: var(--muted); font-weight: 400; }
.pick > button[aria-expanded="true"] strong::after { content: " ⌄"; }
.pick__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.4rem; padding: 0.6rem 0.75rem 0.8rem; background: #faf6ec; border-top: 1px solid var(--line); }
.pick .pick__opts .pick__opt { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; grid-template-columns: none; min-height: 2.75rem; padding: 0.4rem 0.75rem; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #d9cdb2; text-align: left; }
.pick .pick__opts .pick__opt:hover { box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
/* erste Zeile nicht hinter der haftenden Zwischenüberschrift verstecken */
.pick > button, .pick__opts { scroll-margin-top: 2.25rem; }

/* Artikelliste: Varianten klappen unter dem Artikel auf */
.prodvars > summary { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.2rem 1.1rem 0.2rem 5.25rem; font-size: 0.875rem; font-weight: 600; color: var(--brand); cursor: pointer; list-style: none; }
.prodvars > summary::-webkit-details-marker { display: none; }
.prodvars > summary::after { content: "›"; font-weight: 400; color: var(--muted); }
.prodvars[open] > summary::after { content: "⌄"; }
.prodvars[open] > summary { background: #fbfaf8; }
.prodvars .prod:first-of-type { border-top: 1px solid var(--line); }
@media (max-width: 40em) { .prodvars > summary { padding-left: 1.1rem; } }

/* DHL in der Bestellung */
.dhl { display: grid; gap: 0.6rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.dhl:empty { display: none; }
.dhl__new { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.6rem; align-items: end; }
.dhl__label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: #faf6ec; box-shadow: inset 0 0 0 1px #e3d6b8; }
.dhl__label.is-off { background: none; color: var(--muted); }
.dhl__btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.dhlrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.dhlrow.is-off .row__title { color: var(--muted); font-weight: 400; }

/* Telefonauftrag: Versandkosten im Auftragskasten */
.shipbox { display: grid; gap: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.shipbox .field { max-width: 9rem; }
.text-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
/* Seitenmenü bleibt auch stehen, wenn die Seite einmal seitlich verschoben ist */
@media (min-width: 60em) { .side { left: 0; z-index: 6; } }

/* Startseite: Kachel für knappen Bestand kommt als fünfte dazu */
@media (min-width: 60em) { .kpis.kpis--5 { grid-template-columns: repeat(5, 1fr); } }
.kpi--warn strong { color: #8a2a1c; }
@media (max-width: 59.99em) { .kpis--5 .kpi--warn { grid-column: 1 / -1; } }

/* Bestand: Knöpfe +10, +50, +100 */
.stockadd { display: flex; gap: 0.35rem; grid-column: 1 / -1; justify-content: flex-end; }
.stockadd .btn { min-width: 3.4rem; font-variant-numeric: tabular-nums; }
@media (min-width: 48em) { .stockrow { grid-template-columns: 3rem minmax(0, 1fr) 5.5rem auto; } .stockadd { grid-column: auto; } }

/* Startseite: Countdown, Vergleich, zweiter Teil */
#more { display: grid; gap: 1.25rem; }
#more:empty { display: none; }
.kpi small { font-size: 0.75rem; color: var(--muted); }
.kpi small:empty { display: none; }
.countdown { display: grid; gap: 0.05rem; padding: 0.6rem 0.9rem; border-radius: 10px; background: var(--info-bg); text-decoration: none; text-align: right; }
.countdown strong { font-size: 1.125rem; letter-spacing: -0.01em; }
.countdown span { font-size: 0.8125rem; color: var(--muted); }
.countdown--soon { background: var(--warn-bg); }
.startgrid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60em) { .startgrid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.factrow { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; }
@media (max-width: 30em) { .factrow { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; } .countdown { text-align: left; } }
.kpis--5 .kpi, .kpis .kpi { align-content: start; }

/* ── Ausbau 3.12.2026: Sammel-Label, Backliste, Gebacken, Abrechnung, Protokoll, Erinnerung ── */
@media (min-width: 60em) { .side { gap: 0.1rem; } .side a.nav { padding-block: 0.42rem; } .side__logo { padding-bottom: 0.8rem; } }
.headbtns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.packbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.packdone { display: grid; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 10px; background: #faf6ec; box-shadow: inset 0 0 0 1px #e3d6b8; }
.packsel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--bg); }
.packsel .check { background: var(--card); }
.packsel__w .field { width: 5.5rem; text-align: right; }
.remind > summary { min-height: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.4rem; font-weight: 600; color: var(--brand); cursor: pointer; list-style: none; }
.remind > summary::-webkit-details-marker { display: none; }
.remind > summary::before { content: "›"; font-weight: 400; color: var(--muted); }
.remind[open] > summary::before { content: "⌄"; }
.remind[open] { display: grid; gap: 0.6rem; }
.remind textarea { font-size: 0.875rem; line-height: 1.45; }
.bake td:first-child { overflow-wrap: anywhere; }
.bake th.num, .bake td.num { width: 3.9rem; padding-left: 0.4rem; }
.bakerow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 0.9rem; padding: 0.8rem 1.1rem; border-top: 1px solid var(--line); }
.bakerow:first-child { border-top: 0; }
.bakerow__now { display: grid; justify-items: end; line-height: 1.15; }
.bakerow__now strong { font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bakerow .stockadd .btn { min-height: 2.75rem; flex: 1; }
@media (min-width: 48em) { .bakerow { grid-template-columns: minmax(0, 1fr) 5rem auto; } .bakerow .stockadd { grid-column: auto; } .bakerow .stockadd .btn { flex: none; } }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.row.is-off .row__title, .row.is-off strong { color: var(--muted); font-weight: 400; }
@media print { .chips { display: none; } }

/* Bestand: Kunden, die auf Nachschub warten */
.waits { display: grid; }
.wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.wait:first-child { border-top: 0; padding-top: 0; }

.revstars { color: #b8872a; letter-spacing: 0.06em; margin-right: 0.3rem; }
