/**
 * Wahl-Modul: Einlass- und Protokoll-Link ohne Konto (#/wahl-einlass, #/wahl-protokoll). Eine Spalte, große Ziele, 393 px ohne waagrechten Überlauf.
 * Alles hängt an .as-lnk, damit gleichnamige Klassen der Verwaltung und des Wahlraums nicht hereinwirken.
 */
.as-lnk { max-width: 44rem; margin: 0 auto; padding: 16px 16px 48px; min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; color: var(--ink); --as-ok: #14653a; --as-danger: #b3261e; }
[data-theme="dark"] .as-lnk { --as-ok: #4ade80; --as-danger: #f87171; }
.as-lnk * { box-sizing: border-box; }
.as-lnk [hidden] { display: none; }
.as-lnk .as-field input { width: 100%; max-width: 100%; min-height: 48px; font: inherit; }
.as-lnk .as-error { margin: 0; font-weight: 600; border: 1px solid var(--as-danger); color: var(--as-danger); padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; }
.as-lnk__ok { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--as-ok); color: var(--as-ok); font-weight: 600; }
.as-lnk__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.as-lnk__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.as-lnk__row[data-status="present"] { border-color: var(--as-ok); }
.as-lnk__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 12rem; }
.as-lnk__name { font-weight: 700; font-size: 1.05rem; }
.as-lnk__status { color: var(--muted); font-size: 0.9rem; }
.as-lnk__row[data-status="present"] .as-lnk__status { color: var(--as-ok); font-weight: 700; }
.as-lnk__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.as-lnk__btns .btn, .as-lnk__dl .btn { min-height: 48px; padding: 0 18px; }
.as-lnk__bar { position: relative; height: 14px; border-radius: 999px; background: var(--bg-soft, rgba(128, 128, 128, 0.2)); border: 1px solid var(--line); overflow: hidden; margin: 8px 0 0; }
.as-lnk__bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--muted, #6b7280); }
.as-lnk__bar-fill.is-ok { background: var(--as-ok); }
.as-lnk__bar-mark { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--ink); }
.as-lnk .as-card { margin: 0; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; overflow-wrap: anywhere; }
.as-lnk .as-log { max-height: 24rem; }
.view-assembly-checkin :is(button, input, a):focus-visible, .view-assembly-minutes :is(button, input, a):focus-visible { outline: 3px solid var(--focus, #0052cc); outline-offset: 3px; }
@media (max-width: 640px) {
  .as-lnk__btns { width: 100%; }
  .as-lnk__btns .btn { flex: 1 1 8rem; }
}
/* Bausteine, die die Link-Seiten früher von Wahlraum und Verwaltung mitbenutzten */
.as-lnk .as-title { font-size: 1.5rem; line-height: 1.25; margin: 0; }
.as-lnk .as-muted { color: var(--muted); margin: 0; }
.as-lnk .as-hint { margin: 4px 0 0; font-size: 0.875rem; opacity: 0.75; overflow-wrap: anywhere; }
.as-lnk .as-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.as-lnk .as-honesty { margin: 6px 0 0; font-size: 0.875rem; opacity: 0.8; overflow-wrap: anywhere; }
.as-lnk .as-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.as-lnk .as-card__title { font-size: 1.05rem; margin: 0 0 8px; }
.as-lnk .as-list, .as-lnk .as-log { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.as-lnk .as-log { list-style: none; padding-left: 0; overflow-y: auto; }
.as-lnk .as-log li { padding: 4px 0; border-bottom: 1px solid var(--line); }
/* Einlass Stufe 2: Filter, Chips, Werkzeugzeile, Schalter */
.as-lnk__filters, .as-lnk__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.as-lnk__filter { min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font: inherit; cursor: pointer; }
.as-lnk__filter[aria-pressed="true"] { border-color: var(--ink); border-width: 2px; font-weight: 700; }
.as-lnk__n { color: var(--muted); font-variant-numeric: tabular-nums; }
.as-lnk__tools .btn { min-height: 48px; padding: 0 18px; }
.as-lnk__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.as-lnk__chip { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.as-lnk__chip--warn { color: var(--as-danger); }
.as-lnk__chip--info { color: var(--ink); }
.as-lnk__ok .btn { min-height: 44px; margin-left: 8px; }
.as-link__switch { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.as-link__switch input { width: 24px; height: 24px; }
.as-blank { align-items: center; gap: 8px; }
.as-blank input[type="number"] { width: 5.5rem; min-height: 44px; }
/* Einlass mit Kamera (Stufe 3): Video, großes Ergebnisfeld, Feld „Code eintippen“ */
.as-lnk { --scan-ok-bg: #14653a; --scan-ok-fg: #fff; --scan-dup-bg: #7a4f00; --scan-dup-fg: #fff; --scan-err-bg: #b3261e; --scan-err-fg: #fff; }
[data-theme="dark"] .as-lnk { --scan-ok-bg: #4ade80; --scan-ok-fg: #052e16; --scan-dup-bg: #fbbf24; --scan-dup-fg: #2b1b00; --scan-err-bg: #f87171; --scan-err-fg: #3b0a07; }
.as-scan { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elev); min-width: 0; }
.as-scan__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.as-scan__bar .btn, .as-scan__type .btn { min-height: 48px; padding: 0 18px; }
.as-scan__video { display: block; width: 100%; max-height: 40vh; object-fit: cover; border-radius: 12px; background: #000; }
.as-scan__result { display: flex; align-items: center; gap: 12px; margin: 0; min-height: 96px; padding: 12px 16px; border-radius: 14px; font-size: 1.5rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; border: 2px solid var(--ink); background: var(--bg-elev); color: var(--ink); }
.as-scan__result[data-state="ok"] { background: var(--scan-ok-bg); color: var(--scan-ok-fg); border-color: var(--scan-ok-bg); }
.as-scan__result[data-state="dup"] { background: var(--scan-dup-bg); color: var(--scan-dup-fg); border-color: var(--scan-dup-bg); }
.as-scan__result[data-state="err"] { background: var(--scan-err-bg); color: var(--scan-err-fg); border-color: var(--scan-err-bg); }
.as-scan__mark { flex: none; font-size: 2.25rem; line-height: 1; min-width: 2.25rem; text-align: center; }
.as-scan__type { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.as-scan__type .as-field { flex: 1 1 12rem; }
.as-scan__pick { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.as-scan__pick .btn { width: 100%; min-height: 48px; text-align: left; }
.view-assembly-checkin .as-scan :is(button, input):focus-visible { outline: 3px solid var(--focus, #0052cc); outline-offset: 3px; }
/* Registrierung (Stufe 3): öffentliche Seite (.as-reg, Basis .as-lnk) und Teilpanel der Leitung (.as-regp) */
.as-reg__fields { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.as-reg__form { display: flex; flex-direction: column; gap: 14px; }
.as-reg__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.as-reg__err { margin: 0; color: var(--as-danger); font-weight: 600; font-size: 0.9rem; }
.as-reg__err[hidden] { display: none; }
.as-reg__consent { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; cursor: pointer; }
.as-reg__consent input { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.as-reg__privacy { display: inline-block; margin-top: 4px; min-height: 44px; line-height: 44px; }
.as-reg input[aria-invalid="true"] { border-color: var(--as-danger); border-width: 2px; }
.as-reg :is(button, input, a, textarea):focus-visible { outline: 3px solid var(--focus, #0052cc); outline-offset: 3px; }
.as-regp textarea, .as-regp input[type="datetime-local"] { width: 100%; max-width: 100%; box-sizing: border-box; font: inherit; }
.as-regp input[type="datetime-local"] { min-height: 44px; }
.as-regp form { display: flex; flex-direction: column; gap: 12px; }
.as-regp__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.as-regp__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.as-regp__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 14rem; overflow-wrap: anywhere; }
.as-regp__chips { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.as-regp__btns { margin-top: 0; }
.as-regp__link { margin-top: 16px; }
.as-regp .as-lnk__chip--warn { color: #b3261e; }
[data-theme="dark"] .as-regp .as-lnk__chip--warn { color: #f87171; }
