/* AccessBase – Gestaltung
   Farben aus dem FairBase-Logo: Navy #123160, Blau #3E72A6.
   Alle Farben als Variablen; Dunkelmodus folgt der Systemeinstellung. */
:root {
  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --line: #dde3ea;
  --line-strong: #c4ccd6;
  --ink: #16202b;
  --muted: #5d6b7a;
  --accent: #123160;
  --accent-ink: #ffffff;
  --accent-soft: #e4ecf6;
  --side: #0f2a54;
  --side-ink: #c8d5e8;
  --side-active: #1c3f73;
  --ok: #1d7a4b; --ok-soft: #e2f3e9;
  --warn: #946200; --warn-soft: #fff3d6;
  --bad: #b3261e; --bad-soft: #fde9e7;
  --mark: #fff1a8;
  --shadow: 0 10px 28px rgba(16, 32, 52, .16);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --r: 8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e151d; --surface: #16202b; --surface-2: #1b2734; --line: #273545; --line-strong: #364759;
  --ink: #e4ebf2; --muted: #93a3b4; --accent: #7fa8d6; --accent-ink: #0a1730; --accent-soft: #182f50;
  --side: #0a1830; --side-ink: #a9bad2; --side-active: #17325a;
  --ok: #5cc690; --ok-soft: #173426; --warn: #e3b450; --warn-soft: #3a2e12; --bad: #f08a80; --bad-soft: #3d1c1a; --mark: #5a4d12;
  --shadow: 0 10px 28px rgba(0, 0, 0, .5);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0e151d; --surface: #16202b; --surface-2: #1b2734; --line: #273545; --line-strong: #364759;
  --ink: #e4ebf2; --muted: #93a3b4; --accent: #7fa8d6; --accent-ink: #0a1730; --accent-soft: #182f50;
  --side: #0a1830; --side-ink: #a9bad2; --side-active: #17325a;
  --ok: #5cc690; --ok-soft: #173426; --warn: #e3b450; --warn-soft: #3a2e12; --bad: #f08a80; --bad-soft: #3d1c1a; --mark: #5a4d12;
  --shadow: 0 10px 28px rgba(0, 0, 0, .5);
  color-scheme: dark }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--font); }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 1.45rem; font-weight: 650; }
h2 { font-size: 1.05rem; font-weight: 650; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.num { font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Gerüst ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; font-weight: 650; letter-spacing: .01em; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; background: #fff; flex: none; display: block; }
.brand-logo.lg { width: 56px; height: 56px; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: #2f74b5; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; flex: none; }
.brand-mark i { background: #fff; border-radius: 1.5px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { opacity: .55; }
.brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--side-ink); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sep { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6f849a; padding: 14px 10px 4px; }
.nav button , .nav a  { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; color: var(--side-ink); }
.nav button:hover , .nav a:hover  { background: var(--side-active); color: #fff; }
.nav button.on , .nav a.on  { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 #3e72a6; }
.nav button:focus-visible , .nav a:focus-visible  { outline: 2px solid #6f9ccc; }
.badge-count { background: #d9534f; color: #fff; border-radius: 9px; font-size: .7rem; padding: 0 6px; line-height: 17px; font-weight: 600; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #23457a; font-size: .78rem; display: grid; gap: 4px; }
.side-foot b { color: #fff; font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 10px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.tenant { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tenant img, .tenant .tlogo { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.tenant .tlogo { width: 34px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; }
.tenant strong { display: block; font-size: .98rem; }
.tenant select { padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); max-width: 260px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who-text { text-align: right; line-height: 1.25; }
.who-text small { display: block; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 650; font-size: .8rem; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: .7rem; }
.content { padding-block: 24px 40px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: grid; gap: 20px; align-content: start; max-width: 1320px; width: 100%; }
.footer { margin-top: auto; border-top: 1px solid var(--line); padding-block: 14px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .8rem; }
.footer button , .footer a  { all: unset; cursor: pointer; color: var(--accent); }
.footer button:hover , .footer a:hover  { text-decoration: underline; }

/* ---------- Bausteine ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.head p { margin-top: 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.stack { display: grid; gap: 14px; align-content: start; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card.flush.vis { overflow: visible; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card.flush .card-h { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pad { padding: 14px 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { all: unset; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; }
.stat:hover { border-color: var(--line-strong); }
.stat b { font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat.attn { border-color: var(--warn); background: var(--warn-soft); }
.stat.attn b { color: var(--warn); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: 7px 14px; border-radius: 6px; cursor: pointer; font-weight: 550; white-space: nowrap; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.bad { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn.bad.armed, .btn.ghost.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: .84rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.linkbtn { all: unset; cursor: pointer; color: var(--accent); font-weight: 550; }
.linkbtn:hover { text-decoration: underline; }

.form { display: grid; gap: 12px; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
fieldset.plain { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
label.fl { display: grid; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--muted); min-width: 0; }
label.fl span.opt { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px 10px; background: var(--surface); color: var(--ink); font-weight: 400; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: none; }
input.code { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .3em; text-align: center; max-width: 220px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink); cursor: pointer; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.checkcard { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer; min-width: 0; }
.checkcard:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.checkcard.dis { opacity: .55; cursor: default; }
.checkcard .txt { min-width: 0; flex: 1; }
.note { display: block; font-size: .78rem; color: var(--muted); }
.note.warn { color: var(--warn); font-weight: 600; }

/* Editionsauswahl mit Info */
.edgroup { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: grid; gap: 8px; }
.edgroup:has(input:checked:not([value=""])) { border-color: var(--accent); }
.edgroup-h { display: flex; align-items: center; gap: 10px; }
.edgroup-h strong { flex: 1; }
.edopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.edopt { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; cursor: pointer; }
.edopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.edopt.dis { opacity: .55; cursor: default; }
details.direct { border-top: 1px dashed var(--line); padding-top: 10px; }
details.direct summary { list-style: none; cursor: pointer; display: inline-block; }
details.direct summary::-webkit-details-marker { display: none; }
.devbox { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.devbox .dev-existing, .devbox .dev-new { display: none; }
.devbox:has(input[value=existing]:checked) .dev-existing { display: grid; }
.devbox:has(input[value=offer]:checked) .dev-new, .devbox:has(input[value=self]:checked) .dev-new { display: grid; }
.devbox:has(input[value=none]:checked) select { opacity: .5; }
.info { position: relative; display: inline-block; flex: none; }
.info.end .pop { left: auto; right: -8px; }
.info summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: italic 700 .78rem/1 Georgia, "Times New Roman", serif; user-select: none; }
.info summary::-webkit-details-marker { display: none; }
.info[open] summary { background: var(--accent); color: var(--accent-ink); }
.info .pop { position: absolute; z-index: 30; top: 30px; left: -8px; width: min(440px, 82vw); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); padding: 14px 16px; font-size: .86rem; color: var(--ink); font-weight: 400; display: grid; gap: 10px; text-transform: none; letter-spacing: 0; }
.info .pop table th, .info .pop table td { padding: 6px 6px; vertical-align: top; }
.info .pop h4 { margin: 0; font-size: .92rem; }

.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--surface-2); }
tr.warnrow td { background: var(--warn-soft); }
tr.dim td { color: var(--muted); }
td.r, th.r { text-align: right; }
.card:not(.flush) table th, .card:not(.flush) table td { padding: 8px 8px; }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 1px 9px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px 2px 3px; font-size: .8rem; background: var(--surface); white-space: nowrap; }

.alogo { border-radius: 6px; display: inline-grid; place-items: center; color: #fff; font-weight: 700; flex: none; overflow: hidden; background: var(--surface-2); }
.alogo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.appcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.appcard { all: unset; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; align-content: start; }
.appcard:hover { border-color: var(--line-strong); }
.appcard.static { cursor: default; }
.appcard .t { display: flex; gap: 12px; align-items: center; }
.appcard .meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .82rem; }
.appcard .meta dt { color: var(--muted); }
.appcard .meta dd { margin: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.bar.over i { background: var(--bad); }

.alert { border-radius: 6px; padding: 10px 14px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--accent-soft); color: var(--ink); }
.empty { color: var(--muted); font-style: italic; padding: 6px 0; }
.dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: .86rem; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button , .tabs a  { all: unset; cursor: pointer; padding: 8px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on , .tabs a.on  { color: var(--accent); border-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.seg button , .seg a  { all: unset; cursor: pointer; padding: 6px 12px; font-size: .86rem; }
.seg button + button , .seg a + a  { border-left: 1px solid var(--line-strong); }
.seg button.on , .seg a.on  { background: var(--accent); color: var(--accent-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.filters label.fl { min-width: 160px; flex: 1 1 160px; }
.filters label.fl.grow { flex: 3 1 240px; }

.matrix { overflow: auto; max-height: 70vh; }
.matrix table { width: auto; min-width: 100%; }
.matrix th.rot { height: 170px; vertical-align: bottom; padding: 8px 4px; }
.matrix th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: .8rem; color: var(--ink); }
.matrix .sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 200px; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ink); font-weight: 550; }
.matrix thead th { position: sticky; top: 0; z-index: 2; }
.matrix thead th.sticky { z-index: 3; background: var(--surface-2); color: var(--muted); font-size: .74rem; text-transform: uppercase; }
.matrix td.c { text-align: center; border-left: 1px solid var(--line); min-width: 40px; padding: 8px 4px; font-weight: 700; color: var(--ok); }
.matrix td.c.y { background: var(--ok-soft); }

.progress { display: flex; align-items: center; gap: 10px; }
.progress .bar { flex: 1; height: 8px; }
.items { display: grid; gap: 6px; }
.item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; }
.item.done { background: var(--surface-2); }
.item.done .lbl strong { text-decoration: line-through; color: var(--muted); }
.item .lbl { flex: 1; min-width: 0; }
.comments { display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment .bubble { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.comment .bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); }
.steps .dot.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .dot.cur { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.steps .dot.bad { background: var(--bad); border-color: var(--bad); color: #fff; }

.login { min-height: 100%; display: grid; grid-template-rows: 1fr auto; }
.login-wrap { display: grid; place-items: center; padding-block: 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.login-box { width: 100%; max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.login-l { background: var(--side); color: var(--side-ink); padding: 32px; display: grid; gap: 18px; align-content: start; }
.login-l h1 { color: #fff; }
.login-r { padding: 32px; display: grid; gap: 16px; align-content: start; }
.demo-acc { display: grid; gap: 6px; }
.demo-acc button { all: unset; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 6px; border: 1px solid #2a4f86; }
.demo-acc button:hover { background: var(--side-active); }
.demo-acc b { color: #fff; font-weight: 600; }
.demo-acc code { color: #9cc7ee; }
.democode { all: unset; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; border: 1px dashed var(--line-strong); border-radius: 6px; padding: 6px 10px; font-size: .84rem; }
.democode b { font-family: var(--mono); letter-spacing: .15em; }
.qr { justify-self: start; background: #fff; padding: 10px; border-radius: 8px; border: 1px solid var(--line); display: inline-block; line-height: 0; }
.qr svg { width: 180px; height: 180px; }
.secret { font-family: var(--mono); letter-spacing: .12em; user-select: all; overflow-wrap: anywhere; }
.legal { max-width: 820px; display: grid; gap: 14px; }
.legal h2 { margin-top: 10px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ph { background: var(--mark); padding: 0 4px; border-radius: 3px; }
.copybox textarea { font-family: var(--mono); font-size: .8rem; min-height: 160px; }
.report-h { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-bottom: 2px solid var(--accent); padding-bottom: 12px; }
.spin { display: grid; place-items: center; height: 100%; color: var(--muted); }
.offscreen { position: absolute; left: -9999px; }

@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 12px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav-sep, .side-foot { display: none; }
  .nav button , .nav a  { white-space: nowrap; }
  .grid2, .f2, .f3, .login-box { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dl dd { margin-bottom: 8px; }
  .who-text { display: none; }
}
@media (max-width: 560px) {
  .top, .content, .footer { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .login-l, .login-r { padding: 22px; }
  .info .pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 70vh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Ergänzungen Livesystem ---------- */
form.inline { display: inline; margin: 0; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.cat { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 6px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

.nav a, .tabs a, .footer a, .seg a { text-decoration: none; }
a.appcard { color: inherit; text-decoration: none; display: block; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: var(--surface-2); }
.btn { text-decoration: none; }
@media (min-width: 981px) { .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
