/*
 * Gestaltung der Anwendung.
 * Aufbau: 1 Grundwerte · 2 Grundelemente · 3 Gerüst · 4 Bausteine ·
 *         5 Anmeldung · 6 Prüfungsansicht · 7 Fragetypen · 8 Druck
 */

/* ---------- 1 Grundwerte ---------- */

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
    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;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1EFF, U+20A0-20AB;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --brand: #1d5a96;
    --brand-dark: #16477a;
    --brand-mid: #7fa8ce;
    --brand-light: #d7e5f2;
    --brand-pale: #eff5fa;

    --ink: #1b2430;
    --ink-2: #465464;
    --ink-3: #66748a;

    --line: #d8dde4;
    --line-strong: #a9b4c0;
    --line-soft: #e8ebef;

    --bg: #f3f5f7;
    --surface: #fff;
    --surface-2: #f8f9fb;

    --ok: #24703f;
    --ok-line: #a9d3b7;
    --ok-pale: #ecf6ef;
    --warn: #8a5a00;
    --warn-line: #e5c98c;
    --warn-pale: #fdf6e6;
    --danger: #b02a22;
    --danger-line: #e6b1ad;
    --danger-pale: #fcf0ef;

    --radius: 4px;
    --radius-lg: 6px;
    --control: 36px;
    --sidebar: 228px;
    --topbar: 52px;
    --focus: 0 0 0 3px rgba(29, 90, 150, .22);
}

/* ---------- 2 Grundelemente ---------- */

*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--line); }
button { padding: 0; background: none; }
fieldset { margin: 0; padding: 0; min-width: 0; }
dialog { margin: auto; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scrollbar-gutter: stable; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.45 "Source Sans 3", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; color: var(--ink); }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code { font-family: Consolas, "Liberation Mono", Menlo, monospace; font-size: .92em; }
[hidden] { display: none !important; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }

.icon { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.text-ok { color: var(--ok); }
.stack-top { margin-top: 20px !important; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3 Gerüst ---------- */

.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--sidebar);
    display: flex; flex-direction: column;
    background: #17263a; color: #c4cfdb;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    height: var(--topbar); padding: 0 16px;
    color: #fff; font-size: 17px; font-weight: 600;
    border-bottom: 1px solid #24364d;
}
.sidebar-brand:hover { text-decoration: none; }
.logo { width: 19px; height: 26px; flex: none; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0 16px; }
.sidebar-group { margin: 16px 16px 4px; font-size: 13px; color: #8496aa; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 16px 7px 13px;
    border-left: 3px solid transparent;
    color: #d3dce6; font-size: 15px;
}
.sidebar-nav a .icon { color: #8fa1b5; }
.sidebar-nav a:hover { background: #1f3149; color: #fff; text-decoration: none; }
.sidebar-nav a.is-active { background: #243a56; border-left-color: #5b9bd5; color: #fff; font-weight: 600; }
.sidebar-nav a.is-active .icon { color: #9cc4e8; }
.sidebar-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #24364d; font-size: 14px; color: #93a4b7; }
.sidebar-foot span { overflow: hidden; text-overflow: ellipsis; }
.sidebar-backdrop { display: none; }

.page { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    height: var(--topbar); padding: 0 24px;
    background: #fff; border-bottom: 1px solid var(--line);
}
.topbar-menu { display: none; padding: 7px; margin-left: -7px; background: none; border: 0; color: var(--ink-2); }
.topbar-menu .icon { width: 22px; height: 22px; display: block; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.crumbs .icon { width: 14px; height: 14px; color: var(--line-strong); }
.crumbs span { overflow: hidden; text-overflow: ellipsis; }

.content { padding: 22px 24px 64px; max-width: 1360px; }
.content-narrow { max-width: 860px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-sub { margin-top: 3px; color: var(--ink-2); }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); transition: transform .16s ease; visibility: hidden; width: 260px; }
    .sidebar-open .sidebar { transform: none; visibility: visible; }
    .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15, 25, 38, .45); }
    .page { margin-left: 0; }
    .topbar { padding: 0 16px; }
    .topbar-menu { display: block; }
    .content { padding: 18px 16px 48px; }
    .account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .crumbs a, .crumbs .icon { display: none; }
}

/* ---------- 4 Bausteine ---------- */

/* Schaltflächen */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: var(--control); padding: 0 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.2;
    white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #f1f4f7; border-color: #8d9aa8; text-decoration: none; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { background: var(--danger-pale); border-color: var(--danger); }
.btn-solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-solid-danger:hover { background: #8f211a; border-color: #8f211a; }
.btn-quiet { border-color: transparent; background: none; color: var(--brand); }
.btn-quiet:hover { background: var(--brand-pale); border-color: transparent; }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 14px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn-lg { min-height: 44px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: default; pointer-events: none; }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0;
    border: 1px solid transparent; border-radius: var(--radius); background: none; color: var(--ink-3);
}
.btn-icon:hover { background: #e9edf1; color: var(--ink); }
.btn-icon.is-danger:hover { background: var(--danger-pale); color: var(--danger); }
.btn-icon .icon { width: 17px; height: 17px; }
.inline-form { display: inline-flex; margin: 0; }

/* Formulare */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .label, .label { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-3); }
.hint { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.input, .select, .textarea,
.field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), .field select, .field textarea {
    display: block; width: 100%; min-height: var(--control);
    padding: 6px 10px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background-color: #fff; font-size: 15px; line-height: 1.4;
}
.textarea, .field textarea { min-height: 80px; resize: vertical; }
.select, .field select, select.q-inline, select.q-input {
    appearance: none; padding-right: 30px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 16px;
}
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand) !important; box-shadow: var(--focus); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--ink-3); }
::placeholder { color: #8e9aa8; opacity: 1; }
.input-sm, .select-sm { min-height: 30px; padding-top: 3px; padding-bottom: 3px; font-size: 14px; width: auto; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); vertical-align: -2px; }
.check { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; cursor: pointer; }
.check input { margin-top: 3px; flex: none; }
.check small { display: block; font-size: 14px; color: var(--ink-3); }
.form-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.form-bar {
    position: sticky; bottom: 0; z-index: 20;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 0 -24px -64px; padding: 12px 24px;
    background: #fff; border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
    .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .form-grid .span-2 { grid-column: auto; }
}
@media (max-width: 960px) { .form-bar { margin: 0 -16px -48px; padding: 10px 16px; } }

/* Karten und Abschnitte */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 17px; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.columns { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.columns > * { min-width: 0; }
@media (max-width: 1080px) { .columns { grid-template-columns: minmax(0, 1fr); } }

/* Eingabefelder in Flex-Zeilen dürfen schmaler werden als ihre Standardbreite. */
input, select, textarea { min-width: 0; }

/* Tabellen */
.table-wrap { position: relative; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { padding: 8px 12px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table th.num, .table td.num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .actions form, .table .actions a, .table .actions button { vertical-align: middle; }
.table .check-col { width: 1%; padding-right: 2px; }
.table .title-link { font-weight: 600; color: var(--ink); }
.table .title-link:hover { color: var(--brand); }
.table tr.is-selected { background: var(--brand-pale); }
.table tfoot td { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.card > .table-wrap:first-child .table th:first-child { border-top-left-radius: var(--radius-lg); }
.card > .table-wrap:first-child .table th:last-child { border-top-right-radius: var(--radius-lg); }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--ink); }
th[data-sort][aria-sort=ascending]::after { content: " ↑"; }
th[data-sort][aria-sort=descending]::after { content: " ↓"; }

/* Filterleiste, Mehrfachauswahl */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.toolbar .select, .toolbar .input { width: auto; max-width: 240px; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search .icon { position: absolute; left: 10px; top: 9px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; max-width: none !important; padding-left: 34px !important; }
.bulk { display: none; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 18px; background: var(--brand-pale); border-bottom: 1px solid var(--brand-light); }
.bulk.is-visible { display: flex; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pagination-nav { display: flex; align-items: center; gap: 10px; }

/* Kennzeichnungen */
.badge { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-pale); border-color: var(--ok-line); color: var(--ok); }
.badge-warn { background: var(--warn-pale); border-color: var(--warn-line); color: var(--warn); }
.badge-danger { background: var(--danger-pale); border-color: var(--danger-line); color: var(--danger); }
.badge-brand { background: var(--brand-pale); border-color: #b9d1e6; color: var(--brand-dark); }

/* Meldungen */
.alert { display: flex; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); background: #fff; font-size: 15px; }
.alert .icon { margin-top: 2px; }
.alert ul { padding-left: 18px; list-style: disc; }
.alert-success { border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-pale); }
.alert-success .icon { color: var(--ok); }
.alert-error { border-color: var(--danger-line); border-left-color: var(--danger); background: var(--danger-pale); }
.alert-error .icon { color: var(--danger); }
.alert-warning { border-color: var(--warn-line); border-left-color: #c98a12; background: var(--warn-pale); }
.alert-warning .icon { color: var(--warn); }
.alert-info { border-color: #bcd2e6; border-left-color: var(--brand); background: var(--brand-pale); }
.alert-info .icon { color: var(--brand); }

.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); }
.empty-title { font-weight: 600; color: var(--ink); }
.empty-action { margin-top: 14px; }

/* Reiter */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 8px 12px; border-bottom: 3px solid transparent; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--line-strong); }
.tabs a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-count { margin-left: 6px; padding: 0 6px; border-radius: 3px; background: #e6eaee; font-size: 13px; color: var(--ink-2); }

/* Aufklappmenü */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; padding: 5px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: 0 6px 18px rgba(20, 32, 48, .14); text-align: left; }
/* In Tabellen frei positioniert (app.js), sonst schneidet der Scrollbereich das Menü ab. */
.table .menu-panel { position: fixed; right: auto; top: 0; left: 0; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--radius); background: none; color: var(--ink); font-size: 15px; text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: #eef2f6; text-decoration: none; }
.menu-panel .icon { color: var(--ink-3); }
.menu-panel form { margin: 0; display: block; }
.menu-panel .is-danger { color: var(--danger); }
.menu-panel .is-danger .icon { color: var(--danger); }
.menu-panel hr { margin: 5px 0; }
.menu-head { padding: 7px 10px 9px; margin-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.menu-head .muted { font-weight: 400; font-size: 14px; }
.account > summary { padding: 6px 8px; border-radius: var(--radius); font-size: 15px; }
.account > summary:hover { background: #eef2f6; }
.account > summary .icon { width: 15px; height: 15px; color: var(--ink-3); }

/* Dialoge */
.dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: 0 16px 48px rgba(15, 25, 38, .28); color: var(--ink); }
.dialog::backdrop { background: rgba(15, 25, 38, .45); }
.dialog-wide { width: min(920px, calc(100vw - 32px)); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 18px; max-height: calc(100vh - 220px); overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; }
.toast { padding: 10px 16px; border-radius: var(--radius); background: #223247; color: #fff; font-size: 15px; box-shadow: 0 4px 14px rgba(15, 25, 38, .25); }
.toast.is-error { background: var(--danger); }

/* Kennzahlen und Beschreibungslisten */
.figures { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 20px; }
.figure { flex: 1 1 140px; padding: 13px 18px; border-right: 1px solid var(--line); }
.figure:last-child { border-right: 0; }
.figure dt { font-size: 14px; color: var(--ink-2); }
.figure dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.figure dd small { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 20px; font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts-stacked { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.facts-stacked dd { margin-bottom: 10px; }

.meter { display: block; height: 6px; border-radius: 3px; background: #e2e7ec; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand); }
.meter-ok > span { background: #3d8f5b; }
.meter-warn > span { background: #cf9423; }
.meter-danger > span { background: #c4483f; }

.task-list li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); }
.task-list li:last-child { border-bottom: 0; }

.pin { font-family: Consolas, "Liberation Mono", Menlo, monospace; font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.drag-handle { cursor: grab; color: var(--line-strong); display: inline-flex; touch-action: none; }
.drag-handle:hover { color: var(--ink-2); }
.sortable-ghost { opacity: .4; }
.sortable-chosen { background: var(--brand-pale); }

/* Formatierter Text aus dem Editor */
.rich { overflow-wrap: break-word; }
.rich p + p, .rich p + ul, .rich p + ol, .rich ul + p, .rich ol + p, .rich table + p, .rich p + table { margin-top: .6em; }
.rich ul { list-style: disc; padding-left: 1.5em; }
.rich ol { list-style: decimal; padding-left: 1.5em; }
.rich h1, .rich h2, .rich h3, .rich h4 { margin: .8em 0 .3em; }
.rich h1 { font-size: 1.35em; } .rich h2 { font-size: 1.2em; } .rich h3 { font-size: 1.08em; }
.rich img { max-width: 100%; height: auto; }
.rich table { border-collapse: collapse; max-width: 100%; }
.rich td, .rich th { border: 1px solid var(--line-strong); padding: 5px 9px; }
.rich blockquote { margin: .6em 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--ink-2); }
.tox-tinymce { border: 1px solid var(--line-strong) !important; border-radius: var(--radius) !important; }

/* ---------- 5 Anmeldung ---------- */

.auth-page { display: flex; flex-direction: column; background: var(--bg); }
.auth-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px; background: #17263a; color: #fff; font-size: 18px; font-weight: 600; }
.auth-main { flex: 1; width: 100%; max-width: 432px; margin: 0 auto; padding: 9vh 16px 48px; }
.auth-wide .auth-main { max-width: 640px; padding-top: 6vh; }
.auth-box { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.auth-title { font-size: 22px; margin-bottom: 6px; }
.auth-title + .muted { margin-bottom: 18px; }
.auth-box .alert { margin-top: 14px; }
.auth-below { margin-top: 16px; text-align: center; font-size: 15px; color: var(--ink-2); }
.pin-input { height: 54px; text-align: center; font-family: Consolas, "Liberation Mono", Menlo, monospace; font-size: 26px !important; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- 6 Prüfungsansicht ---------- */

.exam { background: #eef1f4; }
.exam-bar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 20px;
    min-height: 56px; padding: 6px 24px;
    background: #17263a; color: #fff;
}
.exam-bar-title { flex: 1; min-width: 0; }
.exam-bar-title strong { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-bar-title span { display: block; font-size: 14px; color: #a9b9ca; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-clock { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.exam-clock.is-low { padding: 4px 10px; border-radius: var(--radius); background: #f5d58c; color: #4a3200; }
.exam-clock.is-critical { padding: 4px 10px; border-radius: var(--radius); background: var(--danger); color: #fff; }
.exam-status { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #a9b9ca; white-space: nowrap; }
.exam-status .icon { width: 16px; height: 16px; }
.exam-status.is-error { color: #ffc9c4; font-weight: 600; }
.exam-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; padding: 24px 24px 72px; align-items: start; }
.exam-nav { position: sticky; top: 80px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.exam-nav h2 { font-size: 15px; margin-bottom: 10px; }
.exam-nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.exam-nav-grid button, .exam-nav-grid .nav-cell {
    position: relative; height: 36px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); border-radius: 3px; background: #fff;
    font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink);
}
.exam-nav-grid button:hover { border-color: var(--brand); }
.exam-nav-grid .is-answered { background: var(--brand-light); border-color: var(--brand-mid); }
.exam-nav-grid .is-partial { box-shadow: inset 0 -6px 0 var(--brand-light); }
.exam-nav-grid .is-partial.is-current { box-shadow: inset 0 0 0 1px var(--brand), inset 0 -6px 0 var(--brand-light); }
.exam-nav-grid .is-current { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 700; }
.exam-nav-grid .is-flagged::after { content: ""; position: absolute; top: -1px; right: -1px; border: 6px solid; border-color: #d98a00 #d98a00 transparent transparent; border-top-right-radius: 3px; }
.exam-legend { margin-top: 12px; display: grid; gap: 5px; font-size: 14px; color: var(--ink-2); }
.exam-legend li { display: flex; align-items: center; gap: 8px; }
.exam-legend i { position: relative; width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; }
.exam-legend .l-answered { background: var(--brand-light); border-color: var(--brand-mid); }
.exam-legend .l-partial { box-shadow: inset 0 -5px 0 var(--brand-light); }
.exam-legend .l-flagged::after { content: ""; position: absolute; top: -1px; right: -1px; border: 4px solid; border-color: #d98a00 #d98a00 transparent transparent; }
.exam-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.exam-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.exam-sheet-head h1 { font-size: 18px; }
.exam-points { flex: 1; text-align: right; }
.exam-sheet-body { padding: 24px 28px 30px; }
.exam-sheet-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 28px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.exam-part { padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--line); }
.exam-part-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.exam-part-head strong { font-size: 17px; }
.exam-question { max-width: 76ch; margin-bottom: 20px; font-size: 17px; line-height: 1.5; }
.flag-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font-size: 14px; cursor: pointer; user-select: none; }
.flag-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.flag-toggle .icon { width: 15px; height: 15px; color: var(--ink-3); }
.flag-toggle:has(input:checked) { background: #fdf3dd; border-color: #dfb35a; }
.flag-toggle:has(input:checked) .icon { color: #b87400; fill: #f3c25f; }
.flag-toggle:has(input:focus-visible) { box-shadow: var(--focus); }
.exam-comment { margin-top: 26px; }
.exam-comment summary { cursor: pointer; color: var(--brand); font-size: 15px; }
.exam-comment textarea { margin-top: 8px; max-width: 76ch; }
@media (max-width: 860px) {
    .exam-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 12px 56px; }
    .exam-nav { position: static; order: 2; }
    .exam-nav-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
    .exam-nav-grid button { height: 40px; }
    .exam-bar { gap: 12px; padding: 6px 14px; }
    .exam-status span { display: none; }
    .exam-sheet-head { padding: 12px 16px; }
    .exam-sheet-body { padding: 18px 16px 22px; }
    .exam-sheet-foot { padding: 12px 16px; }
    .exam-sheet-foot .btn { flex: 1; }
}

/* ---------- 7 Fragetypen (Prüfungsansicht und Auswertung) ---------- */

.q-hint { margin-bottom: 10px; font-size: 15px; color: var(--ink-2); }
.q-error { padding: 10px 14px; border: 1px solid var(--warn-line); background: var(--warn-pale); border-radius: var(--radius); font-size: 15px; }
.q-input { display: block; width: 100%; max-width: 76ch; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font-size: 16px; }
.q-input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
textarea.q-input { min-height: 180px; resize: vertical; }
.q-input-number { width: 170px; text-align: right; font-variant-numeric: tabular-nums; }
.q-inline { display: inline-block; width: auto; min-width: 130px; min-height: 34px; padding: 3px 8px; margin: 2px 3px; vertical-align: baseline; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font-size: 16px; line-height: 1.3; }
.q-inline:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
select.q-inline { padding-right: 30px; min-width: 150px; }
.q-cloze { max-width: 76ch; font-size: 17px; line-height: 2.1; }

/* Auswahlfragen */
.q-options { max-width: 76ch; border: 1px solid var(--line); border-radius: var(--radius); }
.q-option { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 16px; }
.q-option:last-child { border-bottom: 0; }
.q-option:hover { background: var(--surface-2); }
.q-option input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.q-option:has(input:checked) { background: var(--brand-pale); box-shadow: inset 3px 0 0 var(--brand); }

/* Tabellarische Fragen: Wahr/Falsch, Vokabeln, Mehrfachzuordnung */
.q-table { border-collapse: collapse; font-size: 16px; }
.q-table th { padding: 8px 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; font-weight: 600; text-align: left; }
.q-table td { padding: 9px 14px; border: 1px solid var(--line); background: #fff; vertical-align: middle; }
.q-table .row-between { flex-wrap: nowrap; }
.q-table .is-correct .icon { color: var(--ok); flex: none; }
.q-table .is-wrong .icon { color: var(--danger); flex: none; }
.q-filled { line-height: 2; }
.q-gap { display: inline-block; padding: 0 8px; border-bottom: 2px solid var(--line-strong); background: var(--surface-2); line-height: 1.6; font-weight: 600; }
.q-gap.is-correct { background: var(--ok-pale); border-color: var(--ok); }
.q-gap.is-wrong { background: var(--danger-pale); border-color: var(--danger); }
.q-text { padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.q-table .is-correct { background: var(--ok-pale); }
.q-table .is-wrong { background: var(--danger-pale); }
.q-table .center { text-align: center; }
.q-table td.center label { display: block; margin: -9px -14px; padding: 11px 14px; cursor: pointer; }
.q-table td.center label:hover { background: var(--brand-pale); }
.q-table td.center input { width: 18px; height: 18px; vertical-align: middle; }
.q-table .q-input { min-height: 38px; }
.q-table td.q-cell { padding: 5px; }
.q-table td.q-cell textarea { min-width: 130px; min-height: 46px; padding: 6px 8px; border-color: var(--line-strong); }

@media (max-width: 600px) {
    .q-table th, .q-table td { padding-left: 8px; padding-right: 8px; font-size: 15px; }
    .q-table td.center label { margin: -9px -8px; padding: 11px 8px; }
}

/* Nummerierte Eingabezeilen */
.q-lines { max-width: 60ch; display: grid; gap: 8px; }
.q-lines li { display: grid; grid-template-columns: 28px 1fr; align-items: center; }
.q-lines li > span { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Reihenfolge */
.q-order { max-width: 68ch; border: 1px solid var(--line-strong); border-radius: var(--radius); counter-reset: order; }
.q-order li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--line); background: #fff; counter-increment: order; }
.q-order li:last-child { border-bottom: 0; }
.q-order li::before { content: counter(order) "."; width: 24px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.q-order .drag-handle { padding: 6px 2px; }

/* Zuordnen: gemeinsame Bedienung für Zuordnung, Kategorien und Wortbank */
.q-pairs { width: 100%; max-width: 860px; border-collapse: collapse; table-layout: fixed; }
.q-pairs th { padding: 0 12px 6px; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.q-pairs td { padding: 8px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.q-pairs td:first-child { width: 46%; }
.q-pairs td.slot-cell { padding: 5px 0; }
.slot { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-3); font-size: 15px; }
.slot-empty { pointer-events: none; }
.slot:has(.token) { background: #fff; padding: 2px 3px; }
.slot:has(.token) > .slot-empty { display: none; }
.has-selection [data-slot] { cursor: pointer; border-color: var(--brand); background: var(--brand-pale); }
[data-slot].is-over { border-color: var(--brand) !important; background: var(--brand-light) !important; }
.token {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
    min-height: 36px; padding: 6px 12px;
    border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
    color: var(--ink); font-size: 16px; line-height: 1.3; text-align: left;
    cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.token:hover { border-color: var(--brand); }
.token.is-selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.token.is-dragging { opacity: .35; }
.token-ghost { position: fixed; z-index: 100; pointer-events: none; box-shadow: 0 5px 14px rgba(15, 25, 38, .22); border-color: var(--brand); }
.slot .token { flex: 1; min-height: 34px; border-color: transparent; }
.slot .token:hover { border-color: var(--line-strong); }
.bank { margin-top: 18px; max-width: 860px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.bank-label { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.bank-items { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; }
.bank-items:empty::before { content: attr(data-empty); align-self: center; font-size: 15px; color: var(--ink-3); }
.q-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 980px; }
.category { border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; min-height: 130px; display: flex; flex-direction: column; }
.category-name { padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 15px; pointer-events: none; }
.category-items { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 10px; }

/* Bildfragen */
.q-image { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--line); line-height: 0; background: #fff; }
.q-image img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.q-image-field { position: absolute; line-height: 1.2; }
.q-image-field input { width: 100%; height: 100%; min-height: 28px; padding: 0 5px; border: 1px solid var(--brand); border-radius: 3px; background: #fff; font-size: 15px; text-align: center; }
.q-image-field input:focus { outline: none; box-shadow: var(--focus); }
.q-image-field.slot { min-height: 28px; padding: 0 4px; justify-content: center; border-color: var(--brand); background: #fff; font-size: 14px; }
.q-image-field.slot .token { min-height: 0; height: 100%; padding: 0 5px; font-size: 14px; justify-content: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; text-align: center; line-height: 26px; }
.q-image-pick { cursor: crosshair; }
.q-mark { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; line-height: 24px; text-align: center; box-shadow: 0 0 0 1px var(--brand-dark); }
.q-mark:hover { background: var(--danger); }

/* ---------- Fragen bearbeiten ---------- */

.stack-sm { margin-top: 10px; }
.item-no { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 3px; background: #e6eaee; font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
#mainAnswer > [data-section="answer"] { margin-bottom: 20px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; }
.q-editor [data-section="answer"] h3 { font-size: 17px; font-weight: 600; color: var(--ink); }
.q-editor [data-section="answer"] input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),
.q-editor [data-section="answer"] select,
.q-editor [data-section="answer"] textarea {
    min-height: var(--control); padding: 6px 10px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background-color: #fff; font-size: 15px; line-height: 1.4;
}
.q-editor [data-section="answer"] select { appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 16px; }
.q-editor [data-section="answer"] :is(input, select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.add-part { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* ---------- Korrektur und Ergebnisse ---------- */

.switch { display: flex; padding: 10px; border-bottom: 1px solid var(--line); }
.switch a { flex: 1; padding: 5px 8px; border: 1px solid var(--line-strong); text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.switch a:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.switch a:last-child { border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.switch a:hover { text-decoration: none; background: var(--surface-2); }
.switch a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.review-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.review-layout > * { min-width: 0; }
.review-nav { scrollbar-width: thin; position: sticky; top: calc(var(--topbar) + 16px); max-height: calc(100vh - var(--topbar) - 32px); overflow-y: auto; }
.review-nav li a { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 15px; }
.review-nav li a:hover { background: var(--surface-2); text-decoration: none; }
.review-nav li a.is-active { background: var(--brand-pale); border-left-color: var(--brand); }
.review-nav li strong { min-width: 24px; }
.review-nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.review-title { margin-bottom: 14px; }
.review .card-head { padding: 9px 18px; background: var(--surface-2); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.review .card-head h2 { font-size: 16px; }
.review-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.review-answer { padding: 16px 18px; overflow-x: auto; }
.review-question { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.review-score { padding: 16px 18px; border-left: 1px solid var(--line); }
.review-score .field { margin-bottom: 12px; }
.review-points { width: 72px !important; text-align: right; font-weight: 600; }
.review-points[aria-invalid] { border-color: var(--danger) !important; }
.review[data-state=open] .card-head { border-top: 2px solid #d9a441; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; color: var(--brand); font-size: 15px; }
.note { margin-top: 12px; padding: 10px 14px; border-left: 3px solid #d9a441; background: var(--warn-pale); }
.meter-row { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 8px; }
.distribution { display: grid; gap: 8px; }
.distribution li { display: grid; grid-template-columns: 16px 1fr 24px; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.distribution .meter { height: 12px; border-radius: 2px; }
.columns-wide-aside { grid-template-columns: 400px minmax(0, 1fr); }
.result { max-width: 920px; margin: 0 auto; padding: 28px 16px 64px; }
.result-body { display: grid; gap: 16px; }
.result-body > * { min-width: 0; overflow-x: auto; }
.result-body .note { margin-top: 0; }
@media (max-width: 1080px) {
    .columns-wide-aside { grid-template-columns: minmax(0, 1fr); }
    .review-layout { grid-template-columns: minmax(0, 1fr); }
    .review-nav { position: static; max-height: 260px; }
}
@media (max-width: 820px) {
    .review-body { grid-template-columns: minmax(0, 1fr); }
    .review-score { border-left: 0; border-top: 1px solid var(--line); }
}

/* Seitenliste links (Archive) */
.side-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.side-layout > * { min-width: 0; }
.side-list { overflow: hidden; }
.side-list a { display: flex; gap: 8px; padding: 9px 14px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { background: var(--surface-2); text-decoration: none; }
.side-list a.is-active { background: var(--brand-pale); border-left-color: var(--brand); font-weight: 600; }
@media (max-width: 900px) { .side-layout { grid-template-columns: minmax(0, 1fr); } }

/* Auswahllisten in Dialogen */
.pool { height: min(460px, calc(100vh - 280px)); overflow-y: auto; }
.pool label { cursor: pointer; display: block; }
.pool .pick { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--line-soft); }
.pool .pick[hidden] { display: none; }
.pool .pick:hover { background: var(--surface-2); }
button.title-link { text-align: left; }

/* Druckseiten */
.print-page { background: #fff; }
.print-sheet { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.print-bar { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.pin-slips { display: grid; grid-template-columns: repeat(3, 1fr); }
@media screen and (max-width: 720px) { .pin-slips { grid-template-columns: minmax(0, 1fr); } }
.pin-slip { overflow-wrap: anywhere; padding: 14px 16px; border: 1px dashed var(--line-strong); margin: 0 -1px -1px 0; break-inside: avoid; }
.pin-slip-code { margin: 8px 0; font: 700 26px Consolas, "Liberation Mono", monospace; letter-spacing: .12em; }

.print-title { margin-bottom: 20px; }
.print-name { display: flex; gap: 10px; margin-top: 22px; }
.print-name span { flex: 1; border-bottom: 1px solid var(--ink-3); }
.print-intro { margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--line); }
.print-question { padding: 18px 0; border-top: 1px solid var(--line); }
.print-question > h2 { margin-bottom: 6px; font-size: 17px; }

/* ---------- 8 Druck ---------- */

@media print {
    @page { margin: 16mm 14mm; }
    body, .exam { background: #fff; font-size: 11pt; }
    .sidebar, .topbar, .no-print, .page-actions, .tabs, .toolbar, .toasts { display: none !important; }
    .page { margin: 0; }
    .content { padding: 0; max-width: none; }
    .card { border: 0; margin: 0; }
    .card-body { padding: 0; }
    .avoid-break { break-inside: avoid; }
}
