/* Schlanke Seiten ohne Seitenleiste: Anmeldung (solo-*) und Scannen am Handy (m-*).
   Baut auf app.css auf und nutzt dessen Variablen. Handy-Schaltflächen 56 px hoch. */

/* ---------- Anmeldung, Einrichtung ---------- */
.solo-body { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; }
.solo { width: 100%; max-width: 420px; padding: 12vh 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.solo-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.solo-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.solo-title { font-size: 24px; }
.solo-lead { margin: 0; }
.solo-form { display: flex; flex-direction: column; gap: 16px; }
.solo-submit { width: 100%; min-height: 52px; margin-top: 4px; }
.solo-foot { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.solo-card .form-error { margin: 0; }

/* ---------- Handy-Rahmen ---------- */
.m-body { min-height: 100vh; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.m-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; background: var(--ink); color: #fff; }
.m-brand { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -9px; }
.m-top-title { font-weight: 600; font-size: 17px; flex: 1; }
.m-user { font-size: 14px; color: #C9C6BE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.m-main { max-width: 560px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.m-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.m-nav a { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; border-top: 3px solid transparent; }
.m-nav a[aria-current="page"] { color: var(--ink); border-top-color: var(--accent); }

/* ---------- Bausteine ---------- */
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.m-h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; }
.m-label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.m-strong { font-weight: 600; color: var(--ink); }
.m-btn { width: 100%; min-height: 56px; font-size: 17px; }
.m-input { min-height: 56px; font-size: 18px; }
.m-actions { display: flex; flex-direction: column; gap: 10px; }
.m-form { display: flex; flex-direction: column; gap: 18px; }
.m-more { margin: 4px 0 0; text-align: center; }
.m-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--steel); font-weight: 500; }
.m-error { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: #FBEDEC; color: var(--crit); font-weight: 600; border-left: 4px solid var(--crit); }
.m-note { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.m-note .tip-box { left: auto; right: -8px; transform: none; }

/* Objektkopf */
.m-head { display: flex; flex-direction: column; gap: 6px; }
.m-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-number { font-weight: 600; font-size: 15px; color: var(--muted); }
.m-dims { margin: 0; font-size: 15px; color: var(--ink); }
.m-loc { margin: 0; color: var(--muted); }

/* Bestand */
.m-stock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.m-stock-value { font-size: 44px; font-weight: 600; line-height: 1; }
.m-stock-unit { font-size: 18px; font-weight: 600; }
.m-stock-min { flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* Mengen-Stepper */
.m-stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-step { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font: 500 30px/1 var(--mono); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; touch-action: manipulation; }
.m-step:active { background: var(--line-soft); }
.m-step-value { flex: 1; min-width: 0; height: 64px; text-align: center; font-size: 34px; font-weight: 600; border: 1.5px solid var(--field); border-radius: var(--radius-sm); background: var(--surface); }
.m-step-value:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(46,90,120,.25); }

/* Auswahl als Liste mit Radio */
.m-choice { margin: 0; padding: 0; border: 0; }
.m-choice legend { padding: 0; }
.m-option { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 0; cursor: pointer; }
.m-option:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.m-option:last-of-type { border-bottom-width: 1px; border-radius: 0 0 var(--radius) var(--radius); }
.m-option input[type="radio"] { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.m-option:has(input[type="radio"]:checked) { background: var(--ground-2); box-shadow: inset 3px 0 0 var(--accent); }
.m-option-free .input { min-height: 44px; flex: 1; }

/* Fakten */
.m-facts { margin: 0; }
.m-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.m-facts > div:first-child { padding-top: 0; }
.m-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.m-facts dt { color: var(--muted); }
.m-facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Aufklappen (Störung melden) */
.m-disclose > summary { list-style: none; }
.m-disclose > summary::-webkit-details-marker { display: none; }
.m-disclose[open] > summary { margin-bottom: 16px; border-color: var(--line); color: var(--muted); }
.m-disclose .m-form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }

/* Kamera */
.m-camera { position: relative; overflow: hidden; border-radius: 12px; background: #0E0F11; aspect-ratio: 3 / 4; max-height: 62vh; }
.m-camera[hidden] { display: none; }
.m-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-frame { position: absolute; inset: 18% 14%; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(14,15,17,.35); }
.m-camera-hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px; color: #fff; font-weight: 600; text-align: center; background: linear-gradient(transparent, rgba(14,15,17,.7)); }
.m-manual { display: flex; flex-direction: column; gap: 10px; }
.m-manual .m-label { margin-bottom: 0; }
.m-manual .m-input { text-transform: uppercase; letter-spacing: .02em; }

/* Ergebnis */
.m-result { display: flex; flex-direction: column; gap: 10px; }
.m-result p { margin: 0; }
.m-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 18px; }
.m-done p { margin: 0; }
.m-done-mark { margin-bottom: 6px; }
.m-done-kicker { color: var(--ok); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.m-done-detail { font-size: 20px; font-weight: 600; }
