/* Tablet-optimiert: große Touch-Flächen */
body.monteur { font-size: 17px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
body.monteur input, body.monteur select, body.monteur textarea { min-height: 50px; font-size: 17px; border-radius: 10px; }
body.monteur button, body.monteur .btn { min-height: 50px; font-size: 17px; border-radius: 10px; padding: 10px 18px; }
body.monteur button.small { min-height: 38px; font-size: 14px; padding: 4px 12px; }

.mhead { background: var(--accent); color: var(--on-accent); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; }
.mhead .who { line-height: 1.15; }
.mhead .who small { display: block; opacity: .85; font-size: .78rem; }
.mhead button { background: rgba(255,255,255,.18); color: var(--on-accent); border-color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: .85rem; background: rgba(255,255,255,.2); }
.pill.off { background: #fff0d6; color: #7a4a00; }
.pill.q { background: #fff; color: var(--accent-dark); font-weight: 700; }

.mwrap { max-width: 1000px; margin: 0 auto; padding: 14px 14px 20px; }
.projbar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; position: sticky; top: calc(66px + env(safe-area-inset-top)); z-index: 10; }
.projbar label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }

.m-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.mcard h2 { margin-top: 0; }
.big-hours { font-size: 2rem; font-weight: 800; color: var(--accent); text-align: center; padding: 6px 0 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { min-height: 44px !important; padding: 6px 16px !important; border-radius: 99px !important; background: #fff; }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.with-now { display: flex; gap: 6px; }
.with-now button { flex-shrink: 0; padding: 0 12px; }
.save-btn { width: 100%; justify-content: center; font-weight: 700; font-size: 1.1rem !important; min-height: 58px !important; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; border: 0; border-radius: 0; min-height: 68px; flex-direction: column; justify-content: center; gap: 2px; font-size: .85rem; background: #fff; color: var(--muted); }
.tabs button .ico { font-size: 1.5rem; line-height: 1; }
.tabs button.on { color: var(--accent); font-weight: 700; background: var(--accent-soft); }

.entry { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry .main { flex: 1; min-width: 0; }
.entry .main small { color: var(--muted); display: block; }
.entry .qty { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }

.art { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; margin-bottom: 8px; padding: 12px 14px; min-height: 64px; }
.art .n { flex: 1; min-width: 0; }
.art small { display: block; color: var(--muted); }
.stepper { display: flex; gap: 8px; align-items: stretch; }
.stepper input { text-align: center; font-size: 1.5rem; font-weight: 700; }
.stepper button { width: 64px; justify-content: center; font-size: 1.6rem; }
canvas.sig { width: 100%; height: 220px; border: 2px dashed #b9c1cf; border-radius: 10px; background: #fff; touch-action: none; display: block; }
.sig-ok { color: var(--ok); font-weight: 600; }
.warnbox { background: #fff0d6; border: 1px solid #f0d58a; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }

/* Fokus-/Scroll-Ziele nicht unter fixierter Kopfzeile bzw. Tab-Leiste verstecken */
html { scroll-padding-top: 150px; scroll-padding-bottom: 110px; }
