/* Baustellen-Ansicht: einhändig, mit Handschuh, bei Sonne (P7). Große Flächen, wenige Optionen. */
body.site { font-size: 18px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.site-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; padding-top: calc(.55rem + env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .where { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-head .where small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: .35em; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .25em .7em; font-size: .8125rem; font-weight: 600; min-height: 36px; color: var(--text); }
.pill.warn { border-color: var(--warn); color: var(--warn); }
.pill.icon-only { padding: .25em .55em; color: var(--muted); }
main.site-main { padding: 1rem; max-width: 640px; margin: 0 auto; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 68px; border: 0; background: none; font-size: .8125rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabbar button .ic { width: 28px; height: 28px; }
.tabbar button[aria-current="page"] { color: var(--primary); }
.tabbar button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; border-radius: 0 0 4px 4px; background: var(--primary); }
.tabbar .dot { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .75rem; display: grid; place-items: center; }

.big { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 76px; padding: .9rem 1.1rem; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); font-size: 1.15rem; font-weight: 800; text-align: left; cursor: pointer; color: var(--text); }
.big .ic { width: 34px; height: 34px; }
.big small { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); }
.big.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.big.primary small { color: inherit; opacity: .85; }
.big:active { transform: scale(.985); }
.bigs > * + * { margin-top: .7rem; }
.bigrow { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

.status { padding: 1.1rem; border-radius: 20px; background: var(--surface); border: 3px solid var(--line); }
.status .state { font-size: 1.5rem; font-weight: 800; display: flex; gap: .6rem; align-items: center; }
.status .state .ic { width: 34px; height: 34px; }
.status .detail { margin-top: .25rem; font-size: 1.05rem; }
.status.work { border-color: var(--ok); } .status.break { border-color: var(--warn); } .status.travel { border-color: var(--info); }
.geo-line { margin-top: .5rem; font-size: .9rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .6rem; min-height: 124px; padding: 1rem; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: 1.05rem; text-align: left; cursor: pointer; color: var(--text); }
.tile .ic { width: 38px; height: 38px; }

.choice { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice button { min-height: 54px; min-width: 64px; padding: .45em 1em; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 1rem; cursor: pointer; color: var(--text); }
.choice button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }

.sec { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 66px; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; cursor: pointer; color: var(--text); font-size: 1rem; }
.sec + .sec { margin-top: .5rem; }
.sec .box { width: 36px; height: 36px; border-radius: 10px; border: 3px solid var(--muted); display: grid; place-items: center; flex: none; }
.sec .box .ic { width: 24px; height: 24px; stroke-width: 3; }
.sec.done { background: var(--ok-soft); border-color: var(--ok); }
.sec.done .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.sec .meta { display: block; font-size: .85rem; color: var(--muted); }

.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; margin: 1.4rem 0 .5rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.item { display: flex; gap: .6rem; align-items: flex-start; }
.item > .ic { margin-top: .2rem; }
.item > .grow { flex: 1; min-width: 0; }
.seg { display: flex; gap: .6rem; align-items: baseline; }
.seg b { font-variant-numeric: tabular-nums; min-width: 7.2em; }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; max-width: 320px; margin: 0 auto; }
.keypad button { min-height: 70px; font-size: 1.7rem; font-weight: 700; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text); }
.keypad button:active { background: var(--surface-2); }
.pindots { display: flex; gap: 1.1rem; justify-content: center; margin: 1.2rem 0; }
.pindots i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--text); }
.pindots i.on { background: var(--text); }
.codeinput { font-size: 2rem !important; text-align: center; letter-spacing: .3em; font-weight: 800; min-height: 64px !important; }

dialog.sheet { margin: auto auto 0; width: 100%; max-width: 640px; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
dialog.sheet .dlg-body { max-height: 74vh; }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 22px; } }
.stepper { display: flex; align-items: center; gap: .8rem; }
.stepper button { width: 60px; height: 60px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font-size: 1.8rem; font-weight: 700; cursor: pointer; color: var(--text); }
.stepper output { min-width: 3ch; text-align: center; font-size: 1.6rem; font-weight: 800; }
.rec-on { border-color: var(--bad) !important; color: var(--bad); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.saved { font-size: .85rem; color: var(--ok); font-weight: 700; }
.q-card { border: 2px solid var(--line); border-radius: 18px; padding: .9rem; background: var(--surface); }
.q-card + .q-card { margin-top: .75rem; }
.q-num { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.reply { margin-top: .4rem; padding: .5rem .7rem; border-radius: 12px; background: var(--info-soft); font-size: .95rem; }
