/* =========================================================================
   Benutzerverwaltung: Anmeldung, Menü, Listen, Dialoge, Lizenzverwaltung
   ========================================================================= */

/* ---------- Anmeldung ---------- */
.auth-body { min-height: 100vh; background:
  radial-gradient(1200px 500px at 110% -10%, color-mix(in oklab, var(--brand) 14%, transparent), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, color-mix(in oklab, var(--brand) 9%, transparent), transparent 60%), var(--bg); }
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 7vh 16px 40px; }
.auth-card { padding: 28px 28px 24px; box-shadow: var(--shadow-lg); border-radius: 20px; }
.auth-card h1 { font-size: 30px; margin-top: 6px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-logo { max-height: 56px; max-width: 220px; object-fit: contain; }
.auth-sub { color: var(--muted); margin: 6px 0 18px; }
.auth-sub code, .auth-card code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
#auth-form { display: grid; gap: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.auth-hint { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.auth-error { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.btn-block { width: 100%; padding: 12px 18px; font-size: 15.5px; }
.btn-link-inline { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-size: inherit; text-decoration: underline; }
.code-input { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; font-size: 17px !important; }
.pw-toggle { border: 0; background: none; padding: 0 10px; cursor: pointer; opacity: .55; font-size: 15px; }
.pw-toggle:hover { opacity: 1; }

/* ---------- Kopfzeile: Benutzermenü ---------- */
.user-menu { position: relative; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 6px; z-index: 60; box-shadow: var(--shadow-lg); display: grid; }
.menu[hidden] { display: none; }
.menu-head { padding: 10px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: grid; }
.menu-head strong { color: var(--text-strong); }
.menu-head span { font-size: 12.5px; color: var(--muted); }
.menu button, .menu a { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--text-strong); text-decoration: none; font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--brand-50); color: var(--brand); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }
@media (max-width: 480px) { .hide-xs { display: none; } }

/* ---------- Dokumentstatus ---------- */
.doc-state { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; font-size: 13px; min-height: 4px; }
.doc-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); padding: 3px 10px; border-radius: 999px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-chip svg { width: 14px; height: 14px; flex: none; }
.doc-dirty { color: var(--warn); }
.doc-saved { color: var(--ok); }

/* ---------- Zuletzt bearbeitet ---------- */
.recent { margin-top: 26px; }
.recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.recent-item { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: .15s; min-width: 0; }
.recent-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.recent-item > svg { width: 30px; height: 30px; color: var(--brand); flex: none; background: var(--brand-50); padding: 5px; border-radius: 9px; }
.recent-item span:not(.pill) { display: grid; min-width: 0; flex: 1; }
.recent-item strong { color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item.draft { border-style: dashed; border-color: var(--brand); }

/* ---------- Listen ---------- */
.list-card { margin-bottom: 18px; overflow: hidden; }
.list-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.list-toolbar h3 { font-size: 18px; }
.input.search { flex: 0 1 280px; }
table.res.list td, table.res.list th { text-align: left; white-space: normal; vertical-align: middle; }
table.res.list td.num, table.res.list th.num { text-align: right; }
table.res.list td.actions { text-align: right; white-space: nowrap; }
table.res.list tbody tr:hover { background: var(--surface-2); }
/* Lizenzverwaltung: Rückmeldungen der Kunden */
.fb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.fb-bar .sub { flex: 1 1 260px; }
.fb-filter { width: auto; }
table.res.list tr.fb-new td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
table.res.list td.fb-msg { min-width: 220px; max-width: 420px; color: var(--text); }
.fb-message { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; line-height: 1.5; }
.fb-calc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.fb-calc > div { flex: 1 1 300px; }
table.res.fb-info { width: 100%; margin-bottom: 14px; }
table.res.fb-info th { width: 160px; font-weight: 600; color: var(--muted); vertical-align: top; }
table.res.fb-info td { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.sub { color: var(--muted); font-size: 12.5px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
td.empty { text-align: center !important; }
.link-title { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.link-title svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.link-title span { display: grid; }
.link-title strong { color: var(--text-strong); }
.link-title:hover strong { color: var(--brand); text-decoration: underline; }
.link-title small { color: var(--muted); font-size: 12.5px; }
.btn-link.danger { color: var(--bad); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.mini-select { border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; background: var(--surface); }
.seat { display: grid; gap: 4px; min-width: 110px; font-variant-numeric: tabular-nums; }
.seat-bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.seat .seat-bar { margin-top: 0; }
.seat-bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.seat-bar i.full { background: var(--bad); }
.kpis-3, .kpis-4 { margin-bottom: 18px; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .v.val-bad { color: var(--bad); }
.locked { max-width: 620px; margin: 6vh auto; display: grid; gap: 10px; }

/* ---------- Dialoge ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgb(15 17 21 / .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal[hidden] { display: none; }
.modal-card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); border-radius: 18px; animation: pop .18s ease; }
.modal-card:has(.modal-wide) { width: min(880px, 100%); }
.modal-head { padding: 18px 22px 6px; display: grid; gap: 2px; }
.modal-body { padding: 10px 22px 6px; display: grid; gap: 12px; }
.modal-body p { margin: 0; }
.modal-body.fields, .modal-body .fields { align-items: start; }
.modal-body .wide { grid-column: 1 / -1; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }
.modal-sub { margin-top: 10px; font-size: 17px; }
.copy-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 8px 8px 12px; }
.copy-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.code-big { font: 700 clamp(20px, 5vw, 28px)/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .1em; text-align: center; padding: 18px 12px; border: 2px dashed var(--brand); border-radius: 14px; background: var(--brand-50); color: var(--text-strong); user-select: all; }
.row.quick { gap: 6px; margin-top: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* ---------- Kundenbereiche ---------- */
.area-chip { display: flex; justify-content: center; gap: 6px; align-items: baseline; margin: -6px 0 14px; font-size: 13px; }
.area-chip span { color: var(--muted); }
.area-chip strong { color: var(--brand); }
.area-card { margin-bottom: 18px; }
.area-card .copy-box { margin-top: 6px; }
.url-cell { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; min-width: 0; }
.url-cell a { color: var(--brand); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.url-cell a:hover { text-decoration: underline; }
.icon-mini { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; width: 24px; height: 22px; line-height: 1; cursor: pointer; color: var(--muted); flex: none; }
.icon-mini:hover { color: var(--brand); border-color: var(--brand); }
.slug-input .prefix { border-left: 0; border-right: 1px solid var(--border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 12.5px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 38px; }
.slug-input input { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.ok-text { color: var(--ok); overflow-wrap: anywhere; }
.bad-text { color: var(--bad); }
.copy-box .btn { flex: none; }
.step-table.cred { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.step-table.cred td { font-family: var(--font-body); }
.code-inline { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 15px; letter-spacing: .03em; background: var(--brand-50); padding: 2px 8px; border-radius: 6px; user-select: all; }
.modal-body .fields[hidden] { display: none; }

/* ---------- Neue Berechnungsarten ---------- */
.calc-head .method-tabs { max-width: 100%; }
.calc-head .method-tabs button { padding: 7px 11px; font-size: 14px; }
.lashing.inactive { opacity: .6; }
.plan-rows { display: grid; gap: 8px; }
.plan-row { grid-template-columns: 1.3fr 1fr 1fr 0.9fr !important; align-items: end; }
@media (max-width: 640px) { .plan-row { grid-template-columns: 1fr 1fr 1fr !important; } .plan-row .field:first-child { grid-column: 1 / -1; } }
.rolltype-row { grid-template-columns: 1.6fr 1fr 1fr 1fr auto !important; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
@media (max-width: 640px) { .rolltype-row { grid-template-columns: 1fr 1fr !important; } .rolltype-row .field:first-child { grid-column: 1 / -1; } }
.roll-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.roll-row .field:first-child { grid-column: span 2; }
@media (max-width: 640px) { .roll-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .roll-row .field:first-child { grid-column: 1 / -1; } }

.rights-confirm { margin-top: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.45; }
.rights-confirm input { margin-top: 1px; }
.rights-confirm.attention { outline: 2px solid var(--bad); outline-offset: 4px; border-radius: 6px; }

/* ---------- Rechtliches ---------- */
.alert.disclaimer { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--warn); color: var(--text); font-size: 12.5px; }
.alert.disclaimer a { color: var(--brand); white-space: nowrap; }
.pr .pr-disclaimer { margin-top: 12px; padding: 7px 10px; border: 1px solid #d9d9de; border-left: 3px solid #a16207; border-radius: 4px; font-size: 8pt; line-height: 1.4; color: #333; break-inside: avoid; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--brand); text-decoration: underline; }
.legal-links span { color: var(--border); }
.app-footer .legal-links { width: 100%; justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.footer-provider { color: var(--muted); }
.auth-legal { display: flex; justify-content: center; font-size: 12.5px; margin-top: 8px; }
.terms-accept { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.terms-accept input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.legal-page { max-width: 860px; margin: 0 auto; padding: 28px 18px 60px; }
.legal-page .card { padding: 28px 32px; }
.legal-page h1 { font-size: 32px; margin-bottom: 4px; }
.terms-lang-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--warn, #b7791f) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn, #b7791f) 35%, transparent); }
.terms-lang-note img { flex: none; margin-top: 3px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.legal-page .terms-lang-note p { margin: 0; font-size: 14px; }
.terms-lang-note a { font-weight: 600; white-space: nowrap; }
.legal-page h2 { font-size: 20px; margin: 26px 0 8px; }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.65; }
.legal-page ol, .legal-page ul { padding-left: 22px; }
.legal-page li { margin: 4px 0; }
.legal-page .meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.legal-page .toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; columns: 2; font-size: 14px; }
.legal-page .toc a { color: var(--text); text-decoration: none; } .legal-page .toc a:hover { color: var(--brand); }
.legal-page .note { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
@media (max-width: 640px) { .legal-page .card { padding: 20px 16px; } .legal-page .toc { columns: 1; } }
@media print { .legal-page .toc, .legal-page .no-print { display: none; } }

/* ---------- Sprachauswahl ---------- */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 12.5px var(--font-body); letter-spacing: .03em; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lang-btn:hover, .lang-switch.open .lang-btn { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.lang-btn img, .lang-menu img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); object-fit: cover; flex: none; }
.lang-btn::after { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); opacity: .6; margin-left: 1px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(420px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(17, 24, 39, .18); padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 9px; color: var(--text); font: 500 14px var(--font-body); text-align: left; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--surface-2); outline: none; }
.lang-menu button[aria-checked="true"] { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.lang-menu button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-wide .lang-btn { width: 100%; height: 42px; border-radius: 11px; justify-content: flex-start; background: var(--surface); }
.lang-wide .lang-btn::after { margin-left: auto; }
.lang-wide .lang-menu { left: 0; right: auto; }
.auth-lang { display: flex; justify-content: flex-end; width: 100%; max-width: 440px; margin: 0 auto 10px; }
@media (max-width: 640px) {
  .app-header .lang-btn .lang-code { display: none; }
  .app-header .lang-btn { padding: 0 8px 0 7px; }
  .lang-menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}
@media print { .lang-switch { display: none !important; } }

/* ---------- Anhänge (Fotos, Scans, PDF) ---------- */
.attachments { display: grid; gap: 10px; transition: box-shadow .15s; }
.attachments.drag { box-shadow: 0 0 0 3px var(--brand-100), var(--shadow); }
.att-head { display: flex; align-items: center; gap: 8px; }
.att-head h3 { margin: 0; font: 700 17px var(--font-head); display: flex; align-items: center; gap: 8px; color: var(--text-strong); }
.att-head svg, .att-actions svg { width: 18px; height: 18px; flex: none; }
.att-head .pill { background: var(--brand-50); color: var(--brand); }
.att-hint { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.att-note { margin: 0; color: var(--muted); font-size: 12px; }
.att-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.att-actions label { cursor: pointer; }
.att-drop { border: 1.5px dashed var(--border); border-radius: 10px; padding: 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.attachments.drag .att-drop { border-color: var(--brand); color: var(--brand); }
.att-busy { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; align-items: center; font-size: 13px; }
.att-busy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-busy progress { width: 100%; accent-color: var(--brand); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.att-item { position: relative; margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.att-thumb { display: block; aspect-ratio: 4 / 3; background: var(--surface); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-pdf { display: grid; place-items: center; width: 100%; height: 100%; font: 700 20px var(--font-head); color: var(--bad); background: var(--bad-bg); letter-spacing: .05em; }
.att-item figcaption { padding: 6px 8px 8px; display: grid; gap: 3px; }
.att-caption { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 4px; font: inherit; font-size: 13px; color: var(--text-strong); }
.att-caption:hover { border-color: var(--border); }
.att-caption:focus { border-color: var(--brand); background: var(--surface); outline: none; }
.att-item small { color: var(--muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; padding: 0 4px; }
.att-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(17, 24, 39, .65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.att-del:hover { background: var(--bad); }
.att-count { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.att-count svg { width: 12px; height: 12px; }
@media print { .attachments { display: none !important; } }
.pr .pr-att { break-before: page; }
.pr .pr-att-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pr .pr-att-grid figure { margin: 0; break-inside: avoid; }
.pr .pr-att-grid img { display: block; max-width: 100%; max-height: 205mm; margin: 0 auto; object-fit: contain; border: 1px solid #d9d9de; }
.pr .pr-att-grid figcaption { font-size: 8.5pt; margin-top: 4px; }
.pr .pr-att-grid figcaption span { display: block; color: #666; font-size: 7.5pt; }
.pr .pr-att-note { font-size: 8pt; color: #555; margin: 8px 0 0; }
.pr .pr-remark { break-inside: avoid; }
.pr .pr-remark p { margin: 0; padding: 6px 9px; border-left: 3px solid var(--brand, #888); background: #f6f6f8; overflow-wrap: anywhere; }
.pr .pr-talk table th, .pr .pr-talk table td { text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.pr .pr-talk table td:first-child { white-space: nowrap; }
.pr .pr-talk tr { break-inside: avoid; }

/* ---------- Version und Änderungsprotokoll ---------- */
.app-version, .legal-links .app-version { color: var(--muted); opacity: .75; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.app-version { text-decoration: none; }
a.app-version:hover { color: var(--brand); opacity: 1; text-decoration: underline; }
.changelog .cl-release { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 4px; }
.changelog h2 { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; }
.changelog .cl-current { font: 600 11px var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; padding: 2px 8px; }
.changelog .cl-meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.changelog .cl-list { list-style: none; padding: 0; margin: 0; }
.changelog .cl-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; margin: 6px 0; }
.changelog .cl-type { font-size: 11.5px; font-weight: 600; text-align: center; border-radius: 6px; padding: 2px 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.changelog .cl-neu { color: var(--ok, #15803d); }
.changelog .cl-behoben { color: var(--warn); }
.changelog .cl-sicherheit { color: var(--bad); }
@media (max-width: 480px) { .changelog .cl-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } .changelog .cl-type { justify-self: start; } }

/* ---------- Lizenzverwaltung ---------- */
.admin-topbar { background: linear-gradient(90deg, var(--brand), #1f2937); }
.admin-body .header-inner { flex-wrap: wrap; }
.admin-body .header-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .admin-body .brand-sub { display: none; }
  .admin-body .header-actions { margin-left: 0; width: 100%; justify-content: flex-start; gap: 6px; }
}

@media print { .modal, .menu { display: none !important; } }
