/* CleanIQ – ruhiges, modernes Design (Systemschrift, weiche Flächen, klare Hierarchie).
   Touch: Bedienelemente mind. 44 px. Passt sich von Handy bis großem Kassenmonitor an. */
:root {
  --accent: #0a84ff; --accent-strong: #0071e3; --accent-soft: rgba(10, 132, 255, .12);
  --bg: #f5f5f7; --surface: #ffffff; --fill: rgba(118, 118, 128, .12); --fill-2: rgba(118, 118, 128, .08);
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #8e8e93; --line: rgba(0, 0, 0, .08); --line-strong: rgba(0, 0, 0, .14);
  --ok: #248a3d; --ok-soft: rgba(52, 199, 89, .14); --warn: #b25000; --warn-soft: rgba(255, 159, 10, .16);
  --err: #d70015; --err-soft: rgba(255, 59, 48, .12); --info: #0060df; --info-soft: rgba(10, 132, 255, .12);
  --sim: #6e3fd8; --sim-soft: rgba(175, 82, 222, .14);
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .14);
  --tap: 46px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { overscroll-behavior: none; }
button { font-family: inherit; }
h1 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 .6rem; }
h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .4rem; }
h3 { font-size: 1.02rem; font-weight: 650; margin: .2rem 0 .6rem; }
h4 { font-size: .95rem; margin: .8rem 0 .4rem; }
a { color: var(--accent-strong); text-decoration: none; }
kbd { font-family: var(--font); font-size: .68rem; font-weight: 600; color: var(--ink-3); background: var(--fill-2); border-radius: 5px; padding: 1px 5px; }
.muted { color: var(--ink-2); } .small { font-size: .85rem; } .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.big { font-size: 1.2rem; font-weight: 600; } .strong { font-weight: 700; } .hidden { display: none; } .mr { margin-right: .5rem; }
.ok-text { color: var(--ok); font-weight: 600; } .err-text { color: var(--err); font-weight: 600; } .warn-text { color: var(--warn); font-weight: 600; }
.loading { padding: 3rem; text-align: center; color: var(--ink-2); }
.ic { display: inline-flex; line-height: 0; }

/* ---------- App-Kopfzeile (Station, Admin, Fahrer, Unterseiten der Kasse) */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .5rem 1.2rem; flex-wrap: wrap;
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 650; font-size: 1.02rem; }
.brand small { font-weight: 400; color: var(--ink-2); }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #14b8a6, #0f766e); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 2px 6px rgba(15, 118, 110, .35); }
.logo-xl { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 16px; }
.nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-item { display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem; min-height: 40px; border-radius: 999px; color: var(--ink); font-weight: 550; font-size: .95rem; white-space: nowrap; }
.nav-item:hover { background: var(--fill-2); }
.nav-item.on { background: var(--ink); color: #fff; }
.nav-icon { font-size: 1.05rem; }
.status { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .82rem; }
.status .user { color: var(--ink-2); }
.pill { padding: .22rem .6rem; border-radius: 999px; font-weight: 600; font-size: .75rem; background: var(--fill-2); }
.pill-ok { background: var(--ok-soft); color: var(--ok); } .pill-err { background: var(--err-soft); color: var(--err); }
.pill-warn { background: var(--warn-soft); color: var(--warn); } .pill-sim { background: var(--sim-soft); color: var(--sim); }

main { padding: clamp(.75rem, 2vw, 1.6rem); max-width: 1440px; margin: 0 auto; }
.page { display: flex; flex-direction: column; gap: 1rem; }
.page-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; margin-right: auto; }
.card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(.9rem, 1.5vw, 1.25rem); box-shadow: var(--shadow); }
.card.error { box-shadow: 0 0 0 2px var(--err-soft), var(--shadow); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1rem; }
.row-wrap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.row-end { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-items: center; margin-top: .8rem; }

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: var(--tap); padding: .55rem 1.15rem; border-radius: 999px; border: 0;
  background: var(--fill); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; touch-action: manipulation; user-select: none;
  transition: background .15s, transform .08s, opacity .15s; }
.btn:hover:not(:disabled) { background: rgba(118, 118, 128, .18); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:focus-visible, .input:focus-visible, .tile:focus-visible, button:focus-visible { outline: 3px solid rgba(10, 132, 255, .45); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn-ghost, .btn-plain { background: transparent; color: var(--accent-strong); }
.btn-ghost:hover:not(:disabled), .btn-plain:hover:not(:disabled) { background: var(--accent-soft); }
.btn-tinted { background: var(--accent-soft); color: var(--accent-strong); }
.btn-red, .btn-danger, .btn-tinted-red { background: var(--err-soft); color: var(--err); }
.btn-red:hover:not(:disabled), .btn-danger:hover:not(:disabled), .btn-tinted-red:hover:not(:disabled) { background: rgba(255, 59, 48, .2); }
.btn-orange { background: var(--warn-soft); color: var(--warn); }
.btn-yellow { background: #ffd60a; color: #3d2f00; }
.btn-on { background: var(--accent-soft); color: var(--accent-strong); }
.btn-sm { min-height: 36px; padding: .3rem .8rem; font-size: .88rem; }
.btn-xl { min-height: 58px; font-size: 1.1rem; padding: .7rem 1.5rem; }
.icon-btn { display: inline-grid; place-items: center; border: 0; background: var(--fill-2); color: var(--ink-2); min-width: 36px; min-height: 36px; border-radius: 999px; cursor: pointer; font-size: 1rem; }
.icon-btn:hover { background: var(--fill); color: var(--ink); }
.link-btn { border: 0; background: none; color: var(--accent-strong); font: inherit; cursor: pointer; padding: 0; }

/* ---------- Eingaben */
.input { width: 100%; min-height: 46px; padding: .55rem .85rem; border: 1px solid transparent; border-radius: var(--r-sm); font: inherit; background: var(--fill-2); color: var(--ink); transition: background .15s, box-shadow .15s; }
.input:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 1px var(--accent) inset; }
.input-sm { min-height: 38px; width: auto; max-width: 160px; font-size: .92rem; }
.input-lg { min-height: 54px; font-size: 1.08rem; }
.input-xl { min-height: 64px; font-size: 1.3rem; font-weight: 600; border-radius: var(--r); }
textarea.input { min-height: 84px; }
.field { display: flex; flex-direction: column; gap: .3rem; margin: .45rem 0; }
.field > span { font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: .3rem 1rem; }
.check { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.scan-row { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.scan-row .input { flex: 1; min-width: min(240px, 100%); }

/* ---------- Badges, Segmente, Chips, Kacheln */
.badge { display: inline-flex; align-items: center; padding: .14rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 650; background: var(--fill-2); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-err { background: var(--err-soft); color: var(--err); } .badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { color: var(--ink-3); } .badge-sim { background: var(--sim-soft); color: var(--sim); }
.badges { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.seg, .segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--fill); border-radius: 12px; }
.seg-wrap { margin: .5rem 0; }
.seg-btn, .segmented > button { min-height: 40px; padding: .35rem 1rem; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 550; font-size: .93rem; cursor: pointer; color: var(--ink); transition: background .15s, box-shadow .15s; }
.seg-on, .segmented > button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); font-weight: 650; }
.segmented-sm > button { min-height: 32px; padding: .2rem .75rem; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .4rem 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .3rem .85rem; border-radius: 999px; border: 0; background: var(--fill-2); font: inherit; font-weight: 550; cursor: pointer; color: var(--ink); }
.chip-on { background: var(--accent-soft); color: var(--accent-strong); box-shadow: 0 0 0 1.5px var(--accent) inset; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tile-grid { display: grid; gap: .6rem; }
.tile-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.tile-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr)); }
.tile-grid-4 { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; min-height: 70px; padding: .7rem .95rem; border-radius: var(--r);
  border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; font: inherit; text-align: left; cursor: pointer; color: var(--ink); transition: box-shadow .15s, background .15s, transform .08s; }
.tile:active { transform: scale(.98); }
.tile small { color: var(--ink-2); }
.tile-on { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
.tile-warn { box-shadow: 0 0 0 2px rgba(255, 159, 10, .6) inset; }
.tile-sm { min-height: 54px; padding: .4rem .6rem; align-items: center; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: .5rem 0; }
.numkey { min-height: 58px; font-size: 1.35rem; font-weight: 500; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.numkey:hover:not(:disabled) { background: var(--fill-2); }
.pin-display { width: 100%; font: inherit; font-size: 1.8rem; text-align: center; padding: .55rem; border-radius: var(--r); background: var(--fill-2); border: 0; letter-spacing: .35em; min-height: 62px; }
.pin-display:focus { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.info-text { background: var(--info-soft); color: #00418f; padding: .65rem .9rem; border-radius: var(--r-sm); margin: .4rem 0; font-size: .93rem; }
.warn-box { background: var(--warn-soft); color: #7a3700; padding: .75rem 1rem; border-radius: var(--r); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .93rem; }
.problem-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; width: 100%; }

/* ---------- Tabellen */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--ink-2); font-weight: 600; font-size: .8rem; border-bottom: 1px solid var(--line-strong); padding: .55rem .5rem; white-space: nowrap; }
.table td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td:first-child { white-space: nowrap; }
.table-click tbody tr { cursor: pointer; }
.table-click tbody tr:hover { background: var(--fill-2); }
.card > .table, .card > div > .table { display: block; overflow-x: auto; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.dl dt { color: var(--ink-2); } .dl dd { margin: 0; }

/* ---------- Anmeldung */
.login { max-width: 1060px; margin: clamp(1rem, 6vh, 4rem) auto; padding: 1rem; }
.login-narrow { max-width: 460px; }
.login-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.6rem; }
.login-head h1 { margin: 0; }
.login-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 1.5rem; align-items: start; }
.login-pin { background: var(--surface); padding: 1.1rem; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.login-pin .btn-xl { width: 100%; }

/* =====================================================================
   Kasse
   ===================================================================== */
body.pos-mode .topbar { display: none; }
body.pos-mode main { padding: 0; max-width: none; }
.pos { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; background: var(--bg); }
.pos-bar { display: flex; align-items: center; gap: .75rem; padding: .5rem clamp(.6rem, 1.2vw, 1rem); background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); min-width: 0; }
.pos-brand { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.pos-brand strong { display: block; font-size: 1rem; }
.pos-brand small { display: block; color: var(--ink-2); font-size: .75rem; }
.pos-tools { display: flex; gap: .25rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.tb-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .35rem .85rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink); font: inherit; font-size: .92rem; font-weight: 550; cursor: pointer; white-space: nowrap; }
.tb-btn:hover { background: var(--fill-2); }
.tb-btn:active { background: var(--fill); }
.tb-btn .ic { color: var(--accent-strong); }
.pos-bar-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.chip-sim { padding: .2rem .6rem; border-radius: 999px; background: var(--sim-soft); color: var(--sim); font-weight: 650; font-size: .74rem; }
.dot-status { width: 9px; height: 9px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .2); }
.dot-status.off { background: #ff3b30; box-shadow: 0 0 0 3px rgba(255, 59, 48, .2); }
.user-chip { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: var(--fill-2); border-radius: 999px; padding: .2rem .75rem .2rem .2rem; font: inherit; font-size: .88rem; font-weight: 550; cursor: pointer; min-height: 38px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(145deg, #5e5ce6, #0a84ff); color: #fff; font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.avatar-lg { width: 46px; height: 46px; font-size: 1rem; }
.avatar.is-empty { background: var(--fill); color: var(--ink-2); }

.pos-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 31vw, 460px); gap: clamp(.6rem, 1vw, 1rem); padding: clamp(.6rem, 1vw, 1rem); min-height: 0; }
.pos-catalog { display: flex; flex-direction: column; gap: .75rem; min-height: 0; min-width: 0; }
.cat-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.search-wrap { flex: 1; min-width: 200px; display: flex; align-items: center; gap: .45rem; background: var(--surface); border-radius: 999px; padding: 0 .9rem; box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink-3); }
.search { flex: 1; border: 0; background: transparent; font: inherit; min-height: 44px; color: var(--ink); outline: none; }
.cat-crumb { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-height: 44px; }
.crumb-back { display: inline-flex; align-items: center; gap: .15rem; border: 0; background: none; color: var(--accent-strong); font: inherit; font-size: 1rem; cursor: pointer; padding: .3rem .2rem; border-radius: 8px; }
.crumb-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.qty-row { margin-left: auto; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.qty-label { color: var(--ink-2); font-size: .85rem; margin-right: .2rem; }
.qty-chip { min-width: 42px; min-height: 40px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; font: inherit; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.qty-chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.cat-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 12vw, 180px), 1fr));
  grid-auto-rows: clamp(78px, 9.5vh, 104px); gap: clamp(.5rem, .8vw, .75rem); align-content: start; padding: 2px 2px 1rem; }
.tile-g, .tile-a { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .2rem; padding: .7rem .9rem; border: 0;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); font: inherit; text-align: left; cursor: pointer; color: var(--ink);
  transition: transform .08s, box-shadow .15s; overflow: hidden; }
.tile-g:hover, .tile-a:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .08); }
.tile-g:active, .tile-a:active { transform: scale(.97); }
.tile-g[style*="--tc"], .tile-a[style*="--tc"] { background: color-mix(in srgb, var(--tc) 12%, white); }
.tile-dot { position: absolute; top: .7rem; right: .75rem; width: 10px; height: 10px; border-radius: 50%; background: var(--tc, transparent); }
.tile-name { font-weight: 650; font-size: 1rem; line-height: 1.2; padding-right: 1rem; }
.tile-sub { font-size: .8rem; color: var(--ink-2); }
.tile-price { font-size: .95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tile-price.is-special { color: var(--warn); font-weight: 600; }
.tile-count { position: absolute; bottom: .55rem; right: .65rem; min-width: 26px; height: 26px; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }

.pos-ticket { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.t-head { padding: .9rem .9rem .7rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }
.t-cust { display: flex; align-items: center; gap: .7rem; }
.t-cust-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-cust-main strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-cust-main small { color: var(--ink-2); font-size: .82rem; }
.t-cust-side { display: flex; align-items: center; gap: .4rem; }
.balance { display: flex; flex-direction: column; align-items: flex-end; border: 0; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: .3rem .65rem; cursor: pointer; font: inherit; }
.balance small { font-size: .7rem; font-weight: 600; }
.balance.balance-low { background: rgba(255, 59, 48, .14); color: #c4271d; box-shadow: inset 0 0 0 2px rgba(255, 59, 48, .45); }
.balance strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.t-scan { max-width: none; width: 100%; }
.t-lines { flex: 1; min-height: 120px; overflow-y: auto; padding: .35rem; }
.t-empty { height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--ink-3); text-align: center; padding: 1rem; }
.t-empty p { margin: .3rem 0 0; font-weight: 600; color: var(--ink-2); }
.t-line { border-radius: var(--r); transition: background .15s; }
.t-line.on { background: var(--accent-soft); }
.t-line.flash { animation: flash .5s ease-out; }
@keyframes flash { from { background: rgba(10, 132, 255, .25); } to { background: transparent; } }
.t-line-main { width: 100%; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .6rem .6rem; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); min-height: 50px; }
.t-qty { font-weight: 700; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.t-name { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.t-name small { font-weight: 500; color: var(--ink-2); font-size: .78rem; }
.t-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; font-variant-numeric: tabular-nums; }
.t-price small { font-weight: 500; color: var(--ink-3); font-size: .74rem; }
.t-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .3rem; padding: 0 .5rem .6rem; }
.t-act { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 56px; padding: .4rem .2rem; border: 0; border-radius: 12px; background: #fff; color: var(--accent-strong); font: inherit; font-size: .74rem; font-weight: 600; cursor: pointer; }
.t-act:hover:not(:disabled) { background: rgba(255, 255, 255, .7); }
.t-act:disabled { opacity: .35; cursor: not-allowed; }
.t-act.is-danger { color: var(--err); }
.t-tools { display: flex; align-items: center; gap: .3rem; padding: .5rem .7rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.t-tools .segmented { margin-right: auto; }
.t-sum { padding: .65rem .95rem .3rem; border-top: 1px solid var(--line); }
.t-sum-row { display: flex; justify-content: space-between; color: var(--ink-2); font-size: .85rem; }
.t-change { margin-top: .2rem; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .2rem; }
.t-total span { font-size: 1.05rem; font-weight: 600; }
.t-total strong { font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.t-actions-main { display: grid; grid-template-columns: auto 1fr; gap: .5rem; padding: .5rem .8rem .9rem; }
.btn-pay { min-height: 58px; font-size: 1.12rem; border-radius: 16px; justify-content: space-between; padding: 0 1.2rem; }
.btn-pay-amount { font-variant-numeric: tabular-nums; opacity: .9; }
.t-actions-main .btn-tinted-red { border-radius: 16px; min-height: 58px; }
.pos-foot { display: flex; gap: 1.4rem; align-items: center; padding: .4rem clamp(.6rem, 1.2vw, 1rem); color: var(--ink-3); font-size: .8rem; overflow-x: auto; white-space: nowrap; }
.pos-foot-right { margin-left: auto; }

.popover { position: fixed; z-index: 60; min-width: 250px; padding: .35rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); animation: pop .14s ease-out; }
.pop-item { width: 100%; display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border: 0; background: none; border-radius: 9px; font: inherit; font-size: .95rem; cursor: pointer; color: var(--ink); text-align: left; min-height: 44px; }
.pop-item span { flex: 1; }
.pop-item:hover { background: var(--accent); color: #fff; }
.pop-item:hover kbd { background: rgba(255, 255, 255, .25); color: #fff; }
.pop-item .ic { color: var(--accent-strong); }
.pop-item:hover .ic { color: #fff; }
.pop-item.is-off { opacity: .45; }
.pop-item.is-danger, .pop-item.is-danger .ic { color: var(--err); }
.pop-item.is-danger:hover { background: var(--err); color: #fff; }
.pop-item.is-danger:hover .ic { color: #fff; }
.pop-sep { height: 1px; background: var(--line); margin: .3rem .4rem; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* Kasse: mittlere Bildschirme – Leiste kompakter */
@media (max-width: 1280px) {
  .tb-btn kbd { display: none; }
  .pos-brand small { display: none; }
}
@media (max-width: 1050px) {
  .tb-btn span:not(.ic) { display: none; }
  .tb-btn { padding: .35rem .65rem; }
  .chip-sim, .user-chip span:not(.avatar) { display: none; }
  .user-chip { padding: .2rem; }
}
/* Tablet hochkant / Handy: untereinander, Seite scrollt */
@media (max-width: 860px) {
  .pos { height: auto; min-height: 100dvh; }
  .pos-body { grid-template-columns: 1fr; }
  .cat-grid { overflow: visible; grid-auto-rows: 84px; }
  .pos-ticket { min-height: 420px; }
  .qty-row { margin-left: 0; }
}

/* ---------- Kasse: Termin & Zahlung */
.calc { display: grid; gap: .35rem; background: var(--fill-2); border-radius: var(--r); padding: .8rem .95rem; margin-top: .6rem; }
.calc > div { display: flex; justify-content: space-between; }
.calc-sum { border-top: 1px solid var(--line-strong); padding-top: .4rem; font-size: 1.12rem; }
.checkout { display: flex; flex-direction: column; gap: 1.1rem; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .45rem; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: .55rem; }
.cash { max-width: 400px; }
.cash-row { display: flex; justify-content: space-between; font-size: 1.15rem; padding: .2rem 0; }
.checkout-sum { display: flex; justify-content: space-between; align-items: center; font-size: 1.35rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.part-tabs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .4rem; }

/* ---------- Kleidungsschema */
.garment-pair { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.garment-side { margin: 0; text-align: center; }
.garment-side figcaption { color: var(--ink-2); font-size: .82rem; margin-top: .25rem; }
.garment-svg { background: var(--fill-2); border-radius: var(--r); touch-action: manipulation; max-width: 100%; height: auto; }
.garment-svg.tappable { cursor: crosshair; }
.g-outline { fill: #fff; stroke: #3a3a3c; stroke-width: 2.2; stroke-linejoin: round; }
.g-detail { fill: none; stroke: #aeaeb2; stroke-width: 1.5; }
.mark-list { display: flex; flex-direction: column; gap: .45rem; margin: .6rem 0; }
.mark-row { display: grid; grid-template-columns: 34px 130px 60px 1fr auto auto; gap: .45rem; align-items: center; }
.mark-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem; }
.mark-legend { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.marks-box { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; background: rgba(255, 159, 10, .08); border-radius: var(--r); padding: .7rem; margin: .6rem 0; }
.photo-strip { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0; }
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.thumb-lg { width: 140px; height: 140px; }
.thumb-wrap { position: relative; }
.thumb-num { position: absolute; left: 5px; top: 5px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 6px; padding: 0 6px; font-size: .78rem; }
.thumb-del { position: absolute; right: -6px; top: -6px; background: #fff; box-shadow: var(--shadow); }
.wishes { border-top: 1px solid var(--line); margin-top: .7rem; }
.wish-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .35rem 0; }
.wish-row > span { min-width: 110px; font-weight: 600; }
.wish-banner { background: rgba(255, 214, 10, .22); border-radius: var(--r); padding: .65rem .95rem; font-size: 1.12rem; font-weight: 700; margin: .5rem 0; color: #5c4400; }

/* ---------- Ausgabe / Station */
.ho-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.ho-head > div:nth-child(2) { flex: 1; }
.belt-big { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 116px; padding: .55rem 1rem; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.belt-big strong { font-size: 2.8rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.belt-big small { opacity: .7; font-size: .72rem; }
.ready-banner { padding: .65rem .95rem; border-radius: var(--r); font-weight: 650; margin: .4rem 0; }
.ready-banner.ok { background: var(--ok-soft); color: var(--ok); } .ready-banner.warn { background: var(--warn-soft); color: var(--warn); }
.ho-items { display: flex; flex-direction: column; gap: .4rem; }
.ho-item { display: flex; align-items: center; gap: .7rem; min-height: 60px; padding: .5rem .85rem; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; font: inherit; text-align: left; cursor: pointer; flex-wrap: wrap; }
.ho-on { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
.ho-dis { opacity: .5; cursor: default; background: var(--fill-2); box-shadow: none; }
.ho-desc { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.check-box { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-3); display: grid; place-items: center; font-weight: 800; color: #fff; background: #fff; flex-shrink: 0; }
.ho-on .check-box { background: var(--accent); border-color: var(--accent); }
.pick-list { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; max-height: 60vh; overflow: auto; }
.pick { display: grid; grid-template-columns: minmax(120px, 1.2fr) 1.5fr auto auto auto; gap: .6rem; align-items: center; padding: .7rem .85rem; min-height: var(--tap); border: 0; border-radius: var(--r); background: var(--fill-2); font: inherit; text-align: left; cursor: pointer; }
.pick:hover { background: var(--accent-soft); }
.station-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 1rem; align-items: start; }
.item-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.item-head > div:first-child { flex: 1; }
.code-big { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.45rem; font-weight: 700; background: var(--fill-2); padding: .4rem .8rem; border-radius: 12px; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: .6rem; margin-top: .9rem; }
.action-grid .btn { min-height: 70px; border-radius: var(--r-lg); }
.recent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; }
.history { margin: .4rem 0; padding-left: 1.3rem; font-size: .9rem; display: flex; flex-direction: column; gap: .25rem; }

/* ---------- Aufträge */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.kpi { background: var(--surface); border-radius: var(--r-lg); padding: .85rem 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .1rem; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink-3); }
.kpi strong { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--ink-2); font-size: .88rem; }
.kpi-ok::before { background: #34c759; } .kpi-info::before { background: var(--accent); } .kpi-warn::before { background: #ff9f0a; } .kpi-err::before { background: #ff3b30; } .kpi-muted::before { background: #c7c7cc; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; margin: .9rem 0; }
.stat { background: var(--fill-2); border-radius: var(--r); padding: .55rem .75rem; }
.stat > small { color: var(--ink-2); display: block; margin-bottom: .2rem; font-size: .78rem; }
.detail-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.item-list { display: flex; flex-direction: column; gap: .4rem; }
.item-row { border-radius: var(--r); background: var(--fill-2); }
.item-row[open] { background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.item-row > summary { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .7rem .85rem; cursor: pointer; min-height: var(--tap); list-style: none; }
.item-row > summary::-webkit-details-marker { display: none; }
.item-body { padding: 0 .85rem .85rem; }

/* ---------- Fahrer / Zeit */
.job-list { display: flex; flex-direction: column; gap: .6rem; }
.job { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.job-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.job-abgeholt { opacity: .7; }
.zeit { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 1rem; align-items: start; }
.zeit-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0; }
.zeit-buttons .btn { min-height: 84px; border-radius: var(--r-lg); }
.state-banner { padding: .8rem; border-radius: var(--r); font-size: 1.2rem; font-weight: 700; text-align: center; background: var(--fill-2); }
.state-arbeitet { background: var(--ok-soft); color: var(--ok); } .state-pause { background: var(--warn-soft); color: var(--warn); }

/* ---------- Admin */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 76px; }
.admin-link { padding: .6rem .8rem; border-radius: 10px; color: var(--ink); font-weight: 550; min-height: 42px; display: flex; align-items: center; font-size: .95rem; }
.admin-link:hover { background: var(--fill-2); }
.admin-link.on { background: var(--accent); color: #fff; }
.admin-content { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.notif { border-left: 3px solid var(--sim); padding: .45rem .75rem; margin: .4rem 0; background: var(--sim-soft); border-radius: 8px; }

/* ---------- Dialoge (Sheets) / Meldungen */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 1rem; animation: fade .15s ease-out; }
.modal { background: var(--surface); border-radius: var(--r-xl); width: min(560px, 100%); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: sheet .2s cubic-bezier(.2, .9, .3, 1.1); }
.modal-wide { width: min(1080px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem .6rem; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: .4rem 1.2rem 1rem; overflow: auto; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; padding: .8rem 1.2rem 1.1rem; flex-wrap: wrap; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.toasts { position: fixed; left: 50%; top: 1rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 100; width: max-content; max-width: min(520px, calc(100vw - 2rem)); pointer-events: none; }
.toast { padding: .7rem 1.1rem; border-radius: 999px; color: #fff; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); background: rgba(29, 29, 31, .9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: sheet .2s ease-out; }
.toast-ok::before { content: "✓  "; color: #30d158; } .toast-err { background: rgba(215, 0, 21, .94); } .toast-warn { background: rgba(178, 80, 0, .94); } .toast-info::before { content: "●  "; color: #bf5af2; }

/* ---------- Belegvorschau (Druckformate unverändert) */
.doc-preview { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; background: var(--fill-2); padding: 1rem; border-radius: var(--r); margin-top: .6rem; }
.doc { background: #fff; color: #000; font-family: "Helvetica Neue", Arial, sans-serif; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); border-radius: 4px; }
.doc-receipt { width: 80mm; padding: 4mm; font-size: 12px; line-height: 1.35; }
.doc-receipt hr { border: 0; border-top: 1px dashed #000; }
.r-center { text-align: center; } .r-small { font-size: 10.5px; } .r-strong { font-weight: 700; }
.r-title { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .05em; }
.r-big { font-size: 17px; } .r-num { font-size: 22px; }
.r-row { display: flex; justify-content: space-between; gap: .5rem; }
.r-line { margin: .2rem 0; } .r-name { font-weight: 600; } .r-sub { font-size: 10.5px; padding-left: 1rem; }
.r-proto { margin-top: .4rem; text-align: center; font-size: 10px; font-weight: 700; border: 1px solid #000; padding: 2px; }
.doc-label { width: 76mm; padding: 2.5mm 3mm; font-family: ui-monospace, Menlo, "Courier New", monospace; font-size: 12px; border-top: 3px solid #16a34a; }
.label-hemd { border-top-color: #0ea5e9; width: 64mm; }
.l-row { display: flex; justify-content: space-between; gap: .4rem; }
.l-num { font-size: 16px; } .l-small { font-size: 10px; } .l-warn { font-weight: 700; }
.l-code { margin-top: 1mm; }
.doc-a4 { width: 210mm; max-width: 100%; padding: 15mm; font-size: 12px; }
.doc-a4 h1 { font-size: 20px; } .doc-a4 h3 { font-size: 13px; }
.a4-head { display: flex; justify-content: space-between; align-items: flex-start; }
/* Rechnung DIN A4: Fußzeile immer unten auf der Seite */
.doc-invoice { display: flex; flex-direction: column; box-sizing: border-box; width: 210mm; max-width: none; min-height: 297mm; padding: 14mm 18mm 10mm 22mm;
  background: #fff; color: #000; font-family: Helvetica, Arial, sans-serif; font-size: 10pt; line-height: 1.35; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.doc-invoice p { margin: 0 0 3.5mm; }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10mm; min-height: 38mm; }
.inv-logo img { max-width: 75mm; max-height: 24mm; object-fit: contain; }
.inv-brand { font-size: 20pt; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #12a594; }
.inv-firm { text-align: right; font-size: 10.5pt; line-height: 1.45; }
.inv-mid { display: flex; justify-content: space-between; align-items: flex-start; gap: 10mm; margin-top: 6mm; min-height: 62mm; }
.inv-addr { width: 85mm; font-size: 10.5pt; line-height: 1.4; }
.inv-sender { font-size: 7.5pt; line-height: 1.2; border-bottom: 1px solid #000; padding-bottom: .5mm; margin-bottom: 3mm; }
.inv-meta { border-collapse: collapse; font-size: 10.5pt; }
.inv-meta td { padding: .4mm 0; }
.inv-meta td:first-child { text-align: right; padding-right: 10mm; }
.inv-meta td:last-child { text-align: right; }
.inv-title { font-size: 15pt; font-weight: 400; margin: 0 0 2mm; }
.inv-table { width: 100%; border-collapse: collapse; margin: 3mm 0 4mm; }
.inv-table th, .inv-table td { border: 1px solid #000; padding: 1.8mm 2.5mm; }
.inv-table th { font-weight: 700; text-align: left; }
.inv-table tr.inv-group td { background: #f1f1f1; font-size: 9pt; padding: 1mm 2.5mm; }
.inv-table tfoot td { padding: 2.2mm 2.5mm; }
.doc-invoice .num { text-align: right; white-space: nowrap; }
.doc-invoice .c { text-align: center; white-space: nowrap; }
.inv-foot { margin-top: auto; padding-top: 8mm; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6mm; font-size: 8pt; line-height: 1.3; }
@media print {
  #print-root .doc-invoice { width: 100%; min-height: 287mm; box-shadow: none; margin: 0; }
  #print-root .doc:last-child { page-break-after: auto; break-after: auto; }
  .inv-table tr { break-inside: avoid; }
  .inv-table thead { display: table-header-group; }
}
.barcode { max-width: 100%; height: auto; }
.empty { padding: 1.5rem; text-align: center; }
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .doc { box-shadow: none; margin: 0 0 4mm; page-break-after: always; break-after: page; border-radius: 0; }
  @page { margin: 4mm; }
}

/* ---------- Schmale Geräte allgemein */
@media (max-width: 1000px) {
  .station-grid, .zeit, .login-grid { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
  .admin-link { white-space: nowrap; }
}
@media (max-width: 640px) {
  .topbar { padding: .45rem .6rem; }
  .nav-item span:last-child { display: none; }
  .status .user { display: none; }
  .pick { grid-template-columns: 1fr 1fr; }
  .mark-row { grid-template-columns: 34px 1fr; }
  .input-xl { font-size: 1.1rem; }
  .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; align-self: end; }
  .overlay { padding: 0; place-items: end center; }
}

/* ---------- Auswertung Teile */
.stats { display: flex; flex-direction: column; gap: 1rem; }
.stats-head { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.stats-custom { display: flex; gap: .4rem; align-items: center; color: var(--ink-2); font-size: .9rem; }
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; }
.stats-kpi { background: var(--surface); border-radius: var(--r-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .15rem; }
.stats-kpi strong { font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stats-kpi span { color: var(--ink-2); font-size: .9rem; }
.stats-kpi.is-accent strong { color: var(--accent-strong); }
.stats-kpi.is-blue strong { color: #5e5ce6; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 1rem; align-items: start; }
.stats-card { padding: 1rem 1.1rem; }
.bars { display: flex; flex-direction: column; gap: .5rem; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 3rem; gap: .6rem; align-items: center; }
.bar-label { font-weight: 550; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0a84ff, #5e5ce6); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.modal .stats-kpi, .modal .stats-card { box-shadow: 0 0 0 1px var(--line) inset; }
.today-chip { display: inline-flex; align-items: center; gap: .55rem; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); padding: .35rem .85rem; font: inherit; font-size: .88rem; cursor: pointer; min-height: 38px; white-space: nowrap; }
.today-chip strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.today-sep { width: 1px; height: 16px; background: rgba(0, 113, 227, .3); }
@media (max-width: 1050px) { .today-chip { padding: .3rem .6rem; font-size: .8rem; } }

/* ---------- Berichte */
.report-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1rem; }
.report-group h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; }
.report-group h3 .ic { color: var(--accent-strong); }
.report-link { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .75rem; border-radius: 12px; color: var(--ink); margin: 0 -.35rem; }
.report-link:hover { background: var(--accent-soft); }
.report-link small { color: var(--ink-2); font-size: .82rem; }
.report-link strong { color: var(--accent-strong); font-weight: 600; }
.report-link.is-off { opacity: .45; }
.report-link.is-off strong { color: var(--ink-2); }
.report-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--ink-2); margin-bottom: .6rem; }
.report-out { display: flex; flex-direction: column; gap: .6rem; }
.report-card { padding: .4rem .6rem; }
.report-scroll { overflow-x: auto; }
.report { font-size: .88rem; }
.report th, .report td { padding: .45rem .55rem; }
.report tbody tr:nth-child(even) { background: rgba(118, 118, 128, .04); }
.report tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); color: var(--accent-strong); }
.report td.neg { color: var(--err); }
/* Bericht drucken: nur wenn ausdrücklich ein Bericht gedruckt wird (Belegdruck bleibt unberührt) */
@media print {
  body.print-report > *:not(#print-root) { display: block !important; }
  body.print-report #print-root { display: none !important; }
  body.print-report .topbar, body.print-report .admin-nav, body.print-report .report-meta button, body.print-report .stats-head, body.print-report .page-head a { display: none !important; }
  body.print-report .admin { display: block; }
  body.print-report .card { box-shadow: none; }
}

/* ---------- Assistent (unten links) */
.as { position: fixed; left: clamp(.6rem, 1.2vw, 1rem); bottom: 2.4rem; z-index: 45; }
.as-fab { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem 1.05rem .5rem .8rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #5e5ce6, #0a84ff); color: #fff; font: inherit; font-weight: 650; font-size: .95rem; box-shadow: 0 6px 20px rgba(10, 132, 255, .35); }
.as-fab:hover { filter: brightness(1.05); }
.as-fab:active { transform: scale(.97); }
.as-panel { width: min(400px, calc(100vw - 1.5rem)); height: min(600px, calc(100dvh - 5rem)); display: flex; flex-direction: column; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: var(--r-xl); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; animation: sheet .2s ease-out; }
.as-head { display: flex; align-items: center; gap: .6rem; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
.as-head > div { flex: 1; display: flex; flex-direction: column; }
.as-head small { color: var(--ink-2); font-size: .74rem; }
.as-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #5e5ce6, #0a84ff); color: #fff; }
.as-list { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .6rem; }
.as-hello { color: var(--ink-2); font-size: .92rem; }
.as-hello strong { color: var(--ink); font-size: 1.02rem; }
.as-hello p { margin: .35rem 0; }
.as-msg { display: flex; flex-direction: column; gap: .3rem; }
.as-user { align-items: flex-end; }
.as-bubble { max-width: 88%; padding: .55rem .8rem; border-radius: 18px; font-size: .93rem; line-height: 1.4; overflow-wrap: anywhere; }
.as-user .as-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.as-assistant .as-bubble { background: var(--fill-2); color: var(--ink); border-bottom-left-radius: 6px; }
.as-li { padding-left: .9rem; position: relative; }
.as-li::before { content: "•"; position: absolute; left: .1rem; color: var(--ink-3); }
.as-cards { display: flex; flex-wrap: wrap; gap: .35rem; }
.as-card { border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font: inherit; font-size: .84rem; font-weight: 600; padding: .35rem .75rem; cursor: pointer; min-height: 34px; }
.as-typing { display: inline-flex; gap: 4px; padding: .7rem .9rem; }
.as-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite ease-in-out; }
.as-typing span:nth-child(2) { animation-delay: .15s; } .as-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.as-suggest { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .8rem .5rem; }
.as-suggest .chip { font-size: .82rem; min-height: 34px; }
.as-compose { display: flex; align-items: flex-end; gap: .45rem; padding: .6rem .7rem .75rem; border-top: 1px solid var(--line); }
.as-input { flex: 1; resize: none; border: 0; border-radius: 18px; background: var(--fill-2); padding: .6rem .85rem; font: inherit; font-size: .93rem; max-height: 120px; min-height: 40px; }
.as-input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.as-send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
@media (max-width: 640px) { .as { left: .5rem; bottom: .6rem; } .as-fab span:not(.ic) { display: none; } .as-fab { padding: .6rem; } }
@media print { .as { display: none !important; } }

/* ---------- Kasse: größere Touch-Ziele (Warengruppen, Menge), schmalere Suche */
.pos .cat-head .segmented { padding: 4px; border-radius: 16px; }
.pos .cat-head .segmented > button { min-height: 54px; padding: .5rem 1.4rem; font-size: 1.05rem; border-radius: 12px; }
.pos .search-wrap { flex: 0 1 300px; min-width: 180px; margin-left: auto; }
.pos .search { min-height: 40px; font-size: .95rem; }
.pos .qty-chip { min-width: 52px; min-height: 52px; font-size: 1.1rem; }
.pos .qty-label { font-size: .95rem; }

/* ---------- Zuschlagsleiste beim Artikel */
.zbar { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: .7rem .85rem .8rem; display: flex; flex-direction: column; gap: .5rem; animation: sheet .18s ease-out; }
.zbar-head { display: flex; align-items: center; gap: .6rem; }
.zbar-head strong { font-size: 1rem; }
.zbar-head .icon-btn { margin-left: auto; }
.zbar-cats { display: flex; flex-direction: column; gap: .45rem; }
.zbar-cat { display: grid; grid-template-columns: 8.5rem 1fr; gap: .6rem; align-items: center; }
.zbar-label { color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.zbar-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.zchip { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 48px; min-width: 64px; padding: .3rem .85rem;
  border: 0; border-radius: 14px; background: color-mix(in srgb, var(--zc, #8e8e93) 12%, white); box-shadow: 0 0 0 1px color-mix(in srgb, var(--zc, #8e8e93) 30%, transparent) inset;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.zchip small { font-size: .74rem; color: var(--ink-2); font-weight: 500; }
.zchip:active { transform: scale(.97); }
.zchip.on { box-shadow: 0 0 0 2px var(--zc, var(--accent)) inset; }
.zcount { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; display: grid; place-items: center; padding: 0 .3rem; }
.zedit { display: flex; flex-direction: column; gap: .4rem; }
.zedit-row { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .4rem .6rem; background: var(--fill-2); border-radius: 12px; }
.stepper { display: inline-flex; align-items: center; gap: .5rem; }
@media (max-width: 860px) { .zbar-cat { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- Admin: Kassen-Tasten */
.tasten-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.tlist { display: flex; flex-direction: column; gap: .35rem; }
.trow { display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; border-radius: 12px; background: var(--fill-2); cursor: default; flex-wrap: wrap; }
.trow.on { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent) inset; }
.trow.is-hidden .tname { opacity: .45; text-decoration: line-through; }
.trow .tname { flex: 1; min-width: 120px; max-width: none; }
.arrows { display: inline-flex; gap: 2px; }
.arrows .icon-btn { min-width: 32px; min-height: 32px; }
.flip .ic { transform: rotate(180deg); }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); background: var(--fill-2); color: var(--ink-3); font-size: .8rem; cursor: pointer; flex-shrink: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--accent); }
.swatch-pop { min-width: 0; padding: .6rem; }
.swatch-grid { display: grid; grid-template-columns: repeat(7, 30px); gap: .45rem; }
.swatch-custom { display: flex; align-items: center; gap: .4rem; margin-top: .55rem; font-size: .85rem; color: var(--ink-2); }
.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #e5e5ea; transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + span { background: #34c759; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.tpreview { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); grid-auto-rows: 80px; gap: .5rem; padding: .6rem; background: var(--bg); border-radius: var(--r); }
.price-wrap { display: inline-flex; flex-direction: column; gap: .15rem; }
.price-in { width: 7.5rem; }
.price-hint { display: none; font-size: .72rem; color: var(--warn); font-weight: 600; white-space: nowrap; }
.price-wrap.is-dirty .price-in { box-shadow: 0 0 0 2px #ff9f0a inset; background: #fff8ec; }
.price-wrap.is-dirty .price-hint { display: block; }
.art-table .group-row td { background: var(--fill-2); padding: .5rem .6rem; border-bottom: 0; }
.art-table td.center { text-align: center; }
.art-table td { vertical-align: middle; }
.linkish { background: none; border: 0; padding: .25rem 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; text-align: left; }
.linkish .icon, .linkish svg { color: var(--accent); opacity: .7; }
.linkish:hover { color: var(--accent); }
.info-box { background: var(--accent-soft, rgba(0, 122, 255, .1)); color: var(--text); border-radius: 12px; padding: .7rem .9rem; margin: .4rem 0 .6rem; font-size: .95rem; }
.day-grid .tile:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
/* Adressfelder mit Vorschlägen */
.addr { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.addr-street { position: relative; }
.addr-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.addr-list { position: relative; z-index: 2; margin-top: .35rem; border: 1px solid var(--line, rgba(0,0,0,.08)); background: var(--surface, #fff); border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .10); overflow: hidden; }
.addr-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: .65rem .9rem; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 48px; }
.addr-item span { font-size: .85rem; color: var(--muted, #6e6e73); }
.addr-item:hover, .addr-item.on { background: var(--fill-2, #f2f2f7); }
.addr-hint { display: block; min-height: 1em; margin-top: .25rem; }
@media (max-width: 700px) { .addr { grid-template-columns: 1fr; } }
/* Neuer Kunde: Schritt 1 Karte scannen */
.card-step { text-align: center; display: grid; gap: .9rem; justify-items: center; padding: .5rem 0; }
.card-step-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--fill-2, #f2f2f7); color: var(--accent, #007aff); }
.card-step .card-scan { max-width: 420px; width: 100%; text-align: center; font-size: 1.6rem; letter-spacing: .08em; }
.card-step .warn-box { justify-content: center; }
.card-badge { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent, #007aff); }
.input.is-missing { box-shadow: 0 0 0 2px var(--err, #ff3b30); background: var(--err-soft, rgba(255, 59, 48, .08)); }
/* Verbindungsanzeige unten rechts an der Kasse */
.net-btn { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: .2rem .5rem; border-radius: 999px; }
.net-btn:hover { background: var(--fill-2, #f2f2f7); }
.net-dot { width: 11px; height: 11px; border-radius: 50%; background: #c7c7cc; flex: none; display: inline-block; }
.net-ok .net-dot, .conn-row.ok .net-dot { background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .2); }
.net-bad .net-dot, .conn-row.bad .net-dot { background: #ff3b30; box-shadow: 0 0 0 3px rgba(255, 59, 48, .2); }
.net-bad { color: var(--err, #ff3b30); font-weight: 600; }
.conn { display: grid; gap: .6rem; }
.conn-row { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .8rem; border-radius: 12px; background: var(--fill-2, #f2f2f7); }
.conn-row .net-dot { margin-top: .35rem; }
.conn-row div { display: grid; }
/* Belege & MwSt */
.bel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.bel-side { position: sticky; top: 1rem; }
.bel-paper { margin-top: .75rem; background: #fff; color: #000; border-radius: 10px; padding: .75rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); display: grid; gap: .75rem; justify-items: center; max-height: 75vh; overflow: auto; }
.sticky-save { position: sticky; bottom: .5rem; z-index: 3; margin-bottom: 1rem; }
@media (max-width: 1000px) { .bel-grid { grid-template-columns: 1fr; } .bel-side { position: static; } }
.pick-lost .pick { box-shadow: inset 0 0 0 1px rgba(255, 149, 0, .35); }
.pick-lost .pick:hover { background: rgba(255, 149, 0, .12); }
/* Zuschlagsleiste unter den Artikeln: Kacheln bleiben oben stehen, Leiste klebt unten im Katalog */
.pos-catalog > .zbar { flex: none; max-height: 50%; overflow: auto; }
/* Raster nur so hoch wie die Kacheln -> Zuschläge stehen direkt darunter; bei vielen Kacheln scrollt das Raster */
.pos-catalog > .cat-grid { flex: 0 1 auto; align-content: start; }
/* Kassen-Tasten: Artikel-Seite größer, sobald eine Gruppe gewählt ist; bleibt beim Scrollen sichtbar */
@media (min-width: 900px) {
  .tasten-grid.has-sel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .tasten-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
}
.trow .topen { min-height: 40px; padding: 0 .9rem; gap: .35rem; white-space: nowrap; }
.trow .topen .chev { font-size: 1.2rem; line-height: 1; }
/* Tagesabschluss */
.dayclose { display: grid; gap: .8rem; }
.dayclose h3 { margin: 0; }
.dayclose-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dc-btn { display: grid; gap: .15rem; padding: 1.1rem; text-align: center; min-height: 110px; }
.dc-btn strong { font-size: 1.1rem; }
.dc-btn span { font-size: 1.05rem; }
.dc-z:not(:disabled) { box-shadow: inset 0 0 0 2px var(--accent, #007aff); }
/* X-/Z-Abschlag im Aufbau des bisherigen Ladenbons */
.zr .zr-title { text-align: center; font-size: 1.25em; font-weight: 700; margin: .5rem 0; line-height: 1.25; }
.zr .zr-meta div { display: flex; justify-content: space-between; font-size: .9em; }
.zr .zr-line { display: grid; grid-template-columns: 1fr 3.2em 6em; font-size: .92em; }
.zr .zr-line > span:nth-child(2) { text-align: right; padding-right: .4em; }
.zr .zr-line > span:last-child { text-align: right; }
.zr .zr-big { display: flex; justify-content: space-between; font-size: 1.12em; font-weight: 700; margin: .1rem 0; }
.zr .zr-head { font-weight: 700; font-size: 1.02em; margin-top: .15rem; }
.zr .zr-sub { font-weight: 700; margin-top: .1rem; }
/* Teileetikett mit QR-Code rechts */
.doc-label.l-qr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2mm; align-items: center; }
.l-qr .l-qrcode svg { display: block; width: 14mm; height: 14mm; }
/* QR-Teileetikett kompakter */
.doc-label.l-qr { width: 56mm; padding: 1.8mm 2.2mm; font-size: 10.5px; gap: 1.5mm; }
.doc-label.l-qr.label-hemd { width: 52mm; }
.l-qr .l-code-text { font-size: 10px; margin-top: .5mm; letter-spacing: .02em; }
/* Kleidungs-Icons auf den Kassen-Kacheln (schwarz-weiß, Strichzeichnung) */
.g-icon { display: inline-flex; color: var(--ink, #1d1d1f); opacity: .78; }
/* Icon über dem Namen: der Name bekommt die volle Kachelbreite */
.tile-g.has-icon, .tile-a.has-icon { justify-content: flex-start; padding-top: .75rem; }
.tile-g.has-icon .g-icon, .tile-a.has-icon .g-icon { margin-bottom: .15rem; }
@media (prefers-color-scheme: dark) { .g-icon { color: #f5f5f7; } }
.icon-pick { display: inline-flex; align-items: center; gap: .3rem; }
.icon-prev { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--surface, #fff); color: var(--muted, #8e8e93); }
.icon-prev .g-icon { color: var(--ink, #1d1d1f); }
.icon-sel { max-width: 10.5rem; }
/* Größere Kachelschrift, sauberer Umbruch bei langen Namen */
.pos .tile-g .tile-name { font-size: clamp(1.08rem, 0.6rem + 0.75vw, 1.35rem); font-weight: 650; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; hyphens: manual; overflow-wrap: normal; }
.pos .tile-a .tile-name { font-size: clamp(1.02rem, 0.55rem + 0.65vw, 1.22rem); line-height: 1.15; text-wrap: balance; hyphens: manual; overflow-wrap: normal; }
.tpreview .tile-a.has-icon { padding-left: .9rem; }
.pos .tile-g .tile-sub { font-size: .82rem; }
/* Kacheln mit Icon brauchen etwas mehr Höhe (Icon + bis zu 2 Zeilen Name + Artikelzahl) */
.cat-grid:has(.has-icon) { grid-auto-rows: clamp(112px, 13.5vh, 132px); }
.tpreview:has(.has-icon) { grid-auto-rows: 112px; }
.tile-g.has-icon, .tile-a.has-icon { gap: .12rem; padding-bottom: .6rem; }
/* Zeiterfassung: eine Zeile je Mitarbeiter */
.zeit-list { display: grid; gap: .7rem; }
.zeit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; background: var(--surface); border-radius: var(--r-lg, 16px);
  box-shadow: var(--shadow); padding: .9rem 1.1rem; border-left: 6px solid #c7c7cc; }
.zeit-row.zs-arbeitet { border-left-color: #34c759; }
.zeit-row.zs-pause { border-left-color: #ff9f0a; }
.zeit-who { display: grid; gap: .15rem; }
.zeit-name { font-size: 1.35rem; }
.zeit-state { justify-self: start; font-size: .8rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: var(--fill-2, #f2f2f7); color: var(--muted, #6e6e73); }
.zs-badge-arbeitet { background: rgba(52, 199, 89, .15); color: #1f7a35; }
.zs-badge-pause { background: rgba(255, 159, 10, .18); color: #8a5300; }
.zeit-sum { color: var(--muted, #6e6e73); font-size: .95rem; }
.zeit-hours { font-weight: 700; color: var(--ink, #1d1d1f); font-size: 1.1rem; }
.zeit-btns { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.zeit-btns .btn { min-width: 9.5rem; }
.zb-start:not(:disabled) { background: #34c759; color: #fff; }
.zb-pause:not(:disabled) { background: rgba(255, 159, 10, .18); color: #8a5300; }
.zb-pause.is-on:not(:disabled) { background: #ff9f0a; color: #fff; }
.zb-end:not(:disabled) { background: #ff3b30; color: #fff; }
.zeit-btns .btn:disabled { opacity: .35; }
.zeit-log { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; color: var(--muted, #6e6e73); }
@media (max-width: 820px) { .zeit-row { grid-template-columns: 1fr; } .zeit-btns { justify-content: stretch; } .zeit-btns .btn { flex: 1; min-width: 0; } }
/* Urlaub / Krank */
.zb-abs { background: rgba(88, 86, 214, .12); color: #4b49c4; }
.abs-badge { font-size: .8rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; }
.abs-urlaub { background: rgba(88, 86, 214, .14); color: #4b49c4; }
.abs-krank { background: rgba(255, 59, 48, .14); color: #c4271d; }
.abs-dialog { display: grid; gap: .8rem; }
.abs-dialog h3 { margin: .4rem 0 0; font-size: 1rem; }
/* Stundenabrechnung */
.lohn-head { display: grid; gap: .2rem; margin-bottom: .6rem; }
.lohn-head h2 { margin: 0; }
.lohn-table td { vertical-align: top; }
.lohn-h { font-size: 1.1rem; }
.lohn-abs { font-size: .85rem; margin-top: .15rem; }
.abs-urlaub-t { color: #4b49c4; }
.abs-krank-t { color: #c4271d; }
.lohn-sign { margin-top: 1.5rem; }
#print-root .lohn-sheet { box-shadow: none; padding: 0; color: #000; }
/* Schritt ändern / manuell */
.step-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .45rem; }
.step-btn { display: grid; text-align: left; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line, rgba(0,0,0,.1)); background: var(--surface, #fff); font: inherit; cursor: pointer; min-height: 52px; }
.step-btn small { color: var(--muted, #6e6e73); }
.step-btn.is-current { background: var(--fill-2, #f2f2f7); opacity: .7; }
.step-btn.is-chosen { border-color: var(--accent, #007aff); box-shadow: 0 0 0 2px var(--accent, #007aff); }
.hist-manual { background: rgba(255, 159, 10, .08); border-radius: 6px; }
.audit-manual td { background: rgba(255, 159, 10, .07); }
.qr-log { width: 100%; display: grid; gap: .4rem; text-align: left; max-height: 40vh; overflow: auto; }
.qr-line { padding: .5rem .7rem; border-radius: 10px; background: var(--fill-2, #f2f2f7); }
.qr-line.ok { background: rgba(52, 199, 89, .12); }
.qr-line.err { background: rgba(255, 59, 48, .12); color: #c4271d; }
.l-qr .l-num { font-size: 1.25em; }
.l-qr .l-art { font-size: 1.05em; margin-top: .3mm; }
.brand-iq { color: #0f766e; font-weight: 800; }
/* CleanIQ-Logo (Bild statt Buchstaben) */
.logo-img { background: none; box-shadow: 0 2px 6px rgba(6, 23, 61, .35); padding: 0; object-fit: contain; }
.brand-iq { color: #08b8b3; }

.brand-sub { font-weight: 500; opacity: .75; margin-left: .25em; }
.bel-paper .doc-invoice { zoom: .62; justify-self: start; }
.ls-box { grid-column: 1 / -1; border: 1px solid var(--line, #ddd); border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .35rem; }
.check-strong { font-weight: 700; }
.korr { display: grid; gap: .8rem; }
.korr-step { display: inline-flex; align-items: center; gap: .6rem; }
.korr-step strong { min-width: 2ch; text-align: center; font-size: 1.15rem; }
.korr-step .btn { min-width: 46px; min-height: 46px; font-size: 1.3rem; }
.korr-weg td { opacity: .5; text-decoration: line-through; }
.korr-weg td:nth-child(2) { text-decoration: none; opacity: 1; }
.korr-neu td:first-child strong { color: var(--accent, #0a7); }
.korr-hits { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Stationsanzeige (#/anzeige): nur Kleidungsbild mit Punkten */
body.anzeige-mode .topbar, body.anzeige-mode .as { display: none !important; }
body.anzeige-mode #main { padding: 0; max-width: none; }
.anz { min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: #111; }
.anz-bar { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; color: #888; font-size: .95rem; }
.anz-bar span { flex: 1; }
.anz-exit { background: none; border: 1px solid #ddd; border-radius: 10px; padding: .35rem .8rem; color: #666; font-size: .9rem; text-decoration: none; cursor: pointer; }
.anz-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.anz-idle { text-align: center; font-size: 2.6rem; font-weight: 600; color: #b5b5bb; }
.anz-idle-icon { font-size: 5rem; line-height: 1; }
.anz-small { font-size: 1.6rem; }
.anz-item { width: 100%; max-width: 1100px; display: grid; gap: 1rem; }
.anz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.anz-head h1 { font-size: 2.6rem; margin: 0; }
.anz-code { font-size: 1.2rem; color: #666; font-family: ui-monospace, Menlo, monospace; }
.anz-wish { background: #fff7e6; border: 2px solid #f5a623; border-radius: 14px; padding: .8rem 1rem; font-size: 1.5rem; font-weight: 600; }
.anz-marks, .anz-clean { display: grid; gap: 1rem; justify-items: center; }
.anz-marks .garment-pair, .anz-clean .garment-pair { justify-content: center; }
.anz-legend { font-size: 1.5rem; display: grid; gap: .4rem; margin: 0; }
.anz-photo { height: 90px; border-radius: 8px; vertical-align: middle; margin-left: .6rem; }
.anz-clean > div:last-child { font-size: 1.6rem; color: #1a7f37; font-weight: 600; }
.anz-status { min-height: 4.5rem; display: flex; align-items: center; justify-content: center; padding: .5rem 1rem 1.2rem; font-size: 1.4rem; }
.anz-ok { color: #1a7f37; font-weight: 700; } .anz-warn { color: #b25e00; } .anz-err { color: #c4271d; } .anz-muted { color: #888; }
.anz-choice { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.anz-input { position: absolute; opacity: 0; width: 1px; height: 1px; left: -100px; }
.anz-pick { padding: 2rem; }
.anz-alarm-bar { background: #c4271d; color: #fff; font-size: 1.8rem; font-weight: 800; text-align: center; border-radius: 14px; padding: .5rem; animation: anz-blink 1s ease-in-out 3; }
@keyframes anz-blink { 50% { opacity: .35; } }
.l-crease { display: inline-block; margin-left: 1.2mm; padding: 0 1mm; border: 1.5px solid #000; border-radius: 1mm; font-weight: 800; font-size: 1.05em; line-height: 1.25; }
@media print {
  /* Bürodrucker: Teileetiketten nebeneinander auf einem Blatt statt je Etikett eine Seite */
  #print-root.labels-sheet .doc-label { display: inline-grid; vertical-align: top; margin: 0 2mm 2mm 0; page-break-after: auto; break-after: auto; break-inside: avoid; border: 1px dashed #999; border-top: 3px solid #16a34a; }
  #print-root.labels-sheet .doc-label:not(.l-qr) { display: inline-block; }
}

/* ---------- Kunden-Landkarte */
.kmap-card { padding: 0; overflow: hidden; }
.kmap { position: relative; height: 560px; overflow: hidden; background: #e8e8e8; touch-action: none; cursor: grab; user-select: none; }
.kmap:active { cursor: grabbing; }
.kmap-tiles img { position: absolute; width: 256px; height: 256px; pointer-events: none; }
.kmap-heat { position: absolute; inset: 0; pointer-events: none; }
.kmap-btn { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); font-size: 1.4rem; cursor: pointer; }
.kmap-btn2 { top: 58px; }
.kmap-attrib { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.8); font-size: 11px; padding: 1px 6px; }
.kmap-info { position: absolute; left: 12px; top: 12px; max-width: 360px; background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.25); padding: .6rem .8rem; display: grid; gap: .5rem; }
.kmap-cust { display: grid; cursor: pointer; } .kmap-cust small { color: #555; }
.kmap-close { position: absolute; right: 6px; top: 4px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.kmap-info[hidden] { display: none; }
.addr-deliv-wrap { grid-column: 1 / -1; border: 1px solid var(--line, #ddd); border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .4rem; }
.addr-deliv-wrap .addr-deliv { display: contents; }
.addr-deliv-wrap .addr-deliv[hidden] { display: none; }

/* ---------- Station auf Tablets (quer, wenig Höhe): Knöpfe oben, kompakter */
.action-top { margin: .7rem 0 .2rem; }
.action-top .btn { min-height: 64px; font-size: 1.15rem; }
@media (max-height: 900px) {
  .station .station-hint { display: none; }
  .station .page-head { margin-bottom: .4rem; }
  .station .page-head h1 { font-size: 1.5rem; }
  .station .scan-input { min-height: 48px; font-size: 1.05rem; }
  .station .scan-row .btn-xl { min-height: 48px; }
  .station-grid { grid-template-columns: minmax(0, 1fr) minmax(200px, 240px); gap: .7rem; }
  .item-card { padding: .8rem 1rem; }
  .item-card h2 { font-size: 1.35rem; margin: .1rem 0; }
  .code-big { font-size: 1.15rem; padding: .3rem .6rem; }
  .marks-box { margin: .4rem 0; padding: .5rem; }
}
@media (max-width: 1100px) and (max-height: 900px) {
  .station-grid { grid-template-columns: 1fr; }
  .station-grid .recent { display: none; }
}
/* Stationsanzeige: Knöpfe/Status immer unten sichtbar */
.anz-status { position: sticky; bottom: 0; background: #fff; box-shadow: 0 -6px 12px rgba(255,255,255,.9); z-index: 2; }
@media (max-height: 800px) {
  .anz-head h1 { font-size: 2rem; }
  .anz-wish { font-size: 1.2rem; padding: .5rem .8rem; }
  .anz-legend { font-size: 1.2rem; }
  .anz-alarm-bar { font-size: 1.3rem; padding: .3rem; }
  .anz-stage { padding: .5rem 1rem; }
}

/* ---------- Station für den Bügler (1–1,5 m Abstand): groß, zweispaltig, wenig Kleinkram */
body.surface-station .as { display: none !important; }
.st-big { padding: 1rem 1.2rem; }
.st-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.st-visual { display: grid; gap: .6rem; justify-items: center; }
.st-side { display: grid; gap: .8rem; align-content: start; }
.st-title { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.st-title h2 { font-size: 2.8rem; line-height: 1.05; margin: 0; }
.st-part { font-size: 1.8rem; font-weight: 700; color: #555; }
.st-sub { font-size: 1.1rem; color: #666; font-family: ui-monospace, Menlo, monospace; display: flex; gap: .6rem; align-items: center; }
.st-wish { background: #fff7e6; border: 3px solid #f5a623; border-radius: 14px; padding: .6rem .9rem; font-size: 1.8rem; font-weight: 800; }
.st-legend { font-size: 1.7rem; line-height: 1.35; margin: 0; padding-left: 2.2rem; }
.st-legend li { margin: .2rem 0; }
.st-legend .thumb { height: 64px; vertical-align: middle; margin-left: .5rem; }
.st-clean { font-size: 1.7rem; font-weight: 700; color: #1a7f37; }
.st-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: .2rem; }
.st-actions .btn { min-height: 96px; font-size: 1.6rem; font-weight: 800; border-radius: 20px; line-height: 1.15; }
.st-more { font-size: .95rem; }
.st-big .garment-pair { gap: .6rem; }
@media (orientation: portrait), (max-width: 760px) {
  .st-main { grid-template-columns: 1fr; }
  .st-title h2 { font-size: 2.2rem; }
}
@media (max-height: 900px) {
  .station .page-head { margin: 0 0 .3rem; }
  .station .page-head h1 { font-size: 1.3rem; }
  .station-grid { grid-template-columns: 1fr; }
  .station-grid .recent { display: none; }
}
/* Tablet-Anzeige: zweispaltig im Querformat, sehr groß */
.anz-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.anz-side { display: grid; gap: .8rem; align-content: start; }
.anz-head { justify-content: flex-start; }
.anz-head h1 { font-size: 3rem !important; line-height: 1.05; }
.anz-part { font-size: 2rem; font-weight: 700; color: #555; }
.anz-side .anz-wish { font-size: 1.9rem !important; font-weight: 800; border-width: 3px; }
.anz-side .anz-legend { font-size: 1.8rem !important; padding-left: 2.2rem; }
.anz-cleantext { font-size: 1.9rem; font-weight: 700; color: #1a7f37; }
.anz-choice .btn, .anz-ok { font-size: 1.7rem; }
.anz-choice .btn { min-height: 96px; min-width: 300px; font-weight: 800; border-radius: 20px; }
@media (orientation: portrait), (max-width: 760px) { .anz-grid { grid-template-columns: 1fr; justify-items: center; } }
.ho-done { display: flex; gap: 1.2rem; align-items: center; border: 2px solid #34c759; background: rgba(52,199,89,.08); }
.ho-done-check { font-size: 4rem; color: #1a7f37; font-weight: 800; line-height: 1; }
.ho-done h2 { margin: 0 0 .2rem; }
pre.cmd { background: #111; color: #e5e5e5; padding: .5rem .7rem; border-radius: 8px; white-space: pre-wrap; word-break: break-all; user-select: all; }

/* Aufteilung Umsatz nach Zahlart */
.split-card h3 { margin-top: 0; }
.split-bar { display: flex; height: 22px; border-radius: 11px; overflow: hidden; background: var(--fill); margin: .4rem 0 .9rem; }
.split-bar span { display: block; height: 100%; min-width: 3px; }
.split-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.split-item { display: flex; align-items: baseline; gap: .45rem; }
.split-item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; align-self: center; }
.split-item strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* Letzte Kundenkarten-Aufladung */
.balance .balance-last { font-size: .66rem; font-weight: 500; opacity: .85; white-space: nowrap; }
.tile { position: relative; }
.tile-flag { position: absolute; top: .35rem; right: .45rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: .05rem .35rem; }

/* Hemd legen: Sammler auffällig (schwarzer Kasten), Abholbeleg dezent */
.r-sub.r-legen { font-weight: 700; }
.r-legen-box { margin: .35rem 0; padding: .35rem .3rem; border: 3px solid #000; background: #000; color: #fff; text-align: center; font-weight: 700;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.r-legen-big { font-size: 19px; letter-spacing: .04em; }
.r-legen-hint { margin: .25rem 0 0; padding: .15rem .3rem; border: 1px solid #000; border-radius: 3px; font-size: 11px; font-weight: 600; }

/* Breite Auswertungstabellen: kompakter, damit alle Spalten passen; sonst waagerecht scrollen (erste Spalte bleibt stehen) */
.report-scroll { -webkit-overflow-scrolling: touch; }
.table.report-dense { font-size: .78rem; }
.table.report-dense th, .table.report-dense td { padding: .42rem .32rem; white-space: nowrap; }
.table.report-dense th { font-size: .68rem; white-space: normal; line-height: 1.15; vertical-align: bottom; min-width: 3.2em; }
.report-more { font-size: .78rem; color: var(--ink-2); text-align: right; margin: 0 0 .25rem; }
.report-scroll th:first-child, .report-scroll td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* Betriebs-Agent */
.agent-tasks tr.is-off td { opacity: .5; }
.agent-param { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; }
.agent-param .input-sm { width: 5.5em; }
.agent-report { white-space: pre-wrap; font-family: var(--font); font-size: .9rem; line-height: 1.45; margin: 0; max-height: 70vh; overflow: auto; }

/* ---------- Web-Admin: Kachel-Startseite statt Seitenleiste */
.admin.admin-full { display: block; max-width: 1280px; margin: 0 auto; }
.admin-full .admin-content { gap: 1rem; }
.admin-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0 0 1rem; position: sticky; top: 64px; z-index: 5;
  background: var(--bg); padding: .5rem 0; }
.admin-back { display: inline-flex; align-items: center; gap: .3rem; }
.admin-crumb-group { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.admin-siblings { display: flex; flex-wrap: wrap; gap: .4rem; }
.admin-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; min-height: 42px; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow); color: var(--ink); font-weight: 600; font-size: .92rem; }
.admin-chip:hover { background: var(--accent-soft); }
.admin-chip.on { background: var(--accent); color: #fff; }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; margin-bottom: .6rem; align-items: start; }
.admin-tile-group { background: var(--fill-2); border-radius: var(--r-xl); padding: .9rem; }
.admin-tile-group h2 { font-size: .95rem; color: var(--ink-2); margin: .1rem .2rem .7rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.admin-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.admin-tile { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.05rem; min-height: 128px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.admin-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.admin-tile strong { font-size: 1.1rem; }
.admin-tile small { color: var(--ink-2); font-size: .85rem; line-height: 1.3; }
.admin-tile-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: .2rem; }
.admin-status-title { font-size: 1.05rem; color: var(--ink-2); margin: .8rem 0 0; font-weight: 650; }
@media (max-width: 700px) { .admin-tiles { grid-template-columns: 1fr; } .admin-tile-grid { grid-template-columns: 1fr 1fr; } .admin-tile { min-height: 100px; padding: .9rem; } }

/* ---------- Apple-Stil für die Verwaltung: viel Luft, große Schrift, sanftes Einblenden */
html { scroll-behavior: smooth; }
.admin-full .admin-content { gap: 0; }
.apple-hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); max-width: 900px; }
.apple-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: .2rem 0 .8rem; }
.apple-lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); color: var(--ink-2); line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.eyebrow { margin: 0; font-size: .95rem; font-weight: 600; color: var(--accent-strong); letter-spacing: .01em; }
.apple-sections { display: flex; flex-direction: column; }
.apple-section { padding: clamp(2.2rem, 5vw, 4rem) 0 0; }
.apple-section-head { margin-bottom: 1.4rem; max-width: 760px; }
.apple-section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: .25rem 0 0; }
.apple-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.apple-tile { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.7rem 1.6rem 1.5rem; min-height: 210px; border-radius: 28px;
  background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 30px rgba(0,0,0,.05);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1); }
.apple-tile:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 22px 50px rgba(0,0,0,.10); }
.apple-tile strong { font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; margin-top: .4rem; }
.apple-desc { color: var(--ink-2); font-size: .98rem; line-height: 1.4; }
.apple-more { margin-top: auto; padding-top: .6rem; color: var(--accent-strong); font-weight: 600; font-size: .95rem; opacity: 0; transform: translateX(-4px);
  transition: opacity .3s ease, transform .3s ease; }
.apple-tile:hover .apple-more { opacity: 1; transform: none; }
.apple-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--tone-a), var(--tone-b)); box-shadow: 0 6px 16px var(--tone-shadow); }
.tone-blau   { --tone-a: #4fa3ff; --tone-b: #0a6cff; --tone-shadow: rgba(10,108,255,.28); }
.tone-lila   { --tone-a: #b18cff; --tone-b: #6e3fd8; --tone-shadow: rgba(110,63,216,.28); }
.tone-orange { --tone-a: #ffb54d; --tone-b: #ff7a00; --tone-shadow: rgba(255,122,0,.28); }
.tone-gruen  { --tone-a: #4fd8a0; --tone-b: #10a374; --tone-shadow: rgba(16,163,116,.28); }
.tone-grau   { --tone-a: #a1a1aa; --tone-b: #5b5b63; --tone-shadow: rgba(60,60,67,.25); }
.tone-blau .eyebrow { color: #0a6cff; } .tone-lila .eyebrow { color: #6e3fd8; } .tone-orange .eyebrow { color: #e06a00; }
.tone-gruen .eyebrow { color: #0b8a62; } .tone-grau .eyebrow { color: #5b5b63; }
/* Einblenden beim Scrollen */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: apple-rise .9s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: var(--d, 0ms); }
@keyframes apple-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.in { opacity: 1; animation: none; } html { scroll-behavior: auto; } }
/* „Stand heute“-Karten unter den Kacheln mit etwas Abstand */
.apple-section + .card, .apple-section ~ .card, .apple-section ~ .kpis, .apple-section ~ .warn-box { margin-top: 1rem; }
.admin-crumbs { background: rgba(245,245,247,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
@media (max-width: 700px) { .apple-grid { grid-template-columns: 1fr; } .apple-tile { min-height: 160px; } }

/* Kacheln etwas kompakter (Wunsch Inhaber) */
.apple-sections .apple-section:first-child { padding-top: clamp(1.2rem, 3vw, 2.2rem); }
.apple-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.apple-tile { min-height: 158px; padding: 1.25rem 1.25rem 1.1rem; border-radius: 22px; gap: .3rem; }
.apple-tile strong { font-size: 1.15rem; margin-top: .3rem; }
.apple-desc { font-size: .9rem; }
.apple-ic { width: 44px; height: 44px; border-radius: 13px; }
.apple-section-head { margin-bottom: 1rem; }
.apple-section-head h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); }

/* ---------- Zeiterfassung im Apple-Stil */
.zeit-page .page-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin: clamp(.8rem, 2vw, 1.6rem) 0 .4rem; }
.zeit-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.035em; margin: 0; }
.zeit-clock { text-align: right; line-height: 1.1; }
.zeit-clock strong { display: block; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.zeit-clock span { color: var(--ink-2); font-size: .95rem; }
.zeit-page .zeit-intro { color: var(--ink-2); font-size: 1.02rem; margin: 0 0 1.4rem; }
.zeit-list { gap: .85rem; }
.zeit-row { border-left: 0; border-radius: 24px; padding: 1.1rem 1.3rem; grid-template-columns: auto minmax(0, 1fr) auto;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 26px rgba(0,0,0,.05); }
.zeit-avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 1.05rem;
  color: #fff; background: linear-gradient(160deg, #9aa0ab, #6b7280); }
.zs-arbeitet .zeit-avatar { background: linear-gradient(160deg, #4fd27a, #1fa64e); }
.zs-pause .zeit-avatar { background: linear-gradient(160deg, #ffc061, #ff8a00); }
.zeit-name { font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.zeit-state { background: transparent; padding: 0; font-size: .85rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .35rem; }
.zeit-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; }
.zs-arbeitet .zeit-state::before { background: #34c759; } .zs-pause .zeit-state::before { background: #ff9f0a; }
.zeit-btns { gap: .45rem; }
.zeit-btns .btn { min-width: 8.5rem; min-height: 50px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 0; }
.zeit-btns .btn:disabled { opacity: 1; background: var(--fill-2); color: #b9b9bf; }
.zb-end:not(:disabled) { background: rgba(255,59,48,.12); color: #d70015; }
.zeit-log, .zeit-row > .zeit-log { grid-column: 2 / -1; }
@media (max-width: 820px) { .zeit-row { grid-template-columns: auto 1fr; } .zeit-btns { grid-column: 1 / -1; } .zeit-log { grid-column: 1 / -1; } }

/* Auswertungen-Menü: alte Aufteilung, leicht aufgefrischt */
.report-group { border-radius: 22px; padding: 1.2rem 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 26px rgba(0,0,0,.05); }
.report-group h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: .7rem; }
.report-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--tone-a), var(--tone-b)); box-shadow: 0 4px 10px var(--tone-shadow); }
.report-group h3 .report-ic .ic { color: #fff; }
.report-link { position: relative; padding: .7rem 1.6rem .7rem .75rem; transition: background .2s ease; }
.report-link::after { content: "›"; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 1.3rem;
  opacity: 0; transition: opacity .2s ease, right .2s ease; }
.report-link:hover::after { opacity: 1; right: .5rem; }
.report-link strong { font-size: 1.02rem; }

/* ---------- iPhone-Schalter + gruppierte Listen (Betriebs-Agent) */
input.switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 999px; background: #e9e9eb; position: relative;
  cursor: pointer; transition: background .25s ease; margin: 0; flex: none; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.1); transition: transform .25s cubic-bezier(.3,.7,.3,1); }
input.switch:checked { background: #34c759; }
input.switch:checked::after { transform: translateX(20px); }
input.switch:disabled { opacity: .5; cursor: default; }
.ios-group { background: var(--surface); border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 6px 20px rgba(0,0,0,.04); overflow: hidden; }
.ios-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.2rem; min-height: 64px; }
.ios-row + .ios-row { border-top: 1px solid var(--line); }
.ios-row-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ios-row-text strong { font-weight: 600; font-size: 1.02rem; }
.ios-row-text span { color: var(--ink-2); font-size: .88rem; }
.ios-row-block { display: block; }
.agent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .9rem 0 0; }
.btn-pill { border-radius: 999px; padding: .55rem 1.1rem; min-height: 40px; font-weight: 600; }
.agent-section-head { display: flex; align-items: center; justify-content: space-between; margin: 1.8rem 0 .7rem; }
.agent-section-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.agent-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem 1rem; align-items: start; padding: 1.05rem 1.2rem; }
.agent-task + .agent-task { border-top: 1px solid var(--line); }
.agent-task.is-off .agent-task-main, .agent-task.is-off .agent-task-ic { opacity: .45; }
.agent-task-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--tone-a), var(--tone-b)); box-shadow: 0 4px 10px var(--tone-shadow); }
.agent-task-main { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.agent-task-title { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.agent-task-title strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.agent-task-desc { color: var(--ink-2); font-size: .88rem; line-height: 1.35; }
.agent-tag { font-size: .72rem; font-weight: 600; color: var(--sim); background: var(--sim-soft); border-radius: 6px; padding: .1rem .45rem; }
.agent-count { font-size: .75rem; font-weight: 700; color: #fff; background: #ff3b30; border-radius: 999px; padding: .1rem .5rem; }
.agent-params { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.agent-param { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); background: var(--fill-2); border-radius: 999px; padding: .2rem .35rem .2rem .75rem; margin: 0; }
.agent-param .input-sm { width: 4.2em; min-height: 30px; padding: .15rem .4rem; border-radius: 999px; text-align: center; background: var(--surface); }
.agent-task-links { display: flex; gap: .9rem; margin-top: .2rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-strong); font-weight: 600; font-size: .88rem; cursor: pointer; }
.linkish.danger { color: var(--err); }
.agent-task-switches { display: flex; gap: 1.1rem; align-items: center; }
.sw-lab { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .72rem; color: var(--ink-2); font-weight: 600; margin: 0; }
.tone-blau, .tone-lila, .tone-orange, .tone-gruen, .tone-grau { } /* Farben siehe oben */
@media (max-width: 760px) { .agent-task { grid-template-columns: auto 1fr; } .agent-task-switches { grid-column: 1 / -1; justify-content: flex-end; } }

/* Agent: untere Abschnitte + Berichte als Liste */
.ios-row-btn { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ios-row-btn:hover { background: var(--fill-2); }
.ios-chevron { color: var(--ink-3); font-size: 1.4rem; }
/* Assistent: kleiner runder Knopf, stört nicht beim Lesen */
.as { bottom: 1rem; left: 1rem; }
.as-fab { width: 46px; height: 46px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; opacity: .82;
  box-shadow: 0 4px 14px rgba(10, 132, 255, .30); transition: opacity .2s ease, transform .2s ease; }
.as-fab:hover { opacity: 1; transform: scale(1.06); }

/* Platz am Seitenende, damit der Assistent-Knopf nie Text verdeckt */
.admin-content, .page { padding-bottom: 4.5rem; }
