/* BauTag – Oberfläche. Design-System aus dem Prototyp übernommen (Teil 1), Erweiterungen für die echte App (Teil 2). Keine externen Ressourcen. */
:root {
  --red: #d4302b; --red-d: #b3241f; --red-bg: #fdecea;
  --ink: #15181c; --graphite: #1d2126; --graphite-2: #2a2f36; --graphite-3: #3a4049;
  --text: #171a1e; --muted: #5a636e; --faint: #8a929c;
  --line: #e2e5e9; --line-2: #eef0f3; --bg: #f2f3f5; --card: #fff;
  --green: #127538; --green-bg: #e3f5e9; --green-strong: #16a34a;
  --amber: #9a5205; --amber-bg: #fdf0cf; --amber-strong: #f0a020;
  --blue: #1f55c4; --blue-bg: #e6eefc;
  --c-lohn: #3b6fd4; --c-ger: #e08a1e; --c-mat: #2a9d8f; --c-fremd: #8b5fbf;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  --tap: 52px; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow: hidden; }
#root { height: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
small { font-size: 12.5px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); } .sm { font-size: 13px; } .grow { flex: 1; } .nw { white-space: nowrap; }
.num, .cc-time, .kpi b, .st-val b, time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(31, 85, 196, .45); outline-offset: 2px; }

/* ---------- Buttons, Chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .16s, box-shadow .16s, transform .1s, border-color .16s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 1px 2px rgba(180, 36, 31, .4); }
.btn.primary:hover { background: var(--red-d); }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: #c9ced5; background: #fafbfc; }
.btn.danger { background: var(--graphite); color: #fff; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; } .btn.sm .ic { width: 16px; height: 16px; }
.btn.lg { height: 56px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn.block { display: flex; width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--muted); transition: background .15s; }
.icon-btn:hover { background: var(--line-2); } .icon-btn:disabled { opacity: .3; } .icon-btn.sm { width: 36px; height: 36px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; } .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.xs { height: 20px; padding: 0 7px; font-size: 11px; }
.st-grey { background: #eceef1; color: #4a525c; } .st-amber { background: var(--amber-bg); color: var(--amber); } .st-green { background: var(--green-bg); color: var(--green); }
.st-blue { background: var(--blue-bg); color: var(--blue); } .st-red { background: var(--red-bg); color: var(--red-d); } .st-outline { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--graphite-2); color: #fff; display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; letter-spacing: .02em; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; } .avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.avatars { display: inline-flex; } .avatars .avatar { margin-left: -7px; box-shadow: 0 0 0 2px #fff; } .avatars .avatar:first-child { margin-left: 0; }
.avatar.on { background: var(--green); } .avatar.off { background: #c3c8cf; } .avatar.more { background: #eceef1; color: var(--muted); }
.code-badge { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 6px; font-size: 11.5px; font-weight: 800; vertical-align: middle; }
.c-K { background: #fde2e0; color: #a1201b; } .c-U { background: #dfeafc; color: #1b4aa8; } .c-SW { background: #e3e0fa; color: #4a3aa8; } .c-F { background: #eceef1; color: #4a525c; }

/* ---------- Karten, Listen ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 28px; }
.card-h.pad-h { padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--line-2); }
.card-h h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.count { font-size: 12px; font-weight: 700; background: #eceef1; color: var(--muted); padding: 2px 8px; border-radius: 999px; } .count.red { background: var(--red-bg); color: var(--red-d); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.banner .ic { margin-top: 1px; width: 18px; height: 18px; } .banner > span { flex: 1; }
.banner.ok { background: var(--green-bg); color: #0f5f2c; } .banner.info { background: #eef1f5; color: #39424d; } .banner.warn { background: var(--amber-bg); color: #7a4204; align-items: center; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; color: var(--faint); font-size: 13.5px; text-align: center; }
.list-label, .field-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 2px 8px; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--graphite-3); box-shadow: 0 0 0 4px rgba(29, 33, 38, .08); }
.search span { display: grid; } .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--text); }
.def-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.def-list > div:last-child { border: 0; } .def-list span { color: var(--muted); flex: none; } .def-list b { text-align: right; font-weight: 600; } .def-list b small { display: block; font-weight: 400; color: var(--muted); }
.def-list.big > div { padding: 15px 18px; font-size: 15px; }
.meter { display: block; height: 8px; border-radius: 99px; background: #e9ecef; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--graphite); border-radius: 99px; transition: width .4s var(--ease); }
.meter.thin { height: 5px; } .meter.seg { display: flex; gap: 2px; background: none; } .meter.seg i { border-radius: 3px; min-width: 0; } .meter.seg .g { background: var(--green-strong); } .meter.seg .d { background: #7c8591; } .meter.seg .u { background: #9db4e8; } .meter.seg .o { background: var(--amber-strong); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; white-space: nowrap; } .delta.neg { background: var(--red-bg); color: var(--red-d); } .delta.pos { background: var(--green-bg); color: var(--green); }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); align-items: center; padding: 2px 4px; }
.legend-row > span { display: inline-flex; align-items: center; gap: 6px; }
.lg-ue { width: 14px; height: 8px; border-radius: 3px; background: var(--amber-strong); display: inline-block; } .lg-wn { width: 12px; height: 12px; border: 2px solid var(--red); border-radius: 3px; display: inline-block; }
.fineprint { text-align: center; color: var(--faint); font-size: 12px; }

/* ---------- Shell ---------- */
.app { display: flex; height: 100%; }
.sidenav { width: 252px; flex: none; background: var(--graphite); color: #d6dae0; display: flex; flex-direction: column; padding: 16px 12px; }
.mark { width: 36px; height: 36px; flex: none; border-radius: 10px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; }
.brand-txt b { display: block; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .brand-txt small { color: #98a1ad; font-size: 11.5px; }
.nav-list { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 500; font-size: 14.5px; color: #c1c7cf; transition: background .15s, color .15s; position: relative; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--red); }
.lbl-short { display: none; }
.nav-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 8px; }
.nav-user .avatar { background: var(--red); } .nav-user-txt { min-width: 0; } .nav-user-txt b { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nav-user-txt small { color: #98a1ad; font-size: 11.5px; white-space: nowrap; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.topbar { height: 68px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.top-logo { display: none; } .top-title { min-width: 0; flex: 1; }
.top-title h1 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 14px; flex: none; }
.sync-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; transition: background .2s; }
.sync-chip .ic { width: 16px; height: 16px; } .sync-chip.online { background: var(--green-bg); color: var(--green); } .sync-chip.offline { background: var(--amber-bg); color: var(--amber); }
.top-clock { text-align: right; line-height: 1.15; } .top-clock b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; } .top-clock small { color: var(--muted); font-size: 11.5px; }
.top-avatar { display: none; background: var(--red); width: 36px; height: 36px; font-size: 12.5px; }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; scroll-behavior: smooth; }
.tabbar { display: none; }
.page { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 16px; max-width: 1560px; margin: 0 auto; width: 100%; }
.page.narrow { max-width: 640px; }
.foot-bar { position: sticky; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.foot-bar > * { max-width: 608px; margin: 0 auto; } .foot-split { display: flex; gap: 10px; } .foot-split > * { flex: 1; } .foot-split > .grow { flex: 2; }

/* Tablet: Rail */
@media (max-width: 1279px) {
  .sidenav { width: 92px; padding: 14px 8px; align-items: center; }
  .brand { padding: 4px 0 14px; } .brand-txt, .nav-user-txt { display: none; }
  .nav-list { width: 100%; gap: 4px; }
  .nav-item { flex-direction: column; justify-content: center; gap: 5px; height: 66px; padding: 0 2px; font-size: 11px; text-align: center; }
  .nav-item .ic { width: 24px; height: 24px; } .nav-item.active::before { left: -8px; top: 16px; bottom: 16px; }
  .lbl-long { display: none; } .lbl-short { display: block; }
  .nav-user { border: 0; padding: 6px; }
  .topbar { padding: 0 22px; } .page { padding: 20px 22px 36px; }
}
/* Handy: Tabbar */
@media (max-width: 719px) {
  body { font-size: 16px; }
  .app { flex-direction: column; } .sidenav { display: none; }
  .main { flex: 1; min-height: 0; height: auto; }
  .topbar { height: 58px; padding: 0 14px; gap: 10px; }
  .top-logo { display: grid; } .top-logo .mark { width: 34px; height: 34px; }
  .top-title h1 { font-size: 18px; } .top-sub { display: none; }
  .top-right { gap: 10px; } .sync-chip { width: 36px; padding: 0; justify-content: center; } .sync-chip span { display: none; } .sync-chip .ic { width: 18px; height: 18px; }
  .sync-chip.offline { width: auto; padding: 0 10px; } .sync-chip.offline span { display: inline; }
  .top-clock small { display: none; } .top-avatar { display: grid; }
  .page { padding: 14px 14px 28px; gap: 14px; }
  .tabbar { display: flex; flex: none; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar .nav-item { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: 54px; padding: 0; font-size: 11.5px; font-weight: 600; color: #6b7480; border-radius: 12px; min-width: 0; }
  .tabbar .nav-item .ic { width: 25px; height: 25px; } .tabbar .nav-item:hover { background: none; color: #6b7480; }
  .tabbar .nav-item.active { color: var(--red-d); background: var(--red-bg); } .tabbar .nav-item.active::before { display: none; }
  .tabbar .lbl-long { display: none; } .tabbar .lbl-short { display: block; white-space: nowrap; }
  .hide-sm { display: none; }
}

/* ---------- Sheet / Toast ---------- */
#sheet-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#sheet-root.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 22, .5); opacity: 0; transition: opacity .22s; }
.open .sheet-backdrop { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform .26s var(--ease); }
.open .sheet { transform: none; }
.sheet::before { content: ''; width: 40px; height: 4px; border-radius: 4px; background: #d5d9de; margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 20px; flex: none; } .sheet-head h3 { font-size: 18px; font-weight: 700; }
.sheet-body { padding: 4px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.sheet-body.list { gap: 2px; padding-left: 8px; padding-right: 8px; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; max-height: 84%; border-radius: 20px; transform: translate(-50%, -46%); opacity: 0; transition: transform .22s var(--ease), opacity .2s; }
  .open .sheet { transform: translate(-50%, -50%); opacity: 1; } .sheet::before { display: none; } .sheet-head { padding-top: 14px; }
  .sheet.modal.wide { width: 640px; }
}
.sheet.modal::before { display: none; }
#toast-root { position: fixed; left: 0; right: 0; top: 14px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 12px 16px; border-radius: 14px; background: var(--graphite); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transform: translateY(-16px); opacity: 0; transition: transform .25s var(--ease), opacity .25s; }
.toast.in { transform: none; opacity: 1; } .toast .ic { color: #5fe08a; width: 18px; height: 18px; } .toast.warn .ic { color: #ffc24a; }

/* ---------- Login ---------- */
.login { display: flex; height: 100%; background: var(--bg); }
.login-brand { width: 44%; max-width: 620px; background: var(--graphite); color: #fff; padding: 44px 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-brand::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 70px solid rgba(212, 48, 43, .16); }
.lb-top, .login-mobile-brand { display: flex; align-items: center; gap: 12px; } .lb-top b, .login-mobile-brand b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .lb-top small { color: #98a1ad; }
.lb-mid { margin: auto 0; position: relative; z-index: 1; } .lb-mid h1 { font-size: 38px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-bottom: 28px; }
.lb-mid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; } .lb-mid li { display: flex; gap: 12px; color: #c6ccd4; font-size: 15px; } .lb-mid li b { color: #fff; } .lb-mid .ic { color: #ff6b63; margin-top: 1px; }
.lb-foot { color: #8b949f; font-size: 12.5px; position: relative; z-index: 1; }
.login-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; min-width: 0; min-height: 0; }
.login-mobile-brand { display: none; }
.login-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; max-height: 100%; min-height: 0; }
.login-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; } .login-head p { color: var(--muted); margin: 2px 0 16px; }
.login-list { overflow-y: auto; margin: 4px -8px -8px; padding: 0 8px 8px; min-height: 0; }
.login-user { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px; border-radius: 12px; text-align: left; transition: background .15s; }
.login-user:hover { background: var(--line-2); } .login-user > span:not(.avatar) { flex: 1; min-width: 0; } .login-user b { display: block; font-weight: 600; } .login-user small { color: var(--muted); } .login-user > .ic { color: #b3bac3; }
.link-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; height: 40px; align-self: flex-start; }
.pin-user { text-align: center; margin: 4px 0 18px; } .pin-user .avatar { background: var(--red); margin-bottom: 10px; } .pin-user h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .pin-user p { color: var(--muted); }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin-bottom: 22px; } .pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c3c8cf; transition: all .15s; } .pin-dots i.on { background: var(--graphite); border-color: var(--graphite); transform: scale(1.1); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 0 auto; width: 100%; }
.pin-pad button { height: 68px; border-radius: 18px; background: #f1f3f5; font-size: 26px; font-weight: 600; transition: background .12s, transform .08s; display: grid; place-items: center; }
.pin-pad button:active { background: #dfe3e8; transform: scale(.96); } .pin-pad .pin-del { background: none; color: var(--muted); }
.pin-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; } .pin-hint span { color: var(--faint); font-size: 12px; }
@media (max-width: 899px) {
  .login { flex-direction: column; } .login-brand { display: none; }
  .login-panel { justify-content: flex-start; padding: 0; background: #fff; }
  .login-mobile-brand { display: flex; width: 100%; padding: 14px 18px; background: var(--graphite); color: #fff; flex: none; } .login-mobile-brand small { color: #98a1ad; font-size: 11.5px; }
  .lm-clock { margin-left: auto; text-align: right; } .lm-clock b { font-size: 18px; font-variant-numeric: tabular-nums; }
  .login-card { border: 0; box-shadow: none; border-radius: 0; flex: 1; max-width: 520px; padding: 20px 18px; }
}

/* ---------- Stempeluhr ---------- */
.stempel-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; max-width: 1080px; margin: 0 auto; width: 100%; align-items: start; }
@media (max-width: 899px) { .stempel-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 14px; } }
.clock-card { padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 14px; text-align: center; transition: border-color .3s, background .3s; }
.cc-greet { font-size: 16px; color: var(--muted); font-weight: 500; }
.cc-time { font-size: 56px; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: -4px; }
.cc-time.big { font-size: 64px; } .cc-date { color: var(--muted); font-size: 14px; margin-top: -6px; } .cc-date b { color: var(--text); font-variant-numeric: tabular-nums; }
.plan-box { text-align: left; background: #f6f7f9; border-radius: 14px; padding: 12px 14px; }
.plan-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; } .plan-label .ic { width: 15px; height: 15px; } .plan-label b { color: var(--red-d); }
.site-row { display: flex; align-items: center; gap: 12px; text-align: left; }
.site-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--graphite); color: #fff; display: grid; place-items: center; flex: none; }
.site-txt, .pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .site-txt small, .pick-txt small { color: var(--muted); font-size: 12px; font-weight: 600; } .site-txt b, .pick-txt b { font-size: 15.5px; line-height: 1.25; font-weight: 700; } .site-txt span, .pick-txt span { color: var(--muted); font-size: 13px; }
.clock-card > .site-row { background: #f6f7f9; border-radius: 14px; padding: 12px 14px; }
.punch { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 84px; padding: 14px 22px; border-radius: 20px; color: #fff; text-align: left; transition: transform .12s, box-shadow .2s, background .2s; }
.punch:active { transform: scale(.985); } .punch b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; } .punch small { font-size: 13.5px; opacity: .9; }
.punch-ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; } .punch-ic .ic { width: 26px; height: 26px; }
.punch.in { background: var(--green-strong); box-shadow: 0 8px 20px rgba(22, 163, 74, .32), inset 0 -3px 0 rgba(0, 0, 0, .12); } .punch.in:hover { background: #149243; }
.punch.out { background: var(--red); box-shadow: 0 8px 20px rgba(212, 48, 43, .28), inset 0 -3px 0 rgba(0, 0, 0, .12); } .punch.out:hover { background: var(--red-d); }
.punch:disabled { background: #c9ced5; box-shadow: none; }
.cc-note { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 12.5px; color: var(--muted); } .cc-note .ic { width: 16px; height: 16px; margin-top: 1px; }
.clock-card.running { border-color: #9fd9b3; background: linear-gradient(#f3fbf5, #fff 180px); } .clock-card.paused { border-color: #f1cf86; background: linear-gradient(#fef8e8, #fff 180px); }
.run-state { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--green); font-size: 15px; } .run-state span { color: var(--muted); font-weight: 500; } .paused .run-state { color: var(--amber); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.loc-badge { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 14px; border-radius: 14px; background: var(--green-bg); color: #0f5f2c; animation: popin .4s var(--ease); }
.loc-badge span { flex: 1; min-width: 0; } .loc-badge b { display: block; font-size: 14px; } .loc-badge small { font-size: 12px; opacity: .85; display: block; } .ic.ok { color: var(--green-strong); }
@keyframes popin { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act-btn { min-height: 64px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 8px 10px; transition: background .15s, border-color .15s; line-height: 1.15; }
.act-btn:hover { border-color: #c5cad1; } .act-btn:disabled { opacity: .45; } .act-btn .ic { width: 22px; height: 22px; } .act-btn.resume { background: var(--amber-bg); border-color: #f1cf86; color: #7a4204; }
.done-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto; } .done-ic .ic { width: 28px; height: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { display: grid; grid-template-columns: 46px 14px 1fr; gap: 10px; padding-bottom: 14px; position: relative; font-size: 14px; }
.timeline li:last-child { padding-bottom: 0; } .timeline time { color: var(--muted); font-weight: 600; font-size: 13.5px; } .timeline i { width: 12px; height: 12px; border-radius: 50%; background: var(--green-strong); margin-top: 4px; box-shadow: 0 0 0 3px #fff; position: relative; z-index: 1; }
.timeline li::before { content: ''; position: absolute; left: 61px; top: 8px; bottom: -6px; width: 2px; background: var(--line); } .timeline li:last-child::before { display: none; }
.timeline b { display: block; font-weight: 600; } .timeline small { color: var(--muted); } .tl-pause i { background: var(--amber-strong); } .tl-out i { background: var(--red); } .tl-swap i { background: var(--blue); } .tl-open i { background: #cfd4da; } .tl-open b { color: var(--faint); font-weight: 500; }
.timeline.compact li { grid-template-columns: 14px 1fr; } .timeline.compact li::before { left: 5px; }
.week-mini { display: block; transition: border-color .15s; } .week-mini:hover, .link-card:hover { border-color: #c5cad1; } .week-mini .card-h .ic { color: #b3bac3; }
.wm-bars { display: flex; gap: 10px; height: 70px; align-items: stretch; } .wm-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; } .wm-day small { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.wm-bar { flex: 1; width: 100%; max-width: 44px; border-radius: 6px; background: #eef0f3; display: flex; align-items: flex-end; overflow: hidden; } .wm-bar i { width: 100%; background: var(--graphite-3); border-radius: 4px 4px 0 0; } .wm-day.today .wm-bar i { background: var(--green-strong); } .wm-day.today small { color: var(--green); }
.wm-sum { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13.5px; }
.link-card { display: flex; align-items: center; gap: 12px; } .link-card > span { flex: 1; } .link-card b { display: block; } .link-card small { color: var(--muted); } .link-card > .ic:last-child { color: #b3bac3; }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .sum-grid > div { background: #f6f7f9; border-radius: 12px; padding: 10px 14px; } .sum-grid small { color: var(--muted); display: block; } .sum-grid b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 10px; border-radius: 14px; text-align: left; transition: background .15s; } .pick-row:hover { background: var(--line-2); } .pick-row.sel { background: var(--green-bg); } .pick-row > .ic { color: #b3bac3; } .pick-row > .ic.ok { color: var(--green-strong); }

/* ---------- Kolonne ---------- */
.crew-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.crew-list .crew-row:last-child { border-bottom: 0; }
.check { width: 28px; height: 28px; border-radius: 9px; border: 2px solid #c3c8cf; display: grid; place-items: center; color: transparent; flex: none; transition: all .15s; } .check .ic { width: 18px; height: 18px; stroke-width: 3; }
.crew-row.sel { background: #f3fbf5; } .crew-row.sel .check { background: var(--green-strong); border-color: var(--green-strong); color: #fff; }
.crew-row.in .check { background: var(--green-bg); border-color: var(--green-bg); color: var(--green); } .crew-row.absent .check { border-style: dashed; } .crew-row.absent .avatar { background: #c3c8cf; } .crew-row.absent .crew-txt b { color: var(--muted); }
.crew-txt { flex: 1; min-width: 0; } .crew-txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .crew-txt em { font-style: normal; color: var(--muted); font-weight: 400; } .crew-txt small { color: var(--muted); }
.crew-h { font-size: 13px; color: var(--muted); white-space: nowrap; } .crew-h b { color: var(--text); font-variant-numeric: tabular-nums; }
.add-row { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; color: var(--muted); font-weight: 600; font-size: 14px; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--r) var(--r); transition: background .15s; } .add-row:hover { background: #fafbfc; }

/* ---------- Woche ---------- */
.week-switch { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; } .week-switch > div { text-align: center; } .week-switch b { display: block; font-size: 17px; } .week-switch small { color: var(--muted); }
.kpi-row { display: grid; gap: 14px; } .kpi-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpi-row.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; min-width: 0; align-items: flex-start; }
.kpi > small { color: var(--muted); font-weight: 600; font-size: 12.5px; } .kpi > b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; } .kpi b i { font-style: normal; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .kpi .meter { width: 100%; margin: 3px 0; } .kpi.link:hover { border-color: #c5cad1; }
.kpi.sm { padding: 12px 14px; } .kpi.sm > b { font-size: 21px; }
.week-list .wd { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
.week-list .wd:last-child { border: 0; } .wd-day { text-align: center; } .wd-day b { display: block; font-size: 16px; } .wd-day small { color: var(--muted); }
.wd.today { background: #f3fbf5; } .wd.today .wd-day b { color: var(--green); } .wd.off { color: var(--faint); } .wd.off .wd-day b { color: var(--faint); font-weight: 600; }
.wd-mid { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .wd.code .wd-mid, .wd.off .wd-mid { flex-direction: row; align-items: center; gap: 8px; }
.wd-line { font-weight: 600; font-size: 14.5px; } .wd-line small { font-weight: 400; color: var(--muted); } .wd-site { font-size: 12.5px; color: var(--muted); }
.wd-bar { position: relative; height: 6px; border-radius: 4px; background: #eceef1; overflow: hidden; margin-top: 2px; } .wd-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--graphite-3); border-radius: 4px; } .wd-bar u { position: absolute; top: 0; bottom: 0; background: var(--amber-strong); }
.wd-std { text-align: right; } .wd-std b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; } .wd-std small { color: var(--muted); font-size: 11.5px; }
.live { font-style: normal; color: var(--green); font-weight: 700; }
.two-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .two-stats small { display: block; color: var(--muted); } .two-stats b { font-size: 19px; }
.profile { display: flex; align-items: center; gap: 16px; } .profile .avatar { background: var(--red); } .profile h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; } .profile p { color: var(--muted); }

/* ---------- Formular-Übersicht (Tablet) ---------- */
.form-page { max-width: 1120px; }
.pform { background: #fff; border: 1px solid #cfd4da; border-radius: 16px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.pf-head { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.pf-co { border: 1.5px solid var(--graphite); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; } .pf-co b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; } .pf-co small { color: var(--muted); line-height: 1.35; }
.pf-title { border: 1.5px solid var(--graphite); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; } .pf-title h2 { background: var(--graphite); color: #fff; font-size: 17px; letter-spacing: .32em; text-align: center; padding: 9px 8px; font-weight: 800; }
.pf-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14.5px; flex: 1; flex-wrap: wrap; }
.pf-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } .pf-two.top { align-items: start; } .pf-two.tight { gap: 0; } .pf-two.tight .pf-box:first-child { border-radius: 0 0 0 10px; border-right: 0; } .pf-two.tight .pf-box:last-child { border-radius: 0 0 10px 0; }
.pf-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; } .pf-sec { min-width: 0; }
.pf-sec h4 { display: flex; align-items: center; gap: 8px; background: #e4e7eb; border: 1.5px solid var(--graphite); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 6px 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; min-height: 34px; }
.pf-sec h4 span { font-weight: 500; letter-spacing: 0; color: var(--muted); font-size: 12px; } .pf-edit { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--blue); } .pf-edit .ic { width: 14px; height: 14px; }
.pf-box { border: 1.5px solid var(--graphite); border-radius: 0 0 10px 10px; padding: 10px 12px; font-size: 14.5px; min-height: 46px; } .pf-box b { color: #17307a; } .pf-box small { display: block; color: var(--muted); } .pf-box.text { color: #17307a; font-weight: 500; line-height: 1.6; } .pf-box em { font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pf-box ul { margin: 4px 0 0; padding: 0; list-style: none; color: #17307a; font-weight: 500; } .pf-box li { padding: 3px 0; border-bottom: 1px dotted #c3c8cf; } .pf-box li:last-child { border: 0; }
.pf-box.seg > div, .pf-box.pal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pf-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1.5px solid var(--graphite); border-radius: 0 0 10px 10px; overflow: hidden; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pf-table th { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 5px 4px; border-bottom: 1px solid #c3c8cf; background: #f6f7f9; } .pf-table td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); color: #17307a; }
.pf-table .l { text-align: left; padding-left: 10px; border-left: 0; color: var(--text); } .pf-table .r { text-align: right; padding-right: 10px; } .pf-table tbody tr:last-child td { border-bottom: 0; } .pf-table tfoot td { background: #f1f3f5; border-top: 1.5px solid var(--graphite); border-bottom: 0; font-weight: 700; color: var(--text); } .pf-table tfoot b { font-size: 16px; color: #17307a; }
.pf-table .codecell { text-align: left; color: var(--muted); padding-left: 8px; } .pf-table.mat .u { color: var(--muted); width: 58px; font-size: 12px; } .pf-table.mat tr.on { background: #f3f7ff; } .pf-table.mat td.l { color: var(--text); font-weight: 500; }
.pf-legend { font-size: 11.5px; color: var(--muted); padding: 5px 4px 0; }
.pf-ggrid { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--graphite); border-radius: 0 0 10px 10px; overflow: hidden; } .pf-ggrid > div:first-child { border-right: 1.5px solid var(--graphite); }
.pf-g { display: flex; align-items: center; gap: 6px; height: 29px; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); } .pf-g:last-child { border-bottom: 0; } .pf-g span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pf-g small { font-size: 10.5px; color: var(--faint); } .pf-g b { min-width: 22px; text-align: right; }
.pf-g.on { background: #f3f7ff; color: var(--text); font-weight: 600; } .pf-g.on b { color: #17307a; font-size: 14.5px; font-weight: 800; }
.pf-photos { display: flex; align-items: center; gap: 8px; margin-top: 10px; } .pf-photos img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; } .pf-photos span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.sig-box { border: 1.5px solid var(--graphite); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; position: relative; transition: border-color .2s, box-shadow .2s; } .sig-box.signed { border-color: var(--green-strong); box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.sig-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-height: 36px; } .sig-h b { font-size: 13.5px; letter-spacing: .07em; font-weight: 800; display: block; } .sig-h small { color: var(--muted); }
.sig-pad { position: relative; height: 150px; border-radius: 10px; background: #fafbfc repeating-linear-gradient(0deg, transparent 0 24px, #eef0f3 24px 25px); border: 1.5px dashed #b9c0c9; touch-action: none; cursor: crosshair; overflow: hidden; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; } .sig-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #a3abb5; font-weight: 600; pointer-events: none; transition: opacity .2s; } .signed .sig-ph { opacity: 0; }
.sig-line { position: absolute; left: 8%; right: 8%; bottom: 30px; border-bottom: 1.5px solid #9aa2ac; pointer-events: none; }
.sig-f { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); } .sig-time { color: var(--green); font-weight: 600; }
.sig-auto { align-self: flex-start; } .shake { animation: shake .5s; } @keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form-foot > * { max-width: none; } .form-foot { display: flex; align-items: center; gap: 16px; padding-left: 22px; padding-right: 22px; }
.ff-info { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--muted); } .ff-info span { min-width: 0; } .ff-info b { display: block; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ff-info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 719px) {
  .pform { padding: 12px; border-radius: 14px; } .pf-head, .pf-two { grid-template-columns: minmax(0, 1fr); } .pf-two.tight .pf-box:first-child { border-radius: 0; border-right: 1.5px solid var(--graphite); border-bottom: 0; } .pf-two.tight .pf-box:last-child { border-radius: 0 0 10px 10px; }
  .pf-title h2 { letter-spacing: .2em; font-size: 15px; } .pf-table { font-size: 12.5px; } .pf-table th { font-size: 10.5px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-left: 14px; padding-right: 14px; } .ff-info { display: none; } .form-foot .btn { white-space: normal; line-height: 1.2; font-size: 15px; }
}

/* ===================================================================== */
/* Teil 2 – Erweiterungen für die echte App                              */
/* ===================================================================== */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--graphite); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; } .skip:focus { top: 8px; }
[hidden] { display: none !important; }
dl, dd, dt, ul, ol, figure, fieldset { margin: 0; padding: 0; } fieldset { border: 0; min-width: 0; } legend { padding: 0; }
.ic.xs { width: 14px; height: 14px; vertical-align: -2px; }
.view-box { min-height: 100%; display: flex; flex-direction: column; } .view-box > .page { flex: 1 0 auto; }
.view:focus { outline: none; }
.page.narrow.wide-md { max-width: 760px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pad { padding: 18px; } .pad-x { padding: 12px 16px 4px; } .pad-s { padding: 12px 18px; } .bt { border-top: 1px solid var(--line-2); }
.r { text-align: right; } .c { text-align: center; } .strong { font-weight: 700; }
a.btn { text-decoration: none; } .btn:disabled, .btn[aria-disabled="true"] { opacity: .5; box-shadow: none; } .btn.danger:hover { background: #000; }
.icon-btn { color: var(--muted); } .icon-btn:disabled { opacity: .3; }
.chip.st-outline { font-weight: 600; }
.count { font-weight: 700; }
.kpi > b.neg { color: var(--red-d); } .kpi > b.date { font-size: 22px; } a.kpi { transition: border-color .15s; } .kpi-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.banner.err { background: var(--red-bg); color: #8f1c18; } .banner b { font-weight: 700; }
.card-note { font-size: 12.5px; color: var(--muted); padding: 12px 18px; border-top: 1px solid var(--line-2); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.card-h h3 .ic { color: var(--muted); width: 18px; height: 18px; }
.sub-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }

/* Zustände */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--muted); }
.state .ic { width: 32px; height: 32px; color: #a3abb5; } .state h2 { font-size: 20px; color: var(--text); font-weight: 800; letter-spacing: -.02em; } .state p { max-width: 420px; }
.state.small { padding: 22px 16px; font-size: 13.5px; } .state.small .ic { width: 24px; height: 24px; } .state.empty { font-size: 14px; } .state.big { padding: 44px 24px; gap: 12px; }
#root > .state { height: 100%; }
.spinner { position: static; display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 3.5px solid #e4e7eb; border-top-color: var(--red); animation: spin .8s linear infinite; } .spinner.xs { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Formularfelder */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .field .field-label, legend.field-label { margin: 0; } .field.inline { flex-direction: row; align-items: center; } .field.w-s { max-width: 140px; }
.input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1.5px solid #cfd4da; border-radius: 10px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #b3bac3; } .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 85, 196, .16); }
.input:disabled { background: #f4f5f7; color: #39424d; border-color: var(--line); opacity: 1; -webkit-text-fill-color: #39424d; }
.input.lg { height: 52px; font-size: 16px; border-radius: 12px; } .input.s { height: 38px; padding: 0 6px; font-size: 14px; border-radius: 8px; text-align: center; } .input.num { text-align: right; font-variant-numeric: tabular-nums; }
.input.s.num { text-align: center; } textarea.input.area { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; min-height: 74px; display: block; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a636e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; text-overflow: ellipsis; }
select.input.s { padding: 0 20px 0 6px; background-position: right 4px center; background-size: 12px; text-align: left; }
.form-err { color: var(--red-d); font-size: 13.5px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .form-grid .full { grid-column: 1 / -1; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14.5px; cursor: pointer; } .check-inline input { width: 20px; height: 20px; accent-color: var(--red); }
.chk-row { display: flex; gap: 6px 18px; flex-wrap: wrap; } .thr { display: flex; gap: 10px; } .thr label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; color: var(--muted); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .toolbar .field.inline { flex: 0 1 260px; min-width: 150px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: #e6e9ed; border-radius: 12px; align-self: flex-start; max-width: 100%; overflow-x: auto; }
.tabs button { height: 40px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; } .tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); } .tabs .count { background: #dfe3e8; }
.seg-ctl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .seg-ctl button { min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; line-height: 1.1; }
.seg-ctl button.on { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.switch { width: 46px; height: 28px; border-radius: 99px; background: #c3c8cf; position: relative; flex: none; transition: background .15s; display: inline-block; } .switch::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 .15s; }
input:checked + .switch { background: var(--green-strong); } input:checked + .switch::after { transform: translateX(18px); } input:focus-visible + .switch, input:focus-visible + .check { outline: 3px solid rgba(31, 85, 196, .45); outline-offset: 2px; } input:disabled + .switch { opacity: .55; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-2); cursor: pointer; position: relative; } .switch-row > span:first-child { flex: 1; min-width: 0; } .switch-row b { display: block; font-weight: 600; } .switch-row small { color: var(--muted); display: block; } .switch-row.flat { padding: 6px 0; border: 0; } div.switch-row { cursor: default; }
.tgl { display: inline-flex; padding: 8px; cursor: pointer; position: relative; }

/* Tabellen */
.tbl-wrap { overflow-x: auto; max-width: 100%; } .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; } .tbl thead th { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #f8f9fa; white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; } .tbl .r { text-align: right; } .tbl .c { text-align: center; } .tbl td.main { font-weight: 600; } .tbl tbody th { font-weight: 600; }
.plain { list-style: none; } .plain > li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; } .plain > li:last-child { border: 0; }
.plain.rows > li { align-items: center; padding: 10px 18px; min-height: 56px; } .plain.rows li > .grow { min-width: 0; } .plain.rows b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; } .plain.rows small { color: var(--muted); display: block; } .plain.rows li.inaktiv { opacity: .55; }
.def-list dt { color: var(--muted); flex: none; } .def-list dd { text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.warn-list { list-style: none; display: flex; flex-direction: column; gap: 8px; } .warn-list li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; } .warn-list .ic { color: var(--amber-strong); width: 18px; height: 18px; margin-top: 1px; }
.meter i.amber { background: var(--amber-strong); } .meter i.red { background: var(--red); }
.avatar.pause { background: var(--amber-strong); }

/* Dialog */
dialog.dlg { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 32px)); max-height: min(88vh, 760px); box-shadow: var(--shadow-lg); color: var(--text); overflow: hidden; }
dialog.dlg[open] { display: flex; flex-direction: column; } dialog.dlg.wide { width: min(680px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgba(15, 18, 22, .5); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 8px 20px; flex: none; } .dlg-head h2 { font-size: 18px; font-weight: 700; }
.dlg-body { padding: 6px 20px 18px; overflow-y: auto; flex: 1; min-height: 0; } .dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); flex: none; flex-wrap: wrap; }
dialog.dlg.side { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100vw); border-radius: 20px 0 0 20px; }
@media (max-width: 719px) {
  dialog.dlg, dialog.dlg.wide { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; max-height: 90vh; }
  dialog.dlg.side { margin: 0; width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
  .dlg-foot > .btn { flex: 1; height: 50px; } .form-grid { grid-template-columns: 1fr; }
}
.pick-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -10px; } .pick-row > .ic { flex: none; }

/* Kopfzeile: Sync, Glocke */
.sync-chip.pending { background: var(--amber-bg); color: var(--amber); } .sync-chip { cursor: pointer; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--muted); } .bell:hover { background: var(--line-2); } .bell .ic { width: 23px; height: 23px; } .bell.has { color: var(--text); }
.bell i { position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.notif-list { list-style: none; margin: 0 -12px; display: flex; flex-direction: column; gap: 4px; }
.notif-btn { display: flex; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 12px; align-items: flex-start; } .notif-btn:hover { background: var(--line-2); }
.notif.neu .notif-btn { background: #f3f7ff; } .notif-ic { width: 38px; height: 38px; border-radius: 10px; background: #eceef1; color: var(--muted); display: grid; place-items: center; flex: none; } .notif.t-budget .notif-ic { background: var(--red-bg); color: var(--red-d); } .notif.t-azg .notif-ic { background: var(--amber-bg); color: var(--amber); }
.notif-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .notif-txt > span { font-size: 13.5px; color: #39424d; } .notif-txt small { color: var(--muted); } .notif-txt em { font-style: normal; color: var(--blue); font-weight: 700; }
.nav-list { overflow-y: auto; min-height: 0; scrollbar-width: none; } a.nav-user:hover, a.nav-user.active { background: rgba(255, 255, 255, .08); }
.top-clock { white-space: nowrap; }

/* Login-Ergänzungen */
.pin-msg { text-align: center; color: var(--muted); font-size: 14px; margin: -8px 0 16px; min-height: 21px; } .pin-msg.err { color: var(--red-d); font-weight: 600; }
.pin-pad button:disabled { opacity: .4; } .login-card .search { flex: none; margin-bottom: 8px; } .login-list { flex: 1; }
.login-brand .mark, .login-mobile-brand .mark { width: 40px; height: 40px; }

/* Stempeluhr-Ergänzungen */
button.site-row.pick { width: 100%; background: #f6f7f9; border-radius: 14px; padding: 12px 14px; min-height: 68px; border: 1.5px solid transparent; } button.site-row.pick:hover { border-color: #c5cad1; }
.pick-cta { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-weight: 600; font-size: 13.5px; flex: none; } .pick-cta .ic { width: 16px; height: 16px; }
.run-state.aus { color: var(--muted); font-weight: 600; font-size: inherit; display: inline; } .cc-time { font-variant-numeric: tabular-nums; }
.sum-grid { margin-bottom: 16px; } .sum-grid b i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
em.pend { font-style: normal; color: var(--amber); font-weight: 700; } .tl-in i { background: var(--green-strong); }
.link-card > .ic:first-child { color: var(--muted); width: 24px; height: 24px; }
.legend-row i.lg-n { width: 14px; height: 8px; border-radius: 3px; background: var(--graphite-3); display: inline-block; } .lg-hot { width: 14px; height: 14px; border-radius: 3px; background: var(--red-bg); box-shadow: inset 0 0 0 1.5px var(--red); display: inline-block; }
.lg-line { width: 16px; height: 3px; border-radius: 2px; display: inline-block; } .lg-dash { width: 16px; height: 0; border-top: 2px dashed #7c8591; display: inline-block; }
.week-switch.slim { padding: 2px; } .week-switch.slim > div { min-width: 150px; }

/* Kolonne */
.crew-row { cursor: pointer; position: relative; } .crew-err { color: var(--red-d); font-size: 12.5px; font-weight: 600; text-align: right; max-width: 45%; } .crew-row.err { background: #fff6f5; }
.search.sm { height: 44px; border-radius: 12px; } .foot-bar .btn.block { max-width: 728px; }

/* Mehr */
.menu-list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line-2); font-weight: 600; } .menu-list a:last-child { border: 0; } .menu-list a:hover { background: #fafbfc; } .menu-list a > span { flex: 1; } .menu-list a > .ic:first-child { color: var(--muted); } .menu-list a > .ic:last-child { color: #b3bac3; }
.integ-list { list-style: none; } .integ-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); } .integ-list li > span:nth-child(2) { flex: 1; min-width: 0; } .integ-list b { display: block; font-weight: 600; color: #4a525c; } .integ-list small { color: var(--muted); display: block; }
.integ-ic { width: 38px; height: 38px; border-radius: 10px; background: #eceef1; color: #7c8591; display: grid; place-items: center; flex: none; }
.integ { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; } .integ small { color: var(--muted); font-size: 12px; min-width: 0; } .integ small b { color: #4a525c; } .integ .btn:disabled { opacity: .55; border-style: dashed; } .integ.block { display: flex; }
.integ-row { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 2px 0; }

/* Berichte-Liste */
.rep-list { list-style: none; } .rep-list li { border-bottom: 1px solid var(--line-2); } .rep-list li:last-child { border: 0; }
.rep-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 64px; transition: background .15s; } .rep-row:hover { background: #fafbfc; } .rep-row > .ic { color: #b3bac3; flex: none; }
.rep-date { width: 86px; flex: none; } .rep-date b { display: block; font-size: 14.5px; white-space: nowrap; } .rep-date small { color: var(--muted); }
.rep-txt { flex: 1; min-width: 0; } .rep-txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rep-txt small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-meta { display: flex; align-items: center; gap: 12px; flex: none; } .rep-meta .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }

/* Bautagesbericht-Formular */
.form-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 40px; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green); min-width: 104px; } .save-state .ic { width: 16px; height: 16px; } .save-state.busy { color: var(--muted); } .save-state.err { color: var(--red-d); }
.kosten-zeile { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: var(--muted); } .kosten-zeile b { color: var(--text); font-variant-numeric: tabular-nums; } .kosten-zeile .kt.sum { margin-left: auto; font-size: 15px; }
.wiz-steps, .wiz-foot, .bf-kopf-m, .bp-l { display: none; }
.bform { gap: 14px; } .bf-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start;
  grid-template-areas: "pers seg" "pers ger" "mat ger" "leist leist" "beist beist" "pal pal" "regie regie" "vork vork" "fotos fotos" "sig sig"; grid-template-rows: auto auto 1fr; }
.a-pers { grid-area: pers; } .a-seg { grid-area: seg; } .a-ger { grid-area: ger; } .a-mat { grid-area: mat; } .a-leist { grid-area: leist; } .a-beist { grid-area: beist; } .a-pal { grid-area: pal; } .a-regie { grid-area: regie; } .a-vork { grid-area: vork; } .a-sig { grid-area: sig; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pf-sec h4 { margin: 0; } .pf-box.flush { padding: 0; overflow: hidden; } .pf-box.flush > textarea.input { border: 0; border-radius: 0; box-shadow: none; } .pf-box.flush > textarea.input:focus { box-shadow: inset 0 0 0 2.5px var(--blue); }
.pf-box b { color: var(--text); } .pf-co b { display: block; }
.bp-head, .bp-row { display: grid; grid-template-columns: minmax(96px, 1.5fr) repeat(4, minmax(64px, 1fr)) minmax(46px, .7fr) minmax(48px, .7fr) minmax(46px, .7fr) minmax(54px, .8fr) 36px; gap: 4px; align-items: center; padding: 5px 8px; }
.bp-head { background: #f6f7f9; border-bottom: 1px solid #c3c8cf; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; } .bp-head span:first-child { text-align: left; }
.bp-row { border-bottom: 1px solid var(--line); } .bp-row label { min-width: 0; display: block; } .bp-name b { font-weight: 600; font-size: 13.5px; line-height: 1.2; display: block; overflow-wrap: anywhere; } .bp-row .input.s { padding: 0 2px; font-size: 13.5px; } .bp-row input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
.bp-foot { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: #f1f3f5; font-weight: 700; font-size: 14px; border-top: 1.5px solid var(--graphite); margin-top: -1px; } .bp-foot b { font-size: 17px; font-variant-numeric: tabular-nums; }
.add-line { padding: 8px 0 0; max-width: 320px; }
.seg-box { display: flex; gap: 12px; align-items: flex-end; } .seg-box .field:first-child { flex: 1; }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1.5px solid #cfd4da; border-radius: 10px; background: #fff; overflow: hidden; height: 36px; }
.stepper button { width: 34px; height: 100%; display: grid; place-items: center; color: #39424d; background: #f4f5f7; } .stepper button:hover { background: #e6e9ed; } .stepper button:disabled { opacity: .35; } .stepper .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.stepper input { width: 48px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; background: #fff; padding: 0; color: #17307a; -webkit-text-fill-color: #17307a; } .stepper input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); } .stepper input:disabled { background: #f4f5f7; }
.pf-ggrid .pf-g, .mat-row, .pal { display: flex; align-items: center; gap: 8px; height: auto; min-height: 46px; padding: 4px 8px 4px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: #39424d; }
.pf-ggrid .pf-g > span:first-child, .mat-row > span:first-child, .pal > span:first-child { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; } .pf-g small, .mat-row small, .pal small { color: var(--muted); font-size: 12px; width: 34px; flex: none; }
.pf-g.on, .mat-row.on { background: #f3f7ff; color: var(--text); font-weight: 600; } .mat-row:last-child, .pf-ggrid .pf-g:last-child { border-bottom: 0; } .mat-row small { width: 46px; }
.pal-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding: 4px 6px; } .pal { border: 0; font-size: 15px; font-weight: 600; }
.pf-two.inner { border: 0; } .pf-two.inner .pf-box { display: block; } .sub-l { display: block; background: #f1f3f5; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: #39424d; border-bottom: 1px solid #c3c8cf; }
.regie-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 36px; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); align-items: center; } .unit { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
#regie .add-row { border-top: 0; }
.pf-two.sigs { align-items: start; } .sig-box { background: #fff; min-width: 0; } .sig-box.hat .sig-ph { display: none; } .sig-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #a3abb5; font-weight: 600; pointer-events: none; }
.sig-box.signed { border-color: var(--green-strong); } .sig-done { display: flex; align-items: center; gap: 12px; padding: 14px; background: #f3fbf5; border-radius: 10px; } .sig-done .ic { width: 30px; height: 30px; color: #17307a; } .sig-done b { display: block; font-size: 16px; } .sig-done small { color: var(--muted); }
.final-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f6f7f9; border-radius: 12px; padding: 12px 14px; } .final-state { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 200px; }

/* Preise */
.price-in { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #cfd4da; border-radius: 9px; height: 38px; padding: 0 10px; background: #fff; color: var(--muted); transition: border-color .15s, box-shadow .15s, background .3s; }
.price-in input { width: 86px; border: 0; outline: 0; background: none; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); padding: 0; } .price-in:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 85, 196, .16); } .price-in.saved { border-color: var(--green-strong); background: var(--green-bg); } .price-in.busy { opacity: .6; }
.price-tbl td { padding-top: 7px; padding-bottom: 7px; }

/* Nachkalkulation */
.kalk-cards, .site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kalk-card, .site-card { display: flex; flex-direction: column; gap: 12px; transition: border-color .15s; } .kalk-card:hover, .site-card:hover { border-color: #c5cad1; } .site-card { gap: 6px; } .site-card .kc-h { margin-bottom: 4px; }
.kc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .kc-h > div { min-width: 0; } .kc-h small { color: var(--muted); font-weight: 600; font-size: 12px; display: block; } .kc-h b { font-size: 16px; line-height: 1.25; display: block; }
.kc-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; } .kc-kpi dt { font-size: 12px; color: var(--muted); } .kc-kpi dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.site-bud { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; } .site-bud small { color: var(--muted); }
.bud { position: relative; padding: 4px 0 26px; } .bud.sm { padding: 2px 0; } .bud.none { padding: 0; }
.bud-track { position: relative; height: 16px; border-radius: 4px; background: #e9ecef; } .bud.sm .bud-track { height: 10px; }
.bud-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #5b6672; min-width: 2px; } .bud.s-warnung .bud-fill { background: var(--amber-strong); } .bud.s-kritisch .bud-fill { background: var(--red); }
.bud-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px #9aa2ac; } .bud-mark.hit { box-shadow: 0 0 0 1px var(--graphite); }
.bud-leist { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 0 2px #fff; z-index: 1; }
.bud-scale { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; font-size: 11.5px; color: var(--muted); } .bud-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.two-stats { margin-top: 8px; }
.stackbar { display: flex; gap: 2px; height: 14px; margin-bottom: 10px; } .stackbar i { border-radius: 4px; min-width: 3px; }
details.pos { border-bottom: 1px solid var(--line-2); } details.pos summary { display: flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; list-style: none; font-size: 14.5px; } details.pos summary::-webkit-details-marker { display: none; } details.pos summary span { flex: 1; font-weight: 600; } details.pos summary .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; } details.pos[open] summary .ic { transform: rotate(180deg); }
details.pos .tbl { font-size: 13px; margin-bottom: 8px; } details.pos .tbl th, details.pos .tbl td { padding: 7px 8px; }
.sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; } .card.pad > .btn { margin-top: 12px; }
.chart { display: flex; flex-direction: column; gap: 8px; } .chart-box { position: relative; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #eceef1; stroke-width: 1; } .chart .ax { font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; } .chart .lbl { font-size: 12.5px; font-weight: 600; fill: var(--text); } .chart .soll { stroke: #7c8591; stroke-width: 1.5; stroke-dasharray: 5 4; } .chart .cross { stroke: #9aa2ac; stroke-width: 1; } .chart .hit:focus-visible { outline: 2px solid var(--blue); }
.chart-tip { position: absolute; top: 6px; background: var(--graphite); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-lg); } .chart-tip span { display: flex; align-items: center; gap: 6px; color: #d6dae0; } .chart-tip span b { margin-left: auto; padding-left: 12px; color: #fff; font-variant-numeric: tabular-nums; } .chart-tip i { width: 9px; height: 9px; border-radius: 2px; }
.chart-table summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.bud-rows li { padding: 0 !important; } .bud-rows a { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(80px, 1fr) 64px 100px; gap: 14px; align-items: center; padding: 10px 18px; width: 100%; } .bud-rows a:hover { background: #fafbfc; } .bud-name { min-width: 0; } .bud-pct { text-align: right; font-weight: 700; }

/* Monat */
.matrix { font-size: 12.5px; white-space: nowrap; } .matrix th, .matrix td { padding: 6px 5px; text-align: center; border-right: 1px solid var(--line-2); min-width: 30px; }
.matrix thead th { font-size: 11px; padding: 6px 4px; letter-spacing: 0; text-transform: none; } .matrix thead th span { display: block; font-weight: 500; }
.matrix .sticky { position: sticky; left: 0; background: #fff; text-align: left; z-index: 1; min-width: 150px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; padding-left: 14px; box-shadow: 1px 0 0 var(--line); } .matrix thead .sticky { background: #f8f9fa; }
.matrix .we { background: #f4f5f7; } .matrix td.hot { background: var(--red-bg); box-shadow: inset 0 0 0 1.5px var(--red); font-weight: 700; } .matrix td.ue { color: var(--amber); font-weight: 700; } .matrix td.r { padding: 6px 10px; }
.matrix-wrap:focus-visible { outline-offset: -3px; } .c-ZA { background: #dff3ee; color: #17695e; }

/* Rechte */
.rights th small { display: block; font-weight: 400; color: var(--faint); font-size: 11.5px; font-family: ui-monospace, monospace; } .rights td { padding: 4px 8px; } .rights thead th.c { min-width: 96px; }
.lock-cell { display: inline-grid; place-items: center; width: 46px; height: 28px; border-radius: 99px; background: repeating-linear-gradient(135deg, #eceef1 0 6px, #e2e5e9 6px 12px); color: #5a636e; } .lock-cell .ic { width: 15px; height: 15px; } td.locked { background: #fafbfc; }
.log-ic { width: 34px; height: 34px; border-radius: 10px; background: #eceef1; color: var(--muted); display: grid; place-items: center; flex: none; } .log-ic .ic { width: 17px; height: 17px; } .log b { white-space: normal !important; }

/* Tablet */
@media (max-width: 1279px) {
  .nav-item { height: 60px; } .kpi-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bud-rows a { grid-template-columns: minmax(110px, 1.2fr) minmax(70px, 1fr) 60px 96px; }
}
@media (max-width: 999px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Handy */
@media (max-width: 719px) {
  .top-clock { display: none; } .bell { width: 40px; height: 40px; }
  .btn { height: 46px; } .btn.sm { height: 40px; } .input { height: 48px; font-size: 16px; } .input.s { height: 46px; font-size: 16px; }
  .toolbar .field.inline { flex: 1 1 100%; } .toolbar > .btn { flex: 1; } .toolbar .grow { display: none; }
  .kpi-row.four, .kpi-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi { padding: 12px 14px; } .kpi > b { font-size: 23px; white-space: normal; }
  .kalk-cards, .site-cards { grid-template-columns: minmax(0, 1fr); }
  .rep-row { gap: 10px; padding: 12px; } .rep-date { width: 74px; } .rep-meta .muted { display: none; }
  .bud-rows a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; } .bud-rows .bud-bar { grid-column: 1 / -1; order: 3; } .bud-rows .bud-pct { display: none; }
  .tabs { align-self: stretch; } .tabs button { flex: 1; justify-content: center; padding: 0 8px; } .tabs .count { display: none; }
  .tbl th, .tbl td { padding: 9px 10px; } .price-in input { width: 68px; } .price-tbl td.muted.nw { display: none; } .price-tbl thead th:first-child:not(:nth-last-child(-n+3)) { display: none; }
  .rights th small { display: none; } .rights thead th.c { min-width: 70px; font-size: 10.5px; white-space: normal; }
  .thr { gap: 6px; }

  /* Bautagesbericht als Assistent */
  .wiz-steps { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 6px 0; margin: -6px 0; }
  .wiz-now b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .wiz-now span { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
  .wiz-steps ol { list-style: none; display: flex; gap: 2px; } .wiz-steps ol button { width: 30px; height: 44px; display: grid; place-items: center; } .wiz-steps ol button::after { content: ''; width: 22px; height: 6px; border-radius: 3px; background: #cfd4da; } .wiz-steps ol button.done::after { background: var(--graphite-3); } .wiz-steps ol button.on::after { background: var(--red); }
  .wiz-foot { display: block; } .form-page { padding-bottom: 12px; }
  .bform { padding: 0; border: 0; background: none; box-shadow: none; } .bf-kopf { display: none !important; } .bf-kopf-m { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; } .bf-kopf-m span { color: var(--muted); font-size: 13.5px; }
  .bf-grid { display: flex; flex-direction: column; gap: 14px; } .bf-grid > [data-step] { display: none; }
  .bform[data-aktiv="1"] [data-step="1"], .bform[data-aktiv="2"] [data-step="2"], .bform[data-aktiv="3"] [data-step="3"], .bform[data-aktiv="4"] [data-step="4"], .bform[data-aktiv="5"] [data-step="5"], .bform[data-aktiv="6"] [data-step="6"] { display: block; } .bform[data-aktiv="6"] .a-sig { display: flex; }
  .pf-sec h4 { flex-wrap: wrap; } .pf-sec h4 span { flex-basis: auto; }
  .bp-head { display: none; } .bp-l { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
  .bp-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; padding: 12px 10px; align-items: end; } .bp-name { grid-column: 1 / 4; align-self: center; } .bp-name b { font-size: 16px; } .bp-del { grid-column: 4; grid-row: 1; justify-self: end; } .bp-del .icon-btn { width: 44px; height: 44px; }
  .bp-row .bp-std output { height: 46px; font-size: 17px; }
  .pf-ggrid { grid-template-columns: minmax(0, 1fr); } .pf-ggrid > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-ggrid .pf-g, .mat-row, .pal { min-height: 60px; font-size: 15.5px; padding: 6px 8px 6px 12px; }
  .stepper { height: 48px; border-radius: 12px; } .stepper button { width: 48px; } .stepper .ic { width: 20px; height: 20px; } .stepper input { width: 56px; font-size: 17px; }
  .pal-box { grid-template-columns: minmax(0, 1fr); } .seg-box { flex-direction: column; align-items: stretch; } .field.w-s { max-width: none; }
  .regie-row { grid-template-columns: minmax(0, 1fr) 44px; } .regie-row > .input { grid-column: 1 / -1; } .regie-row .unit { grid-column: 1; } .regie-row .icon-btn { width: 44px; height: 44px; }
  .sig-pad { height: 180px; } .final-bar .btn { flex: 1; } .final-state { flex-basis: 100%; }
  .add-line { max-width: none; } .integ { display: flex; } .integ .btn { height: 40px; }
  .chart .ax { font-size: 15px; } .chart .lbl { font-size: 16px; }
  .matrix .sticky { min-width: 112px; max-width: 112px; padding-left: 10px; }
}
@media (max-width: 899px) and (min-width: 720px) { .bf-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pers" "seg" "ger" "mat" "leist" "beist" "pal" "regie" "vork" "fotos" "sig"; grid-template-rows: none; } }
@media print { .sidenav, .topbar, .tabbar, .foot-bar { display: none !important; } body { overflow: visible; } }

/* Nachträge aus der Abstimmung mit dem Server */
.bp-err { grid-column: 1 / -1; color: var(--red-d); font-size: 12.5px; font-weight: 600; } .bp-row.invalid { background: #fff6f5; }
.add-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; max-width: none; } .add-line select { flex: 0 1 260px; }
.sig-done img { height: 64px; max-width: 55%; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.crew-row .avatar.on { background: var(--green); }
@media (max-width: 719px) { .add-line select { flex: 1 1 100%; } .add-line .btn { flex: 1; } }

.pin-pad .pin-ok { background: var(--green-strong); color: #fff; } .pin-pad .pin-ok:disabled { background: #e4e7eb; color: #a3abb5; opacity: 1; } .pin-pad .pin-ok .ic, .pin-pad .pin-del .ic { width: 28px; height: 28px; } .pin-dots { min-height: 16px; }

/* Feinschliff nach Durchsicht der Bildschirmfotos */
.tbl-wrap, .field, label, .price-in { position: relative; }
.bud-scale::after { content: 'Schwellen in %'; position: absolute; left: 0; top: 0; }
.rights tbody th, .rights thead th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); } .rights thead th:first-child { background: #f8f9fa; }
@media (max-width: 719px) { .rights tbody th { max-width: 150px; font-size: 13.5px; } }

/* Formular auf Tablet/PC: Kopf-Boxen gleich hoch, mehr Platz für Uhrzeiten */
.pf-two.tight { align-items: stretch; } .pf-two.tight > .pf-sec { display: flex; flex-direction: column; } .pf-two.tight > .pf-sec > .pf-box { flex: 1; }
@media (min-width: 900px) {
  .bf-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .bp-head, .bp-row { grid-template-columns: minmax(90px, 1.3fr) repeat(4, minmax(72px, 1fr)) minmax(44px, .6fr) minmax(46px, .6fr) minmax(46px, .6fr) minmax(54px, .7fr) 36px; }
  .pf-ggrid .stepper input { width: 40px; } .pf-ggrid .stepper button { width: 28px; } .pf-ggrid .pf-g small { width: 26px; }
}

/* B-04: Betragsfelder zeigen, wie die Eingabe verstanden wird */
.geld-echo { font-size: 12.5px; color: var(--muted); min-height: 17px; font-variant-numeric: tabular-nums; } .geld-echo.err, .price-err { color: var(--red-d); font-weight: 600; }
.input.invalid, .price-in.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212, 48, 43, .14); } .price-err { display: block; font-size: 12px; margin-top: 3px; white-space: normal; max-width: 180px; margin-left: auto; }

/* B-06 / M-02: Speicherstatus, ungültige Zeilen, Nachtschicht */
.save-state.neutral { color: var(--muted); font-weight: 500; }
.bp-nacht { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bp-row.invalid .input[type="time"] { border-color: var(--red); }

/* M-04: nicht übernommene Offline-Buchungen */
.sync-chip.rejected { background: var(--red-bg); color: var(--red-d); width: auto !important; padding: 0 10px !important; } .sync-chip.rejected span { display: inline !important; }
#abgelehnt li { flex-wrap: wrap; } .abg-grund { color: var(--red-d) !important; font-weight: 600; white-space: normal; } .abg-akt { display: flex; gap: 6px; flex-wrap: wrap; }

.noscript { padding: 24px; }

/* B-03: PIN ändern */
.login-panel.solo { flex: 1; } .login-mobile-brand.always { display: flex; width: 100%; max-width: 440px; padding: 0 4px 16px; color: var(--text); background: none; }
@media (max-width: 899px) { .login-mobile-brand.always { max-width: none; padding: 14px 18px; background: var(--graphite); color: #fff; } }
a.switch-row.link > .ic { color: #b3bac3; } a.switch-row.link:hover { background: #fafbfc; }
.pin-user .avatar .ic { width: 34px; height: 34px; }
#pin-pflicht .link-back { margin-top: 10px; align-self: center; }

/* B-07 Abwesenheiten, M-03 Storno */
.abw-akt { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } [data-abw] { flex-wrap: wrap; } .abw-akt [data-zum-antrag] { white-space: normal; height: auto; min-height: 36px; padding-block: 6px; text-align: center; line-height: 1.3; } /* langer Verweis bricht auf dem Handy um statt überzulaufen */
.pick-multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; max-height: 240px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.code-badge.offen { background: #fff; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .75; border-style: dashed; } .c-offen { background: var(--red-bg); color: var(--red-d); }
details.einzeln { margin-top: 12px; border-top: 1px solid var(--line-2); } details.einzeln summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); } details.einzeln .plain.rows > li { padding: 8px 0; min-height: 48px; }
.bp-hinweis { display: block; color: var(--amber); font-weight: 600; font-size: 12px; line-height: 1.25; margin-top: 2px; }
.sig-box.signed > .btn { align-self: flex-start; }
@media (max-width: 719px) { .abw-akt { flex-basis: 100%; justify-content: stretch; } .abw-akt .btn { flex: 1; } }

/* B-05: Zeitkorrektur */
.korr time { width: 52px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; } .korr .korr-tag { min-height: 0 !important; padding: 8px 18px !important; background: #f6f7f9; font-size: 12.5px; font-weight: 700; color: var(--muted); }
a.link { color: var(--blue); font-weight: 600; text-decoration: underline; }

.card-h { flex-wrap: wrap; } .card-h > h3 { min-width: 0; }

/* C-02: Arbeitsstunden werden berechnet, nicht eingegeben */
.bp-std { text-align: center; min-width: 0; } .bp-std output { display: grid; place-items: center; height: 38px; border-radius: 8px; background: #f1f3f5; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14.5px; color: #17307a; }

/* Prüfbericht 2: Konflikt, Server-Fehler je Zeile, Gast */
#unsaved { align-items: center; flex-wrap: wrap; } #unsaved .btn { background: #fff; }
.bp-row.srv { background: #fff6f5; } .bp-name .chip { margin-left: 6px; vertical-align: 1px; }

.notif.t-sicherheit .notif-ic { background: var(--red-bg); color: var(--red-d); }
.form-err .btn { margin-left: 8px; vertical-align: middle; }

/* C-04: Schichten in der Zeitkorrektur */
.korr-datum { width: 92px; flex: none; } .korr li { flex-wrap: wrap; } .sf-std { display: flex; align-items: center; min-height: 52px; font-weight: 800; font-size: 17px; color: #17307a; }

/* Handy: lange Kennzeichen umbrechen statt überlaufen */
[data-benutzer] { flex-wrap: wrap; }
@media (max-width: 719px) {
  .rep-row { flex-wrap: wrap; } .rep-meta { flex: 1 1 100%; flex-wrap: wrap; gap: 6px 10px; padding-left: 84px; } .rep-row > .ic:last-child { display: none; }
  .rep-row .rep-txt { flex: 1 1 0; }
}

/* Handy-Feinschliff nach Durchsicht (Prüfbericht 2) */
@media (max-width: 719px) {
  .bf-grid { align-items: stretch; }
  .korr li[data-schicht] .grow, [data-benutzer] .grow { flex: 1 1 60%; }
  .korr li[data-schicht] .korr-datum { width: auto; flex: 1 1 100%; }
  .korr li[data-schicht] .btn, [data-benutzer] .btn { flex: 1 1 auto; }
}

/* Prüfbericht 3 */
.matrix .mit-std { display: block; font-size: 10.5px; font-weight: 700; color: var(--red-d); }
#folgen ul { margin: 8px 0; }

/* ===== Nachkalkulation nach Positionen (wie die Excel-Vorlage) ===== */
.tabs a { height: 40px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; white-space: nowrap; } .tabs a.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.kpi-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pos-tab { background: #fff; border: 1.5px solid var(--graphite); border-radius: 12px; overflow: hidden; }
.pt-head, .pt-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 150px 150px 130px 112px; gap: 8px; align-items: center; padding: 6px 12px; }
.pt-head { background: var(--graphite); color: #fff; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } .pt-head span:nth-child(n+3) { text-align: right; } .pt-head span:nth-child(2) { text-align: center; }
.pt-row { border-top: 1px solid var(--line-2); min-height: 48px; font-size: 14px; } .pt-row.aus { opacity: .55; background: #fafbfc; } .pt-row:not(.hat) .pt-sum b { color: var(--faint); font-weight: 600; }
.pt-bez { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .pt-bez b { font-weight: 600; } .pt-marken { display: flex; gap: 4px; flex-wrap: wrap; } .pt-marken:empty { display: none; } .pt-marken button.chip { cursor: pointer; }
.pt-in { width: 100%; min-width: 0; height: 34px; border: 1.5px solid transparent; border-radius: 8px; background: none; padding: 0 6px; margin-left: -6px; font-weight: 600; text-overflow: ellipsis; } .pt-in.c { text-align: center; margin: 0; font-weight: 500; }
.pt-in:hover { border-color: var(--line); background: #fff; } .pt-in:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(31, 85, 196, .16); }
.pt-eh { text-align: center; color: var(--muted); } .pt-menge, .pt-ep, .pt-sum { text-align: right; } .pt-sum b { font-variant-numeric: tabular-nums; }
.pt-mbtn { display: inline-flex; flex-direction: column; align-items: flex-end; min-height: 38px; justify-content: center; padding: 2px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; max-width: 100%; } .pt-mbtn:hover { border-color: #b3bac3; } .pt-mbtn b { font-variant-numeric: tabular-nums; } .pt-mbtn small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pt-ep .price-in.sm, .price-in.sm { height: 34px; padding: 0 8px; } .pt-ep .price-in input { width: 74px; } .auf { color: var(--muted); font-size: 11.5px; white-space: nowrap; } .pt-ep { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.pt-akt { display: flex; justify-content: flex-end; } .pt-akt .icon-btn.sm { width: 32px; height: 34px; } .ic.up { transform: rotate(180deg); }
details.pg { border-top: 1.5px solid var(--graphite); } details.pg > summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; background: #e4e7eb; cursor: pointer; list-style: none; font-size: 14px; } details.pg > summary::-webkit-details-marker { display: none; }
.pg-name { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; } .pg-pct { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; } details.pg > summary > .ic { width: 16px; height: 16px; transition: transform .15s; } details.pg[open] > summary > .ic { transform: rotate(180deg); }
.pg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: #f6f7f9; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; flex-wrap: wrap; } .pg-foot b { margin-left: 8px; font-size: 15px; }
#zusammenstellung tfoot th { text-align: left; font-weight: 600; } #zusammenstellung tfoot tr.sum > * { border-top: 1.5px solid var(--graphite); background: #f6f7f9; } #zusammenstellung b.neg, .zus b.neg { color: var(--red-d); }
.zus li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 130px; gap: 10px; } .zus li > * { text-align: right; } .zus li > span:first-child { text-align: left; }
.def-list.tight > div { padding: 8px 0; } .mf { margin-top: 4px; } .vl-liste { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.menu-list.flach button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 6px; border-bottom: 1px solid var(--line-2); font-weight: 600; text-align: left; } .menu-list.flach button > span { flex: 1; } .menu-list.flach button > .ic:first-child { color: var(--muted); } .menu-list.flach button > .ic:last-child { color: #b3bac3; }
details.pg.kat { border: 0; border-top: 1px solid var(--line); } .kat-tbl .pt-in { margin-left: 0; } .kat-tbl .pt-in.eh { width: 64px; } .kat-tbl tr.aus { opacity: .55; } .chip.nat { cursor: pointer; gap: 4px; } .chip.nat input { width: 13px; height: 13px; margin: 0; }
select[multiple].input { height: auto; padding: 6px; background-image: none; }
@media (max-width: 1279px) { .pt-head, .pt-row { grid-template-columns: minmax(0, 1fr) 56px 128px 128px 112px 104px; gap: 6px; padding: 6px 10px; } .pt-ep .price-in input { width: 62px; } }
@media (max-width: 719px) {
  .kpi-row.three { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pt-head { display: none; }
  .pt-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 12px; }
  .pt-bez { grid-column: 1 / -1; } .pt-eh { display: none; } .pt-menge { text-align: left; grid-column: 1; } .pt-mbtn { align-items: flex-start; min-height: 44px; }
  .pt-ep { grid-column: 2; grid-row: 2; } .pt-sum { grid-column: 2; grid-row: 3; font-size: 16px; } .pt-akt { grid-column: 1; grid-row: 3; justify-content: flex-start; } .pt-akt .icon-btn.sm { width: 40px; height: 40px; }
  .pt-row:not(.hat) .pt-akt:empty + * { display: none; }
  details.pg > summary { min-height: 54px; flex-wrap: wrap; padding: 6px 12px; } .pg-pct { display: none; }
  .zus li { grid-template-columns: minmax(0, 1fr) 56px auto; }
  .kat-tbl td:nth-child(2) { display: table-cell; }
}

.eh-m { display: none; font-style: normal; font-weight: 500; color: var(--muted); } @media (max-width: 719px) { .eh-m { display: inline; } }

@media (max-width: 719px) { .kat-tbl thead th:first-child { display: table-cell !important; } }

/* ===================================================================== */
/* Fuhrpark & Geräte (Servicebuch), Schäden mit Fotos                    */
/* ===================================================================== */
.st-orange { background: #fde3cf; color: #9a3b00; } .st-dark { background: var(--graphite); color: #fff; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip-btn:hover { border-color: #c5cad1; } .chip-btn > span { font-size: 12px; font-weight: 700; color: var(--muted); } .chip-btn .ic { width: 15px; height: 15px; }
.chip-btn.on { background: var(--graphite); border-color: var(--graphite); color: #fff; } .chip-btn.on > span { color: #c1c7cf; } .chip-btn:disabled { opacity: .6; }
.chip-btn.gross { min-height: 52px; padding: 0 18px; font-size: 15.5px; } .chip-btn.gesperrt:not(.on) { border-color: #f0b4b1; color: var(--red-d); }
.kennz { display: inline-block; padding: 1px 7px; border: 1.5px solid #39424d; border-radius: 5px; font-weight: 700; font-size: 12.5px; letter-spacing: .03em; background: #fff; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lnk { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tbl td small { display: block; color: var(--muted); font-weight: 400; } .tbl td.main a:hover { text-decoration: underline; } .tbl tr.inaktiv { opacity: .55; }
.nav-item .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.notif.t-fuhrpark .notif-ic { background: var(--amber-bg); color: var(--amber); }
@media (max-width: 1279px) { .nav-item .nav-badge { position: absolute; top: 6px; right: 8px; margin: 0; } }

.fp-tabs { align-self: stretch; } .fp-tabs button .ic { width: 17px; height: 17px; }
.fp-schnell { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.act-btn.fp-schaden { background: var(--red-bg); border-color: #f3c2bf; color: var(--red-d); } label.act-btn { cursor: pointer; } .act-btn.aus { opacity: .45; pointer-events: none; }
.fp-filter .search { height: 44px; flex: 1 1 260px; min-width: 0; border-radius: 12px; } .fp-filter .field.inline { flex: 0 1 220px; }
.fp-arten { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } .fp-gruppe .list-label { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.fp-card { display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; } .fp-card:hover { border-color: #c5cad1; } .fp-card .kc-h b { overflow-wrap: anywhere; }
.fp-card[data-status="gesperrt"] { border-left: 5px solid var(--graphite); } .fp-card[data-status="ueberfaellig"] { border-left: 5px solid var(--red); } .fp-card[data-status="faellig"] { border-left: 5px solid #e07020; } .fp-card[data-status="bald"] { border-left: 5px solid var(--amber-strong); }
.fp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; color: var(--muted); } .fp-mg { color: var(--red-d); font-weight: 600; }
.fp-sperr { font-size: 13px; font-weight: 600; color: var(--red-d); } .fp-next { font-size: 13px; color: #39424d; display: flex; gap: 6px; align-items: flex-start; } .fp-next .ic { margin-top: 2px; flex: none; }
.fp-liste-tabelle, .fp-plan-tbl, .sch-tabelle { display: none; } .fp-tbl tbody tr, .sch-tabelle tbody tr { cursor: pointer; } .fp-tbl tbody tr:hover, .sch-tabelle tbody tr:hover { background: #fafbfc; }
.fp-termin b { display: block; font-weight: 600; } .fp-termin small { color: var(--muted); }
@media (min-width: 900px) { .fp-liste-tabelle, .fp-plan-tbl, .sch-tabelle { display: block; } .fp-liste-karten, .fp-plan-karten, .sch-karten { display: none !important; } }
@media (max-width: 1279px) { .sp-standort { display: none; } .fp-tbl th, .fp-tbl td, #sch-tbl th, #sch-tbl td { padding: 9px 8px; } }

.fp-ampel { grid-template-columns: repeat(5, minmax(0, 1fr)); } .fp-kpi > small { display: flex; align-items: center; gap: 6px; } .fp-kpi > small .ic { width: 16px; height: 16px; }
.fp-kpi { border-top: 4px solid var(--line); } .fp-kpi.k-einsatzbereit { border-top-color: var(--green-strong); } .fp-kpi.k-bald { border-top-color: var(--amber-strong); } .fp-kpi.k-faellig { border-top-color: #e07020; } .fp-kpi.k-ueberfaellig { border-top-color: var(--red); } .fp-kpi.k-gesperrt { border-top-color: var(--graphite); }
.fp-fristen > li { padding: 0; display: block; } .fp-frist { display: flex; align-items: center; gap: 12px; padding: 10px 18px; min-height: 60px; } .fp-frist:hover { background: #fafbfc; }
.fp-frist .grow { min-width: 0; } .fp-frist .grow > b { display: block; font-weight: 600; } .fp-frist small { display: block; color: var(--muted); }
.fp-tag { width: 58px; flex: none; text-align: center; background: #f2f3f5; border-radius: 10px; padding: 6px 2px; line-height: 1.15; } .fp-tag b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; } .fp-tag small { font-size: 11px; }
li[data-status="ueberfaellig"] .fp-tag { background: var(--red-bg); color: var(--red-d); } li[data-status="ueberfaellig"] .fp-tag small { color: var(--red-d); }
.fp-dues { display: flex; flex-wrap: wrap; gap: 2px 12px; } .fp-due { white-space: normal; } .fp-due small { display: inline !important; color: var(--muted); } .fp-due.prognose { color: var(--blue); font-weight: 600; } td.fp-dues { display: table-cell; } td.fp-dues .fp-due { display: block; }
.fp-export { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .fp-monat.ueber { border-color: #f0b4b1; }
.plain.rows li > a.grow { min-width: 0; }

.fp-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 20px; align-items: center; border-left: 6px solid var(--green-strong); }
.fp-kopf.st-bald { border-left-color: var(--amber-strong); } .fp-kopf.st-faellig { border-left-color: #e07020; } .fp-kopf.st-ueberfaellig { border-left-color: var(--red); } .fp-kopf.st-gesperrt { border-left-color: var(--graphite); } .fp-kopf.st-ausgeschieden { border-left-color: #c3c8cf; }
.fp-kopf-status { display: flex; align-items: center; gap: 12px; } .fp-kopf-status small { display: block; color: var(--muted); font-weight: 600; } .fp-kopf-status b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.fp-ampel-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green); flex: none; } .fp-ampel-ic .ic { width: 26px; height: 26px; }
.st-bald .fp-ampel-ic { background: var(--amber-bg); color: var(--amber); } .st-faellig .fp-ampel-ic { background: #fde3cf; color: #9a3b00; } .st-ueberfaellig .fp-ampel-ic { background: var(--red-bg); color: var(--red-d); } .st-gesperrt .fp-ampel-ic { background: var(--graphite); color: #fff; } .st-ausgeschieden .fp-ampel-ic { background: #eceef1; color: #4a525c; }
.fp-kopf-txt { min-width: 0; } .fp-kopf-txt h2 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; overflow-wrap: anywhere; margin-bottom: 4px; }
.fp-kopf-akt { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; } .fp-kopf-akt .act-btn { min-height: 56px; }
.fp-zk > b { white-space: normal; } .fp-zk em { display: block; }
.fp-linie { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .fp-linie.schaetz { stroke-dasharray: 6 5; stroke: #7c8591; }
.fp-punkt { fill: var(--blue); stroke: #fff; stroke-width: 2; } .fp-lg-echt { background: var(--blue); }
.fp-staende { border-top: 1px solid var(--line-2); } .fp-staende summary { cursor: pointer; padding: 12px 18px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.fp-plan-karten { padding: 0; } .fp-plan-akt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.plain.rows li .chip { flex: none; }

.sb-tl li { grid-template-columns: 78px 30px minmax(0, 1fr); } .sb-tl li::before { left: 102px; top: 14px; }
.sb-tl i { width: 30px; height: 30px; margin-top: -4px; background: #eceef1; color: #4a525c; display: grid; place-items: center; font-style: normal; } .sb-tl i .ic { width: 16px; height: 16px; }
.sb-tl .tl-service i, .sb-tl .tl-reifen i, .sb-tl .tl-sonstiges i { background: var(--blue-bg); color: var(--blue); } .sb-tl .tl-reparatur i { background: var(--amber-bg); color: var(--amber); } .sb-tl .tl-pruefung i { background: var(--green-bg); color: var(--green); } .sb-tl .tl-mangel i, .sb-tl .tl-schaden i { background: var(--red-bg); color: var(--red-d); }
.sb-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; } .sb-body p { font-size: 13.5px; overflow-wrap: anywhere; } .sb-body small { overflow-wrap: anywhere; }
.sb-kopf { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; align-self: stretch; } .sb-kopf b { overflow-wrap: anywhere; } .sb-kosten { margin-left: auto; font-weight: 700; white-space: nowrap; }
.sb-erl { color: var(--green); font-weight: 600; } .sb-tl li.storniert .sb-kopf b { text-decoration: line-through; color: var(--muted); } .sb-tl li.tl-schaden { cursor: pointer; border-radius: 10px; } .sb-tl.pad { padding: 18px; }

.mm-steps { list-style: none; display: flex; gap: 6px; margin-bottom: 14px; } .mm-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #f2f3f5; color: var(--muted); font-size: 13px; font-weight: 600; min-width: 0; }
.mm-steps li i { width: 22px; height: 22px; border-radius: 50%; background: #cfd4da; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; flex: none; } .mm-steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-steps li.on { background: var(--graphite); color: #fff; } .mm-steps li.on i { background: var(--red); } .mm-steps li.done i { background: var(--green-strong); }
.mm-geraet { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f2f3f5; margin-bottom: 12px; min-width: 0; } .mm-geraet > .ic { color: var(--muted); } .mm-geraet > span { flex: 1; min-width: 0; } .mm-geraet b { display: block; overflow-wrap: anywhere; } .mm-geraet small { color: var(--muted); display: block; overflow-wrap: anywhere; }
textarea.input.area.mm-text { font-size: 17px; min-height: 120px; }
.mm-dring { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 10px; }
.mm-d { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; text-align: left; transition: border-color .15s, background .15s; } .mm-d > .ic { width: 28px; height: 28px; color: var(--muted); }
.mm-d b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; } .mm-d small { color: var(--muted); font-size: 13.5px; } .mm-d:disabled { opacity: .5; }
.mm-d.amber { border-color: #f1cf86; background: #fffaf0; } .mm-d.amber > .ic { color: var(--amber); } .mm-d.red { border-color: var(--red); background: var(--red); color: #fff; } .mm-d.red small, .mm-d.red > .ic { color: #fff; }
.mm-d.gruen { border-color: #a8dcb9; background: #f3fbf6; } .mm-d.gruen > .ic { color: var(--green); } .mm-d.on { box-shadow: 0 0 0 4px rgba(31, 85, 196, .35); border-color: var(--blue); }
.zs-form { display: flex; flex-direction: column; gap: 14px; } .zs-in { display: flex; align-items: center; gap: 10px; } .zs-in i { font-style: normal; font-weight: 700; color: var(--muted); font-size: 18px; flex: none; }
.input.zs-wert { height: 72px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; border-radius: 16px; text-align: right; } .zs-letzt { color: var(--muted); font-size: 13.5px; } .zs-letzt b { color: var(--text); }
.zs-warn { color: var(--amber); font-weight: 600; font-size: 13.5px; } .zs-warn.hart { color: var(--red-d); }
.eb-plan { display: flex; flex-direction: column; gap: 2px; } .eb-plan .check-inline { align-items: flex-start; padding: 6px 0; min-height: 0; } .eb-plan .check-inline input { flex: none; margin-top: 1px; } .eb-plan .check-inline > span { min-width: 0; overflow-wrap: anywhere; }
.eb-zaehler { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; } .eb-zaehler legend { padding: 0 6px; }
.az-z { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(110px, 160px) minmax(0, 1.4fr); gap: 8px; align-items: center; } .az-z .check-inline.sm { font-size: 13px; }
.form-grid > fieldset { min-width: 0; } .form-grid > fieldset > .field-label { margin-bottom: 6px; display: block; }

.sm-frage { font-size: 16px; font-weight: 700; margin: 6px 0 8px; display: block; } .sm-frage small { font-weight: 500; color: var(--muted); font-size: 13px; }
#sm { display: flex; flex-direction: column; gap: 10px; } #sm .mm-steps, #sm .mm-geraet { margin-bottom: 2px; } #sm .list-label { margin: 10px 2px 4px; } #sm .pick-list { margin: 0 -6px; }
.mm-steps.vier li span { display: none; } .mm-steps.vier li.on span { display: inline; } .mm-steps.vier li { flex: 0 0 auto; } .mm-steps.vier li.on { flex: 1; }
.sm-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; } .sm-fotos:empty { display: none; }
.sm-foto { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eceef1; display: grid; place-items: center; } .sm-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-foto .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(21, 24, 28, .78); color: #fff; border-radius: 50%; } .sm-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff; background: rgba(21, 24, 28, .55); padding: 2px 6px; text-align: right; }
.sm-foto-akt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .sm-foto-akt .act-btn { min-height: 72px; } .sm-foto-akt .act-btn:focus-within { outline: 3px solid rgba(31, 85, 196, .45); outline-offset: 2px; }
.sm-arten { display: flex; flex-wrap: wrap; gap: 8px; } .sm-fuss { display: flex; gap: 10px; margin-top: 6px; } .sm-fuss .grow { flex: 1; }
.sm-prog { display: flex; flex-direction: column; gap: 6px; } .sm-prog .meter i { background: var(--green-strong); } .sm-fremd { border-top: 1px solid var(--line-2); padding-top: 6px; display: flex; flex-direction: column; gap: 8px; } #sm-fremd-feld { display: flex; flex-direction: column; gap: 8px; }
.punch.sch-melden { max-width: 560px; }
.sch-karten { display: flex; flex-direction: column; gap: 10px; }
.sch-karte { display: flex; gap: 12px; padding: 12px; text-align: left; width: 100%; align-items: flex-start; } .sch-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .sch-txt small { color: var(--muted); } .sch-txt b { overflow-wrap: anywhere; } .sch-txt > span:not(.sch-chips) { font-size: 13.5px; color: #39424d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sch-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sch-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #eceef1; display: grid; place-items: center; flex: none; color: #a3abb5; } .sch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sch-thumb i { position: absolute; right: 3px; bottom: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: rgba(21, 24, 28, .78); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.sch-tabelle .sch-thumb { width: 44px; height: 44px; } .sch-urs { max-width: 340px; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sch-datum { flex: 0 1 190px !important; gap: 6px; } .sch-datum > span { color: var(--muted); font-size: 13px; }
#sch-warten li { flex-wrap: wrap; }
.sd-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; } .sd-kopf small { color: var(--muted); font-weight: 600; } .sd-kopf h3 { font-size: 18px; overflow-wrap: anywhere; }
.sd-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; } .sd-galerie figure { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #eceef1; }
.sd-galerie figure > button:first-child { display: block; width: 100%; height: 100%; } .sd-galerie img { width: 100%; height: 100%; object-fit: cover; display: block; } .sd-foto-weg { position: absolute; top: 4px; right: 4px; background: rgba(21, 24, 28, .78); color: #fff; border-radius: 50%; }
.sd-foto-dazu { cursor: pointer; margin-bottom: 8px; } .sd-liste { border: 1px solid var(--line-2); border-radius: 12px; margin: 8px 0 12px; } .sd-liste > div { padding: 10px 14px; } .sd-liste dd small { display: block; font-weight: 400; color: var(--muted); }
.sd-bearb { border-top: 1px solid var(--line-2); padding-top: 12px; } .sd-akt { display: flex; gap: 8px; flex-wrap: wrap; } .sd-err { margin-top: 8px; }
dialog.dlg.lb-dlg { width: min(1100px, calc(100vw - 32px)); max-height: 94vh; background: #15181c; color: #fff; } .lb-dlg .dlg-head .icon-btn { color: #fff; } .lb-dlg .dlg-body { padding: 0 8px 12px; }
.lb { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 200px; } .lb img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; min-width: 0; flex: 0 1 auto; } .lb-nav { color: #fff; background: rgba(255, 255, 255, .12); flex: none; }

/* Bautagesbericht: konkrete Anlage je Gerätezeile */
.pf-ga:empty { display: none; } .pf-ga { padding: 6px 8px 8px 12px; border-bottom: 1px solid var(--line); background: #f8fafe; display: flex; flex-direction: column; gap: 6px; } .pf-ggrid > div > .pf-ga:last-child { border-bottom: 0; }
.pf-ga-chips { display: flex; flex-wrap: wrap; gap: 6px; } .pf-ga .chip-btn { min-height: 34px; padding: 0 10px; font-size: 12.5px; white-space: normal; text-align: left; } .pf-ga-frage { color: var(--amber); font-weight: 600; } .pf-ga-eins { color: var(--muted); }
.pf-ga-warn { display: flex; gap: 8px; align-items: flex-start; background: var(--red-bg); color: #8f1c18; border-radius: 10px; padding: 8px 10px; font-size: 13px; } .pf-ga-warn .ic { width: 18px; height: 18px; margin-top: 1px; }

@media (max-width: 1279px) { .fp-ampel { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } .fp-kpi { padding: 12px; } .fp-kpi > b { font-size: 24px; } }
@media (max-width: 719px) {
  .fp-tabs button { flex: 0 0 auto; padding: 0 12px; } .fp-tabs .count { display: inline-block; }
  .fp-schnell { grid-template-columns: 1fr 1fr; } .fp-schnell .act-btn { min-height: 60px; font-size: 14px; }
  .fp-filter .search { flex: 1 1 100%; } .fp-filter .field.inline { flex: 1 1 100%; } .fp-arten { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px; scrollbar-width: none; }
  .fp-cards { grid-template-columns: minmax(0, 1fr); }
  .fp-ampel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-ampel .fp-kpi:first-child { grid-column: 1 / -1; }
  .fp-frist { padding: 10px 12px; flex-wrap: wrap; } .fp-frist .chip { margin-left: 70px; }
  .fp-kopf { grid-template-columns: minmax(0, 1fr); } .fp-kopf-akt { grid-template-columns: 1fr 1fr; } .fp-kopf-akt .act-btn { min-height: 64px; font-size: 14px; }
  .plain.rows > li { flex-wrap: wrap; } .fp-plan-akt { flex-direction: row; align-items: center; flex-basis: 100%; justify-content: space-between; }
  .sb-tl li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; } .sb-tl li::before { left: 14px; } .sb-tl time { grid-column: 2; grid-row: 1; } .sb-tl i { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; } .sb-tl .sb-body { grid-column: 2; }
  .mm-steps li span { display: none; } .mm-steps li.on span { display: inline; } .mm-steps li { flex: 0 0 auto; } .mm-steps li.on { flex: 1; }
  .az-z { grid-template-columns: 1fr 1fr; } .az-z > :last-child { grid-column: 1 / -1; }
  dialog.dlg.voll { height: 100%; max-height: 100%; border-radius: 0; } .sm-fuss { position: sticky; bottom: -18px; background: #fff; padding: 10px 0 calc(8px + env(safe-area-inset-bottom)); margin-bottom: -10px; }
  .punch.sch-melden { max-width: none; } .sch-datum { flex: 1 1 45% !important; }
  .sd-akt .btn { flex: 1 1 auto; } .lb img { max-height: 70vh; } dialog.dlg.lb-dlg { width: 100vw; }
}
.tbl td.fp-haupt { font-weight: 600; } .tbl td.fp-haupt a:hover { text-decoration: underline; } a.fp-kpi:hover { border-color: #c5cad1; }
.fp-frist small.fp-dues, .plain.rows small.fp-dues { display: flex; }

/* Prüfbericht 4 */
.bestaetigen-zeile { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--amber-bg); color: #7a4204; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 10px; } .bestaetigen-zeile span { flex: 1 1 220px; }
.fix-quelle { display: flex; gap: 8px; align-items: flex-start; background: #f1f3f5; border-radius: 10px; padding: 10px 12px; font-size: 14px; } .fix-quelle .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--muted); }
tr.geschuetzt { background: #fffaf0; } tr.geschuetzt .chip { margin-top: 3px; white-space: normal; height: auto; padding: 3px 8px; display: flex; width: fit-content; } .imp-liste { max-height: 160px; overflow-y: auto; margin-top: 8px; }
#kat-import[data-laeuft] { opacity: .6; }
.sch-gesendet { color: var(--green) !important; font-weight: 600; } .sch-fotofehler { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; } .sch-fotofehler > span { display: flex; align-items: center; gap: 8px; min-width: 0; } .sch-fotofehler img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
#sch-warten .abg-akt { align-items: center; }
.fp-hinweis { display: block; color: var(--amber) !important; font-weight: 600; white-space: normal; }
.pf-ga-extra { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; } .pf-ga-extra > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; } .pf-ga-extra small { color: var(--muted); } .pf-ga-dazu { display: flex; flex-wrap: wrap; gap: 6px; } .pf-ga-dazu .btn { white-space: normal; height: auto; min-height: 36px; text-align: left; padding: 6px 10px; }
@media (max-width: 719px) { #sch-warten li > .grow { flex: 1 1 100%; } #sch-warten .abg-akt { flex: 1 1 100%; justify-content: flex-start; } #sch-warten .abg-akt .btn { flex: 1; } }

/* ===== Ausbaustufe 2 · Schritt 1: Installation, Hilfe, Offline-Seite ===== */
body.offline-seite { overflow: auto; display: grid; place-items: center; min-height: 100%; background: var(--bg); }
.offline-box { max-width: 420px; margin: 24px; padding: 32px 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; } .offline-box h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; } .offline-box img { border-radius: 16px; }
.schritte { margin: 8px 0 12px; padding-left: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; } .schritte li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; line-height: 1.4; }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--graphite); color: #fff; font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }
.hilfe-thema > summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px; } .hilfe-thema > summary::-webkit-details-marker { display: none; } .hilfe-thema > summary span { flex: 1; } .hilfe-thema > summary .ic:first-child { color: var(--muted); } .hilfe-thema > summary .ic:last-child { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; } .hilfe-thema[open] > summary .ic:last-child { transform: rotate(180deg); }
.h-gross { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .h-klein { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; } .punkte { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
#install-hinweis { display: none; }
@media (max-width: 719px) { #install-hinweis:not([hidden]) { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; background: var(--blue-bg); color: var(--blue); font-weight: 600; font-size: 13.5px; } #install-hinweis a { flex: 1; text-decoration: underline; } #install-hinweis .ic { width: 18px; height: 18px; flex: none; } }

/* ===== Ausbaustufe 2 · Schritt 2: Preise mit „gültig ab“ ===== */
.pv-neu { display: flex; align-items: center; gap: 16px; background: #f6f7f9; border-radius: 12px; padding: 12px 16px; } .pv-neu span { display: flex; flex-direction: column; } .pv-neu small { color: var(--muted); font-size: 12px; } .pv-neu b { font-size: 20px; font-variant-numeric: tabular-nums; } .pv-neu .neu b { color: var(--green); } .pv-neu > .ic { color: var(--muted); }
.pv-liste li.geplant { background: #f3f7ff; } .pv-liste li.alt b { color: var(--muted); font-weight: 600; } .pv-liste { max-height: 260px; overflow-y: auto; margin: 0 -18px; } .pv-liste > li { padding: 8px 18px !important; min-height: 48px !important; }
.pv-btn { width: 30px !important; height: 30px !important; vertical-align: middle; margin-left: 2px; } .pv-btn .ic { width: 16px; height: 16px; }
td .chip[data-geplant] { display: flex; width: fit-content; margin: 3px 0 0 auto; }
#preisstand .banner.warn { align-items: flex-start; }

/* ===== Ausbaustufe 2 · Schritte 3/4: Wetter, E-Mail, Fotos im Bericht ===== */
.a-fotos { grid-area: fotos; }
.wetter { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--graphite); border-top: 0; border-radius: 0 0 10px 10px; margin-top: -1px; background: #f3f7ff; } .wetter.leer { background: #f6f7f9; } .wetter > .ic { width: 24px; height: 24px; color: var(--blue); flex: none; } .wetter.leer > .ic { color: var(--muted); } .wetter > span { flex: 1; min-width: 0; } .wetter b { display: block; } .wetter small { color: var(--muted); display: block; }
#wetter-karte .banner { margin-top: 8px; } .a-vork > .pf-box { border-radius: 0; }
.foto-galerie { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; } .foto-galerie li { position: relative; display: flex; flex-direction: column; gap: 4px; } .foto-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: #eef0f3; }
.foto-weg { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, .92); color: var(--red-d); box-shadow: var(--shadow); } .foto-text { text-align: left !important; padding: 0 8px !important; height: 36px; } .foto-leiste { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } #foto-neu[data-laedt] { opacity: .6; }
.mail-ag { display: inline-flex; flex-direction: column; gap: 3px; max-width: 320px; } .mail-ag small { color: var(--muted); font-size: 12px; } .mail-ag small b { color: #4a525c; } #mail-versand-box:empty { display: none; } #mail-versand-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.btn-zeile { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 719px) { .foto-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mail-ag { max-width: none; flex: 1 1 100%; } .mail-ag .btn { width: 100%; } .foto-weg { width: 44px; height: 44px; } }

/* ===== Ausbaustufe 2 · Schritt 5: Zwei-Faktor-Anmeldung ===== */
.zf-qr { display: grid; place-items: center; padding: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; } .zf-qr img { width: 220px; height: 220px; max-width: 100%; image-rendering: pixelated; }
.zf-code { text-align: center; font-size: 24px !important; letter-spacing: .3em; font-weight: 700; font-variant-numeric: tabular-nums; } .zf-geheim code, .zf-codeliste code { font: 600 15px/1.6 ui-monospace, 'DejaVu Sans Mono', monospace; letter-spacing: .06em; }
.zf-codeliste { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; background: #f6f7f9; border-radius: 12px; padding: 12px 16px; } .zf-karte { max-width: 480px; overflow-y: auto; } .bt-oben { border-top: 1px solid var(--line-2); padding-top: 12px; }

/* ===== Baustellenplaner (freigegebener Entwurf) ===== */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .btn-row.end { justify-content: flex-end; }
.input.ro { display: flex; align-items: center; background: #f6f7f9; color: var(--muted); } .tabs.klein button { height: 34px; padding: 0 10px; font-size: 13px; } .tabs.klein .ic { width: 15px; height: 15px; }
.wp-page, .page.breit { max-width: none; }
.wp-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; } .wp-header p { margin: 0; } .wp-aktionen { display: flex; flex-wrap: wrap; gap: 10px; }
/* 15.7: „Plan veröffentlichen · 2 Änderungen · Di–Fr vorbereitet“ darf umbrechen (kein Überlauf am Handy) */
#wp-pub { white-space: normal; height: auto; min-height: 42px; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.wp-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wp-kachel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wp-kachel small { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .wp-kachel b { font-size: 24px; font-weight: 800; line-height: 1.1; } .wp-kachel b i { font-style: normal; font-size: 15px; font-weight: 600; color: var(--muted); }
.wp-kachel em { font-style: normal; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.wp-kachel.rot { border-color: #f1c4c2; } .wp-kachel.rot small, .wp-kachel.rot b { color: #9b1f1b; } .wp-kachel.gelb { border-color: #f2d7ae; } .wp-kachel.gelb small, .wp-kachel.gelb em { color: #8a4b05; } .wp-kachel.blau { border-color: #c9d9f2; } .wp-kachel.blau small, .wp-kachel.blau em { color: #1d4f9a; }
.wp-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.wp-tafel { flex: 999 1 720px; min-width: 0; overflow: hidden; padding: 0; } .wp-pool { flex: 1 1 260px; min-width: 240px; max-width: 100%; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.wp-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.wp-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .wp-nav b { font-size: 16px; } .wp-nav .icon-btn { border: 1px solid var(--line); border-radius: 10px; }
.wp-legende { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); align-items: center; } .wp-legende span { display: inline-flex; align-items: center; gap: 6px; }
.wp-leg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .wp-leg.person { background: #e8eef9; border: 1px solid #9db6e3; } .wp-leg.geraet { background: #f1efe9; border: 1px solid #c9c2ae; } .wp-leg.konflikt { background: #fce8e7; border: 1px solid #d4302b; }
.wp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } .wp-gitter { min-width: calc(230px + var(--sp, 5) * 150px); }
.wp-zeile { display: grid; grid-template-columns: 230px repeat(var(--sp, 5), minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); } .wp-zeile.kopf { background: #f7f7f5; }
.wp-bs { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; position: sticky; left: 0; background: #fff; z-index: 1; border-right: 1px solid var(--line-2); }
.wp-zeile.kopf .wp-bs { background: #f7f7f5; padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wp-bs small { font-size: 12px; color: var(--muted); font-weight: 600; } .wp-bs b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.wp-tag { padding: 10px 12px; font-size: 13px; font-weight: 700; border-left: 1px solid var(--line-2); text-align: left; display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; min-height: 44px; } .wp-tag span { font-weight: 500; color: var(--muted); } .wp-tag small { color: var(--amber); font-weight: 600; flex-basis: 100%; }
.wp-tag.wahl { background: #eceef1; box-shadow: inset 0 -3px 0 var(--graphite); } .wp-tag.heute span { color: var(--red-d); font-weight: 700; }
.wp-zelle { border-left: 1px solid var(--line-2); padding: 8px; display: flex; flex-direction: column; gap: 5px; min-height: 96px; min-width: 0; transition: background .12s; } .wp-zelle.frei { background: #fafaf8; } .wp-zelle.wahl { background: #fbfbfc; }
.wp-zelle.zieh-ziel { background: #e3f5e9; box-shadow: inset 0 0 0 2px var(--green-strong); } .zieht [data-ablage]:not(.zieh-ziel) { background: #f6faf7; }
.wp-chip { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 8px; text-align: left; line-height: 1.25; min-height: 28px; overflow-wrap: anywhere; border: 1px solid transparent; }
.wp-chip.person { background: #e8eef9; border-color: #9db6e3; color: #183b73; } .wp-chip.geraet { background: #f1efe9; border-color: #c9c2ae; color: #4a4230; } .wp-chip.konflikt { background: #fce8e7; border-color: #d4302b; color: #8e1b18; font-weight: 700; } .wp-chip.notiz { background: #eaf1fb; color: #1d4f9a; }
.wp-chip .ic { width: 13px; height: 13px; flex: none; } button.wp-chip { cursor: pointer; } [data-zieh] { touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: grab; } .wird-gezogen { opacity: .35; }
.zieh-geist { box-shadow: 0 10px 28px rgba(0, 0, 0, .28); opacity: .95; transform-origin: top left; margin: 0; } .zieht-global { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.wp-info { font-size: 11.5px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.wp-zelle-fuss { margin-top: auto; display: flex; gap: 4px; align-items: center; justify-content: flex-end; min-height: 26px; }
.wp-mini { min-width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; color: #8a929c; font-size: 11.5px; font-weight: 700; padding: 0 5px; } .wp-mini:hover, .wp-mini:focus-visible { background: #eceef1; color: var(--text); } .wp-mini .ic { width: 14px; height: 14px; }
.wp-mini.hier { display: none; background: var(--graphite); color: #fff; padding: 0 8px; } .mit-wahl .wp-mini.hier { display: inline-flex; margin-right: auto; }
.wp-stand { width: 8px; height: 8px; border-radius: 50%; background: #c3c8cf; flex: none; } .wp-stand[data-stand="veroeffentlicht"] { background: var(--green-strong); } .wp-stand[data-stand="geaendert"] { background: var(--amber-strong); }
.wp-auswahl { padding: 10px 16px; background: #fff8e6; border-bottom: 1px solid #f2d7ae; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wp-tage { display: none; }
.wp-pool h2 { font-size: 16px; font-weight: 800; margin: 0; } .wp-pool p { margin: 4px 0 0; } .wp-pool-gruppe { display: flex; flex-direction: column; gap: 6px; }
.wp-pool-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .wp-pool-h.rot { color: #9b1f1b; }
.wp-frei { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: left; min-height: 40px; border: 1px solid transparent; } .wp-frei small { font-size: 12px; font-weight: 500; flex: none; }
.wp-frei.person { background: #e8eef9; border-color: #9db6e3; color: #183b73; } .wp-frei.person small { color: #3b5585; } .wp-frei.partie { margin-left: 14px; } .wp-frei.geraet { background: #f1efe9; border-color: #c9c2ae; color: #4a4230; } .wp-frei.geraet small { color: #6b6148; }
.wp-frei.abwesend { background: #f4f4f1; border: 1px dashed #c4c7cc; color: var(--muted); } .wp-frei.gesperrt { background: #fff4e5; border-color: #e8b867; color: #8a4b05; font-weight: 700; }
.wp-frei[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--graphite); }
.wp-pool-konflikte { border-top: 1px solid var(--line-2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; } .wp-pool-konflikte p { margin: 0; font-size: 13px; line-height: 1.45; }
#geraete-dispo td .wp-chip { display: inline-flex; margin: 1px 2px 1px 0; }
.plan-vorschlag { display: flex; gap: 8px; align-items: center; background: #eaf1fb; color: #1d4f9a; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0; text-align: left; } .plan-vorschlag .ic { flex: none; }
/* Projektzeitplan */
.zp-gitter { min-width: 1080px; } .zp-zeile { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-bottom: 1px solid var(--line-2); align-items: stretch; min-height: 64px; } .zp-zeile.kopf { background: #f7f7f5; min-height: 0; }
.zp-name { padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; position: sticky; left: 0; background: #fff; z-index: 2; border-right: 1px solid var(--line-2); } .zp-name a { color: inherit; } .zp-name b { font-size: 14px; } .zp-name small { font-size: 12px; color: var(--muted); } .zp-name small b { font-size: 12px; color: var(--text); }
.zp-zeile.kopf .zp-name { background: #f7f7f5; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.zp-spur { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); grid-template-rows: 1fr auto; align-items: center; position: relative; min-width: 0; }
.zp-kw { padding: 10px 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; border-left: 1px solid var(--line-2); } .zp-kw.jetzt { color: var(--red-d); font-weight: 800; }
.zp-zelle { grid-row: 1 / span 2; align-self: stretch; border-left: 1px solid var(--line-2); } .zp-zelle.jetzt { background: #fff6f5; } .zp-zelle.zieh-ziel { background: #e3f5e9; }
.zp-balken { grid-row: 1; margin: 6px 2px 2px; padding: 6px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; z-index: 1; background: #6b7280; min-height: 28px; }
.zieht .zp-balken, .zieht .zp-meile { pointer-events: none; }
.art-erdbau { background: #8a6a3a; } .art-kanal { background: #2f6fb3; } .art-unterbau { background: #4e5a66; } .art-pflaster { background: #b4231f; } .art-asphalt { background: #1f2328; } .art-eigen { background: #6b7280; } .art-ok { background: #1e7a3e; }
.zp-meile { grid-row: 2; margin: 0 2px 6px; padding: 2px 4px; border-radius: 6px; font-size: 10px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; color: #1e7a3e; box-shadow: inset 0 0 0 1.5px #1e7a3e; background: #fff; } .zp-meile.erreicht { background: #1e7a3e; color: #fff; }
.zp-leg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } .zp-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); } .zp-legende span { display: inline-flex; align-items: center; gap: 6px; }
/* Mein Einsatz / Meine Partie */
.me-karte { background: #1f2328; color: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.me-wann { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f2a9a6; } .me-haupt { display: flex; flex-direction: column; gap: 4px; } .me-zeit { font-size: 28px; font-weight: 800; } .me-bs { font-size: 18px; font-weight: 700; } .me-haupt span { font-size: 14px; color: #c9ccd1; }
.me-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; } .me-felder:empty { display: none; } .me-felder div { background: #2c3239; border-radius: 12px; padding: 10px; min-width: 0; } .me-felder small { color: #aeb3ba; display: block; } .me-felder b { font-weight: 700; overflow-wrap: anywhere; }
.me-notiz { margin: 0; font-size: 14px; color: #e3e5e8; } .me-kollegen { overflow-wrap: anywhere; line-height: 1.45; } /* 15.14: bricht am Handy um */ .me-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .me-knoepfe .btn { flex: 1 1 120px; min-height: 48px; justify-content: center; } .me-knoepfe .btn.dark { background: #3a4048; color: #fff; }
.me-hinweis { background: #eaf1fb; color: #1d4f9a; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; } .me-buero { background: #fff4e5; color: #8a4b05; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.me-h { margin: 0; padding: 14px 16px 8px; font-size: 16px; font-weight: 800; } .me-woche li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); } .me-woche li.leer b { color: var(--muted); font-weight: 600; }
.me-tag { width: 44px; text-align: center; flex: none; } .me-tag small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; } .me-tag b { font-size: 17px; font-weight: 800; } .me-woche .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .me-woche .grow small { font-size: 12px; color: var(--muted); }
.me-status { font-size: 12px; font-weight: 700; color: var(--muted); flex: none; } .me-status.ok { color: #1e7a3e; } .me-status.gelesen { color: #1d4f9a; } .me-status.gelb { color: #8a4b05; } .me-status.rot { color: var(--red-d); } .me-kopf { margin: 0; font-size: 14px; color: var(--muted); } .me-kopf b { color: var(--text); }
/* Bauvorhaben: Lebenslauf, Tafel */
.ll-schritte { list-style: none; margin: 0; padding: 14px 16px; display: flex; gap: 4px; overflow-x: auto; } .ll-schritte li { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 84px; position: relative; text-align: center; }
.ll-schritte li::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; } .ll-schritte li:first-child::before { display: none; } .ll-schritte li.fertig::before, .ll-schritte li.jetzt::before { background: var(--green-strong); }
.ll-schritte i { width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 700; position: relative; z-index: 1; } .ll-schritte i .ic { width: 14px; height: 14px; }
.ll-schritte li.fertig i { background: var(--green-strong); box-shadow: none; color: #fff; } .ll-schritte li.jetzt i { background: var(--graphite); box-shadow: none; color: #fff; } .ll-schritte li.jetzt { color: var(--text); font-weight: 800; }
.ll-verlauf summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
.ll-tafel-scroll { overflow-x: auto; padding-bottom: 6px; } .ll-tafel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; min-width: min-content; align-items: start; }
.ll-spalte { background: #e9ebee; border-radius: 14px; padding: 10px; min-height: 180px; display: flex; flex-direction: column; gap: 8px; } .ll-spalte h3 { font-size: 13.5px; margin: 0; display: flex; justify-content: space-between; align-items: center; } .ll-spalte.zieh-ziel { box-shadow: inset 0 0 0 2.5px var(--green-strong); background: #e3f5e9; }
.ll-karten { display: flex; flex-direction: column; gap: 8px; } .ll-karte { background: #fff; border-radius: 10px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; } .ll-karte a { color: inherit; display: flex; flex-direction: column; } .ll-karte small { font-size: 11.5px; color: var(--muted); font-weight: 600; } .ll-karte b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; } .ll-leer { text-align: center; }
/* Dokumente */
.dok { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; } .dok-kat { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.dok-kat-btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; text-align: left; min-height: 40px; } .dok-kat-btn b { font-size: 12px; color: var(--muted); background: #eceef1; border-radius: 999px; padding: 1px 8px; flex: none; } .dok-kat-btn .ic { width: 13px; height: 13px; vertical-align: -2px; color: var(--muted); }
.dok-kat-btn:hover { background: #f3f4f6; } .dok-kat-btn.on { background: var(--graphite); color: #fff; } .dok-kat-btn.on b { background: #3a4049; color: #fff; } .dok-kat-btn.on .ic { color: #c1c7cf; }
.dok-ablage { border: 2px dashed #c5cad1; border-radius: 14px; padding: 14px; display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; } .dok-ablage.an { border-color: var(--green-strong); background: #e3f5e9; color: var(--text); }
.dok-liste li { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-top: 1px solid var(--line-2); } .dok-liste li:first-child { border-top: 0; } .dok-liste li.weg { opacity: .6; }
.dok-haupt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; text-align: left; border-radius: 10px; } .dok-haupt:hover { background: #f6f7f9; } .dok-haupt .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .dok-haupt b { overflow-wrap: anywhere; } .dok-haupt small { font-size: 12.5px; color: var(--muted); }
.dok-ic { width: 38px; height: 38px; border-radius: 10px; background: #eceef1; display: grid; place-items: center; flex: none; }
.dok-upload li { display: flex; gap: 10px; align-items: flex-end; padding: 4px 0; } .dok-up-stand { flex: none; min-width: 70px; font-size: 13px; padding-bottom: 10px; }
.dok-vorschau { background: #f1f3f5; border-radius: 12px; overflow: hidden; display: grid; place-items: center; min-height: 80px; } .dok-bild img { max-width: 100%; max-height: 60vh; display: block; } .dok-pdf { width: 100%; height: 60vh; border: 0; background: #fff; } .dok-vorschau p { padding: 16px; margin: 0; }
/* Rechnungen, Import */
.re-summe { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0; background: #f6f7f9; border-radius: 12px; padding: 12px; } .re-summe div { display: flex; flex-direction: column; gap: 2px; } .re-summe dt { font-size: 12px; color: var(--muted); font-weight: 600; } .re-summe dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; } .re-summe .sum dd { font-size: 17px; }
.re-tbl tbody tr { cursor: pointer; } .re-tbl tbody tr:hover { background: #f6f7f9; } .re-tbl td .chip { margin-right: 4px; }
.imp-schritte { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; flex-wrap: wrap; } .imp-schritte li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 10px 4px 4px; border-radius: 999px; background: #eceef1; }
.imp-schritte i { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; } .imp-schritte li.jetzt { background: var(--graphite); color: #fff; } .imp-schritte li.jetzt i { color: var(--text); } .imp-schritte li.fertig { background: var(--green-bg); color: var(--green); }
.imp-hoch { max-height: 46vh; overflow: auto; }
@media (max-width: 1279px) { .wp-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dok { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 899px) {
  .dok { grid-template-columns: minmax(0, 1fr); } .dok-kat { flex-direction: row; overflow-x: auto; padding: 6px; } .dok-kat-btn { flex: none; white-space: nowrap; }
}
@media (max-width: 719px) {
  .wp-kacheln { gap: 8px; } .wp-kachel { padding: 10px 12px; } .wp-kachel b { font-size: 20px; } .wp-kachel em { font-size: 13.5px; }
  .wp-aktionen { width: 100%; } .wp-aktionen .btn { flex: 1; } .wp-legende span { display: none; }
  .wp-tage { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); } .wp-tage button { min-height: 52px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; } .wp-tage button small { font-size: 11px; color: var(--muted); font-weight: 600; } .wp-tage button.on { background: var(--graphite); border-color: var(--graphite); color: #fff; } .wp-tage button.on small { color: #c1c7cf; }
  .wp-gitter { min-width: 0; } .wp-zeile { grid-template-columns: 112px minmax(0, 1fr); } .wp-zeile > .wp-tag:not(.wahl), .wp-zeile > .wp-zelle:not(.wahl) { display: none; }
  .wp-bs { padding: 10px; } .wp-chip { min-height: 38px; font-size: 13.5px; } .wp-mini { min-width: 38px; height: 38px; } .wp-pool { min-width: 0; flex-basis: 100%; }
  .ll-schritte li { min-width: 76px; font-size: 11.5px; } .dok-upload li { flex-direction: column; align-items: stretch; }
}
@media (pointer: coarse) { .wp-mini { min-width: 36px; height: 36px; } .wp-chip { min-height: 34px; } }

/* ===== Fernunterschrift: öffentliche Seite ===== */
.fern { height: 100%; overflow-y: auto; background: var(--bg); } .fern-kopf { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--graphite); color: #fff; } .fern-kopf b { display: block; font-size: 18px; font-weight: 800; } .fern-kopf small { color: #98a1ad; }
.fern-inhalt { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; display: flex; flex-direction: column; gap: 14px; } .fern .sig-pad { height: 190px; } .fern .def-list.tight { margin: 8px 0 12px; }
.link-box { display: flex; gap: 8px; align-items: center; background: #f6f7f9; border-radius: 10px; padding: 8px 10px; } .link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }

.integ-zustand { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; } a.link.sm { font-size: 12.5px; }

/* ===== Assistenten im Bericht: Diktat, Lieferschein, Papier, Fernunterschrift ===== */
.diktat { margin-top: 10px; border: 1.5px dashed #9db4e8; background: #f3f7ff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; } .diktat-kopf { display: flex; align-items: center; gap: 10px; } .diktat-kopf b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; } .diktat-text { min-height: 96px; font-size: 16px; }
#diktat-mic.an { background: var(--red-bg); border-color: var(--red); color: var(--red-d); }
.ki-neu { box-shadow: inset 0 0 0 2.5px #7da2f0 !important; background: #f3f7ff !important; animation: popin .4s var(--ease); } textarea.ki-neu { background: #f3f7ff !important; }
.assist-knopf { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; } .assist-knopf small { color: var(--muted); font-size: 12px; flex: 1 1 220px; }
.vs-zeile { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 0; border-bottom: 1px solid var(--line-2); } .vs-zeile input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--red); } .vs-zeile .input.s { width: 84px; flex: none; } .vs-zeile small { width: 36px; color: var(--muted); flex: none; } .vs-zeile .grow { min-width: 0; overflow-wrap: anywhere; }
.vs-text { background: #f6f7f9; border-radius: 10px; padding: 10px; font: 12px/1.5 ui-monospace, monospace; white-space: pre-wrap; max-height: 180px; overflow-y: auto; margin: 0; } .foto-art { position: absolute; left: 4px; top: 4px; background: #fff; }
.fern-links { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } .fern-links > li { padding: 8px 10px !important; min-height: 0 !important; flex-wrap: wrap; }
/* Planer: Notizen an Chips, Tagesansicht „Morgen“ */
.wp-chip { padding: 0; } span.wp-chip:not([data-chip]) { padding: 5px 8px; } .wp-chip-t { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 5px 4px 5px 8px; text-align: left; font: inherit; color: inherit; overflow-wrap: anywhere; min-height: 28px; }
.wp-nb { flex: none; width: 24px; align-self: stretch; display: grid; place-items: center; color: inherit; opacity: .45; border-left: 1px solid rgba(0, 0, 0, .08); border-radius: 0 7px 7px 0; } .wp-nb:hover, .wp-nb:focus-visible { opacity: 1; background: rgba(0, 0, 0, .06); } .wp-nb.an { opacity: 1; background: #ffe9a8; color: #6b4a00; } .wp-nb .ic { width: 13px; height: 13px; }
.wp-fahrer { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; opacity: .85; } .wp-fahrer .ic { width: 11px; height: 11px; }
.wp-notiz-ed { background: #fffbea; border: 1px solid #f0d98a; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .wp-notiz-ed .input { min-height: 36px; font-size: 13.5px; } .wp-notiz-ed .field-label { font-size: 11.5px; }
.tg-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tg-spalten { flex: 999 1 720px; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.tg-karte { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; } .tg-karte.zieh-ziel { box-shadow: inset 0 0 0 2.5px var(--green-strong); background: #f3fbf5; }
.tg-karte header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; } .tg-karte header div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .tg-karte header small { font-size: 12px; color: var(--muted); font-weight: 600; } .tg-karte header b { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.tg-daten { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; } .tg-daten .breit { grid-column: 1 / -1; } .tg-daten dt { font-size: 11.5px; color: var(--muted); font-weight: 600; } .tg-daten dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; } .tg-daten .benoetigt dd:not(:has(.muted)) { background: #fffbea; border-radius: 8px; padding: 4px 8px; }
.tg-chips { display: flex; flex-direction: column; gap: 6px; } .tg-chips .wp-chip { font-size: 14px; min-height: 40px; } .tg-chips .wp-chip-t { min-height: 40px; padding-left: 10px; } .tg-chips .wp-nb { width: 40px; } .tg-chips p { margin: 0; }
.tg-karte .sub-h { margin: 4px 0 0; } .tg-fuss { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .tg-fuss .btn { min-height: 56px; font-size: 16px; }
.me-meine { background: #ffe9a8; color: #4a3500; border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 600; margin: 0; } .me-meine small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.me-zeile-notiz { display: block; font-size: 12.5px; color: #6b4a00; background: #fffbea; border-radius: 6px; padding: 2px 6px; margin-top: 2px; width: fit-content; max-width: 100%; }
@media (max-width: 719px) { .tg-spalten { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow: visible; } .tg-fuss .btn { width: 100%; } }
/* Planer: fortgeschriebene Tage (Vorschau), Serien, Fuhren */
.wp-zelle.vorschau, .tg-karte.vorschau { background: repeating-linear-gradient(135deg, #fafbfc, #fafbfc 8px, #f3f5f7 8px, #f3f5f7 16px); } .wp-zelle.vorschau .wp-chip.person, .wp-zelle.vorschau .wp-chip.geraet, .tg-karte.vorschau .wp-chip.person, .tg-karte.vorschau .wp-chip.geraet { border-style: dashed; background-color: #fff; }
.wp-wie { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .wp-tag small.wie { color: var(--muted); } .wp-mini.notizen { width: auto; height: auto; min-height: 26px; padding: 3px 6px; background: #fffbea; color: #6b4a00; text-align: left; justify-content: flex-start; white-space: normal; }
.wp-chip.serie.ser-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: -9px; border-right-color: transparent; } .wp-chip.serie.ser-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -9px; border-left-color: transparent; }
.wp-serie { font-size: 10.5px; font-weight: 600; opacity: .75; white-space: nowrap; } .tg-chips .wp-chip.serie { margin: 0; border-radius: 8px; border-color: inherit; }
.tg-auto { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff8e6; border: 1px solid #f2d7ae; color: #6b4a00; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; } .tg-auto > span { flex: 1 1 240px; } .tg-auto .ic { flex: none; } .tg-auto.veroeffentlicht { background: var(--green-bg); border-color: #bfe3cb; color: var(--green); }
.fu-kopf .wp-bs { background: #f1efe9; color: #4a4230; } .fu-kopf-zelle.wp-zelle { padding: 6px 8px; flex-direction: row; justify-content: flex-end; background: #f7f5ef; min-height: 0; } .fu-zelle { min-height: 60px; background: #fcfbf8; } .fu-zelle.zieh-ziel, .fu-zone.zieh-ziel { background: #e3f5e9; box-shadow: inset 0 0 0 2px var(--green-strong); }
.fu-karte { display: flex; flex-direction: column; gap: 2px; text-align: left; background: #f1efe9; border: 1px solid #c9c2ae; color: #4a4230; border-radius: 8px; padding: 6px 8px; font-size: 12px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; } .fu-karte b { font-size: 12.5px; } .fu-karte.konflikt { background: #fce8e7; border-color: #d4302b; color: #8e1b18; } .fu-karte.weg { opacity: .55; text-decoration: line-through; }
.fu-fuss { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 2px; } .fu-fuss small { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; } .fu-fuss small .ic { width: 11px; height: 11px; } .warn { color: var(--red-d); font-weight: 700; }
.fu-zone { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; border-radius: 8px; } .fu-zone .sub-h { display: flex; align-items: center; gap: 8px; margin: 0; } .fu-zone .sub-h .btn { margin-left: auto; } .fu-zone p { margin: 0; } .fu-mit-lkw { display: flex; flex-direction: column; gap: 2px; } .fu-mit-lkw > small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.fu-tag .wp-zeile { grid-template-columns: 230px minmax(0, 1fr); } .fu-tag .fu-zelle { flex-direction: row; flex-wrap: wrap; } .fu-tag .fu-karte { flex: 0 1 260px; } .fu-tag.wp-gitter { min-width: 0; }
.fu-liste { display: flex; flex-direction: column; gap: 12px; } .fu-meine { display: flex; gap: 12px; padding: 14px; } .fu-nr { width: 34px; height: 34px; border-radius: 50%; background: var(--graphite); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; } .fu-inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fu-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; } .fu-top small { color: var(--muted); font-size: 12.5px; } .fu-mat { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; } .fu-menge { font-size: 26px; font-weight: 800; letter-spacing: -.02em; } .fu-weg, .fu-ablade { margin: 0; font-size: 15px; } .fu-ablade { background: #f1efe9; border-radius: 10px; padding: 8px 10px; font-weight: 600; } .fu-ablade small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.fu-ab-foto { display: block; max-width: min(180px, 100%); max-height: 140px; margin-top: 6px; border-radius: 8px; object-fit: contain; } /* N-017: nicht übernommene Fuhren-Meldung mit Foto */
.fu-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .fu-knoepfe .btn { min-height: 56px; justify-content: center; } .fu-knoepfe .btn:only-child { grid-column: 1 / -1; } .btn.dark { background: var(--graphite-3); color: #fff; } .btn.block { display: flex; justify-content: center; }
.me-wie { font-style: normal; background: #3a4048; color: #fff; border-radius: 999px; padding: 1px 8px; letter-spacing: 0; text-transform: none; font-size: 11.5px; } .pub-liste { max-height: 46vh; overflow-y: auto; }
@media (max-width: 719px) { .wp-chip.serie.ser-r, .wp-chip.serie.ser-l { margin: 0; border-radius: 8px; border-color: inherit; } .fu-tag .wp-zeile { grid-template-columns: 96px minmax(0, 1fr); } }

/* Urlaub, Lohn-Vorlagen, Stammdaten */
.ur-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; } .ur-karte { flex: 999 1 640px; min-width: 0; padding: 0; overflow: hidden; } .ur-seite { flex: 1 1 250px; min-width: 230px; padding: 14px; } .ur-seite h3 { font-size: 15px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.ur-tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; } .ur-tbl thead th { position: sticky; top: 0; background: #f7f7f5; font-weight: 700; padding: 6px 2px; text-align: center; min-width: 28px; border-bottom: 1px solid var(--line); } .ur-tbl thead th small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.ur-tbl thead th.we, .ur-tbl td.we { background: #eceef1; } .ur-tbl thead th.feiertag, .ur-tbl td.feiertag { background: #f3ecdc; } .ur-tbl thead th.heute { box-shadow: inset 0 -3px 0 var(--red); }
.ur-tbl .ur-name { position: sticky; left: 0; background: #fff; text-align: left; padding: 4px 10px; min-width: 170px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; border-right: 1px solid var(--line); font-weight: 600; } .ur-tbl thead .ur-name { background: #f7f7f5; z-index: 2; } .ur-name small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.ur-tbl td { padding: 1px; text-align: center; border-bottom: 1px solid var(--line-2); } .ur-gruppe th { text-align: left; padding: 6px 10px; background: #f1f3f5; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); position: sticky; left: 0; }
.ur-z { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font-size: 10.5px; font-weight: 800; font-style: normal; border: 1.5px solid transparent; background: transparent; color: transparent; } button.ur-z { cursor: pointer; width: 100%; min-width: 26px; } button.ur-z:hover, button.ur-z:focus-visible { border-color: #9aa2ac; } .ur-z.we, .ur-z.feiertag { cursor: default; } .ur-z.feiertag { color: #8a6a2a; }
/* genehmigt = kräftig gefüllt; beantragt = hell, schraffiert, gestrichelter Rand; abgelehnt = durchgestrichen */
.ur-U.ok { background: #1f55c4; color: #fff; } .ur-BU.ok { background: #0f766e; color: #fff; } .ur-ZA.ok { background: #6d3fc0; color: #fff; } .ur-K.ok { background: #b3241f; color: #fff; } .ur-SW.ok { background: #4a525c; color: #fff; } .ur-abwesend.ok { background: #7c8591; color: #fff; }
.ur-z.offen { color: #15181c; border: 1.5px dashed currentColor; background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 6px); } .ur-U.offen { background-color: #dbe7fb; color: #1b3f8f; } .ur-BU.offen { background-color: #d5efec; color: #0b5a54; } .ur-ZA.offen { background-color: #e9e0f8; color: #53309a; } .ur-K.offen { background-color: #fbdedc; color: #8e1b18; } .ur-SW.offen { background-color: #e6e8eb; color: #3a4049; } .ur-abwesend.offen { background-color: #eceef1; color: #4a525c; }
.ur-z.nein { color: var(--muted); text-decoration: line-through; border: 1.5px dotted #c3c8cf; }
.ur-legende { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); } .ur-legende span { display: inline-flex; align-items: center; gap: 6px; } .ur-legende .ur-z { width: 24px; height: 22px; } .ur-legende .we { background: #eceef1; } .ur-legende .feiertag { background: #f3ecdc; }
.ur-hz { display: inline-grid; place-items: center; width: 100%; min-width: 38px; height: 28px; border-radius: 6px; font-size: 12px; font-weight: 700; font-style: normal; background: #f6f7f9; color: var(--muted); } .ur-hz.s1 { background: #dbe7fb; color: #1b3f8f; } .ur-hz.s2 { background: #a9c4f3; color: #12306f; } .ur-hz.s3 { background: #5f8ee0; color: #fff; } .ur-hz.s4 { background: #1f55c4; color: #fff; } .ur-tbl.jahr td { padding: 2px; }
.ur-konto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ur-konto div { background: #f6f7f9; border-radius: 12px; padding: 10px; } .ur-konto small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; } .ur-konto b { font-size: 20px; font-weight: 800; } .ur-konto .rest { background: var(--graphite); color: #fff; } .ur-konto .rest small { color: #c1c7cf; }
.me-h.flach { padding: 0; } small.block { display: block; } b.neg { color: var(--red-d); }
.lv-spalten { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .lv-spalten li { display: flex; gap: 6px; align-items: center; } .lv-spalten .input { flex: 1; min-width: 0; } .lv-nr { width: 22px; text-align: center; font-weight: 700; color: var(--muted); flex: none; }
.price-tbl tr.aus td { opacity: .55; } .price-tbl tr.aus .st-akt { opacity: 1; } .st-akt { text-align: right; } .field .price-err { display: block; margin-top: 4px; }
@media (max-width: 719px) {
  .ur-konto b { font-size: 18px; }
  table.karten-handy thead { display: none; } table.karten-handy, table.karten-handy tbody { display: block; } table.karten-handy tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 12px; border-bottom: 1px solid var(--line); } table.karten-handy td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; min-width: 0; }
  table.karten-handy td.main { grid-column: 1 / -1; font-weight: 700; font-size: 15px; } table.karten-handy td.r::before { content: attr(data-th); display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; } table.karten-handy td.st-akt { grid-column: 1 / -1; text-align: right; } table.karten-handy .price-in { width: 100%; }
}

.fuhr-vorschlag { background: #fff8e6; border: 1px solid #f2d7ae; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; } .fuhr-vorschlag > b { display: flex; gap: 8px; align-items: center; } .fuhr-vorschlag li { display: flex; padding: 4px 0; font-size: 14px; } .fuhr-vorschlag small { display: block; color: var(--muted); } .mat-row .chip { font-style: normal; margin-left: 6px; }
.wp-frei > span { min-width: 0; overflow-wrap: anywhere; } .wp-frei small { flex: 0 1 auto; min-width: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wp-pool { overflow: hidden; }
.wp-gitter { min-width: calc(200px + var(--sp, 5) * 126px); } .wp-zeile { grid-template-columns: 200px repeat(var(--sp, 5), minmax(0, 1fr)); } .fu-tag .wp-zeile { grid-template-columns: 200px minmax(0, 1fr); }
@media (max-width: 719px) { .wp-gitter { min-width: 0; } .wp-zeile, .fu-tag .wp-zeile { grid-template-columns: 104px minmax(0, 1fr); } }
@media (min-width: 1000px) { .wp-wrap > .wp-pool { position: sticky; top: 8px; max-height: calc(100vh - 110px); overflow-y: auto; } }

.dok-pdf-karte { display: flex; gap: 14px; align-items: center; padding: 22px; width: 100%; color: inherit; } .dok-pdf-karte .ic { width: 34px; height: 34px; flex: none; } .dok-pdf-karte span { display: flex; flex-direction: column; gap: 2px; } .dok-pdf-karte small { color: var(--muted); } .dok-pdf-karte:hover { background: #e8ebee; }
.toolbar .weit { flex: 1 1 220px; min-width: 0; } .toolbar p.weit { margin: 0; }
@media (max-width: 719px) { .toolbar .weit { flex-basis: 100%; } .toolbar.wrap > .field { flex: 1 1 140px; min-width: 0; } .toolbar.wrap > .btn, .toolbar.wrap > a.btn { flex: 1 1 auto; } }
#lv-import { white-space: normal; text-align: left; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; } .card-h.bt { flex-wrap: wrap; gap: 8px; }
@media (max-width: 719px) { .tg-fuss .btn, .fu-meine .btn, .me-knoepfe .btn { white-space: normal; height: auto; min-height: 52px; text-align: center; } .tg-karte, .fu-meine, .me-karte { min-width: 0; max-width: 100%; } .fu-inhalt > *, .tg-karte > * { min-width: 0; max-width: 100%; } .tg-auto > span { flex-basis: 100%; } .fu-top { min-width: 0; } .tg-daten dd, .me-felder b { overflow-wrap: anywhere; } }
.fu-knoepfe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fu-knoepfe .btn { min-width: 0; padding-left: 8px; padding-right: 8px; white-space: normal; height: auto; }

.dok-kat-btn.neu { color: var(--muted); justify-content: flex-start; border: 1.5px dashed var(--line); margin-top: 4px; }

/* Abwesenheit als Zeitraum-Antrag */
.zr-vorschau { background: #f6f7f9; border-radius: 12px; padding: 10px 12px; min-height: 44px; font-size: 14.5px; } .zr-vorschau:empty { display: none; } .zr-vorschau p { margin: 0; } .zr-zahl b { font-size: 16px; } .zr-warn { color: var(--red-d); font-weight: 700; display: flex; gap: 6px; align-items: center; margin-top: 4px !important; } .zr-aus { margin-top: 6px; font-size: 13px; color: var(--muted); }
.an-liste { display: flex; flex-direction: column; } .an-zeile { padding: 10px 12px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; } .an-zeile:first-child { border-top: 0; } .an-kopf { display: flex; gap: 8px; align-items: flex-start; } .an-kopf .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .an-kopf b { overflow-wrap: anywhere; } .an-kopf small { color: var(--muted); font-size: 12.5px; }
.an-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; } .an-tage summary, .an-erledigt summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 0; } .an-tage li { font-size: 13px; padding: 2px 0; } .an-erledigt { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 6px; } .ur-seite .an-zeile { padding-left: 0; padding-right: 0; }
/* N-101: Knöpfe bleiben im Innenabstand schmaler Karten (Seitenleiste „Offene Anträge“) – lange Beschriftung bricht um */
.an-knoepfe .btn { max-width: 100%; min-width: 0; white-space: normal; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; text-align: left; }
@media (max-width: 719px) { .an-knoepfe .btn { flex: 1 1 auto; min-height: 44px; } }

/* N-099: Kategorie-Zeile als Grid – Name umbricht, Zähler und Stift in eigenen Spalten (kein Überlappen) */
.dok-kat { position: relative; } .dok-kat-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px; }
.dok-kat-btn > span { min-width: 0; overflow-wrap: anywhere; } .dok-kat-edit { margin: 0; opacity: .5; } .dok-kat-edit:hover, .dok-kat-edit:focus-visible { opacity: 1; }
@media (max-width: 899px) { .dok-kat-zeile { flex: none; } .dok-kat-zeile .dok-kat-btn > span { overflow-wrap: normal; } }

.c-abwesend, .c-BU, .c-ZA { background: #eceef1; color: #4a525c; }

/* ---------- 15.8: Gerätewahl „Eigenes Handy“ / „Geteiltes Gerät“ (Anmeldeseite, Mehr) ---------- */
.geraet-wahl { border: 0; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-2); min-width: 0; flex: none; }
.geraet-wahl legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.geraet-opt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; clear: both; }
.geraet-opt label { position: relative; cursor: pointer; min-width: 0; }
.geraet-opt label > span { min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 6px; text-align: center; line-height: 1.15; }
.geraet-opt label > span .ic { width: 18px; height: 18px; }
.geraet-opt b { font-weight: 700; font-size: 14px; } .geraet-opt small { color: var(--muted); font-size: 12px; }
.geraet-opt input:checked + span { background: var(--graphite); border-color: var(--graphite); color: #fff; } .geraet-opt input:checked + span small { color: #d5dae0; }
.geraet-opt input:focus-visible + span { outline: 3px solid rgba(31, 85, 196, .45); outline-offset: 2px; }
.geraet-info { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.35; }
.geraet-wahl.im-menue { margin: 0; padding: 14px 18px; }
/* 15.12 (G2-021): „Eigenes Handy“ gilt nur für die Person, die es gewählt hat – deutlich zeigen */
.geraet-wahl[data-art="eigen"] .geraet-info { background: var(--amber-bg); color: #7a4204; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.geraet-hinweis:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; background: var(--amber-bg); color: #7a4204; border-bottom: 1px solid #f3d58a; }
.geraet-hinweis > .ic { width: 20px; height: 20px; flex: none; }
.geraet-hinweis .gh-txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.35; }
.geraet-hinweis .gh-txt b { font-size: 14.5px; }

/* 15.19 Handy-Layout (Inhaber 16.11.2026): App fest am Bildschirm, nur #view scrollt; kein seitliches Verschieben,
   kein automatisches Hineinzoomen (iOS zoomt bei Eingabefeldern unter 16 px); Zwei-Finger-Zoom bleibt erlaubt. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 719px) {
  html, body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
  #root, .app { width: 100%; max-width: 100vw; overflow: hidden; }
  .main { min-width: 0; width: 100%; }
  .view { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .page { overflow-wrap: break-word; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea, .input, .input.s, .input.lg { font-size: 16px !important; }
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
  .toolbar > * { max-width: 100%; }
  img, canvas, video { max-width: 100%; }
}
