/* LearnIT – Profil (.prof-…) und Ausbilder-Bereich (.adm-…). Farben ausschließlich über die CSS-Variablen aus app.css. */

/* ---------- gemeinsam: Avatar, Aufklapper, Skalen ---------- */
.prof-avatar, .adm-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 900; font-size: 1rem; letter-spacing: .02em; line-height: 1; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); user-select: none; -webkit-user-select: none; }
.prof-avatar.lg, .adm-avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
@media (min-width: 620px) { .prof-avatar.lg, .adm-avatar.lg { width: 78px; height: 78px; font-size: 1.7rem; } }

.prof-fold, .adm-fold { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.prof-fold > summary, .adm-fold > summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 800; border-radius: var(--radius); }
.prof-fold > summary::-webkit-details-marker, .adm-fold > summary::-webkit-details-marker, .adm-mod > summary::-webkit-details-marker { display: none; }
.prof-fold > summary::after, .adm-fold > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 3px 2px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
.prof-fold[open] > summary::after, .adm-fold[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.prof-fold-body, .adm-fold-body { padding: 2px 16px 16px; min-width: 0; }

.prof-scale, .adm-scale { display: inline-flex; gap: 4px; vertical-align: middle; flex: none; }
.prof-scale i, .adm-scale i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); }
.prof-scale i.on, .adm-scale i.on { background: var(--c, var(--accent)); }

.prof-seg, .adm-seg { max-width: 100%; } .prof-seg button, .adm-seg button { min-height: 40px; }
.prof-seg.block { display: flex; width: 100%; } .prof-seg.block button { flex: 1; }
.prof-center, .adm-center { justify-content: center; }
.prof-msg, .adm-msg { font-size: .86rem; font-weight: 700; min-height: 1.2em; overflow-wrap: anywhere; } .prof-msg:empty, .adm-msg:empty { display: none; }
.prof-msg.bad, .adm-msg.bad { color: var(--bad); } .prof-msg.ok, .adm-msg.ok { color: var(--ok); }
.prof-pw, .adm-pw { position: relative; } .prof-pw .input, .adm-pw .input { padding-right: 52px; }
.prof-pw .btn, .adm-pw .btn { position: absolute; right: 2px; top: 1px; }
.prof-form, .adm-form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .prof-form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prof-form.two > .full { grid-column: 1 / -1; } }

/* ========================================================== Profil ========================================================== */
.prof-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av name edit" "meta meta meta"; align-items: center; gap: 12px 14px; padding: 18px; }
.prof-hero > .prof-avatar { grid-area: av; } .prof-hero-name { grid-area: name; min-width: 0; } .prof-hero-edit { grid-area: edit; align-self: start; } .prof-hero-meta { grid-area: meta; min-width: 0; }
.prof-hero h1 { margin: 0 0 2px; font-size: clamp(1.25rem, 5.4vw, 1.8rem); overflow-wrap: anywhere; }
.prof-chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 620px) { .prof-hero { grid-template-areas: "av name edit" "av meta edit"; padding: 22px 24px; gap: 8px 18px; } }

.prof-cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
@media (min-width: 1000px) { .prof-cols { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }
.prof-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.prof-slot { min-width: 0; } .prof-slot:empty { display: none; }
.prof-sec { min-width: 0; } .prof-sec > .section-title h2 { font-size: 1.1rem; }
.prof-must { margin: 14px 0 0; }

.prof-level { display: flex; align-items: center; gap: 12px; padding: 16px 18px 16px 10px; overflow: hidden; }
.prof-level-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.prof-level-name { font-size: 1.4rem; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.prof-level-row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); font-weight: 700; }
.prof-level-row b { color: var(--xp); font-weight: 900; }
.prof-level .progress { --c: var(--xp); } .prof-level .progress i { background: linear-gradient(90deg, var(--xp), var(--accent)); }
.prof-lvl-chip { background: color-mix(in srgb, var(--xp) 18%, transparent); color: var(--xp); border-color: transparent; }

.prof-kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .prof-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prof-kpi, .adm-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; min-width: 0; }
.prof-kpi .stat b, .adm-kpi .stat b { font-size: 1.25rem; overflow-wrap: anywhere; }
.prof-kpi-ico, .adm-kpi-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--k, var(--accent)) 16%, transparent); color: var(--k, var(--accent)); }
@media (min-width: 560px) { .prof-kpi, .adm-kpi { flex-direction: row; align-items: center; gap: 12px; } }

.prof-badges { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
.prof-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.prof-badge-ico { font-size: 1.9rem; line-height: 1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 4px; background: color-mix(in srgb, var(--xp) 18%, transparent); }
.prof-badge b { font-size: .92rem; line-height: 1.2; } .prof-badge span { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.prof-badge.earned { border-color: color-mix(in srgb, var(--xp) 45%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--xp) 11%, var(--surface)), var(--surface)); box-shadow: var(--shadow-sm); }
.prof-badge.earned .prof-badge-date { color: var(--xp); font-weight: 800; }
.prof-badge.locked { background: var(--surface-2); border-style: dashed; } .prof-badge.locked .prof-badge-ico { filter: grayscale(1); opacity: .45; background: var(--surface-3); } .prof-badge.locked b { color: var(--muted); }

.prof-date, .adm-date { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); min-width: 0; }
.prof-date:last-child, .adm-date:last-child { border-bottom: 0; } .prof-date.past, .adm-date.past { opacity: .6; }
.prof-daybox, .adm-daybox { flex: none; width: 50px; border-radius: 12px; overflow: hidden; text-align: center; background: var(--surface-2); border: 1px solid var(--border); line-height: 1.1; }
.prof-daybox i, .adm-daybox i { display: block; font-style: normal; font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; padding: 4px 0 3px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.prof-daybox b, .adm-daybox b { display: block; font-size: 1.2rem; font-weight: 900; padding: 4px 0 6px; }
.prof-date-main, .adm-date-main { flex: 1; min-width: 0; } .prof-date-title, .adm-date-title { font-weight: 800; overflow-wrap: anywhere; line-height: 1.3; }
.prof-date-sub, .adm-date-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; align-items: center; font-size: .8rem; color: var(--muted); }

.prof-setting { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.prof-setting:last-child { border-bottom: 0; }
.prof-setting-label { flex: 1 1 150px; min-width: 0; } .prof-setting-label b { display: block; } .prof-setting-label span { font-size: .8rem; color: var(--muted); }
.prof-setting-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prof-self { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); min-width: 0; }
.prof-self:last-child { border-bottom: 0; } .prof-self-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; } .prof-self-val { font-size: .78rem; color: var(--muted); text-align: right; }
.prof-install ol { margin: 4px 0 12px; padding-left: 1.3em; } .prof-install li { margin: .3em 0; } .prof-install h4 { margin: 12px 0 2px; font-size: .92rem; }

/* ===================================================== Ausbilder-Bereich ===================================================== */
.adm-empty .earny-fig { display: inline-block; }
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 12px; }
.adm-search { position: relative; flex: 1 1 220px; min-width: 0; }
.adm-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.adm-search .input { padding-left: 42px; }
.adm-toolbar select.input { width: auto; flex: 1 1 170px; max-width: 240px; }
.adm-count { font-size: .82rem; color: var(--muted); font-weight: 700; margin: 0 2px 8px; }

/* Tabelle, die in schmalen Containern zu Karten wird */
.adm-rt-wrap { container-type: inline-size; min-width: 0; }
.adm-rt-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.adm-rt { width: 100%; border-collapse: collapse; font-size: .92rem; }
.adm-rt th, .adm-rt td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.adm-rt th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.adm-rt tbody tr:last-child td { border-bottom: 0; }
.adm-rt tr.click { cursor: pointer; } .adm-rt tr.click:hover td { background: var(--surface-2); }
.adm-rt td.num, .adm-rt th.num { text-align: right; white-space: nowrap; } .adm-rt td.nowrap { white-space: nowrap; }
.adm-rt .adm-rt-main { font-weight: 800; min-width: 170px; }
.adm-sort { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; }
.adm-sort:hover { color: var(--text); } .adm-sort.on { color: var(--accent); }
@container (max-width: 719px) {
  .adm-rt-scroll { overflow: visible; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .adm-rt, .adm-rt tbody { display: block; } .adm-rt thead { display: none; }
  .adm-rt tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
  .adm-rt tr:last-child { margin-bottom: 0; }
  .adm-rt td, .adm-rt tbody tr:last-child td { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .adm-rt td.num { text-align: left; white-space: normal; }
  .adm-rt td::before { content: attr(data-label); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
  .adm-rt td.adm-rt-main { grid-column: 1 / -1; order: -1; min-width: 0; } .adm-rt td.adm-rt-main::before { display: none; }
  .adm-rt td.adm-rt-full { grid-column: 1 / -1; }
  .adm-rt tr.click:hover td { background: none; } .adm-rt tr.click:active { transform: scale(.99); }
}
@container (min-width: 720px) and (max-width: 919px) {
  .adm-rt-scroll.wide { overflow: visible; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .adm-rt.wide, .adm-rt.wide tbody { display: block; } .adm-rt.wide thead { display: none; }
  .adm-rt.wide tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
  .adm-rt.wide tr:last-child { margin-bottom: 0; }
  .adm-rt.wide td, .adm-rt.wide tbody tr:last-child td { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .adm-rt.wide td.num { text-align: left; white-space: normal; }
  .adm-rt.wide td::before { content: attr(data-label); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
  .adm-rt.wide td.adm-rt-main { grid-column: 1 / -1; order: -1; min-width: 0; } .adm-rt.wide td.adm-rt-main::before { display: none; }
  .adm-rt.wide td.adm-rt-full { grid-column: 1 / -1; }
  .adm-rt.wide tr.click:hover td { background: none; } .adm-rt.wide tr.click:active { transform: scale(.99); }
}

.adm-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-user-name { display: block; font-weight: 800; color: var(--text); overflow-wrap: anywhere; } a.adm-user-name:hover { color: var(--accent); text-decoration: none; }
.adm-user-sub { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.adm-grade-chip { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 10px; font-weight: 900; font-size: .9rem; background: var(--surface-2); color: var(--muted); }
.adm-grade-chip.good { background: var(--ok-soft); color: var(--ok); } .adm-grade-chip.mid { background: var(--warn-soft); color: var(--warn); } .adm-grade-chip.low { background: var(--bad-soft); color: var(--bad); }

/* Detail: Kopf, Menü, Tabs */
.adm-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px; flex-wrap: wrap; }
.adm-head-main { flex: 1 1 200px; min-width: 0; } .adm-head h1 { margin: 0 0 8px; font-size: clamp(1.25rem, 5vw, 1.8rem); overflow-wrap: anywhere; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: .84rem; color: var(--muted); } .adm-meta b { color: var(--text); font-weight: 700; }
.adm-menu-wrap { position: relative; margin-left: auto; }
.adm-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: max-content; max-width: min(320px, calc(100vw - 28px)); padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.adm-menu button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px 0 12px; border: 0; background: transparent; border-radius: 12px; font-weight: 700; cursor: pointer; text-align: left; color: var(--text); }
.adm-menu button:hover { background: var(--surface-2); } .adm-menu button.danger { color: var(--bad); } .adm-menu button.danger:hover { background: var(--bad-soft); }
.adm-tabs { margin: 16px 0 18px; } .adm-tabs button { min-height: 44px; }
.adm-tab-body { min-width: 0; }
.adm-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .adm-card-title h3 { margin: 0; }

/* Überblick */
.adm-kpi .ring { margin: -4px 0; }
.adm-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: stretch; height: 124px; }
.adm-bar { display: flex; align-items: flex-end; border-radius: 4px; background: color-mix(in srgb, var(--surface-3) 40%, transparent); min-width: 0; }
.adm-bar.we { background: color-mix(in srgb, var(--surface-3) 85%, transparent); }
.adm-bar i { display: flex; align-items: flex-end; width: 100%; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--bad) 60%, var(--surface-3)); }
.adm-bar i u { display: block; width: 100%; background: var(--accent); }
.adm-bar.read i { background: var(--accent-2); opacity: .55; }
.adm-bar.today { outline: 2px solid color-mix(in srgb, var(--xp) 70%, transparent); outline-offset: 1px; }
.adm-bars-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--faint); font-weight: 700; margin-top: 6px; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--muted); font-weight: 700; margin-top: 10px; }
.adm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--accent); }
.adm-legend i.bad { background: color-mix(in srgb, var(--bad) 60%, var(--surface-3)); } .adm-legend i.read { background: var(--accent-2); opacity: .55; }
.adm-status { display: flex; flex-direction: column; gap: 12px; }
.adm-status-item { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.adm-status-item > div { flex: 1; min-width: 0; overflow-wrap: anywhere; padding-top: 3px; }
.adm-status-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--info); }
.adm-status-ico.ok { background: var(--ok-soft); color: var(--ok); } .adm-status-ico.warn { background: var(--warn-soft); color: var(--warn); } .adm-status-ico.bad { background: var(--bad-soft); color: var(--bad); }
.adm-rec { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); } .adm-rec:last-child { border-bottom: 0; padding-bottom: 0; } .adm-rec:first-child { padding-top: 0; }
.adm-rec-ico { flex: none; font-size: 1.3rem; line-height: 1.2; width: 30px; text-align: center; }

/* Fächer & Bereiche */
.adm-subj > summary .ring { margin-left: auto; }
.adm-subj-name { min-width: 0; flex: 1; } .adm-subj-name b { display: block; overflow-wrap: anywhere; } .adm-subj-name span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.adm-gt { container-type: inline-size; min-width: 0; }
.adm-gt-head, .adm-gt-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1.45fr) minmax(0, .6fr) 18px; gap: 10px; align-items: center; padding: 10px 8px; }
.adm-gt-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; border-bottom: 1px solid var(--border); }
.adm-mod { border-bottom: 1px solid var(--border); min-width: 0; } .adm-mod:last-child { border-bottom: 0; }
.adm-mod > summary { position: relative; cursor: pointer; list-style: none; border-radius: 12px; min-height: 54px; } .adm-mod > summary:hover { background: var(--surface-2); }
.adm-gt-row > span { min-width: 0; font-size: .9rem; overflow-wrap: anywhere; } .adm-gt-row > span::before { display: none; content: attr(data-label); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.adm-gt-row > .adm-mod-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .95rem; }
.adm-gt-chev { color: var(--muted); display: inline-flex; transition: transform .15s ease; } .adm-mod[open] > summary .adm-gt-chev { transform: rotate(180deg); }
.adm-mod-body { padding: 8px 8px 18px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.adm-mod-body > .full { grid-column: 1 / -1; } .adm-mod-body h4 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@container (min-width: 720px) { .adm-mod-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 859px) {
  .adm-gt-head { display: none; }
  .adm-gt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 4px; }
  .adm-gt-row > .adm-mod-title { grid-column: 1 / -1; padding-right: 28px; }
  .adm-gt-row > span { display: flex; flex-direction: column; gap: 2px; } .adm-gt-row > .adm-mod-title { flex-direction: row; } .adm-gt-row > span::before { display: block; } .adm-gt-row > .adm-mod-title::before, .adm-gt-row > .adm-gt-chev::before { display: none; }
  .adm-gt-row > .adm-gt-chev { position: absolute; right: 8px; top: 18px; }
  .adm-mod-body { padding: 6px 4px 16px; }
}
.adm-mini { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; } .adm-mini .progress { flex: 1; min-width: 30px; height: 7px; } .adm-mini .progress i { background: var(--c); }
.adm-mini b { flex: none; font-size: .84rem; min-width: 40px; text-align: right; font-weight: 800; }
.adm-lv-weak { --c: var(--bad); } .adm-lv-medium { --c: var(--warn); } .adm-lv-strong { --c: var(--ok); } .adm-lv-unknown { --c: var(--faint); }
.adm-lesson { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--border); min-width: 0; } .adm-lesson:last-child { border-bottom: 0; }
.adm-lesson-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; background: var(--surface-3); color: var(--muted); font-size: .7rem; font-weight: 900; }
.adm-lesson-dot.done { background: var(--ok); color: var(--accent-ink); } .adm-lesson-dot.started { background: var(--warn-soft); color: var(--warn); }
.adm-lesson-main { flex: 1; min-width: 0; overflow-wrap: anywhere; } .adm-lesson-main b { font-weight: 700; } .adm-lesson-main span { display: block; font-size: .8rem; color: var(--muted); }
.adm-topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(92px, 132px) 38px; gap: 2px 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .88rem; } .adm-topic:last-child { border-bottom: 0; }
.adm-topic > span:first-child { overflow-wrap: anywhere; } .adm-topic > span:last-child { text-align: right; color: var(--muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }

/* Prüfungen */
.adm-chart-wrap { overflow-x: auto; } .adm-chart { width: 100%; min-width: 480px; height: auto; display: block; overflow: visible; }
.adm-chart .g { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 4; } .adm-chart text { fill: var(--faint); font-size: 13px; font-weight: 700; }
.adm-chart .ln { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.adm-chart .pt { stroke: var(--surface); stroke-width: 2; fill: var(--accent-2); } .adm-chart .pt.good { fill: var(--ok); } .adm-chart .pt.mid { fill: var(--warn); } .adm-chart .pt.low { fill: var(--bad); }
.adm-exam-hero { display: flex; align-items: center; gap: 18px; padding: 20px; flex-wrap: wrap; }
.adm-exam-hero h1 { margin: 0 0 4px; font-size: clamp(1.2rem, 4.8vw, 1.7rem); overflow-wrap: anywhere; }
.adm-grade { flex: none; width: 96px; height: 96px; border-radius: 26px; display: grid; place-content: center; text-align: center; background: var(--surface); border: 2.5px solid var(--g, var(--border-strong)); color: var(--g, var(--text)); line-height: 1; }
.adm-grade b { display: block; font-size: 2.6rem; font-weight: 900; } .adm-grade span { display: block; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; }
.adm-grade.good { --g: var(--ok); } .adm-grade.mid { --g: var(--warn); } .adm-grade.low { --g: var(--bad); }
.adm-exam-main { flex: 1 1 240px; min-width: 0; }
.adm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 12px; } @media (min-width: 760px) { .adm-facts { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 10px 30px; } }
.adm-facts .stat b { font-size: 1.1rem; }
.adm-topicbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: baseline; } .adm-topicbar:last-child { border-bottom: 0; }
.adm-topicbar .progress { grid-column: 1 / -1; } .adm-topicbar .progress i { background: var(--c); } .adm-topicbar b { overflow-wrap: anywhere; } .adm-topicbar small { display: block; color: var(--muted); font-weight: 600; }
.adm-sec-title { flex-wrap: wrap; }
.adm-items { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* Startprofil, Protokoll */
.adm-quote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.adm-scale-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .adm-scale-cell small { color: var(--muted); font-weight: 600; }
.adm-log-day { font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 18px 4px 8px; } .adm-log-day:first-child { padding-top: 0; }
.adm-log-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); min-width: 0; color: inherit; text-decoration: none; } .adm-log-item:last-child { border-bottom: 0; }
a.adm-log-item:hover { background: var(--surface-2); text-decoration: none; }
.adm-log-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); font-size: 1.02rem; line-height: 1; }
.adm-log-main { flex: 1; min-width: 0; overflow-wrap: anywhere; } .adm-log-main b { font-weight: 800; } .adm-log-sub { font-size: .82rem; color: var(--muted); }
.adm-log-time { flex: none; font-size: .78rem; color: var(--faint); font-weight: 700; white-space: nowrap; padding-top: 3px; }

/* Einstellungen & Selbsttest */
.adm-set-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .adm-set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .adm-set-grid > .full { grid-column: 1 / -1; } }
.adm-set-grid > .card { display: flex; flex-direction: column; gap: 12px; } .adm-set-grid > .card > p, .adm-set-grid > .card > .callout { margin: 0; }
.adm-copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.adm-copy code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; overflow-wrap: anywhere; font-size: .88rem; }
.adm-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: .9rem; margin: 0; } .adm-kv dt { color: var(--muted); font-weight: 700; } .adm-kv dd { margin: 0; overflow-wrap: anywhere; }
.adm-steps { margin: 0; padding-left: 1.3em; text-align: left; } .adm-steps li { margin: .5em 0; }
.adm-st-host { position: fixed; left: -10000px; top: 0; width: 820px; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.adm-st-progress { display: flex; flex-direction: column; gap: 8px; }
.adm-st-line { font-size: .84rem; color: var(--muted); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-st-msg { font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; white-space: pre-wrap; font-weight: 400; }
.adm-st-report { width: 100%; min-height: 200px; font-family: var(--mono); font-size: .78rem; white-space: pre; overflow: auto; }
.adm-st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

@media print {
  .adm-noprint, .view-adminExam .back, .view-adminExam .ex-ai { display: none !important; }
  .view-adminExam .page { max-width: none; padding: 0; }
  .adm-exam-hero, .adm-items > * { break-inside: avoid; }
}
