@charset "utf-8";
/* TrainExam: Stil „Amtlich“ mit Inter. Nüchtern, eckig, Dunkelblau auf Weiß. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
  --base: 15px;
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #1A2233;
  --navy: #12284C;
  --navy-dark: #0A1830;
  --muted: #4B5565;
  --line: #C9CED8;
  --line-soft: #DDE1E8;
  --tint: #E3E8F1;
  --good: #1E6B3A;
  --good-bg: #E2F2E8;
  --warn: #7A4E00;
  --warn-bg: #FFF4DB;
  --crit: #9B1C1C;
  --crit-bg: #FBEDED;
  --radius: 3px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Schriftgröße und Kontrast für den Prüfling, umschaltbar in der Kopfzeile der Prüfung */
html[data-font='large'] { --base: 18px; }
html[data-font='xlarge'] { --base: 21px; }
html[data-font='large'] .question-text, html[data-font='xlarge'] .question-text { font-size: 1.5em; }
html[data-contrast='high'] { --bg: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --navy: #000000; --navy-dark: #000000; --muted: #1A1A1A; --line: #000000; --line-soft: #333333; --tint: #E8E8E8; --good: #004D1A; --good-bg: #D9F2E0; --warn: #4D3100; --warn-bg: #FFF0C2; --crit: #7A0000; --crit-bg: #FFE0E0; }
html[data-contrast='high'] .answer[aria-pressed='true'] { outline: 3px solid #000; outline-offset: -3px; }
html[data-contrast='high'] .seenbar.on { background: #004D1A; }
.a11ybar { gap: 6px; }
.btn.a11y { min-height: 36px; padding: 0 10px; font-size: 14px; }
.btn.a11y[aria-pressed='true'] { background: var(--navy); color: #fff; }
.companylogo { max-height: 40px; max-width: 160px; width: auto; height: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { min-height: 96px; padding: 6px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.cal-day.other { background: var(--bg); color: var(--muted); }
.cal-day.today { border-color: var(--navy); border-width: 2px; }
.cal-day > .num { font-size: 13px; font-weight: 600; }
.cal-item { display: block; padding: 3px 6px; border-radius: var(--radius); background: var(--tint); color: var(--navy); font-size: 12.5px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.released { background: var(--good-bg); color: var(--good); }
.cal-item.finished { background: #ECEEF2; color: var(--muted); }
@media (max-width: 760px) { .cal { grid-template-columns: repeat(1, minmax(0, 1fr)); } .cal-head { display: none; } .cal-day.other:empty, .cal-day.other.nothing { display: none; } .cal-day { min-height: 0; } }
.codeblock { margin: 0; padding: 12px 14px; background: #1A2233; color: #E8ECF3; border-radius: var(--radius); font-size: 13.5px; overflow-x: auto; white-space: pre; }
.apikey { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; word-break: break-all; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--navy); text-wrap: balance; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
.boot { padding: 48px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.key { font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
[hidden] { display: none !important; }

/* Kopfzeile */
.top {
  background: var(--surface);
  border-top: 6px solid var(--brand, var(--navy));
  border-bottom: 1px solid var(--line);
  padding: 12px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between;
}
/* Menü C: Zeile 1 dunkelblau mit Logo, Bereichen und drei Symbolen; Zeile 2 weiß mit den Reitern des Bereichs. Container wie .wrap. */
.top.menu { background: var(--navy); color: #fff; border-top: 0; border-bottom: 0; padding-top: 0; padding-bottom: 0; min-height: 60px; flex-wrap: nowrap; justify-content: flex-start; gap: 0 28px; }
.top.menu.slim { justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-top: 8px; padding-bottom: 8px; }
.top.menu .brand { color: #fff; font-size: 20px; min-height: 44px; flex: 0 0 auto; }
.top.menu .muted { color: #C9D3E4; }
.top.menu a:focus-visible, .top.menu button:focus-visible { outline: 3px solid #FFD25C; outline-offset: 2px; }
.areas { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.areas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.areas a:hover { background: rgba(255, 255, 255, 0.14); }
.areas a[aria-current='page'] { background: #fff; color: var(--navy); }
.topicons { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; margin-left: auto; }
.iconbtn { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); cursor: pointer; text-decoration: none; }
.iconbtn:hover, .iconbtn[aria-expanded='true'] { background: rgba(255, 255, 255, 0.14); }
.iconbtn .count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #FFD25C; color: #3A2A00; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.iconbtn .initials { width: 34px; height: 34px; border-radius: 17px; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.pop { position: relative; }
.popmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 260px; max-width: calc(100vw - 24px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(10, 24, 48, 0.18); padding: 6px; display: flex; flex-direction: column; }
.popmenu[hidden] { display: none; }
.popwho { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.popmenu [role='menuitem'] { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-weight: 500; color: var(--navy); text-decoration: none; text-align: left; border-radius: var(--radius); cursor: pointer; }
.popmenu [role='menuitem']:hover { background: var(--tint); }
.top.menu .popmenu [role='menuitem']:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; background: var(--tint); }
.tabsbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))); }
.tabsin { display: flex; align-items: center; gap: 0 16px; min-height: 52px; }
/* Reiter scrollen auf schmalen Fenstern waagerecht; Schatten an den Rändern zeigen, dass es weitergeht. */
.subtabs {
  display: flex; align-items: stretch; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none;
  background:
    linear-gradient(to right, var(--surface) 40%, rgba(255, 255, 255, 0)) left center / 36px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 40%, rgba(255, 255, 255, 0)) right center / 36px 100% no-repeat local,
    linear-gradient(to right, rgba(18, 40, 76, 0.22), rgba(18, 40, 76, 0)) left center / 14px 100% no-repeat scroll,
    linear-gradient(to left, rgba(18, 40, 76, 0.22), rgba(18, 40, 76, 0)) right center / 14px 100% no-repeat scroll;
}
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; color: #3D4A57; font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; }
.subtabs a:first-child { margin-left: -14px; }
.subtabs a:hover { color: var(--navy); box-shadow: inset 0 -3px 0 var(--line); }
.subtabs a[aria-current='page'] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--navy); }
.subtabs a:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.tabaction { flex: 0 0 auto; min-height: 44px; }
@media (max-width: 860px) {
  .top.menu { flex-wrap: wrap; padding-top: 4px; }
  .areas { order: 3; flex: 1 0 100%; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
  .areas::-webkit-scrollbar { display: none; }
  .subtabs { flex: 1 0 100%; }
  .subtabs a:first-child { margin-left: 0; }
  .tabsin { flex-wrap: wrap; }
  .tabaction { margin: 0 0 8px; }
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', Inter, system-ui, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1; color: #14254F; text-decoration: none; }
.brand span span { font-weight: 500; }
.brand svg { flex: none; }
.badge { padding: 1px 9px; border: 1px solid var(--navy); border-radius: 2px; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.badge.solid { background: var(--navy); color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 4px; align-items: center; }
.nav a, .nav button.linkish {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius);
  color: var(--navy); text-decoration: none; font-weight: 500; background: none; border: none; font: inherit; cursor: pointer;
}
.nav a:hover, .nav button.linkish:hover { background: var(--tint); }
.nav a[aria-current='page'] { background: var(--navy); color: #fff; font-weight: 600; }
.who { color: var(--muted); font-size: 14px; padding: 0 8px; }

/* Support-Zugang und Ankündigung */
.supportbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding: 10px max(16px, 3vw); background: #7A4E00; color: #fff; font-weight: 600; font-size: 14.5px; text-align: center; }
.announce { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--page) - 2 * var(--gutter)); margin: 20px auto -8px; padding: 14px 18px; background: var(--warn-bg); border-left: 6px solid #C98A1B; border-radius: var(--radius); color: #5C3C00; }
.announce .muted { color: #7A4E00; }

/* Layout */
/* Ein Inhaltscontainer für alle Seiten: gleiche Breite und gleiche Seitenränder, von der Anmeldung bis zum Prüfungsfenster.
   Formulare und Texte dürfen darin in Spalten stehen (.split, .textcols); der Container selbst wird nie schmaler. */
:root { --page: 1240px; --gutter: max(16px, 3vw); }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 24px var(--gutter) 48px; display: flex; flex-direction: column; gap: 20px; }
/* Formular links, Hinweise rechts; auf schmalen Fenstern untereinander. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split > * { min-width: 0; }
/* Karten in gleichmäßigen Spalten über die volle Breite. */
.cardgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cardgrid > .wide { grid-column: 1 / -1; }
/* Lange Texte: zwei Spalten, damit die Zeilen lesbar bleiben. */
.textcols { columns: 2; column-gap: 48px; }
.textcols > * { break-inside: avoid; }
.textcols h2, .textcols h3 { break-after: avoid; }
@media (max-width: 860px) { .split, .cardgrid { grid-template-columns: minmax(0, 1fr); } .textcols { columns: 1; } }
/* Rechtstexte (Datenschutz): Inhaltsverzeichnis links, mitlaufend; Text rechts in einer Spalte über die restliche Breite. */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-toc { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.legal-toc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-toc a { color: var(--navy); text-decoration: none; line-height: 1.35; }
.legal-toc a:hover, .legal-toc a:focus-visible { text-decoration: underline; }
.legal-body { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 28px 36px 12px; display: flex; flex-direction: column; }
.legal-body p, .legal-body li { line-height: 1.65; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.legal-section { padding: 22px 0 10px; border-top: 1px solid var(--line-soft); scroll-margin-top: 16px; }
.legal-section h2 { margin: 0 0 12px; font-size: 1.35rem; color: var(--navy); }
.legal-section h3 { margin: 16px 0 6px; font-size: 1.05rem; color: var(--ink); }
.legal-summary { background: var(--tint); border-radius: 10px; padding: 18px 22px 8px; margin-bottom: 22px; }
.legal-summary h2 { margin: 0 0 10px; font-size: 1.1rem; color: var(--navy); }
@media (max-width: 860px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 16px; } .legal-toc { position: static; } .legal-body { padding: 20px 18px 6px; } }
.row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { align-items: flex-end; }
.row.top-align { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.stack.loose { gap: 20px; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .main { flex: 999 1 520px; min-width: 0; }
.cols > .side { flex: 1 1 300px; min-width: 0; }
.cols > .half { flex: 1 1 420px; min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.card.flat { padding: 0; }
.card > h2 + *, .card > h3 + * { margin-top: 0; }
.note { padding: 12px 14px; border-radius: var(--radius); background: var(--tint); }
.note.good { background: var(--good-bg); color: #14522F; }
.note.warn { background: var(--warn-bg); color: #5C3C00; }
.note.crit { background: var(--crit-bg); color: var(--crit); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* Bedienelemente */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--navy); background: var(--surface); color: var(--navy);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--tint); color: var(--navy); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-dark); color: #fff; }
.btn.danger { border-color: var(--crit); color: var(--crit); }
.btn.danger:hover { background: var(--crit-bg); }
.btn.danger.primary { background: var(--crit); color: #fff; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn[disabled], .btn[aria-disabled='true'] { border-color: #8B93A3; background: #E9EBEF; color: #4B5565; cursor: not-allowed; }
.btn.on { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid #4C78C9; outline-offset: 2px; }

label.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
label.field > span.hint { font-weight: 400; color: var(--muted); }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='date'], input[type='time'], input[type='search'], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #6B7486; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { resize: vertical; min-height: 88px; }
input[type='checkbox'], input[type='radio'] { width: 20px; height: 20px; accent-color: var(--navy); flex: none; margin: 2px 0 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.error { color: var(--crit); font-weight: 600; }

/* Tabellen */
/* Bedienfeld der Aufsicht */
.deck { container-type: inline-size; display: flex; flex-direction: column; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; border-radius: var(--radius); border-left: 6px solid #C98A1B; box-shadow: 0 10px 28px rgba(10, 24, 48, 0.22); }
.deck.is-ready { border-left-color: #35C06F; }
.deck-top { display: grid; grid-template-columns: 208px minmax(0, 1fr) minmax(240px, 300px); gap: 28px; align-items: center; padding: 22px 26px; }
.deck-cam .video { width: 100%; aspect-ratio: 4 / 3; background: #0A1220; border: 1px solid rgba(255, 255, 255, 0.28); }
.deck-cam .video .tag { background: rgba(10, 18, 32, 0.85); }
.deck-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.deck-main h2 { margin: 0; color: #fff; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; }
.deck-main p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 56ch; }
.deck-state { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #F2C56B; }
.deck.is-ready .deck-state { color: #7FE3A8; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.deck.is-ready .live-dot { animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 227, 168, 0.65); } 100% { box-shadow: 0 0 0 12px rgba(127, 227, 168, 0); } }
.deck-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.deck-stat { display: flex; flex-direction: column; min-width: 92px; padding: 7px 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); }
.deck-stat b { font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.deck-stat span { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }
.deck-stat.on { background: rgba(53, 192, 111, 0.2); border-color: rgba(127, 227, 168, 0.6); }
.deck-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.deck-hint { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.deck-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 26px; background: rgba(0, 0, 0, 0.2); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.deck :focus-visible { outline-color: #9CC0FF; }
.switch { display: inline-flex; align-items: center; gap: 14px; padding: 4px 0; background: none; border: none; color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; text-align: left; }
.switch .track { position: relative; flex: none; width: 64px; height: 34px; border-radius: 17px; background: rgba(255, 255, 255, 0.16); border: 1.5px solid rgba(255, 255, 255, 0.6); transition: background 0.15s, border-color 0.15s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch[aria-checked='true'] .track { background: #2FA862; border-color: #2FA862; }
.switch[aria-checked='true'] .track::after { transform: translateX(30px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn.go { background: #fff; color: var(--navy); border-color: #fff; white-space: normal; }
.btn.go:hover { background: #E3E8F1; color: var(--navy); }
.deck.is-ready .btn.go:not([disabled]) { background: #35C06F; border-color: #35C06F; color: #06210F; }
.deck.is-ready .btn.go:not([disabled]):hover { background: #4AD083; }
.btn.go[disabled] { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.7); }
@container (max-width: 900px) {
  .deck-top { grid-template-columns: 168px minmax(0, 1fr); }
  .deck-actions { grid-column: 1 / -1; }
}
@container (max-width: 560px) {
  .deck-top { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
  .deck-cam .video { max-width: 220px; }
  .deck-foot { padding: 12px 18px; }
  .deck-main h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .deck.is-ready .live-dot { animation: none; } .switch .track, .switch .track::after { transition: none; } }
/* Ergebnis: Kennzahlen, Liste der Prüflinge, aufklappbare Antworten */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { font-size: 24px; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat.good b { color: var(--good); }
.stat.warn b { color: var(--warn); }
.stat.crit b { color: var(--crit); }
.bar.tall, .bar.tall > span { height: 12px; }
.bar.tall .mark { height: 22px; top: -5px; }
.rlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); container-type: inline-size; }
.ritem { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(180px, 1fr) 176px 212px; gap: 8px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ritem-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.ritem-name strong { font-size: 16px; }
.rnotes { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.rnote { font-size: 13.5px; color: var(--muted); }
.rnote.crit { color: var(--crit); font-weight: 600; }
.rnote.warn { color: var(--warn); font-weight: 600; }
.ritem-score { display: flex; flex-direction: column; gap: 6px; }
.ritem-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@container (max-width: 760px) {
  .ritem { grid-template-columns: minmax(0, 1fr) auto; }
  .ritem-score, .ritem-actions { grid-column: 1 / -1; }
  .ritem-actions { justify-content: flex-start; }
}
.trow { display: grid; grid-template-columns: minmax(110px, 220px) minmax(80px, 1fr) minmax(120px, auto); gap: 6px 18px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.trow > span { text-align: right; }
.qlist { border-top: 2px solid var(--navy); }
.qrow { border-bottom: 1px solid var(--line); }
.qrow > summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; gap: 4px 12px; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; }
.qrow > summary::-webkit-details-marker, .fold > summary::-webkit-details-marker { display: none; }
.qrow > summary::after, .fold > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); justify-self: center; margin-top: -4px; }
.qrow[open] > summary::after, .fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.qrow > summary:hover .qtext { text-decoration: underline; }
.qicon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--radius); color: #fff; font-weight: 700; font-size: 15px; line-height: 1; }
.qicon.good { background: var(--good); }
.qicon.warn { background: var(--warn); }
.qicon.crit { background: var(--crit); }
.qicon.idle { background: var(--muted); }
.qtitle { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qtext { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow[open] .qtext { white-space: normal; }
.qpts { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.qbody { display: flex; flex-direction: column; gap: 10px; padding: 2px 26px 16px 40px; }
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 16px; }
.qa > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qa .box { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; }
.qa .box.good { background: var(--good-bg); border-color: transparent; color: #14522F; }
.qa .box.crit { background: var(--crit-bg); border-color: transparent; color: var(--crit); }
.optlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.opt.correct { background: var(--good-bg); border-color: transparent; }
.opt.chosen:not(.correct) { background: var(--crit-bg); border-color: transparent; }
.optmark { width: 16px; text-align: center; color: var(--muted); flex: none; }
.opttag { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.opttag.good { color: var(--good); }
.opttag.crit { color: var(--crit); }
.fold > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) 14px; gap: 12px; align-items: baseline; cursor: pointer; list-style: none; }
.fold > summary h2 { margin: 0; }
.fold[open] > summary { margin-bottom: 12px; }
@media (max-width: 640px) {
  .qbody { padding-left: 0; padding-right: 0; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; }
  .trow .bar { grid-column: 1 / -1; grid-row: 2; }
}
/* Teilnehmerliste: je Person ein Block statt einer breiten Tabelle, damit nichts seitlich rollt. */
.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); container-type: inline-size; }
.pitem { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 10px; border-bottom: 1px solid var(--line); transition: background 0.12s; }
.pitem:hover { background: #F8F9FB; box-shadow: -12px 0 0 #F8F9FB, 12px 0 0 #F8F9FB; }
.pitem-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) 226px 196px; align-items: center; gap: 8px 14px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); background: var(--tint); color: var(--navy); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.avatar.good { background: var(--good); color: #fff; }
.avatar.info { background: var(--navy); color: #fff; }
.avatar.crit { background: var(--crit); color: #fff; }
.pitem-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pitem-name strong { font-size: 16px; }
.pitem-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pitem-status .chip { white-space: normal; }
.pitem-actions { display: flex; flex-wrap: wrap; gap: 2px; padding-left: 46px; }
.keychip { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--radius); background: var(--tint); color: var(--navy); font: inherit; font-size: 16px; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.keychip:hover { border-color: var(--navy); background: #D5DDEA; }
.keychip svg { flex: none; opacity: 0.75; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--radius); font-size: 13px; font-weight: 600; white-space: nowrap; background: #ECEEF2; color: var(--muted); }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.info { background: var(--tint); color: var(--navy); }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.crit { background: var(--crit-bg); color: var(--crit); }
.btn.quiet { gap: 7px; border-color: transparent; background: transparent; color: var(--navy); padding: 0 10px; min-height: 34px; }
.btn.quiet:hover { background: var(--tint); border-color: transparent; color: var(--navy); }
.btn.quiet.danger { color: var(--crit); }
.btn.quiet.danger:hover { background: var(--crit-bg); color: var(--crit); }
.btn svg { flex: none; }
.countbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--crit); color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.countbadge.calm { background: var(--tint); color: var(--navy); }
@container (max-width: 680px) {
  .pitem-head { display: flex; flex-wrap: wrap; }
  .pitem-name { flex: 1 1 calc(100% - 60px); }
  .pitem-head .keychip { width: auto; }
  .pitem-status { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
  .pitem-actions { padding-left: 0; }
}
/* Einstellungen einer Prüfung: sichtbar im Kopf und im Dialog */
.setting { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
button.setting { cursor: pointer; }
button.setting:hover { border-color: var(--navy); }
.setting.on { border-color: var(--crit); background: var(--crit-bg); color: var(--crit); }
.setting-track { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: #B5BBC7; transition: background 0.15s; }
.setting-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.setting.on .setting-track { background: var(--crit); }
.setting.on .setting-track::after { transform: translateX(14px); }
.setting.calm.on { border-color: var(--navy); background: var(--tint); color: var(--navy); }
.setting.calm.on .setting-track { background: var(--navy); }
.optgroup { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.optgroup legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.optbox { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.optbox > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.optbox input { margin-top: 3px; flex: none; }
.optbox:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.optbox.hazardbox { border-color: var(--crit); }
.optbox.hazardbox:has(input:checked) { border-color: var(--crit); background: var(--crit-bg); }
/* Fragenkatalog */
.qgroup-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 6px; border-bottom: 2px solid var(--navy); }
.qcat { list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.qcat-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 16px; gap: 6px 16px; align-items: center; padding: 11px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; transition: background 0.12s; }
.qcat-row:hover { background: #F8F9FB; }
.qcat-row:hover .qcat-text { text-decoration: underline; }
.qtype { width: 46px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); background: var(--tint); color: var(--navy); font-size: 13px; font-weight: 700; white-space: nowrap; }
.qcat-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qcat-text { font-weight: 600; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qcat-side { display: flex; align-items: center; gap: 14px; }
.qcat-pts { min-width: 76px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qcat-status { min-width: 118px; }
.qcat-go { color: var(--muted); display: grid; }
@container (max-width: 720px) {
  .qcat-row { grid-template-columns: 46px minmax(0, 1fr); }
  .qcat-side { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .qcat-pts, .qcat-status { min-width: 0; }
  .qcat-go { display: none; }
}
.qline { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.qline-text { font-weight: 600; }
.qline .qcat-pts { min-width: 0; }
.rule { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--tint); }
.rule b { min-width: 34px; height: 34px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); font-variant-numeric: tabular-nums; }
/* Zufallsregel im Bearbeiten: Kopf mit Kategorie, darunter Anzahl und Schwierigkeitsmix mit Beschriftung über den Feldern. */
.rule.rule-edit { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.rule-head { display: flex; align-items: center; gap: 10px; }
.rule-head strong { font-size: 1.05rem; }
.rule-head .btn { margin-left: auto; }
.rule-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; }
.rule-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rule-field input[type='number'] { width: 84px; min-height: 40px; padding: 6px 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.rule-hint { font-weight: 400; font-size: 12.5px; }
.rule-mix { border: 0; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line-soft); min-width: 0; }
.rule-mix legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rule-mix-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; clear: both; }
.rule-mix-fields .rule-field > span:first-child { font-weight: 500; color: var(--ink); }
.rule-rest { align-self: center; margin-left: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .rule-mix { padding-left: 0; border-left: 0; } .rule-rest { margin-left: 0; } }
.hints { margin: 4px 0 0; padding: 12px 14px 12px 32px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); border-radius: var(--radius); font-size: 13.5px; color: var(--muted); }
.hints li.crit { color: var(--crit); }
/* Antworten der Fragetypen Zuordnung, Reihenfolge und Lückentext */
.matchgrid { display: flex; flex-direction: column; gap: 8px; }
.matchrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr); gap: 8px 16px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.matchleft { font-weight: 600; overflow-wrap: anywhere; }
.orderlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.orderlist li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.orderlist li > .num { width: 26px; color: var(--navy); }
.cloze { margin: 0; font-size: 18px; line-height: 2.5; }
.cloze input { display: inline-block; width: 170px !important; max-width: 100%; margin: 0 6px; padding: 4px 10px; font-size: 17px; vertical-align: baseline; }
.cloze.shown { font-size: 15px; line-height: 2.2; }
.gap { display: inline-block; margin: 0 4px; padding: 0 8px; border-radius: var(--radius); font-weight: 600; line-height: 1.7; }
.gap.good { background: var(--good-bg); color: var(--good); }
.gap.crit { background: var(--crit-bg); color: var(--crit); }
@media (max-width: 640px) { .matchrow { grid-template-columns: minmax(0, 1fr); } }
.entry-form { justify-content: center; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 8px 16px 28px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
.tile-status { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(26, 34, 51, 0.72); }
.tile-status .chip { font-size: 14px; padding: 6px 12px; }
.tile.talking { border-color: #35C06F; box-shadow: 0 0 0 3px rgba(53, 192, 111, 0.35); }
.talkbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: var(--radius); background: var(--good); color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(10, 24, 48, 0.3); }
/* Geführter Systemcheck des Prüflings */
.syscheck { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.sysnav { list-style: none; margin: 0; padding: 16px 18px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sysnav li { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 18px; color: var(--muted); font-weight: 600; }
.sysnav li:last-child { padding-bottom: 0; }
.sysnav li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.sysnum { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 14px; font-variant-numeric: tabular-nums; }
.sysnav li.now { color: var(--navy); }
.sysnav li.now .sysnum { border-color: var(--navy); background: var(--navy); color: #fff; }
.sysnav li.done { color: var(--good); }
.sysnav li.done .sysnum { border-color: var(--good); background: var(--good); color: #fff; }
.sysnav li.done::before { background: var(--good); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius); background: var(--bg); }
.checklist li.good { background: var(--good-bg); color: #14522F; }
.checklist li.warn { background: var(--warn-bg); color: #5C3C00; }
.checklist li.crit { background: var(--crit-bg); color: var(--crit); }
.checklist li > span:nth-child(2) { flex: 1; }
.checkmark { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--muted); color: #fff; font-weight: 700; font-size: 14px; }
.checklist li.good .checkmark { background: var(--good); }
.checklist li.warn .checkmark { background: var(--warn); }
.checklist li.crit .checkmark { background: var(--crit); }
.meter { height: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.meter > span { display: block; width: 0; height: 100%; background: var(--good); transition: width 0.08s linear; }
@media (max-width: 820px) {
  .syscheck { grid-template-columns: minmax(0, 1fr); }
  .sysnav { flex-direction: row; overflow-x: auto; gap: 16px; padding: 12px 14px; }
  .sysnav li { padding-bottom: 0; white-space: nowrap; }
  .sysnav li:not(:last-child)::before { display: none; }
}
.talkpop { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); border-left: 6px solid #35C06F; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; box-shadow: 0 14px 36px rgba(10, 24, 48, 0.45); }
.talkpop strong { font-size: 17px; }
.talkpop .video { width: 100%; aspect-ratio: 4 / 3; background: #0A1220; border: 1px solid rgba(255, 255, 255, 0.28); }
.talkpop span { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }
.seenbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; background: var(--tint); color: var(--navy); font-weight: 600; font-size: 14.5px; text-align: center; }
.seenbar .live-dot { flex: none; background: var(--muted); }
.seenbar.on { background: var(--good); color: #fff; }
.seenbar.on .live-dot { background: #fff; animation: live-pulse 1.8s ease-out infinite; }
.video.camcheck { width: 100%; aspect-ratio: 4 / 3; max-height: 420px; border: 1px solid var(--line); align-items: center; }
.video.camcheck > svg { margin: 0 auto; }
.video.camcheck video { object-fit: contain; }
/* Alarm: Vollbild oder Prüfungsfenster verlassen. Rot blinkend, bis der Prüfling zurück ist oder der Prüfer quittiert. */
.tile.alarm { border-color: var(--crit); animation: tile-alarm 0.8s steps(2, start) infinite; }
@keyframes tile-alarm { 50% { border-color: #E53935; box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.55); background: var(--crit-bg); } }
.alarmtag { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: var(--radius); background: var(--crit); color: #fff; font-weight: 700; font-size: 13.5px; text-align: center; z-index: 3; }
.alarmtag[hidden] { display: none; }
.alarmhint { color: #FFD6D6; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .tile.alarm { animation: none; box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.55); } }
.tile.calling { border-color: #E0A100; animation: tile-blink 1s steps(2, start) infinite; }
@keyframes tile-blink { 50% { border-color: var(--crit); box-shadow: 0 0 0 5px rgba(224, 161, 0, 0.45); } }
.calltag { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 4px 10px; border-radius: var(--radius); background: #E0A100; color: #1A2233; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; animation: tile-blink 1s steps(2, start) infinite; }
@media (prefers-reduced-motion: reduce) { .tile.calling, .calltag { animation: none; box-shadow: 0 0 0 5px rgba(224, 161, 0, 0.45); } }
/* Vorfälle in der Aufsicht */
.incident { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-left: 4px solid var(--warn); border-radius: var(--radius); background: var(--warn-bg); }
.incident.crit { border-left-color: var(--crit); background: var(--crit-bg); }
.incident.info { border-left-color: var(--navy); background: var(--tint); }
.incident .btn { margin-top: 4px; gap: 7px; }
.incident-type { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn); }
.incident.crit .incident-type { color: var(--crit); }
.incident.info .incident-type { color: var(--navy); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.timeline li > .num { font-weight: 600; color: var(--muted); }
.timeline li > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.timeline li > div span { color: var(--muted); }
.timeline li.mark > div span { color: var(--warn); font-weight: 600; }
.timeline.wide li { grid-template-columns: 150px minmax(0, 1fr); }
/* Startseite für Prüflinge */
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 36px rgba(10, 24, 48, 0.12); overflow: hidden; }
.entry-form { display: flex; flex-direction: column; gap: 22px; padding: 44px 48px; }
.entry-form h1 { font-size: 34px; letter-spacing: -0.015em; }
.entry-form .keyinput { height: 72px !important; font-size: clamp(19px, 5.4vw, 30px) !important; text-align: center; border-width: 2px; }
.entry-form .keyinput:focus { border-color: var(--navy); }
.keycount { display: flex; align-items: center; gap: 6px; margin: 0; min-height: 22px; color: var(--muted); }
.keycount.done { color: var(--good); font-weight: 600; }
.entry-info { display: flex; flex-direction: column; gap: 18px; padding: 44px 48px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.entry-info h2 { color: #fff; font-size: 24px; }
.entry-info h3 { color: #fff; margin-top: 6px; }
.entry-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #9FC2FF; }
.entry-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.entry-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; }
.entry-steps li:last-child { padding-bottom: 0; }
.entry-steps li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: rgba(255, 255, 255, 0.28); }
.entry-num { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, 0.75); border-radius: 50%; font-weight: 700; }
.entry-steps strong { display: block; font-size: 16px; }
.entry-steps li > div span { color: rgba(255, 255, 255, 0.82); }
.entry-needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.entry-needs li { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); font-size: 14px; }
.entry-needs svg { color: #9FC2FF; }
@media (max-width: 860px) {
  .entry { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
  .entry-form, .entry-info { padding: 28px 22px; }
  .entry-form h1 { font-size: 28px; }
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--navy); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.right, th.right { text-align: right; }
tr.hint-row td { background: var(--warn-bg); }
tr.crit-row td { background: var(--crit-bg); }

.pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.pill::before { content: ''; width: 10px; height: 10px; background: currentColor; flex: none; }
.pill.good { color: var(--good); }
.pill.warn { color: var(--warn); }
.pill.crit { color: var(--crit); }
.pill.info { color: var(--navy); }
.pill.idle { color: var(--muted); }
.hazard { display: inline-flex; align-items: center; border: 1.5px solid var(--crit); color: var(--crit); background: #fff; font-weight: 600; font-size: 12px; line-height: 1.5; letter-spacing: 0.04em; text-transform: uppercase; padding: 0 7px; white-space: nowrap; vertical-align: middle; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--navy); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; font-weight: 600; color: var(--navy); border-radius: var(--radius) var(--radius) 0 0; }
.tabs a:hover { background: var(--tint); }
.tabs a[aria-current='page'] { background: var(--navy); color: #fff; }

.bar { height: 8px; background: var(--line-soft); position: relative; }
.bar > span { display: block; height: 8px; background: var(--navy); }
.bar.low > span { background: var(--warn); }
.bar .mark { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); }

dl.meta { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; font-weight: 600; }

.timer { border: 1px solid var(--navy); border-radius: var(--radius); padding: 5px 14px; display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.timer .value { font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.timer.low { border-color: var(--crit); }
.timer.low .value { color: var(--crit); }

/* Meldungen */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); font-weight: 500; }
.toast.crit { background: var(--crit); }
.toast.good { background: var(--good); }

dialog { border: 1px solid var(--navy); border-radius: var(--radius); padding: 24px; width: min(520px, calc(100vw - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(18, 40, 76, 0.45); }

/* Video */
.video { position: relative; background: #1A2233; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1A2233; }
.video svg { opacity: 0.9; }
.video .tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; background: #1A2233; color: #fff; font-size: 12.5px; z-index: 2; }
.video.mirror video { transform: scaleX(-1); }

/* Aufsicht */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tile { min-width: 0; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.tile.warn { border-color: var(--warn); }
.tile.crit { border-color: var(--crit); }
.tile.good { border-color: var(--good); }
.tile .video { aspect-ratio: 16 / 9; height: auto; align-items: center; }
.tile .video > svg { margin: 0 auto; }
.tile .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.tile .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.event { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.event:first-child { border-top: none; padding-top: 0; }

/* Prüfung (Prüfling) */
.answers { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.answer {
  display: flex; align-items: center; gap: 14px; text-align: left; min-height: 56px; padding: 10px 14px;
  border: none; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; width: 100%;
}
.answer:hover { background: #F0F2F6; }
.answer[aria-pressed='true'] { background: var(--tint); font-weight: 600; }
.answer .mark { width: 20px; height: 20px; border: 1.5px solid var(--muted); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.answer .mark.round { border-radius: 10px; }
.answer[aria-pressed='true'] .mark { border-color: var(--navy); }
.answer[aria-pressed='true'] .mark::after { content: ''; width: 10px; height: 10px; background: var(--navy); border-radius: inherit; }
.answer .letter { font-weight: 600; width: 22px; flex: none; }
.qnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.qnav button { height: 44px; border: 1px solid #8B93A3; border-radius: 2px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.qnav button.done { background: #E1E5EC; }
.qnav button.marked { background: var(--warn-bg); border-color: var(--warn); color: #5C3C00; font-weight: 600; }
.qnav button.current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.question-text { font-size: 22px; font-weight: 600; line-height: 1.35; color: var(--ink); white-space: pre-wrap; }
/* Breite und Höhe bleiben frei, damit das Bild seine Proportionen behält; begrenzt wird nur die größte Ausdehnung. */
.question-image { align-self: flex-start; display: block; width: auto; height: auto; max-width: min(100%, 420px); max-height: 320px; object-fit: contain; border: 1px solid var(--line); background: #fff; padding: 8px; }
.imgzoom { position: relative; display: inline-block; flex: none; align-self: flex-start; max-width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.imgzoom-hint { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius); background: rgba(18, 40, 76, 0.92); color: #fff; font-size: 12.5px; font-weight: 600; }
.imgzoom:hover .question-image { border-color: var(--navy); }
.lightbox { width: 96vw; height: 94vh; max-width: none; max-height: none; padding: 0; border: none; background: #0A1220; color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(5, 10, 20, 0.8); }
.lightbox-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--navy-dark); font-weight: 600; }
.lightbox-bar .num { min-width: 54px; text-align: center; }
.lightbox-stage { flex: 1; min-height: 0; display: flex; overflow: auto; padding: 16px; }
.lightbox-stage img { margin: auto; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; cursor: zoom-in; }
.lightbox-stage img.zoomed { max-width: none; max-height: none; cursor: zoom-out; }
/* Ablauf eines Prüflings als Zeitstrahl */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 0 0 16px 26px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); }
.flow li.done::before { border-color: var(--navy); background: var(--navy); }
.flow li.crit::before { border-color: var(--crit); background: var(--crit); }
.flow li:not(:last-child)::after { content: ''; position: absolute; left: 8px; top: 21px; bottom: 1px; width: 2px; background: var(--line); }
.flow li span { font-size: 13.5px; color: var(--muted); }
.overlay { position: fixed; inset: 0; background: rgba(244, 245, 247, 0.97); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay .card { max-width: 560px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps li span { width: 24px; height: 24px; border: 1.5px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.steps li.done span { background: var(--good); border-color: var(--good); color: #fff; }
.steps li.now { color: var(--navy); font-weight: 600; }
.steps li.now span { background: var(--navy); border-color: var(--navy); color: #fff; }
.keyinput { height: 64px !important; font-size: 26px !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.bigresult { font-size: 56px; font-weight: 700; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.pre { white-space: pre-wrap; }
.optrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.thumb { max-width: 160px; max-height: 120px; border: 1px solid var(--line); background: #fff; padding: 4px; }

@media (max-width: 640px) {
  .card { padding: 16px; }
  h1 { font-size: 22px; }
  .question-text { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Mein Konto: Wiederherstellungscodes, Wartungsleiste */
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 17px; letter-spacing: 1px; }
.supportbar.maint { background: #9B1C1C; }
a.who { color: var(--muted); text-decoration: none; }
a.who:hover, a.who[aria-current='page'] { text-decoration: underline; }

/* Einrichtungs-Assistent und Posteingang */
.stepnum { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
article.unread { border-left: 5px solid #C98A1B; }

/* Plattform-Statistik: kleine Säulendiagramme, eine Reihe je Diagramm */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.chart { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.chart figcaption > span:first-child { flex: 1 1 100%; color: var(--muted); font-size: 14px; font-weight: 600; }
.chart figcaption strong { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-plot { position: relative; }
.chart-bars { display: flex; align-items: stretch; gap: 2px; height: 120px; border-bottom: 1px solid var(--line); }
.chart-slot { flex: 1 1 0; display: flex; align-items: flex-end; cursor: default; }
.chart-bar { width: 100%; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 0; }
.chart-slot:last-child .chart-bar { background: var(--navy-dark, var(--navy)); }
.chart-slot.on .chart-bar { opacity: 0.8; }
.chart-none { width: 100%; height: 2px; background: var(--line); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.chart-tip { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 8px; background: var(--ink); color: #fff; font-size: 13px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 5; }

/* Hilfsmittel im Prüfungsfenster */
dialog.toolwin { padding: 16px; display: grid; gap: 12px; }
.calc-display { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 26px; text-align: right; font-variant-numeric: tabular-nums; overflow-x: auto; background: var(--surface); }
.calc-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc-pad .btn { font-size: 18px; padding: 10px 0; justify-content: center; }

/* Zweite Kamera in der Kachel des Prüfers */
.tile .video video.cam2 { position: absolute; top: auto; left: auto; right: 8px; bottom: 8px; width: 34%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); cursor: zoom-in; z-index: 3; background: #000; }
.tile .video video.cam2.big { width: calc(100% - 16px); cursor: zoom-out; }

/* Fällige Wiederholungen im Kalender */
.cal-item.due { border-left: 3px solid #C98A1B; background: var(--warn-bg); color: #5C3C00; }
.cal-item.due.overdue { border-left-color: var(--crit); background: var(--crit-bg); color: var(--crit); }

/* Hausfarbe: Vorschau und Leiste auf den Seiten der Prüflinge */
.swatch { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 8px; color: #fff; font-weight: 600; }
.brandbar { height: 6px; background: var(--brand, var(--navy)); }

/* Bildschirmfreigabe in der Kachel des Prüfers */
/* Bild-in-Bild: Bildschirm und Kamera in einem Bild. Eines ist groß, das andere klein in einer Ecke (tauschbar, verschiebbar). */
.tile .video video.screenview { object-fit: contain; background: #000; }
.tile .video video.pip-large { z-index: 1; cursor: zoom-in; }
.tile .video.zoomed video.pip-large { cursor: zoom-out; }
.tile .video video.pip-small { inset: auto; width: 30%; height: auto; aspect-ratio: 16 / 9; z-index: 4; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); cursor: pointer; touch-action: none; }
.tile .video.pip-tl video.pip-small { left: 8px; top: 8px; }
.tile .video.pip-tr video.pip-small { right: 8px; top: 8px; }
.tile .video.pip-bl video.pip-small { left: 8px; bottom: 8px; }
.tile .video.pip-br video.pip-small { right: 8px; bottom: 8px; }
.tile .video video.cam2.left { right: auto; left: 8px; }
/* Vergrößerte Ansicht: dieselbe Anordnung über fast dem ganzen Fenster. */
.tile .video.zoomed { position: fixed; inset: 4vh 4vw; width: 92vw; height: 92vh; aspect-ratio: auto; z-index: 50; border-radius: 8px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 100vmax rgba(10, 24, 48, 0.6); }
.tile .video.zoomed video.pip-large { object-fit: contain; background: #000; }
.tile .video.zoomed video.pip-small { width: 22%; }
.tile .video .calltag, .tile .video .alarmtag { z-index: 5; }
.pipclose { position: absolute; top: 10px; right: 10px; z-index: 6; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius); background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
.pipclose[hidden] { display: none; }

/* Paket 10 Block A: Während der Prüfung lässt sich Text außerhalb der Antwortfelder nicht markieren; gedruckt wird nichts. */
body.exam-guard { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.exam-guard textarea, body.exam-guard input, body.exam-guard [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
@media print { body.exam-guard > * { display: none !important; } body.exam-guard::after { content: 'Die Prüfung kann nicht gedruckt werden.'; display: block; padding: 40px; font: 16px sans-serif; } }
.netdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.netdot.good { background: #1E8E4E; }
.netdot.poor { background: #D19A00; }
.netdot.bad { background: #C62828; }

/* Paket 10 Block B: Hotspot-Markierungen und Medien */
.hsmark { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid #fff; background: #C62828; color: #fff; font: 600 13px/24px Inter, sans-serif; text-align: center; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.45); cursor: pointer; }
.hsmark:disabled { cursor: default; }
.hotspot img { -webkit-user-drag: none; }
.qmedia { max-width: 100%; border-radius: 10px; background: #111; }

/* Paket 10 Block C: Kennzahlen */
.barchart { width: 100%; max-width: 560px; height: auto; display: block; }
.barchart .grid { stroke: var(--line-soft); stroke-width: 1; }
.barchart .axis { stroke: var(--line); stroke-width: 1; }
.barchart .tick { fill: var(--muted); font-size: 11px; }
.barchart .value { fill: var(--ink); font-size: 12px; font-weight: 600; }
.barchart .mark { fill: var(--navy); }
.barchart .bar:hover .mark { fill: #2A4A7F; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tasklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tasklist li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg); color: inherit; text-decoration: none; }
.tasklist li a:hover { background: var(--tint); }
.tasklist .count { min-width: 34px; text-align: center; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--surface); border: 1px solid var(--line); }
.tasklist .crit .count { border-color: #C62828; color: #8E1B1B; }
.tasklist .warn .count { border-color: #B07A00; color: var(--warn); }

/* Paket 10 Block D: Aufsicht am Tablet. Zwei Kacheln nebeneinander, im Hochformat die Ereignisse darunter,
   Bedienelemente mindestens 44 Pixel groß, wenn mit dem Finger bedient wird. */
@media (max-width: 1180px) {
  .livedeck { flex-direction: column; }
  .livedeck > .main, .livedeck > .side { flex-basis: auto; width: 100%; max-width: none; }
  .livedeck .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .livedeck .tile { max-width: none; }
}
@media (max-width: 600px) { .livedeck .tiles { grid-template-columns: minmax(0, 1fr); } }
@media (pointer: coarse) {
  .btn, .btn.small, .setting, .tabs a, .tabs button { min-height: 44px; min-width: 44px; }
  .livedeck .btn, .tile .btn { padding-top: 10px; padding-bottom: 10px; }
  .livedeck .tile .actions { gap: 8px; }
  .livedeck .tile video { touch-action: manipulation; }
  .switch { min-height: 44px; }
  dialog .btn, dialog label.check { min-height: 44px; }
  dialog label.check { display: flex; align-items: center; gap: 10px; }
  dialog input[type="checkbox"] { width: 24px; height: 24px; }
}

/* Paket 11 Block D: Handbuch und Kontexthilfe */
.handbook h1 { margin-top: 0; }
.handbook h2 { margin-top: 18px; }
.handbook li { margin: 4px 0; }
.helpq { border-radius: 999px; min-width: 32px; justify-content: center; font-weight: 700; }
.tour-shade { position: fixed; inset: 0; background: rgba(10, 24, 48, 0.35); z-index: 900; }
.tour-lit { position: relative; z-index: 901; background: var(--surface); outline: 3px solid #E0A100; outline-offset: 3px; border-radius: 6px; }
.areas a.tour-lit, .iconbtn.tour-lit, .subtabs a.tour-lit { background: #fff; color: var(--navy); }
.tour-box { position: fixed; z-index: 902; width: min(320px, calc(100vw - 24px)); background: var(--surface); border-radius: 12px; padding: 14px 16px; box-shadow: 0 16px 36px rgba(15, 27, 61, 0.25); display: flex; flex-direction: column; gap: 8px; }

/* Bitte des Prüfers um die Bildschirmfreigabe: über Pausen- und Vollbild-Hinweisen. */
.overlay.reqbox { z-index: 60; background: rgba(18, 40, 76, 0.55); }
.overlay.reqbox .card { max-width: 620px; box-shadow: 0 16px 40px rgba(10, 24, 48, 0.35); }

/* --- Einlass des Prüflings als Schrittfolge: Leiste über die volle Breite, links Video und „Erledigt“, rechts nur der aktuelle Schritt. --- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gatebar { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gatebar li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; background: #F7F8FA; border: 1.5px solid var(--line-soft); color: var(--muted); font-weight: 600; font-size: 0.95em; }
.gatebar li.current { background: var(--surface); border-color: var(--navy); color: var(--navy); font-weight: 700; }
.gatebar li.done { background: var(--good-bg); border-color: var(--good-bg); color: var(--good); }
.gatebar .num { flex: 0 0 auto; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85em; font-weight: 700; }
.gatebar li.current .num { background: var(--navy); border-color: var(--navy); color: #fff; }
.gatebar li.done .num { background: var(--good); border-color: var(--good); color: #fff; }
.gatebar .txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.gatebar .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gatebar .who { font-size: 0.82em; font-weight: 500; }
.gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.gateleft { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gatevideo { position: relative; aspect-ratio: 16 / 10; background: #222B3A; overflow: hidden; }
.gatevideo > .video { position: absolute; inset: 0; }
.gatevideo .self { position: absolute; right: 12px; bottom: 12px; width: 28%; aspect-ratio: 4 / 3; border: 2px solid #fff; overflow: hidden; z-index: 3; }
.gatevideo .self .video { position: absolute; inset: 0; }
.gatedone { background: var(--surface); border: 1px solid var(--line-soft); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.gatedone .row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.gatedone .row svg { color: var(--good); flex: 0 0 auto; }
.gatedone .at { margin-left: auto; color: var(--muted); font-size: 0.9em; white-space: nowrap; }
.gatecard { background: var(--surface); border: 1px solid var(--line-soft); border-top: 4px solid var(--navy); padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gatecard h1 { margin: 0; font-size: 1.85em; line-height: 1.2; color: var(--navy); }
.gatecard h1:focus { outline: none; }
.gatecard h1:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.gatecard .lead { margin: 0; font-size: 1.12em; }
.gatelist { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.gatereg { border: 1px solid var(--line-soft); padding: 10px 14px; }
.gatewait { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--warn-bg); color: #5C3C00; font-weight: 600; }
.gatewait .dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: #C98A1B; animation: live-pulse 1.6s ease-out infinite; }
.gatecheck { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--tint); cursor: pointer; }
.gatecheck input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); flex: 0 0 auto; }
.gateactions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.gateactions .btn.big { min-height: 52px; padding: 0 26px; }
.gatelink { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; text-align: left; }
@media (max-width: 860px) {
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gatebar { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .gatebar li { flex: 0 0 auto; min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .gatewait .dot { animation: none; } }

/* --- Einlass des Prüfers: Kopf mit Startknopf, Legende, Umschalter; alle Prüflinge als Livebild-Kacheln oder als Liste nach Aufgaben. --- */
.livehead { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.livehead[hidden], .liveview[hidden] { display: none; }
.livehead-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.livehead-title { font-size: 1.35em; line-height: 1.2; color: var(--navy); }
.livehead-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.readychip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); background: var(--warn-bg); color: #5C3C00; font-weight: 600; }
.readychip .dot { width: 10px; height: 10px; border-radius: 50%; background: #C98A1B; }
.readychip.on { background: var(--good-bg); color: var(--good); }
.readychip.on .dot { background: var(--good); }
.startbtn { min-height: 48px; padding: 0 22px; font-size: 1.05em; }
.livelegend { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: 0.93em; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.livelegend .leg { display: inline-flex; align-items: center; gap: 8px; }
.livelegend .n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--tint); color: var(--navy); }
.livelegend .leg.you .n { background: #FFF1D6; color: #7A4E00; }
.livelegend .leg.ready .n { background: var(--good-bg); color: var(--good); }
.livelegend .arrow { color: var(--muted); }
.liveview { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.viewswitch { display: inline-flex; border: 1.5px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.viewswitch button { min-height: 44px; padding: 0 16px; border: 0; background: var(--surface); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
.viewswitch button + button { border-left: 1.5px solid var(--navy); }
.viewswitch button[aria-pressed='true'] { background: var(--navy); color: #fff; }
/* Kacheln: drei Spalten bei 1280 px, mindestens zwei, auf dem Handy eine. */
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tiles .grouphead { display: none; }
.tile { border-width: 1.5px; overflow: hidden; }
.tile .video { aspect-ratio: 16 / 10; }
.tile.grp-you { border-color: #C98A1B; }
.tile.grp-ready { border-color: var(--good); }
.grouppill { position: absolute; left: 10px; top: 10px; z-index: 4; padding: 4px 10px; font-size: 13px; font-weight: 700; background: #EEF1F4; color: #51606E; }
.grouppill.grp-you { background: #FFF1D6; color: #7A4E00; }
.grouppill.grp-ready { background: var(--good-bg); color: var(--good); }
.grouppill.grp-writing { background: var(--navy); color: #fff; }
.grouppill.grp-writing.paused { background: var(--warn-bg); color: #5C3C00; }
.grouppill.grp-candidate { background: var(--tint); color: var(--navy); }
.grouppill.grp-done { background: #fff; color: var(--navy); }
.grouppill.crit { background: var(--crit); color: #fff; }
.tile .video .tag { z-index: 4; background: rgba(0, 0, 0, 0.6); font-size: 14px; font-weight: 600; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .video .calltag { top: 44px; left: 10px; right: auto; }
.tile .body { padding: 12px 14px; gap: 10px; }
.tile .entrysteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tile .entrysteps li { height: 8px; border-radius: 4px; background: #D5DBE1; overflow: hidden; }
.tile .entrysteps li svg, .tile .entrysteps li .steplbl { display: none; }
.tile .entrysteps li.done { background: var(--good); }
.tile .entrysteps li.you { background: #C98A1B; }
.tile .entrysteps li.candidate { background: #5B7BB0; }
.tiletext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tilehint { color: var(--muted); min-height: 2.6em; }
.tilehint.grp-you { color: #7A4E00; }
.tilehint.grp-ready { color: var(--good); }
.tile .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.tile .actions .nexttask { flex: 1 1 auto; min-height: 44px; font-weight: 700; }
.tile .actions .only-list { display: none; }
.tilemenu { position: relative; }
.tilemenu > summary { list-style: none; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.tilemenu > summary::-webkit-details-marker { display: none; }
.tilemenu-list { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(10, 24, 48, 0.2); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.tilemenu-list .btn { justify-content: flex-start; text-align: left; min-height: 40px; }
.tile { overflow: visible; }
/* Liste nach Aufgaben: dieselben Kacheln als Zeilen, mit Abschnittsüberschriften, Mini-Livebild und beschrifteten Schritt-Kästchen. */
.tiles.aslist { display: flex; flex-direction: column; gap: 8px; }
.tiles.aslist .grouphead { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 1.1em; }
.tiles.aslist .grouphead[hidden] { display: none; }
.tiles.aslist .grouphead::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #8593A0; }
.tiles.aslist .grouphead.grp-you::before { background: #C98A1B; }
.tiles.aslist .grouphead.grp-ready::before { background: var(--good); }
.tiles.aslist .grouphead.grp-writing::before { background: var(--navy); }
.tiles.aslist .grouphead.grp-candidate::before { background: #5B7BB0; }
.tiles.aslist .tile { flex-direction: row; align-items: center; gap: 16px; padding: 12px 14px; }
.tiles.aslist .tile .video { flex: 0 0 120px; width: 120px; aspect-ratio: 3 / 2; border-radius: var(--radius); }
.tiles.aslist .tile .video.zoomed { flex: none; }
.tiles.aslist .tile .video:not(.zoomed) .grouppill, .tiles.aslist .tile .video:not(.zoomed) video.pip-small, .tiles.aslist .tile .video:not(.zoomed) video.cam2, .tiles.aslist .tile .video:not(.zoomed) .tile-status { display: none; }
.tiles.aslist .tile .video:not(.zoomed) .tag { font-size: 11px; left: 4px; bottom: 4px; padding: 1px 5px; }
.tiles.aslist .tile .body { flex: 1 1 auto; padding: 0; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 210px; gap: 16px; align-items: center; min-width: 0; }
.tiles.aslist .tile .tiletext { order: -1; grid-column: 2; grid-row: 1; }
.tiles.aslist .tile .entrysteps { grid-column: 1; grid-row: 1; gap: 6px; }
.tiles.aslist .tile .entrysteps li { height: auto; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--radius); background: #F2F4F6; color: #6B7785; font-size: 12.5px; font-weight: 600; min-width: 0; border: 1px solid transparent; }
.tiles.aslist .tile .entrysteps li svg { display: block; flex: 0 0 auto; }
.tiles.aslist .tile .entrysteps li .steplbl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles.aslist .tile .entrysteps li.done { background: var(--good-bg); color: var(--good); }
.tiles.aslist .tile .entrysteps li.you { background: #FFF1D6; color: #7A4E00; border-color: #C98A1B; }
.tiles.aslist .tile .entrysteps li.candidate { background: var(--tint); color: var(--navy); }
.tiles.aslist .tilehint { min-height: 0; }
.tiles.aslist .tile .actions { grid-column: 3; grid-row: 1; flex-direction: column; flex-wrap: nowrap; }
.tiles.aslist .tile .actions .only-list { display: inline-flex; }
.tiles.aslist .tile .actions .only-list[hidden] { display: none; }
.tiles.aslist .tilemenu-list { bottom: auto; top: calc(100% + 6px); }
@media (max-width: 860px) {
  .tiles.aslist .tile { flex-direction: column; align-items: stretch; }
  .tiles.aslist .tile .video { flex: none; width: 100%; aspect-ratio: 16 / 10; }
  .tiles.aslist .tile .body { grid-template-columns: minmax(0, 1fr); }
  .tiles.aslist .tile .tiletext, .tiles.aslist .tile .entrysteps, .tiles.aslist .tile .actions { grid-column: 1; grid-row: auto; }
  .tiles.aslist .tile .entrysteps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

.livehead .btn.startbtn { background: #1B6E3F; border-color: #1B6E3F; color: #fff; }
.livehead .btn.startbtn:hover:not(:disabled) { background: #155A33; color: #fff; }
.livehead .btn.startbtn:disabled { background: #8593A0; border-color: #8593A0; color: #fff; opacity: 1; cursor: not-allowed; }
.tile .actions .nexttask.go { background: var(--surface); color: var(--good); border: 1.5px solid var(--good); }
.tile .actions .nexttask.go:hover { background: var(--good-bg); color: var(--good); }

/* --- Fragetyp „Tabelle ausfüllen“: Tabelle mit Lückenfeldern beim Prüfling, in der Korrektur und im Editor. --- */
.tablewrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); background: var(--surface); }
.qtable { border-collapse: collapse; width: 100%; min-width: max-content; }
.qtable th, .qtable td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: middle; }
.qtable th { background: var(--tint); font-weight: 700; }
.qtable td.gapcell { background: #F7F9FC; }
.qtable .gapwrap { display: inline-flex; align-items: center; gap: 6px; }
.qtable .gapwrap input { width: 9em; min-height: 40px; font: inherit; }
.qtable .unit { color: var(--muted); white-space: nowrap; }
.qtable.review td.gapcell { display: table-cell; }
.qtable.review td.gapcell > * { display: block; }
.qtable.review td.gapcell > .btn { display: inline-flex; margin-top: 6px; }
.qtable.review td.right { background: var(--good-bg); color: #14522F; }
.qtable.review td.wrong { background: var(--crit-bg); color: var(--crit); }
.qtable.editor td, .qtable.editor th { vertical-align: top; min-width: 190px; }
.qtable.editor tr.tools td { border: 0; padding: 2px 4px; background: none; min-width: 0; }
.qtable.editor td.rowtools { border: 0; background: none; min-width: 0; vertical-align: middle; }
.qtable.editor .tcell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.qtable.editor .tcell input[type='text'] { width: 100%; }
.qtable.editor .tcell.gap { border-left: 3px solid var(--navy); padding-left: 8px; }
.qnav button.partly { background: repeating-linear-gradient(135deg, #E1E5EC, #E1E5EC 6px, var(--surface) 6px, var(--surface) 12px); }
html[data-contrast='high'] .qtable td.gapcell { background: #fff; }
.devicenote { color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.devicenote[hidden] { display: none; }

/* ---- Korrekturen aus der Anzeige-Prüfung vom 10.11.2026 ---- */
/* Lange Knopftexte brechen um, statt die Seite auf dem Handy zu verbreitern oder über den Knopfrand zu laufen. */
.btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; }
/* Einzeilige Felder werden auf großen Bildschirmen nicht endlos breit. */
input[type='text'], input[type='email'], input[type='password'], input[type='search'], input[type='tel'], input[type='url'], select { max-width: 640px; }
td input[type='text'], td select, .rule-field input, .table-q input { max-width: none; }
/* Kennzahlen: etwas breitere Kacheln, Werte bleiben auf einer Zeile. */
.stats { grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); }
.stat b { white-space: nowrap; }
/* Aufklappbereich: Pfeil immer rechts außen, auch wenn die Zusammenfassung nur einen Teil hat. */
.fold > summary::after { grid-column: -2 / -1; }
/* Fragenkatalog: Trennlinien bündig mit der Überschrift. */
.qcat-row { margin: 0; padding-left: 0; padding-right: 0; }
/* Lange Wörter in Fragetexten brechen um. */
.qline-text, .qcat-text { overflow-wrap: anywhere; }
/* Einlass: „Sie“ in der Schrittleiste ohne Einzug; die per Programm fokussierte Überschrift ohne dicken Rahmen. */
.gatebar .who { padding: 0; }
.gatecard h1[tabindex='-1']:focus, .gatecard h1[tabindex='-1']:focus-visible { outline: none; }
/* Prüfung auf dem Handy: leerer Speicherhinweis schiebt „Nächste Frage“ nicht ein. */
#saved:empty { display: none; }
/* Platzhalter im Video mittig, nicht unter dem Namensschild. */
.video { align-items: center; }
/* Waagerecht scrollbare Bereiche zeigen am Rand einen Schatten, solange es weitergeht (Menü auf dem Handy, Tabellen). */
.table-wrap {
  background:
    linear-gradient(to right, var(--surface) 40%, rgba(255, 255, 255, 0)) left center / 36px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 40%, rgba(255, 255, 255, 0)) right center / 36px 100% no-repeat local,
    linear-gradient(to right, rgba(18, 40, 76, 0.2), rgba(18, 40, 76, 0)) left center / 14px 100% no-repeat scroll,
    linear-gradient(to left, rgba(18, 40, 76, 0.2), rgba(18, 40, 76, 0)) right center / 14px 100% no-repeat scroll;
}
@media (max-width: 860px) {
  .areas {
    background:
      linear-gradient(to right, var(--navy) 40%, rgba(18, 40, 76, 0)) left center / 36px 100% no-repeat local,
      linear-gradient(to left, var(--navy) 40%, rgba(18, 40, 76, 0)) right center / 36px 100% no-repeat local,
      linear-gradient(to right, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)) left center / 14px 100% no-repeat scroll,
      linear-gradient(to left, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)) right center / 14px 100% no-repeat scroll;
  }
  .qline { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .qline > :nth-child(4) { grid-column: 2 / -1; justify-self: start; }
}
/* Bewertungsbogen: Kriterium in einer Zeile; der Text bekommt den Platz, die Knöpfe bleiben rechts. */
.rule.sheet-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 190px 96px auto auto; gap: 10px 12px; align-items: center; flex-wrap: nowrap; }
.sheet-row .sheet-max input { width: 100%; }
@media (max-width: 860px) {
  .rule.sheet-row { grid-template-columns: 34px minmax(0, 1fr); }
  .sheet-row > :nth-child(n + 3) { grid-column: 2 / -1; }
}

/* --- Lange Listen: Suche, Seiten und „Weitere anzeigen“ (paged in core.js) --- */
.pager { gap: 12px; }
.pagersearch { width: 100%; max-width: 420px; }
.pagerfoot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.pagerfoot[hidden], .pagersearch[hidden] { display: none; }
.card > .pager > .pagerfoot, .pager > .card + .pagerfoot { padding-top: 4px; }

/* Liste der Unternehmen: am Handy eingeklappt über den Details, am Desktop immer offen */
.picker > summary { display: none; }
.picker > .pager { gap: 12px; }
@media (max-width: 900px) {
  .cols > .side:has(> .stack > .picker), .cols > .side:has(> .stack > .picker) + .main { flex-basis: 100%; }
  .picker > summary { display: inline-flex; list-style: none; cursor: pointer; }
  .picker > summary::-webkit-details-marker { display: none; }
  .picker > summary::after { content: '\25BE'; margin-left: 8px; }
  .picker[open] > summary::after { content: '\25B4'; }
  .picker[open] > summary { margin-bottom: 12px; }
}
/* Kopf einer Prüfung: Einstellungen als ruhige Liste in Spalten, Personen darunter, Aktionen rechts oben. */
.exam-head { align-items: flex-start; flex-wrap: nowrap; }
.exam-head > .stack { flex: 1 1 auto; min-width: 0; }
.exam-actions { flex: 0 0 auto; justify-content: flex-end; }
.exam-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 12px; border-top: 1px solid var(--line-soft); }
.exam-settings .setting { justify-content: flex-start; min-height: 42px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; color: var(--ink); font-weight: 400; text-align: left; }
.exam-settings .setting strong { font-weight: 600; }
.exam-settings .setting.on, .exam-settings .setting.calm.on { background: none; border-color: var(--line-soft); color: var(--ink); }
.exam-settings .setting.on:not(.calm) strong { color: var(--crit); }
.exam-settings button.setting:hover { background: var(--tint); }
.exam-people { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.exam-people > .row { gap: 6px 10px !important; margin-top: 0 !important; }
.more { position: relative; }
.more > summary { list-style: none; cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: '\25BE'; margin-left: 6px; font-size: 12px; }
.more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(18, 40, 76, 0.16); }
.more-list .more-item { justify-content: flex-start; border-color: transparent; background: none; min-height: 40px; }
.more-list .more-item:hover { background: var(--tint); }
@media (max-width: 860px) { .exam-head { flex-wrap: wrap; } .exam-settings { grid-template-columns: minmax(0, 1fr); } .more-list { left: 0; right: auto; } }
.exam-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 4px; }
.exam-head > .stack { display: contents; }
.exam-head > .stack > * { grid-column: 1 / -1; }
.exam-head > .stack > .eyebrow, .exam-head > .stack > h1, .exam-head > .stack > p.muted:first-of-type { grid-column: 1; }
.exam-head > .exam-actions { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
.exam-people .note { background: none; border: 0; padding: 0 !important; font-size: 14px; }
.exam-people .note.crit { color: var(--crit); }
.exam-people .note.warn { color: var(--warn); }
.exam-people .btn.small.quiet { min-height: 32px; }
@media (max-width: 860px) { .exam-head { grid-template-columns: minmax(0, 1fr); } .exam-head > .exam-actions { grid-column: 1; grid-row: auto; } }
/* Unternehmensseite: Bereiche links, rechts nur der gewählte Bereich. */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.settings-nav button { min-height: 42px; padding: 0 12px; border: 0; border-radius: var(--radius); background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.settings-nav button:hover { background: var(--tint); }
.settings-nav button[aria-current='page'] { background: var(--navy); color: #fff; font-weight: 600; }
.settings-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.settings-body > [hidden] { display: none !important; }
@media (max-width: 860px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav button { flex: 0 0 auto; white-space: nowrap; }
}
.settings-body td select { min-width: 190px; }
.settings-body td .row { flex-wrap: wrap; gap: 6px; }
/* Menü „Mehr“ in Tabellenzellen klappt in der Zelle auf, damit es im scrollbaren Tabellenrahmen nicht abgeschnitten wird. */
td .more-list { position: static; margin-top: 6px; box-shadow: none; min-width: 0; }
td .more { display: flex; flex-direction: column; align-items: flex-end; }

/* Abgerundete Kästen und Knöpfe (Wunsch des Nutzers vom 10.11.2026: „nur die Boxen und Buttons abrunden“).
   Linien, Farben, Reiter, Tabellen und Etiketten bleiben unverändert. */
.card, .overlay .card, dialog, .legal-body, .legal-toc, .settings-nav, .more-list, .tile, .deck { border-radius: 12px; }
.stat, .note, .hints, .rule, .keychip, .legal-summary, .announce, .supportbar { border-radius: 10px; }
.btn, .setting, .settings-nav button, .more-list .more-item { border-radius: 8px; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='date'], input[type='time'], input[type='search'], input[type='tel'], input[type='url'], select, textarea { border-radius: 8px; }
/* Große Kästen ohne grauen Rand (Wunsch vom 10.11.2026); kleine Kästen in Karten behalten ihren Rand, sonst wären sie weiß auf weiß. */
.card, .legal-body, .legal-toc, .settings-nav, .tile { border-color: transparent; }
/* Hoher Kontrast: Hintergrund und Kästen sind beide weiß, deshalb behalten die großen Kästen dort ihren Rand. */
:where(html[data-contrast='high']) :is(.card, .legal-body, .legal-toc, .settings-nav, .tile) { border-color: var(--line); }   /* Gewicht einer Klasse: schlägt die Zeile darüber, nicht aber .tile.alarm usw. */

/* Tabellen und Status moderner (Wunsch vom 10.11.2026, „bitte moderner“ bei Prüfungsliste und Kalender). */
th { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #6B7486; border-bottom: 1px solid var(--line); padding-top: 6px; padding-bottom: 10px; }
td { padding-top: 13px; padding-bottom: 13px; border-bottom-color: var(--line-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #F8F9FB; }
td a:not(.btn) { text-decoration: none; }
td a:not(.btn):hover { text-decoration: underline; }
/* Stand als weiches Etikett mit Punkt statt Quadrat */
.pill { padding: 3px 10px 3px 9px; border-radius: 999px; font-size: 12.5px; background: #EEF0F4; }
.pill::before { width: 7px; height: 7px; border-radius: 50%; }
.pill.good { background: var(--good-bg); }
.pill.warn { background: var(--warn-bg); }
.pill.crit { background: var(--crit-bg); }
.pill.info { background: var(--tint); }
.pill.idle { background: #EEF0F4; }
/* Fortschritt „3 von 5“ mit kleinem Balken */
.progress-cell { display: inline-flex; align-items: center; gap: 10px; }
.minibar { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: #E6E9EF; overflow: hidden; }
.minibar > span { display: block; height: 100%; border-radius: 3px; background: var(--good); }
/* Umschalter wie „Monat | Liste“ und Standortfilter als runde Schalter */
[role='group'] > .btn.small { border-radius: 999px; }
/* Karte in Karte: die innere wird flach, damit nichts doppelt eingerückt ist */
.card .card { padding: 0; border: 0; box-shadow: none; background: none; }

/* Prüfungsseite moderner und übersichtlicher (Wunsch vom 10.11.2026). */
/* Kopf: Einstellungen und Personen in einer weißen Fläche, je Eintrag Bezeichnung oben, Wert darunter. */
.exam-settings { margin-top: 16px; padding: 4px 6px; background: var(--surface); border: 0; border-radius: 12px 12px 0 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.exam-settings .setting { flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 10px; min-height: 0; padding: 12px 14px; border: 0; border-radius: 0; }
.exam-settings .setting + .setting { box-shadow: inset 1px 0 0 var(--line-soft); }
.exam-settings .setting > span:not(.setting-track) { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: #6B7486; }
.exam-settings .setting strong { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.exam-settings .setting.on:not(.calm) strong { color: var(--crit); }
.exam-settings .setting .linkish { align-self: flex-end; font-size: 13px; }
.exam-settings .setting.static { flex-direction: row; }
.exam-people { margin-top: 0; padding: 12px 20px 14px; background: var(--surface); border-radius: 0 0 12px 12px; box-shadow: inset 0 1px 0 var(--line-soft); }
@media (max-width: 1100px) { .exam-settings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .exam-settings { grid-template-columns: minmax(0, 1fr); } .exam-settings .setting + .setting { box-shadow: inset 0 1px 0 var(--line-soft); } }
/* Reiter der Prüfung: schlanker Unterstrich statt gefülltem Block */
.tabs { border-bottom: 1px solid var(--line); gap: 2px; }
.tabs a { color: #4B5565; font-weight: 500; border-radius: 0; }
.tabs a:hover { background: transparent; color: var(--navy); box-shadow: inset 0 -2px 0 #C9CFD9; }
.tabs a[aria-current='page'] { background: transparent; color: var(--navy); font-weight: 650; box-shadow: inset 0 -2px 0 var(--navy); }
/* Teilnehmerliste: feine Linien, runde Initialen, heller Kasten zum Hinzufügen */
.plist { border-top: 1px solid var(--line); }
.pitem { border-bottom-color: var(--line-soft); }
.pitem:last-child { border-bottom: 0; }
.avatar { border-radius: 50%; }
.chip { border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }
.chip::before { width: 7px; height: 7px; }
.card form.note { background: #F6F7F9; }
/* Seitenkarten: kleinere Überschrift, Wert gut lesbar, leichter Knopf */
.cols > .side .card h2 { font-size: 16px; }
.cols > .side .card p > strong.num { display: block; font-size: 19px; letter-spacing: -0.01em; color: var(--navy); }
.cols > .side .card > .btn:not(.primary) { border-color: #C9CFD9; }
/* Spalt zwischen Einstellungen und Personen im Prüfungskopf schließen */
.exam-head > .stack > .exam-people { margin-top: -4px; }

/* Einlass und Aufsicht: abgerundet und moderner (Wunsch vom 10.11.2026). */
.livehead { border: 0; border-radius: 12px; padding: 18px 22px; }
.readychip { border-radius: 999px; padding: 7px 14px; }
.startbtn { border-radius: 10px; }
.livelegend { gap: 8px; }
.livelegend > strong { margin-right: 6px; }
.livelegend .leg { padding: 5px 12px 5px 6px; border-radius: 999px; background: #F4F6F9; }
.livelegend .leg.you { background: #FFF8EA; }
.livelegend .leg.ready { background: #EEF8F2; }
.livelegend .arrow { display: none; }
.viewswitch { border: 1px solid #C9CFD9; border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface); }
.viewswitch button { min-height: 38px; border-radius: 999px; }
.viewswitch button + button { border-left: 0; }
/* Bedienfeld der Aufsicht: ohne farbigen Seitenstreifen, weichere Kästen */
.deck { border-left: 0; overflow: hidden; }
.deck-stat { border-radius: 10px; }
.deck-cam .video { border-radius: 10px; overflow: hidden; }
.deck .btn { border-radius: 10px; }

/* Verlauf als Zeitleiste: Uhrzeit, Punkt mit Verbindungslinie, Name und Text (Wunsch vom 10.11.2026). */
.timeline li { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 0; border-top: 0; font-size: 14px; }
.timeline li > .num { padding-top: 1px; font-size: 12.5px; font-weight: 600; color: #8A93A3; text-align: right; }
.timeline li > div { position: relative; padding: 0 0 16px 22px; gap: 1px; }
.timeline li > div::before { content: ''; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #FFFFFF; border: 2px solid #9AA6B8; box-sizing: border-box; }
.timeline li > div::after { content: ''; position: absolute; left: 4px; top: 16px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child > div { padding-bottom: 4px; }
.timeline li:last-child > div::after { display: none; }
.timeline li > div strong { font-size: 14px; color: var(--ink); }
.timeline li > div span { color: #4B5565; line-height: 1.45; }
.timeline li.mark > div::before { border-color: var(--warn); background: var(--warn-bg); }
.timeline.wide li { grid-template-columns: 150px minmax(0, 1fr); }
/* Vorfälle ohne dicken Seitenstreifen, weich abgerundet */
.incident { border-left: 0; border-radius: 10px; padding: 12px 14px; }
/* Tabellen-Karten: kein Scroll-Schatten auf breiten Bildschirmen (dort scrollt nichts). */
@media (min-width: 861px) { .card.table-wrap { background: var(--surface); } }

/* Bessere Lesbarkeit überall (Wunsch vom 10.11.2026): größere Grundschrift, mehr Zeilenabstand, dunklere Hilfstexte,
   kleine Texte nicht unter 13 px. Große Schrift und hoher Kontrast für Prüflinge greifen weiterhin (spezifischere Regeln). */
:root { --base: 16px; --muted: #424C5C; }
body { line-height: 1.55; }
p, li { line-height: 1.6; }
.small { font-size: 14px; }
.muted.small, .small.muted { line-height: 1.5; }
th { font-size: 12.5px; }
.chip, .pill { font-size: 13px; }
.stat span { font-size: 14px; }
.hints { font-size: 14.5px; }
.timeline li { font-size: 14.5px; }
.timeline li > .num { font-size: 13px; }
.deck-hint, .deck-stat span { font-size: 13.5px; }
.exam-settings .setting > span:not(.setting-track) { font-size: 12.5px; }
.btn.small { font-size: 14.5px; }
/* Feinschliff nach größerer Schrift: Teilnehmerzeile mit flexiblen Spalten, Werte ohne unschöne Umbrüche. */
.pitem-head { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
.pitem-head .keychip { width: auto; }
.pitem-name { overflow-wrap: normal; }
.cols > .side .card p > strong.num { font-size: 17px; text-wrap: balance; }
.exam-head > .stack > p.muted { text-wrap: pretty; }
.pitem-head .keychip { width: 232px; }

/* Feinschliff nach Durchsicht aller Hauptseiten (10.11.2026) */
/* Alle Trennlinien fein statt 2px Dunkelblau */
.rlist, .qlist { border-top: 1px solid var(--line); }
.qgroup-head { border-bottom: 1px solid var(--line); }
/* Betriebsgefahr als rundes Etikett wie alle anderen, weiterhin rot */
.hazard { border: 0; border-radius: 999px; background: var(--crit-bg); padding: 2px 10px; }
/* Fragetyp-Kästchen und Balken abgerundet */
.qtype { border-radius: 8px; }
.bar, .bar > span { border-radius: 999px; }
/* Rollenauswahl breit genug für „Unternehmens-Admin“ */
.settings-body td select { min-width: 214px; }
@media (max-width: 860px) {
  /* Prüfungskopf auf dem Handy: Status und Knöpfe direkt unter dem Titel, dann die Einstellungen */
  .exam-head > .stack > p.muted:first-of-type ~ * { order: 2; }
  .exam-head > .exam-actions { order: 1; justify-content: flex-start; }
  /* Reiter einer Prüfung seitlich scrollbar statt mehrzeilig */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: 0 0 auto; white-space: nowrap; }
}
/* Teilnehmerliste: Jede Zeile hat ihr eigenes Raster. Mit „auto“ wird die Statusspalte je Zeile anders breit,
   dann stehen Schlüssel und Etiketten versetzt. Feste Statusspalte, der Name bekommt den Rest. */
.pitem-head { grid-template-columns: 42px minmax(0, 1fr) 232px 184px; }

/* Feinschliff vom 10.11.2026, zweiter Teil: Hinweise, Bestehensquote, Fragen-Editor, Itemanalyse. */
.chip.plain::before { display: none; }
.chip.plain { font-weight: 500; color: #4B5565; }
/* Listen auf der Übersicht: Zeilen mit feiner Trennlinie statt gestapelter grauer Kästen. */
.tasklist { gap: 0; }
.tasklist li + li { border-top: 1px solid var(--line-soft); }
.tasklist li a { background: transparent; padding: 12px 10px; border-radius: 10px; }
.tasklist li a:hover { background: #F5F7FA; }
.tasklist li a > [aria-hidden='true']:last-child { color: #A0A8B6; font-size: 18px; line-height: 1; }
/* Hinweise: ungelesen mit Punkt und fettem Titel, gelesen ruhiger. */
.tasklist.notices li a { align-items: flex-start; }
.tasklist.notices .dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--navy); }
.tasklist.notices li.crit .dot { background: var(--crit); }
.tasklist.notices li.read .dot { background: transparent; }
.tasklist.notices li.read strong { font-weight: 500; color: #4B5565; }
.tasklist.notices li a .stack.tight { gap: 2px; }
.tasklist.notices .go { align-self: center; }
/* Kleine Kennzahlen in einer Reihe (Bestehensquote, Itemanalyse). */
.minikpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.minikpis > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg); min-width: 0; }
.minikpis b { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; color: var(--navy); }
.minikpis span { font-size: 12.5px; color: #4B5565; overflow-wrap: anywhere; }
.minikpis .r-good b { color: var(--good); }
.minikpis .r-warn b { color: var(--warn); }
.minikpis .r-crit b { color: var(--crit); }
.cols > .side .minikpis b { font-size: 18px; }
/* Aufklappbare Erklärung statt langem Kleingedruckten. */
details.explain > summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.explain > summary::-webkit-details-marker { display: none; }
details.explain > summary::before { content: ''; display: block; flex: none; width: 6px; height: 6px; margin: 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.12s; }
details.explain[open] > summary::before { transform: translateY(-2px) rotate(45deg); }
details.explain > p { margin: 8px 0 0; }
/* Bestehensquote: zwei Diagramme nebeneinander; ohne Daten angedeutete Balken. */
.chartpair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .chartpair { grid-template-columns: minmax(0, 1fr); } }
.trend-empty { display: flex; align-items: center; gap: 28px; padding: 18px 20px; border-radius: 10px; background: var(--bg); }
.ghostbars { display: flex; align-items: flex-end; gap: 10px; height: 64px; flex: none; }
.ghostbars span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.ghostbars i { display: block; width: 18px; border-radius: 4px 4px 2px 2px; background: #DDE2EA; }
.ghostbars span:nth-child(1) i { height: 22px; } .ghostbars span:nth-child(2) i { height: 34px; } .ghostbars span:nth-child(3) i { height: 28px; }
.ghostbars span:nth-child(4) i { height: 40px; } .ghostbars span:nth-child(5) i { height: 31px; } .ghostbars span:nth-child(6) i { height: 44px; }
.ghostbars em { font-style: normal; font-size: 11px; color: #8A93A3; }
@media (max-width: 560px) { .trend-empty { flex-direction: column; align-items: flex-start; gap: 14px; } }
/* Fragen-Editor: jeder Abschnitt ein eigener Kasten. */
.qeditor { gap: 16px; }
.qeditor .card h2 { font-size: 16px; }
.qeditor > .card > h2 label { font: inherit; color: inherit; }
.qeditor .qmedia-box > .stack > strong { font-size: 14px; font-weight: 600; color: #4B5565; }
/* Vorschau Prüfling: wie ein kleines Prüfungsfenster. */
.qpreview { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 10px; background: var(--bg); }
.qpreview .question-text { margin: 0; font-size: 16px; line-height: 1.45; }
.qpreview .answers { border-top: 0; gap: 6px; }
.qpreview .answer { min-height: 0; padding: 9px 12px; gap: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 1.35; align-items: flex-start; }
.qpreview .answer:hover { background: var(--surface); }
.qpreview .answer .mark { width: 16px; height: 16px; margin-top: 1px; border-radius: 4px; }
.qpreview .answer .mark.round { border-radius: 50%; }
.qpreview .answer .letter { width: auto; min-width: 16px; color: #6B7486; }
.qpreview .question-image { border-radius: 8px; }
/* Vorschau Prüfer: richtige Antworten als Liste mit Haken. */
.solution-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.solution-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 8px; background: var(--good-bg); color: #14482A; font-size: 14px; line-height: 1.35; }
.solution-list li::before { content: '\2713'; flex: none; font-weight: 700; color: var(--good); }
.solution-list .letter { flex: none; font-weight: 600; color: var(--good); }
.solution-text { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--good-bg); color: #14482A; font-size: 14px; line-height: 1.45; }
.solution-text.muted { background: var(--bg); color: var(--muted); }
.solution-foot { margin: 0; }
/* Versionen: Einträge untereinander statt schmaler Nummernspalte. */
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { padding: 12px 0; }
.vlist li + li { border-top: 1px solid var(--line-soft); }
.vlist li:first-child { padding-top: 4px; }
.vlist .vtext { padding: 8px 10px; border-radius: 8px; background: var(--bg); color: #4B5565; line-height: 1.45; overflow-wrap: anywhere; }
/* Itemanalyse-Tabelle: wie die Prüfungsliste. */
td.qcell { max-width: 520px; }
td.qcell a { font-weight: 500; }
td.r-good { color: var(--good); font-weight: 600; }
td.r-warn { color: var(--warn); font-weight: 600; }
td.r-crit { color: var(--crit); font-weight: 600; }
.minibar.warn > span { background: #C9A227; }
.progress-cell { white-space: nowrap; }
.progress-cell > span:first-child { min-width: 3.2em; text-align: right; }
/* Hinweis auf eine neue Version (unten mittig, über allem außer Dialogen). */
.update-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 14px; width: min(560px, calc(100vw - 32px)); padding: 12px 12px 12px 18px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: 0 8px 28px rgba(16, 24, 40, 0.22); }
.update-bar .small { color: #C9D3E3; }
.update-bar .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.update-bar .btn.quiet { color: #fff; }
.update-bar .btn.quiet:hover { background: rgba(255, 255, 255, 0.12); }
@media print { .update-bar { display: none; } }
.update-bar .btn { flex: none; white-space: nowrap; }
/* Alle Tabellen: Text nicht direkt am Rand (Wunsch vom 10.11.2026). Tabellen-Fragen (.qtable) haben eigene Zellenränder. */
table:not(.qtable) > * > tr > :first-child { padding-left: 16px; }
table:not(.qtable) > * > tr > :last-child { padding-right: 16px; }
/* Assistent „Prüfung anlegen“: Schritte oben, ein Schritt zur Zeit, Überblick am Ende. */
.wizard-steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; counter-reset: none; }
.wizard-steps li { position: relative; min-width: 0; }
.wizard-steps li + li::before { content: ''; position: absolute; top: 15px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; border-radius: 1px; background: var(--line); }
.wizard-steps li.done::before, .wizard-steps li.current::before { background: var(--navy); }
.wizard-steps button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: #6B7486; cursor: pointer; }
.wizard-steps button:disabled { cursor: default; }
.wizard-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.wizard-label { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wizard-steps li.done .wizard-num { border-color: var(--navy); color: var(--navy); }
.wizard-steps li.current .wizard-num { border-color: var(--navy); background: var(--navy); color: #fff; }
.wizard-steps li.current .wizard-label { color: var(--navy); font-weight: 650; }
.wizard-steps button:not(:disabled):hover .wizard-num { box-shadow: 0 0 0 4px var(--tint); }
.wizard-steps button:focus-visible { outline: none; }
.wizard-steps button:focus-visible .wizard-num { box-shadow: 0 0 0 3px rgba(18, 40, 76, 0.3); }
@media (max-width: 560px) {
  .wizard-label { display: none; }
  .wizard-steps li.current .wizard-label { display: block; position: absolute; top: 38px; left: 50%; transform: translateX(-50%); max-width: none; }
  .wizard-steps { margin-bottom: 22px; }
}
.wizard-pane { min-height: 260px; }
.wizard .no-legend > legend { display: none; }
.wizard-actions { position: sticky; bottom: -24px; margin: 8px -24px -24px; padding: 14px 24px; background: var(--surface); border-top: 1px solid var(--line-soft); border-radius: 0 0 12px 12px; gap: 8px; z-index: 2; }
.wizard-summary { margin: 0; display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); border-top: 1px solid var(--line-soft); }
.wizard-summary dt, .wizard-summary dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.wizard-summary dt { padding-right: 16px; font-size: 13.5px; color: #4B5565; }
.wizard-summary dd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 500; overflow-wrap: anywhere; }
.wizard-summary dd .linkish { flex: none; }
@media (max-width: 560px) { .wizard-summary { grid-template-columns: minmax(0, 1fr); } .wizard-summary dt { padding-bottom: 0; border-bottom: 0; } .wizard-summary dd { padding-top: 2px; } }
/* Kennzahlen moderner (Wunsch vom 10.11.2026): keine grauen Rahmen, ruhige Fläche, große Zahl, Bezeichnung darunter. */
.stat { gap: 4px; padding: 14px 16px; border-color: transparent; }
.stat b { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 13.5px; font-weight: 500; color: #4B5565; }
.card .stat { background: var(--bg); }
.stat.crit { background: var(--crit-bg); }
.stat.warn { background: var(--warn-bg); }
.stat.good { background: var(--good-bg); }
:where(html[data-contrast='high']) .stat { border-color: var(--line); }
.wizard-summary .linkish { padding: 2px 4px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; border-radius: 6px; }
.wizard-summary .linkish:hover { text-decoration: underline; }
/* Beim Wechsel der Schritte springt der Dialog nicht auf und ab: fester Abstand oben. */
dialog:has(> form.wizard) { margin-top: max(16px, 6vh); margin-bottom: auto; }
.wizard-actions { flex-wrap: nowrap; }
@media (max-width: 560px) { .wizard-actions { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } .wizard-actions .btn.quiet { padding-left: 6px; padding-right: 6px; } }
/* Protokolle (Aktivitäten, Audit-Log): nach Tagen gruppiert, Details unter der Aktion. */
table.audit tr.daygroup th { padding-top: 10px; padding-bottom: 10px; background: var(--bg); border-bottom: 0; font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--ink); }
table.audit tbody tr.daygroup:hover th { background: var(--bg); }
table.audit tbody tr.daygroup + tr td { border-top: 0; }
table.audit td { vertical-align: top; }
table.audit .audit-time { width: 72px; color: #6B7486; font-size: 14px; padding-top: 15px; }
table.audit .audit-what { line-height: 1.45; }
table.audit .audit-action { font-weight: 600; }
table.audit .audit-detail { display: block; margin-top: 2px; font-size: 14px; color: #4B5565; overflow-wrap: anywhere; }
table.audit .audit-who { width: 220px; }
table.audit .audit-name { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
table.audit .audit-role { display: block; font-size: 13px; color: #6B7486; }
@media (max-width: 700px) { table.audit .audit-who { width: auto; } table.audit .audit-name { white-space: normal; } }
/* Menüs bleiben im Fenster: keepInView() in core.js klappt bei Platzmangel nach oben oder unten um. */
.more-list.flip-up, .tilemenu-list.flip-up, .popmenu.flip-up { top: auto; bottom: calc(100% + 6px); }
.more-list.flip-down, .tilemenu-list.flip-down, .popmenu.flip-down { bottom: auto; top: calc(100% + 6px); }
.more-list, .tilemenu-list, .popmenu { overflow-y: auto; max-width: calc(100vw - 16px); }
/* Livekacheln: Aktionen direkt in der Kachel statt im Menü „Mehr“ (Wunsch vom 10.11.2026). */
.tile .tiletools { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.tile .tiletools[hidden] { display: none; }
.tile .tiletools .btn { min-height: 34px; padding: 0 11px; font-size: 13.5px; font-weight: 600; background: var(--bg); border-color: transparent; color: var(--navy); }
.tile .tiletools .btn:hover { background: var(--tint); border-color: transparent; }
.tile .tiletools .btn.danger { margin-left: auto; background: transparent; color: var(--crit); }
.tile .tiletools .btn.danger:hover { background: var(--crit-bg); }
.tile .tilename { display: none; }
/* Listenansicht moderner: Name neben dem Bild, Schritte als schlanke Leiste, Aktionen in einer Reihe darunter. */
.tiles.aslist .tile { align-items: flex-start; gap: 18px; padding: 14px 16px; }
.tiles.aslist .tile .video { flex: 0 0 132px; width: 132px; border-radius: 10px; }
.tiles.aslist .tile .video:not(.zoomed) .tag { display: none; }
.tiles.aslist .tile .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name primary' 'steps primary' 'text big' 'tools tools'; gap: 6px 20px; align-items: start; }
.tiles.aslist .tile .actions { display: contents; }
.tiles.aslist .tile .tilename { grid-area: name; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tiles.aslist .tile .tilename strong { font-size: 16.5px; font-weight: 650; }
.tiles.aslist .tile .tilename span { font-size: 13.5px; color: #6B7486; }
.tiles.aslist .tile .tiletext { order: 0; grid-area: text; }
.tiles.aslist .tile .entrysteps { grid-area: steps; display: flex !important; flex-wrap: wrap; gap: 4px 0; }
.tiles.aslist .tile .entrysteps li { flex: 0 0 auto; padding: 2px 0; background: none !important; border: 0; border-radius: 0; color: #8A93A3; font-size: 13px; font-weight: 500; }
.tiles.aslist .tile .entrysteps li + li::before { content: ''; flex: none; width: 22px; height: 1.5px; margin: 0 8px 0 4px; background: #D5DBE1; }
.tiles.aslist .tile .entrysteps li.done { color: var(--good); }
.tiles.aslist .tile .entrysteps li.you { color: #8A5A00; font-weight: 650; }
.tiles.aslist .tile .entrysteps li.candidate { color: var(--navy); font-weight: 650; }
.tiles.aslist .tile .entrysteps li.done + li::before { background: var(--good); }
.tiles.aslist .tile .actions > .nexttask { grid-area: primary; align-self: start; min-width: 190px; }
.tiles.aslist .tile .actions > .only-list { grid-area: big; align-self: start; justify-self: stretch; }
.tiles.aslist .tile .tiletools { grid-area: tools; margin-top: 4px; }
@media (max-width: 860px) {
  .tiles.aslist .tile .body { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'name' 'steps' 'text' 'primary' 'big' 'tools'; }
}
/* Teilnehmerzeilen aufgeräumt (Wunsch vom 10.11.2026): ein Etikett mit Vorab-Check darunter,
   Aktionen in einer Zeile, die Einladung als Gruppe, Entfernen als Symbol ganz rechts. */
.pitem { gap: 4px; padding: 14px 0 12px; }
.pitem-status { gap: 3px; }
.pitem-status .precheck { padding-left: 2px; font-size: 12.5px; color: #6B7486; }
.pitem-status .precheck.good { color: var(--good); }
.pitem-status .precheck.crit { color: var(--crit); font-weight: 600; }
.pitem-actions { align-items: center; gap: 2px; flex-wrap: wrap; }
.pitem-actions .btn.small { min-height: 32px; padding: 0 9px; font-size: 13.5px; font-weight: 500; color: #4B5565; gap: 6px; }
.pitem-actions .btn.small svg { color: #8A93A3; }
.pitem-actions .btn.small:hover { color: var(--navy); background: var(--tint); }
.pitem-actions .btn.small:hover svg { color: var(--navy); }
.pitem-actions .pgroup { display: inline-flex; align-items: center; gap: 0; margin-right: 6px; padding-right: 8px; box-shadow: inset -1px 0 0 var(--line-soft); }
.pitem-actions .pgroup-label { font-size: 13px; font-weight: 600; color: #6B7486; padding: 0 4px 0 9px; }
.pitem-actions .pitem-remove { margin-left: auto; width: 34px; padding: 0; justify-content: center; }
.pitem-actions .pitem-remove svg, .pitem-actions .pitem-remove:hover svg { color: var(--crit); }
.pitem-actions .pitem-remove:hover { background: var(--crit-bg); }
.pitem-actions .pitem-result { margin-left: auto; color: var(--navy); font-weight: 600; }
@media (max-width: 560px) { .pitem-actions .pgroup { flex-basis: 100%; margin-right: 0; padding-right: 0; box-shadow: none; } .pitem-actions .pgroup-label { padding-left: 0; } }
/* Assistent eingebettet (/pruefungen/neu): Schritte links untereinander, rechts der Schritt, unten die Knöpfe. */
.wizard-page { padding: 0; }
.wizard-page > form.wizard { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0; align-items: start; }
.wizard-page > form.wizard > .wizard-steps { align-self: stretch; }
.wizard-page > form.wizard > h2 { display: none; }
.wizard-page .wizard-steps { grid-column: 1; grid-row: 1 / span 20; margin: 0; padding: 24px 20px; display: flex; flex-direction: column; gap: 0; background: #FAFBFC; border-right: 1px solid var(--line-soft); border-radius: 12px 0 0 12px; }
.wizard-page .wizard-steps li + li::before { top: -14px; bottom: auto; left: 15px; right: auto; width: 2px; height: 28px; }
.wizard-page .wizard-steps li + li { margin-top: 14px; }
.wizard-page .wizard-steps button { flex-direction: row; align-items: center; gap: 12px; padding: 4px 0; text-align: left; }
.wizard-page .wizard-label { font-size: 14.5px; white-space: normal; }
.wizard-page > form.wizard > :not(.wizard-steps):not(h2) { grid-column: 2; }
.wizard-page .wizard-pane { padding: 24px 28px 8px; min-height: 360px; }
.wizard-page > form.wizard > .error { margin: 0 28px; }
.wizard-page .wizard-actions { position: sticky; bottom: 0; margin: 0; padding: 14px 28px; border-radius: 0 0 12px 0; }
@media (max-width: 760px) {
  .wizard-page > form.wizard { grid-template-columns: minmax(0, 1fr); }
  .wizard-page > form.wizard > :not(.wizard-steps):not(h2) { grid-column: 1; }
  .wizard-page .wizard-steps { grid-row: auto; flex-direction: row; justify-content: space-between; padding: 16px 16px 30px; border-right: 0; border-bottom: 1px solid var(--line-soft); border-radius: 12px 12px 0 0; }
  .wizard-page .wizard-steps li + li { margin-top: 0; flex: 1; }
  .wizard-page .wizard-steps li { display: flex; justify-content: flex-end; }
  .wizard-page .wizard-steps li:first-child { flex: 0 0 auto; }
  .wizard-page .wizard-steps li + li::before { top: 15px; left: 6px; right: 40px; width: auto; height: 2px; }
  .wizard-page .wizard-steps button { width: auto; }
  .wizard-page .wizard-label { display: none; }
  .wizard-page .wizard-steps li.current .wizard-label { display: block; position: absolute; top: 40px; right: 0; left: auto; transform: none; white-space: nowrap; font-size: 12.5px; }
  .wizard-page .wizard-steps li:first-child.current .wizard-label { left: 0; right: auto; }
  .wizard-page .wizard-pane { padding: 18px 16px 6px; min-height: 0; }
  .wizard-page > form.wizard > .error { margin: 0 16px; }
  .wizard-page .wizard-actions { padding: 12px 16px; border-radius: 0 0 12px 12px; }
}
/* Listenzeilen mit Trennlinien: Text nie direkt am Rand, wie bei den Tabellen (Wunsch vom 10.11.2026).
   Die Linie geht über die ganze Breite, der Inhalt sitzt 16px eingerückt. */
.qcat-row { margin: 0; padding-left: 16px; padding-right: 16px; }
.qline, .ritem, .trow, .event { padding-left: 16px; padding-right: 16px; }
.qrow > summary { padding-left: 16px; padding-right: 16px; }
.pitem { padding-left: 16px; padding-right: 16px; }
.pitem:hover { box-shadow: none; }
.qgroup-head { padding-left: 16px; padding-right: 16px; }
.wizard-summary dt { padding-left: 12px; }
.wizard-summary dd { padding-right: 12px; }
/* Auswahlfelder zwischen den Ankreuz-Kästen (Prüfungsordnung, Zweite Kamera): als eigener Kasten im selben Stil,
   nach den Ankreuz-Kästen, mit Bezeichnung, Auswahl und Hinweis untereinander. */
.optgroup > label.field { order: 10; gap: 8px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; font-weight: 650; color: var(--ink); }
.optgroup > label.field select { width: 100%; max-width: none; font-weight: 500; }
.optgroup > label.field > span.hint { font-size: 14px; line-height: 1.45; }
.optgroup > label.field > span.hint a { font-weight: 600; white-space: nowrap; }
.optgroup > label.field:has(select:not([value=""])) { }
.optgroup > label.field:focus-within { border-color: var(--navy); }
/* Wahl aus wenigen Möglichkeiten als Kästen (choiceCards in exams.js), z. B. Zweite Kamera. */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.choice strong { font-size: 15px; font-weight: 650; }
.choice span { font-size: 13px; font-weight: 400; line-height: 1.35; color: #4B5565; }
.choice:hover:not(:disabled) { border-color: #AEB6C3; }
.choice.on { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:disabled { cursor: not-allowed; opacity: 0.6; }
.choice:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18, 40, 76, 0.25); }
/* Versionshinweis als Streifen oben im Fluss der Seite statt schwebend unten (verdeckte die Knöpfe der Korrektur). */
.update-bar { position: static; transform: none; left: auto; bottom: auto; width: auto; margin: 0; padding: 8px max(16px, calc((100% - var(--page, 1200px)) / 2 + 16px)); border-radius: 0; box-shadow: none; gap: 12px; }
.update-bar .grow { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
@media (max-width: 560px) { .update-bar .small { display: none; } }
/* Korrektur intuitiver (Wunsch vom 10.11.2026): Kopfkarte mit Fortschritt und Filter, Antwort und Lösung nebeneinander,
   Punkte per Knopf, Aktionsleiste unten mit Stand und Tastenkürzeln, Antwortliste rechts als ruhige Zeilen. */
.gradehead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); grid-template-areas: 'text progress' 'filter filter'; gap: 14px 32px; align-items: start; }
.gradehead-text { grid-area: text; }
.gradehead-text > p { margin: 0; font-size: 15px; color: #4B5565; }
.gradehead-progress { grid-area: progress; }
.gradehead-progress .bar { height: 6px; border-radius: 3px; overflow: hidden; }
.gradehead-progress .bar > span { height: 6px; border-radius: 3px; background: var(--good); }
.gradefilter { grid-area: filter; padding-top: 14px; border-top: 1px solid var(--line-soft); }
@media (max-width: 700px) { .gradehead { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'text' 'progress' 'filter'; } }
.grading .main.card > .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grading .main.card > .cols > .half { flex: none; }
@media (max-width: 1100px) { .grading .main.card > .cols { grid-template-columns: minmax(0, 1fr); } }
.grading .main.card h3 { font-size: 15px; }
.grading .main.card .note.pre { font-size: 15.5px; line-height: 1.55; }
.pointrow { align-items: center; gap: 10px; }
.pointpick { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pointpick .pp { min-width: 44px; height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; }
.pointpick .pp:hover:not(:disabled) { border-color: #AEB6C3; }
.pointpick .pp.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.pointpick .pp:disabled { opacity: 0.55; cursor: not-allowed; }
.pointrow input[type='number'] { width: 90px; }
.gradebar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 4px -24px -20px; padding: 14px 24px; background: var(--surface); border-top: 1px solid var(--line-soft); border-radius: 0 0 12px 12px; }
.gradekeys { font-size: 12.5px; }
.answerlist { display: flex; flex-direction: column; margin: 0 -8px; }
.answerrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.answerrow + .answerrow { margin-top: 2px; }
.answerrow:hover { background: #F5F7FA; }
.answerrow.on { background: var(--tint); font-weight: 650; }
@media (max-width: 560px) { .gradebar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } .gradekeys { display: none; } }
.quickrow { padding: 8px 16px; border-top: 1px solid var(--line-soft); }
.gradebar { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'sum actions' 'keys keys'; gap: 6px 16px; }
.gradebar > :first-child { grid-area: sum; align-self: center; }
.gradebar .gradeactions { grid-area: actions; justify-content: flex-end; gap: 8px; }
.gradebar .gradekeys { grid-area: keys; }
@media (max-width: 560px) { .gradebar { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'sum' 'actions'; } .gradebar .gradeactions { justify-content: stretch; } }
label.check.critrow { gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
label.check.critrow:has(input:checked) { border-color: var(--good); background: var(--good-bg); }
.keyhint { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); font: 600 12px/1 inherit; color: #6B7486; }
@media (max-width: 560px) { .gradebar { position: static; } .gradebar .gradeactions { display: grid; grid-template-columns: 1fr 1fr; } .gradebar .gradeactions > .row { grid-column: 1 / -1; justify-content: space-between; } .gradebar .gradeactions > .btn { grid-column: 1 / -1; } }
/* Zweitprüfer-Zeile im Aufbau der Prüfer-Zeile (Wunsch vom 10.11.2026): Bezeichnung, Etikett, kurzer Zusatz, schlichte Aktionen. */
.exam-people .people-label { min-width: 96px; }
.exam-people .second-row .chip.second-chip { font-weight: 600; }
.exam-people .second-extra { color: #6B7486; }
.exam-people .second-row .btn.small.quiet { padding: 0 8px; font-weight: 600; }
.exam-people .second-row .second-waive { color: #6B7486; }
.exam-people .second-row .second-waive:hover { color: var(--crit); background: var(--crit-bg); }

/* Papierprüfung, Stufe 1: Prüfungsnummer vor dem Namen, Umschalter online/Papier. */
.pnumber { display: inline-block; margin-right: 8px; padding: 1px 8px; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.segmented button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 Inter, system-ui, sans-serif; padding: 7px 12px; cursor: pointer; min-height: 32px; }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button[aria-pressed='true'] { background: var(--navy); color: #fff; }
.segmented button:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
/* Teile einer Prüfung im Bereich „Fragen“ */
.partswitch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.partswitch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.12s; }
.partswitch.on { background: var(--navy); }
.partswitch.on span { left: 21px; }
.partswitch:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.parts-edit { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 16px; }
.part-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; }
.part-name { font-weight: 600; color: var(--muted); font-size: 14px; }
.part-count { white-space: nowrap; }
.part-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 2px; padding: 6px 16px; border-radius: 8px; background: var(--tint); color: var(--navy); font-weight: 600; font-size: 14px; }
.partpick { max-width: 180px; height: 32px; font-size: 13px; }
.parts-list { margin: 0; padding-left: 20px; }
@media (max-width: 640px) { .part-row { grid-template-columns: 1fr auto auto; } .part-row .part-name, .part-row .part-count { display: none; } }
/* Teile in der Prüfung des Prüflings */
.qpart { margin: 0 0 -4px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.qnav-part { grid-column: 1 / -1; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qnav-part:first-child { margin-top: 0; }
/* Papierbögen: Antworten vom Bogen erfassen */
.paper-entry .paper-task { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.paper-entry .paper-task p { margin: 0; }
.paper-entry .paper-task input[type='text'] { max-width: 320px; }
/* Papierbogen: Ausschnitt einer Antwort aus dem Scan */
.scanclip { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.scanclip img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
/* Scans hochladen */
.dropzone { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 22px; border: 2px dashed var(--line); border-radius: 10px; cursor: pointer; }
.dropzone.over, .dropzone:hover { border-color: var(--navy); background: var(--tint); }
.scanline { display: flex; gap: 10px; align-items: baseline; }
.manualrow { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.scanthumb { width: 120px; height: auto; border: 1px solid var(--line); border-radius: 4px; flex: none; }
.paper-entry .paper-task.unsure { border-color: var(--warn); background: var(--warn-bg); }
.paper-entry .scanclip img { max-height: 260px; object-fit: contain; object-position: left top; }
/* Anmerkungen auf dem Ausschnitt */
.scanwrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.scanwrap img { display: block; }
.scanwrap .scannotes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scanwrap.editable { cursor: crosshair; touch-action: none; }
.notebar { gap: 6px; flex-wrap: wrap; }
/* Handy-Aufnahme */
.qrbox { width: 240px; max-width: 100%; align-self: center; }
.qrbox svg { width: 100%; height: auto; display: block; }
.mobilescan { max-width: 520px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.mobilescan .brand { font-weight: 800; color: var(--navy); }
.mobilescan h1 { margin: 0; font-size: 24px; }
.mobilescan p { margin: 0; }
.mobilescan .btn.big { min-height: 64px; font-size: 18px; }
.mobilescan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mobilescan-list li { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); }
.mobilescan-list li.good { border-color: var(--good); background: var(--good-bg); }
.mobilescan-list li.crit { border-color: var(--crit); background: var(--crit-bg); }
/* Sitzplan */
.seatfront { text-align: center; background: var(--tint); color: var(--navy); border-radius: 8px; padding: 6px; font-size: 13px; font-weight: 600; }
.seatgrid { display: grid; gap: 6px; }
.seat { position: relative; min-height: 56px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 6px 8px; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; overflow: hidden; }
.seat.free { background: var(--bg); border-style: dashed; }
.seat.gA { border-color: var(--navy); }
.seat.gB { border-color: #7A4E00; }
.seat.picked { outline: 3px solid var(--navy); outline-offset: 1px; }
.seat-no { font-size: 11px; color: var(--muted); }
.seat-g { position: absolute; top: 4px; right: 6px; font-weight: 700; font-size: 12px; }
.seat-aisle { width: 18px; }
@media (max-width: 640px) { .seat { min-height: 44px; font-size: 11px; padding: 4px; } }

/* KI-Abschrift der Handschrift (Papierprüfung Stufe 5): deutlich als Vorschlag erkennbar, nicht als Antwort */
.aibox { border: 1px dashed var(--line); border-left: 3px solid var(--info, #2f6fde); padding: 12px 14px; background: var(--bg); border-radius: 8px; }
.aibox .aitext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.aibox .aivalues, .aibox .aicrit { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.aibox .aicrit li.yes strong { color: var(--good); }
.aibox .aicrit li.partly strong { color: var(--warn); }
.aibox .aicrit li.no strong { color: var(--crit); }
.pagegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 8px; }
.pagethumb { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.pagethumb img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.plainlist { list-style: none; padding: 0; margin: 0; }
/* Korrektur: Ausschnitt vom Papierbogen groß, damit sich Handschrift lesen lässt */
.scanwrap.big, .scanclip.big .scanwrap { display: block; width: 100%; }
.scanwrap.big img, .scanclip.big > img { width: 100%; max-width: 100%; }
dialog.scanzoom { width: min(1400px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
dialog.scanzoom .scanwrap, dialog.scanzoom .scanwrap img { display: block; width: 100%; }
.scanwrap.editable, .scanwrap.editable img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
