/* Heilsan – Betrieb: Leitstand, Empfang, Akte, Abrechnung, Einstellungen, Kiosk, Smart Intake */

/* ---------- Smart Intake ---------- */
.intake { display: flex; flex-direction: column; gap: 6px; }
.intake-q { font-size: 17px; font-weight: 650; margin: 6px 0 10px; line-height: 1.35; }
.intake-step { margin-bottom: -4px; }
.intake-opts { display: flex; flex-direction: column; gap: 8px; }
.intake-opts.grid-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.intake-opt { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: inherit; font-weight: 560; cursor: pointer; transition: all var(--t); }
.intake-opt:hover { border-color: var(--accent); }
.intake-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.intake-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.intake-opt.sc { text-align: center; padding: 12px 0; font-weight: 700; border-color: hsla(var(--h), 70%, 50%, .5); }
.intake-opt.sc.on { background: hsla(var(--h), 70%, 50%, .22); color: var(--text); border-color: hsl(var(--h), 70%, 50%); box-shadow: none; }
.intake-nav { margin-top: 16px; }
.intake-review { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.intake-review .stat-line { gap: 16px; }
.intake-review .stat-line span { color: var(--muted); }
.intake-review .stat-line.click { cursor: pointer; }
.intake-review .stat-line.click:hover span { color: var(--accent); }
.intake-done { text-align: center; padding: 26px 10px; }
.intake-done svg { width: 54px; height: 54px; }
.intake-urgent { margin: 4px 0 10px; font-size: 14px; }
.intake.kiosk .intake-q { font-size: 26px; }
.intake.kiosk .intake-opt { font-size: 19px; padding: 18px 20px; border-radius: 16px; }
.intake.kiosk .intake-opts.grid-opts { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.intake.kiosk textarea, .intake.kiosk .big-input { font-size: 20px; padding: 14px; }
.big-input { font-size: 18px; padding: 12px 14px; }

/* ---------- Leitstand ---------- */
.tl { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); padding: 26px 10px 8px 120px; overflow: hidden; }
.tl-scale { position: absolute; left: 120px; right: 10px; top: 4px; height: 18px; }
.tl-scale span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.tl-grid { position: absolute; top: 22px; bottom: 6px; width: 1px; background: var(--line); }
.tl-row { position: relative; height: 46px; margin-bottom: 6px; }
.tl-row .lbl { position: absolute; left: -112px; top: 0; width: 104px; height: 100%; display: flex; flex-direction: column; justify-content: center; font-size: 12px; }
.tl-row .lbl b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bar { position: absolute; top: 18px; height: 24px; border-radius: 7px; font-size: 11px; font-weight: 650; color: #06121e; display: flex; align-items: center; padding: 0 6px; white-space: nowrap; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: left .5s, width .5s; }
.tl-bar.ghost { top: 3px; height: 12px; background: transparent !important; border: 1px dashed var(--line2); box-shadow: none; cursor: default; }
.tl-bar.done { background: var(--panel3) !important; color: var(--text2); box-shadow: none; border: 1px solid var(--line2); }
.tl-bar.run { outline: 2px solid var(--ok); outline-offset: 1px; }
.tl-bar.noshow { background: repeating-linear-gradient(45deg, var(--err-soft), var(--err-soft) 4px, transparent 4px, transparent 8px) !important; color: var(--err); border: 1px solid var(--err); }
.tl-now { position: absolute; top: 18px; bottom: 4px; width: 2px; background: var(--crit); box-shadow: 0 0 10px var(--crit); z-index: 3; }
.tl-now::before { content: "JETZT"; position: absolute; top: -14px; left: -14px; font-size: 9px; font-weight: 800; color: var(--crit); letter-spacing: .08em; }
.room-chart { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding-top: 6px; }
.room-chart .b { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; opacity: .85; }
.room-chart .b.warn { background: var(--warn); } .room-chart .b.err { background: var(--err); }
.room-chart .b span { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.room-axis { display: flex; gap: 3px; font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.room-axis span { flex: 1; text-align: center; }
.msg-ch { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--panel3); flex: 0 0 26px; }
.msg-ch svg { width: 14px; height: 14px; }
.msg-ch.app { color: var(--accent); } .msg-ch.sms { color: var(--violet); } .msg-ch.whatsapp { color: var(--ok); } .msg-ch.email { color: var(--warn); }
.act-menu { display: flex; gap: 4px; flex-wrap: wrap; }
.late-flag { color: var(--err); font-weight: 700; }

/* ---------- Empfang ---------- */
.scan-box { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; border: 1px solid var(--line2); }
.scan-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.scan-box.rear video { transform: none; }
.scan-box .scan-frame { position: absolute; inset: 18% 22%; border: 3px solid rgba(56, 189, 248, .85); border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); }
.scan-box .scan-frame.face { inset: 10% 24%; border-radius: 50%; }
.scan-box .scan-line { position: absolute; left: 22%; right: 22%; height: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: scanline 2.2s ease-in-out infinite; top: 18%; }
.scan-box .scan-msg { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-weight: 600; text-align: center; font-size: 13px; }
@keyframes scanline { 0%, 100% { top: 18%; } 50% { top: 80%; } }
.slot-grid { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; padding: 2px; }
.slot { padding: 7px 0; text-align: center; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-family: var(--mono); font-size: 13px; transition: all var(--t); }
.slot:hover { border-color: var(--accent); }
.slot.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.slot small { display: block; font-family: var(--font); font-size: 10px; color: var(--muted); }
.slot.on small { color: var(--accent-ink); opacity: .8; }
.day-strip { min-width: 0; max-width: 100%; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.day { min-width: 64px; padding: 7px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); text-align: center; cursor: pointer; user-select: none; }
.day b { display: block; font-size: 15px; }
.day small { font-size: 10.5px; color: var(--muted); }
.day.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.day.closed { pointer-events: none; background: transparent; border-style: dashed; color: var(--muted); }
.day.closed b { font-weight: 500; }
.day:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.day .load { height: 3px; border-radius: 2px; background: var(--panel3); margin-top: 5px; overflow: hidden; }
.day .load i { display: block; height: 100%; background: var(--accent); }
.qr-box { background: #fff; border-radius: 12px; padding: 10px; display: inline-block; line-height: 0; }
.qr-box svg { width: 100%; height: auto; display: block; }
.consent-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel2); }
.consent-item p { margin: 4px 0 0 24px; font-size: 12px; color: var(--muted); }
.face-dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

/* ---------- Akte ---------- */
.akte-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.akte-head .name { font-size: 22px; font-weight: 720; }
.akte-head .meta { color: var(--muted); font-size: 13px; }
.lab-flag { font-weight: 800; font-family: var(--mono); }
.lab-flag.H { color: var(--err); } .lab-flag.L { color: var(--info); }
.soap-mini { display: grid; grid-template-columns: 22px 1fr; gap: 3px 10px; font-size: 13px; margin-top: 8px; }
.soap-mini b { color: var(--accent); font-family: var(--mono); }
.doc-frame { width: 100%; height: 70vh; border: 1px solid var(--line2); border-radius: 10px; background: #fff; }
.risk-flag { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.risk-flag:last-child { border-bottom: 0; }
.risk-flag svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; }
.trend-cell { display: flex; align-items: center; gap: 8px; }

/* ---------- Einstellungen ---------- */
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } }
.set-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.set-nav .nav-item { padding: 8px 10px; }
.set-sec { display: flex; flex-direction: column; gap: 14px; }
.set-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hours-row { display: grid; grid-template-columns: 90px repeat(2, minmax(0, 1fr)); gap: 8px; align-items: center; }
.model-list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Kiosk ---------- */
.kiosk-body { overflow: auto; }
.kiosk { min-height: 100vh; display: flex; flex-direction: column; }
.kiosk-top { display: flex; align-items: center; gap: 14px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.kiosk-top .pname { font-size: 20px; font-weight: 720; }
.kiosk-top .clock { font-size: 18px; }
.kiosk-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px; }
.kiosk-card { width: min(980px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.kiosk-card h1 { font-size: 36px; letter-spacing: -0.02em; }
.kiosk-card .lead { font-size: 19px; color: var(--muted); margin-top: 6px; }
.kiosk-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .kiosk-choices { grid-template-columns: 1fr; } }
.kiosk-choice { border: 1px solid var(--line2); background: var(--panel2); border-radius: 20px; padding: 26px 18px; cursor: pointer; text-align: center; transition: all var(--t); color: var(--text); font: inherit; }
.kiosk-choice:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(56, 189, 248, .12); }
.kiosk-choice svg { width: 46px; height: 46px; color: var(--accent); }
.kiosk-choice b { display: block; font-size: 20px; margin-top: 10px; }
.kiosk-choice span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.kiosk-big { font-size: 64px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.kiosk-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; }
.kiosk-keypad button { height: 62px; font-size: 24px; font-weight: 700; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); cursor: pointer; }
.kiosk-keypad button:active { background: var(--accent-soft); }
.kiosk-dob { font-family: var(--mono); font-size: 34px; letter-spacing: .08em; padding: 10px 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line2); min-width: 300px; text-align: center; }
.kiosk-foot { padding: 12px 28px; color: var(--faint); font-size: 12px; display: flex; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); }
.kiosk .scan-box { max-width: 560px; margin: 0 auto; }
