/* Lehrzeug Blitzlicht – werkzeugeigenes Design. Gemeinsames Design: /kern/kern.css */
body:not(.is-join) .bl-join { display: none; }
body.is-join .bl-teach { display: none !important; }
.lz-sec-title .i { width: 18px; height: 18px; color: var(--teal-ink); }

/* Mitmachen per QR-Code */
.bl-join { max-width: 560px; margin: 28px auto 0; padding: 26px 22px; display: grid; gap: 14px; text-align: center; }
.bl-join-kick { margin: 0; display: inline-flex; gap: 8px; align-items: center; justify-content: center; color: var(--teal-ink); font-weight: 700; }
.bl-join-kick .i { width: 20px; height: 20px; }
.bl-join-t { margin: 0; font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.bl-join-qs { display: grid; gap: 16px; }
.bl-jq { border: 0; padding: 0; margin: 0; min-width: 0; }
.bl-jq legend { font-weight: 700; font-size: 1.1rem; margin: 0 auto 8px; }
.bl-jopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.bl-jopts label { position: relative; }
.bl-jopts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bl-jopts span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.bl-jopts em { font-style: normal; font-size: 36px; line-height: 1; }
.bl-jopts input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); box-shadow: inset 0 0 0 1px var(--teal); }
.bl-jopts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.bl-join-msg { margin: 0; color: var(--ink-2); min-height: 1.4em; }
.bl-join-msg.is-bad { color: var(--coral-ink); font-weight: 600; }
.bl-join-code { display: grid; gap: 8px; text-align: left; }
.bl-join-row { display: flex; gap: 8px; }
.bl-join-row .input { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: 20px; }
.bl-join-note { display: flex; gap: 6px; align-items: flex-start; justify-content: center; text-align: left; }
.bl-join-note .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Fragen */
.bl-qs { display: grid; gap: 10px; }
.bl-q { display: grid; gap: 6px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.bl-q-head { display: flex; gap: 8px; align-items: center; }
.bl-q-head .select-wrap { flex: 1; min-width: 0; }
.bl-q-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #071B4A; color: #fff; font-size: 12.5px; font-weight: 700; flex: none; }
.bl-o { display: grid; gap: 4px; }
.bl-o-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.bl-emo { text-align: center; font-size: 18px; padding: 4px; }
.bl-o .btn { justify-self: start; }

/* Start */
.bl-start { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bl-start-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--teal) 45%, transparent); background: var(--teal-soft); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .1s; }
.bl-start-btn:hover { border-color: var(--teal); }
.bl-start-btn:active { transform: translateY(1px); }
.bl-start-btn b { font-size: 15px; }
.bl-start-btn small { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.bl-start-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal); color: var(--on-teal); }
.bl-start-ico .i { width: 20px; height: 20px; }
.bl-run { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); }
.bl-run-code { display: flex; align-items: baseline; gap: 10px; }
.bl-run-code span { font-size: 13px; font-weight: 700; color: var(--teal-ink); text-transform: uppercase; letter-spacing: .06em; }
.bl-run-code b { font-family: var(--mono); font-size: 28px; letter-spacing: .15em; }
.bl-run-n { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Verlauf */
.bl-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 300px; overflow: auto; }
.bl-hist li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.bl-h-e { font-size: 22px; text-align: center; }
.bl-h-t { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.bl-h-t small { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ergebnis */
.bl-stage { position: relative; border-radius: 18px; background: #fff; color: #071B4A; border: 1px solid var(--line); padding: 22px 24px; min-height: 360px; }
.bl-res { display: grid; gap: 18px; }
.bl-empty { color: #5B6372; text-align: center; padding: 60px 20px; }
.bl-total { margin: 0; font-size: 15px; color: #3D4B66; }
.bl-total b { font-size: 26px; color: #071B4A; margin-right: 4px; }
.bl-rq h3 { margin: 0 0 8px; font-size: 1.15rem; }
.bl-bars { display: grid; gap: 6px; }
.bl-bar { display: grid; grid-template-columns: 40px minmax(90px, 160px) minmax(0, 1fr) 36px 46px; gap: 10px; align-items: center; }
.bl-e { font-size: 28px; line-height: 1; text-align: center; }
.bl-l { font-weight: 600; font-size: 14.5px; }
.bl-track { height: 22px; border-radius: 8px; background: #EEF2F6; overflow: hidden; }
.bl-track i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #12C7A3, #0A7F68); transition: width .5s ease; }
.bl-bar.is-top .bl-track i { background: linear-gradient(90deg, #F5A623, #E8590C); }
.bl-bar b { text-align: right; font-variant-numeric: tabular-nums; font-size: 17px; }
.bl-bar small { color: #5B6372; font-variant-numeric: tabular-nums; }
.bl-avg { margin: 6px 0 0; font-size: 13px; color: #5B6372; }
.bl-comments { margin-top: 12px; }
.bl-comments h3 { display: flex; gap: 8px; align-items: center; font-size: 1rem; margin: 0 0 6px; }
.bl-comments h3 .i { width: 18px; height: 18px; }
.bl-comments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bl-comments li { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.bl-join-card { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px; background: #fff; border: 1px solid #DDE4EC; box-shadow: 0 10px 30px -14px rgba(7, 27, 74, .45); cursor: pointer; color: #071B4A; }
.bl-jc-qr { width: 74px; height: 74px; } .bl-jc-qr svg { width: 100%; height: 100%; display: block; }
.bl-join-card p { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.bl-join-card b { font-family: var(--mono); font-size: 22px; letter-spacing: .12em; }
.bl-join-card small { color: #3D4B66; font-size: 12px; }
.bl-join-card.is-big { inset: 50% auto auto 50%; transform: translate(-50%, -50%); flex-direction: column; padding: 20px 26px; z-index: 3; }
.bl-join-card.is-big .bl-jc-qr { width: 200px; height: 200px; }
.bl-stage.is-full .bl-join-card.is-big .bl-jc-qr, .bl-stage:fullscreen .bl-join-card.is-big .bl-jc-qr { width: min(52vh, 440px); height: min(52vh, 440px); }
.bl-join-card.is-big p { align-items: center; } .bl-join-card.is-big b { font-size: 40px; } .bl-join-card.is-big small { font-size: 16px; }
.bl-exit { position: absolute; top: 10px; right: 10px; z-index: 4; }
.bl-stage.is-full { position: fixed; inset: 0; z-index: 1000; border-radius: 0; border: 0; overflow: auto; padding: 4vh 6vw; }
.bl-stage:fullscreen { overflow: auto; padding: 4vh 6vw; }
.bl-stage.is-full .bl-rq h3, .bl-stage:fullscreen .bl-rq h3 { font-size: 2rem; }
.bl-stage.is-full .bl-bar, .bl-stage:fullscreen .bl-bar { grid-template-columns: 70px minmax(120px, 240px) minmax(0, 1fr) 60px 70px; }
.bl-stage.is-full .bl-e, .bl-stage:fullscreen .bl-e { font-size: 48px; }
.bl-stage.is-full .bl-l, .bl-stage:fullscreen .bl-l { font-size: 22px; }
.bl-stage.is-full .bl-track, .bl-stage:fullscreen .bl-track { height: 38px; }
body.bl-full-open { overflow: hidden; }

/* Tablet-Modus */
.bl-kiosk { position: fixed; inset: 0; z-index: 2000; background: radial-gradient(circle at 20% 10%, #12355A, #071B4A 60%); color: #fff; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.bl-kiosk[hidden] { display: none; }
body.bl-kiosk-open { overflow: hidden; }
.bl-k-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; padding: 4vh 4vw 2vh; text-align: center; }
.bl-k-step { margin: 0; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8CE0CB; font-size: clamp(14px, 2.2vw, 20px); }
.bl-k-q { margin: 0; font-size: clamp(28px, 5.2vw, 64px); line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; }
.bl-k-opts { display: grid; gap: 2.2vw; width: min(1300px, 96vw); grid-template-columns: repeat(3, 1fr); }
.bl-k-opts.n2 { grid-template-columns: repeat(2, 1fr); width: min(900px, 96vw); }
.bl-k-opts.n4 { grid-template-columns: repeat(4, 1fr); }
.bl-k-opts.n5 { grid-template-columns: repeat(5, 1fr); }
.bl-k-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4vh; padding: 3.2vh 1vw; border-radius: 28px; border: 3px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 700; font-size: clamp(16px, 2.3vw, 28px); cursor: pointer; transition: transform .12s, background-color .12s, border-color .12s; min-height: 26vh; }
.bl-k-opt em { font-style: normal; font-size: clamp(56px, 10vw, 140px); line-height: 1; }
.bl-k-opt:active, .bl-k-opt.is-hit { transform: scale(.95); background: rgba(18, 199, 163, .35); border-color: #12C7A3; }
.bl-k-thanks { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; background: #0A7F68; animation: blIn .25s ease; }
.bl-k-thanks[hidden] { display: none; }
.bl-k-thanks p { margin: 0; font-size: clamp(40px, 8vw, 110px); font-weight: 700; }
.bl-k-check { display: grid; place-items: center; width: clamp(110px, 18vw, 220px); height: clamp(110px, 18vw, 220px); border-radius: 50%; background: rgba(255, 255, 255, .18); }
.bl-k-check .i { width: 60%; height: 60%; stroke-width: 2.6; }
@keyframes blIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.bl-k-bar { display: flex; justify-content: space-between; align-items: center; padding: 1.5vh 2vw; }
.bl-k-count { color: rgba(255, 255, 255, .45); font-size: 14px; }
.bl-k-lock { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .55); font: inherit; font-size: 12.5px; cursor: pointer; overflow: hidden; touch-action: none; }
.bl-k-lock .i { width: 16px; height: 16px; }
.bl-k-lock i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #12C7A3; }
.bl-k-lock.is-hold i { width: 100%; transition: width 1.6s linear; }
@media (max-width: 700px) { .bl-k-opts, .bl-k-opts.n4, .bl-k-opts.n5 { grid-template-columns: repeat(2, 1fr); } .bl-k-opt { min-height: 18vh; } .bl-start { grid-template-columns: 1fr; } .bl-bar { grid-template-columns: 30px minmax(70px, 110px) minmax(0, 1fr) 28px 40px; gap: 6px; } }

/* Druck */
.bl-print { width: 210mm; padding: 16mm 18mm; background: #fff; color: #071B4A; font-family: var(--font); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bl-print h1 { margin: 0 0 2mm; font-size: 20pt; }
.bl-print .bl-res, .bl-print { display: block; }
.bl-print .bl-rq { margin-top: 6mm; }
.bl-print .bl-pc { padding-left: 1.2em; }
