/* GAEBcini – ein Stylesheet, keine Build-Tools. Palette wie der Browser-Prototyp. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #18212b;
  --muted: #6a7480;
  --line: #e1e5ea;
  --line-strong: #cdd3da;
  --brand: #0e5a8a;
  --brand-dark: #0b4a72;
  --brand-ink: #ffffff;
  --brand-soft: #e7f0f7;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --ok: #17803d;
  --ok-soft: #e6f4ea;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 8px;
  --top: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1 { font-size: 22px; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small, small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; min-height: var(--top);
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand, .auth-logo {
  display: flex; align-items: center; gap: 8px; color: var(--brand);
  font-size: 17px; text-decoration: none; white-space: nowrap;
}
.brand span, .auth-logo span { color: var(--ink); font-weight: 600; }
.brand b, .auth-logo b { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  padding: 6px 10px; border-radius: 6px; color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.nav a:hover { background: var(--bg); }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-user { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.nav-user small { color: var(--muted); font-weight: 400; }
.nav form { margin: 0 0 0 8px; }
.burger { display: none; margin-left: auto; height: 36px; width: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }

.banner { padding: 10px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner a { margin-left: 8px; font-weight: 600; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink);
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--brand); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn.danger:hover { background: var(--err-soft); }
.btn.ghost { background: transparent; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; height: 42px; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; }

/* ---------- Karten, Kopf, Kacheln ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow-x: auto; }
.card.empty { text-align: center; padding: 36px 20px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.small { padding: 0 7px; font-size: 11px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.tile-label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.tile strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Hinweise ---------- */
.alert { padding: 10px 14px; border-radius: var(--radius); margin: 0 0 16px; border: 1px solid transparent; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: #b9dfc5; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: #f1d6a8; }
.alert.err { background: var(--err-soft); color: var(--err); border-color: #f4c3bd; }
.license-state { border-radius: 10px; padding: 22px 24px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--surface); }
.license-state h1 { margin-bottom: 6px; }
.license-state p { margin: 4px 0; }
.license-state.expired { background: var(--err-soft); border-color: #f4c3bd; }
.license-state.expired h1 { color: var(--err); }
.license-state.pending { background: var(--brand-soft); border-color: #c8dcec; }
.license-state.active { background: var(--ok-soft); border-color: #b9dfc5; }
.license-state.active h1 { color: var(--ok); }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.grow { flex: 1; min-width: 220px; }
.field.narrow { max-width: 220px; }
.field label { font-weight: 600; font-size: 13px; }
.field small { color: var(--muted); }
input:not([type=checkbox]), select, textarea {
  height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 90, 138, .18);
}
input:disabled { background: var(--bg); color: var(--muted); }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2.top { align-items: start; gap: 18px; }
.span2 { grid-column: span 2; }
.row-form { display: flex; gap: 6px; align-items: center; }
.row-form select { height: 32px; width: auto; padding: 0 8px; }

/* ---------- Tabellen ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th.num { text-align: right; }
.table tr:last-child td { border-bottom: 0; }
.table tr.inactive td { color: var(--muted); }
.table.compact td { padding: 6px 8px; font-size: 13px; }
.card.flush .table th, .card.flush .table td { padding-left: 16px; padding-right: 16px; }
.sums { border-collapse: collapse; min-width: 320px; }
.sums td { padding: 5px 0; }
.sums td.num { padding-left: 24px; }
.sums tr.total td { border-top: 1px solid var(--line-strong); font-weight: 700; font-size: 16px; padding-top: 8px; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

/* Pagination (Laravel „pagination::default“) */
.pagination { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.pagination li > * { display: inline-block; min-width: 34px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-align: center; text-decoration: none; }
.pagination .active > * { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled > * { color: var(--muted); }

/* ---------- Anmeldeseiten ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: 0 8px 30px rgba(24, 33, 43, .06); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 19px; }
.auth-logo { justify-content: center; font-size: 22px; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 13px; }
.auth-links { text-align: center; margin: 18px 0 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.privacy-note { margin: 22px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid #c8dcec; font-size: 13px; line-height: 1.45; }
.privacy-note h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 14px; color: var(--brand); }
.privacy-note h2 svg { flex: none; }
.privacy-note ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.privacy-note li { position: relative; padding-left: 18px; }
.privacy-note li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 5px; height: 9px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.privacy-note p { margin: 9px 0 0; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; padding: 0 16px; }
  .burger { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 14px; }
  .nav.open { display: flex; }
  .nav-spacer { display: none; }
  .nav-user { text-align: left; padding: 8px 10px; }
  .nav form { margin: 6px 10px 0; }
  .container { padding: 18px 16px 40px; }
  .tiles, .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .card { padding: 16px; overflow-x: auto; }
  .form.inline { flex-direction: column; align-items: stretch; }
  .field.narrow { max-width: none; }
  .sums { min-width: 0; width: 100%; }
  .row-form { flex-wrap: wrap; }
}

/* ---------- Projekte ---------- */
.container.wide { max-width: 1400px; padding-bottom: 120px; }
.strong { font-weight: 600; }
.prewrap { white-space: pre-wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.section-title { margin: 8px 0 10px; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.filterbar input[type=search] { flex: 1; min-width: 220px; max-width: 420px; }
.filterbar select { width: auto; }
.danger-zone { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Angebot & Export */
.tile progress { width: 100%; margin-top: 6px; }
.exports { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.exports li { display: flex; gap: 12px; align-items: center; }
.exports .btn { min-width: 54px; }
.check.warn-check { color: var(--warn); font-weight: 600; }
.card.offer h3 { margin: 0 0 2px; font-size: 15px; }
.offer-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.offer-sum { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.offer-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.offer-files { display: flex; gap: 6px; }
.sends { margin-top: 12px; display: grid; gap: 6px; }
.sends p { margin: 0; }
.send { font-size: 13px; }
.send .pill { margin-right: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 16px 4px; }
.card-head h2 { margin: 0; }
.narrow-block { max-width: 460px; margin: 18px auto 0; text-align: left; }
.narrow-block .upload .btn { align-self: center; }
details.edit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details.edit > summary { cursor: pointer; color: var(--brand); font-weight: 600; width: max-content; }
details.edit[open] > summary { margin-bottom: 12px; }
details.alert > summary { cursor: pointer; font-weight: 600; }
progress { width: 90px; height: 6px; vertical-align: middle; appearance: none; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; transition: width .25s; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 99px; }
progress.done::-webkit-progress-value { background: var(--ok); }
progress.done::-moz-progress-bar { background: var(--ok); }

/* Datei hochladen (Ablegen auf die Fläche funktioniert ohne Skript) */
.upload { display: flex; flex-direction: column; gap: 10px; }
.upload .btn { align-self: flex-start; }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 16px; border: 2px dashed var(--line-strong); border-radius: 10px; color: var(--brand); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone strong { color: var(--ink); }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 90, 138, .18); }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- LV-Editor (wie Prototyp) ---------- */
.prjhead { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.prjhead h1 { margin: 2px 0; text-wrap: balance; }
.prjhead p { margin: 0; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.owner { font-size: 13px; text-align: right; }
.owner small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar input[type=search] { height: 36px; width: min(340px, 100%); }
.toolbar form { margin: 0; }
.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.spacer { flex: 1; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: min(380px, 90vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  box-shadow: 0 12px 32px rgba(24, 33, 43, .14);
}
.menu-panel p { margin: 0 0 10px; }

.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.lv { width: 100%; border-collapse: separate; border-spacing: 0; }
.c-oz { width: 116px; } .c-qty { width: 104px; } .c-qu { width: 60px; } .c-up { width: 128px; } .c-it { width: 128px; }
table.lv th {
  position: sticky; top: var(--top); z-index: 5; background: var(--surface); text-align: left;
  font-size: 12px; font-weight: 600; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line-strong);
}
table.lv th.num { text-align: right; }
table.lv td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lv td.num { white-space: nowrap; }
table.lv .oz { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
tr.ctgy td { font-weight: 650; background: #eef2f6; }
tr.ctgy.l0 td { font-size: 15px; background: var(--brand-soft); color: #0b3f61; }
tr.ctgy.l2 td, tr.ctgy.l3 td { background: #f6f8fa; }
tr.ctgy .oz { color: inherit; }
tr.csum td { font-weight: 600; color: var(--muted); font-size: 13px; }
tr.csum td.num { color: var(--ink); }
tr.csum.l0 td { border-bottom: 2px solid var(--line-strong); color: var(--ink); }
tr.note td { background: #fbfbfc; }
.notetext { white-space: pre-wrap; color: var(--muted); font-size: 13px; font-style: italic; max-width: 90ch; }
tr.note.long:not(.open) .notetext { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
table.lv.all-long tr.note.long .notetext { display: block; }
.more { all: unset; cursor: pointer; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--brand); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more:focus-visible, .kt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
tr.item:hover td { background: #fafcfe; }
.kt { all: unset; cursor: pointer; display: inline; font-weight: 500; }
.kt:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.lt { display: none; margin-top: 6px; white-space: pre-wrap; color: #3b4652; font-size: 13px; max-width: 80ch; }
tr.item.open .lt, table.lv.all-long .lt { display: block; }
.qu { color: var(--muted); }
.badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.b-info { background: var(--brand-soft); color: var(--brand); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
tr.excluded .gp { color: var(--muted); }
tr.na td { opacity: .55; }
input.ep { height: 30px; padding: 0 8px; text-align: right; border-radius: 6px; font-variant-numeric: tabular-nums; }
input.ep:placeholder-shown { background: #fffdf6; }
input.ep.invalid { border-color: var(--err); background: #fff1f0; }
input.ep:disabled { background: transparent; border-color: transparent; color: var(--ink); }
tr.item td.gp { font-weight: 600; }
tr.item td.oz, tr.item td.qu, tr.item td.txt, tr.item td.gp, tr.item td.qty { padding-top: 12px; }

.sumbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 20px;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20, 30, 40, .06);
}
.sumbar .progress { display: grid; gap: 5px; font-size: 13px; color: var(--muted); min-width: 200px; }
.sumbar progress { width: 220px; max-width: 100%; }
.save-state { font-size: 13px; color: var(--muted); text-align: center; flex: 1; }
.save-state.saved { color: var(--ok); }
.save-state.error { color: var(--err); font-weight: 600; }
.totals { display: flex; gap: 28px; }
.totals div { display: grid; text-align: right; }
.totals small { color: var(--muted); font-size: 12px; }
.totals b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .gross b { color: var(--brand); font-size: 19px; }

@media (max-width: 820px) {
  .prjhead { flex-direction: column; }
  .owner { text-align: left; }
  .tablewrap { overflow-x: auto; }
  table.lv { min-width: 720px; }
  table.lv th { position: static; }
  .sumbar { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 16px; }
  .save-state { text-align: left; }
  .totals { justify-content: space-between; gap: 12px; }
  .container.wide { padding-bottom: 170px; }
  .menu-panel { left: 0; right: auto; }
}

/* Lizenzkauf & Rechnungen */
.table-wrap { overflow-x: auto; }
.err-text { color: var(--err); }
.billing-address { margin: 0 0 14px; }
.payments .status-completed { color: var(--ok); }
.payments .status-failed, .payments .status-refunded { color: var(--err); }

/* ---------- Fußzeile & Rechtstexte ---------- */
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 18px 16px 26px; font-size: 12.5px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--brand); text-decoration: underline; }
.topbar .push { margin-left: auto; }
.legal-text { max-width: 820px; margin: 0 auto; padding: 28px 32px 32px; line-height: 1.6; }
.legal-text h1 { font-size: 24px; margin-bottom: 4px; }
.legal-text h2 { font-size: 16px; margin: 26px 0 8px; }
.legal-text p, .legal-text li { margin: 0 0 10px; }
.legal-text ol, .legal-text ul { padding-left: 22px; margin: 0 0 10px; }
.check span a { white-space: nowrap; }
@media (max-width: 820px) { .legal-text { padding: 18px 16px; } }

/* ---------- Fehlerseiten ---------- */
.error-page { text-align: center; }
.error-page .code { font-size: 44px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.error-page p { margin: 0 0 18px; }

/* ---------- Systemseite (Betreiber) ---------- */
.checks td:first-child { width: 34px; }
.state { display: inline-block; min-width: 46px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; }
.state.ok { background: var(--ok-soft); color: var(--ok); }
.state.warn { background: var(--warn-soft); color: var(--warn); }
.state.fail { background: var(--err-soft); color: var(--err); }
.card-danger { border-color: var(--err-soft); }
.card-danger h2 { color: var(--err); }


/* ---------- Einrichtungsseite (/einrichtung/{token}) ---------- */
.setup h2 { font-size: 15px; margin: 22px 0 4px; }
.setup .table { margin: 0 0 6px; }
.setup .table td:last-child { overflow-wrap: anywhere; }
.setup .table .state { white-space: nowrap; }
@media (max-width: 480px) {
    /* Status + Bezeichnung oben, Detail darunter in voller Breite */
    .setup .table, .setup .table tbody { display: block; }
    .setup .table tr { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
    .setup .table tr:last-child { border-bottom: 0; }
    .setup .table td { padding: 0; border: 0; }
    .setup .table td:last-child { grid-column: 1 / -1; padding-top: 3px; }
}
.setup .field small.err-text { color: var(--err); }
.setup-output { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 12px; max-height: 220px; overflow: auto; white-space: pre-wrap; margin: 0 0 16px; }
.setup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.setup-log td { font-size: 12px; vertical-align: top; overflow-wrap: anywhere; }
.copy-field { font-family: ui-monospace, Consolas, monospace; font-size: 12px; height: 34px; }

/* ---------- Logo: 58 px Kopfzeile (Leiste 72 px), 210 px Anmelde-/Fehlerseiten ---------- */
img.logo { display: block; width: 58px; height: 58px; flex: none; }
img.logo.logo-large { width: 210px; height: 210px; filter: drop-shadow(0 6px 14px rgba(14, 90, 138, .2)); }
.brand { font-size: 19px; gap: 10px; }
.auth-logo { flex-direction: column; gap: 6px; font-size: 24px; }
@media (max-width: 480px) {
  img.logo { width: 48px; height: 48px; }
  img.logo.logo-large { width: 170px; height: 170px; }
}
