/* Schrift: IBM Plex (SIL Open Font License), lokal ausgeliefert */
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-500.woff2") format("woff2"); }

/* --accent, --on-accent und --accent-ink kommen aus branding.php?asset=css */
:root {
  --side: #f1f1f2;
  --bg: #f8f8f9;
  --card: #ffffff;
  --raise: #f1f1f3;
  --line: rgba(23, 23, 23, 0.1);
  --line-strong: rgba(23, 23, 23, 0.2);
  --text: #171717;
  --text-2: #4d4d4f;
  --muted: #69696d;
  --ok: #15803d;
  --bad: #c92a2a;
  --warn: #a15c07;
  --stamp-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9);
  --float: 0 8px 24px rgba(0, 0, 0, 0.08);
  --plate-a: #fdfdfd;
  --plate-b: #e9e9eb;
  --accent: #b98524;
  --on-accent: #171717;
  --accent-ink: #835e19;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --side: #0f0f10;
  --bg: #141415;
  --card: #19191b;
  --raise: #232325;
  --line: rgba(237, 237, 237, 0.09);
  --line-strong: rgba(237, 237, 237, 0.2);
  --text: #ededed;
  --text-2: #a8a8ad;
  --muted: #8c8c92;
  --ok: #4cc38a;
  --bad: #f2777a;
  --warn: #e0a458;
  --stamp-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04);
  --float: 0 8px 24px rgba(0, 0, 0, 0.4);
  --plate-a: #2a2a2d;
  --plate-b: #1e1e20;
  --accent-ink: #c99b48;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:root[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/22px var(--sans); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, strong, b, th { font-weight: 500; }
h1 { font-size: 28px; line-height: 34px; }
h2 { font-size: 17px; line-height: 24px; }
h3 { font-size: 15px; line-height: 22px; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
img { max-width: 100%; }
code { font: 400 0.92em/1.4 var(--mono); overflow-wrap: anywhere; }
hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.icon { flex: none; width: 18px; height: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 20px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 14px; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 24px; align-content: start; min-width: 0; }
.stack > *, .columns > * { min-width: 0; }
.columns { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.columns.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- Marke */
.brand { display: inline-flex; align-items: center; min-width: 0; color: var(--text); text-decoration: none; }
.wordmark { font-size: 18px; line-height: 24px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Feste Höhe: Ein SVG ohne width/height hätte sonst keine Breite */
.logo { display: block; width: auto; height: 32px; max-width: 168px; object-fit: contain; object-position: left center; }

/* ----------------------------------------------------------- Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--text);
  font: 500 14px/20px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 140ms var(--ease);
}
.btn:hover { background: var(--raise); border-color: var(--line-strong); }
.btn:active { transform: scale(0.98); }
.btn .icon { color: var(--muted); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--on-accent)); border-color: transparent; }
.btn-primary .icon { color: inherit; }
.btn-danger { background: var(--bad); border-color: transparent; color: #fff; }
:root[data-theme="dark"] .btn-danger { color: #171717; }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 86%, #000); border-color: transparent; }
.btn-danger .icon { color: inherit; }
.btn-quiet { background: transparent; border-color: transparent; }
.btn-icon { width: 36px; padding: 0; background: transparent; border-color: transparent; }
.btn-icon:hover { border-color: transparent; }
.btn-icon.is-remove:hover .icon { color: var(--bad); }
.btn-small { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn-icon.btn-small { width: 32px; padding: 0; }
.btn-block { width: 100%; min-height: 44px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.is-copied .icon { color: var(--ok); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row.is-end { justify-content: flex-end; }
.btn-row.is-between { justify-content: space-between; }

/* --------------------------------------------------------------- Formulare */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field small { color: var(--muted); font-size: 13px; line-height: 18px; }
.opt { color: var(--muted); font-weight: 400; }
.form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="hidden"]), select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--card); color: var(--text); font: 400 15px/22px var(--sans);
  transition: border-color 140ms var(--ease);
}
:root[data-theme="dark"] input:not([type="file"]):not([type="color"]):not([type="checkbox"]), :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background-color: var(--raise); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 96px; resize: vertical; }
input[readonly] { color: var(--text-2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad) !important; }
input.mono { font-family: var(--mono) !important; }
.with-button { display: flex; gap: 8px; }
.with-button > :first-child { flex: 1; min-width: 0; }
.with-button .btn { min-height: 40px; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 22px; cursor: pointer; }
.tick input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-ink); }
.filters { display: grid; gap: 12px; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr)) auto; align-items: end; }
.filters .btn { min-height: 40px; }

/* ------------------------------------------------------------------ Karten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 60px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.card-head .muted { font-weight: 400; }
.card-body { padding: 24px; }
.card-body > * + * { margin-top: 16px; }
.card-body > .form + .form, .card-body > p + .form, .card-body > hr + * { margin-top: 24px; }
.card-body > hr { margin: 24px 0 0; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.stat dt { color: var(--text-2); font-size: 14px; line-height: 20px; }
.stat dd { margin-top: 8px; font-size: 30px; line-height: 36px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 20px; }

/* ---------------------------------------------------------------- Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
th { color: var(--muted); font-size: 13px; line-height: 20px; font-weight: 400; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 140ms var(--ease); }
tbody tr:hover { background: color-mix(in srgb, var(--raise) 55%, transparent); }
td.actions, th.actions { text-align: right; white-space: nowrap; }
td.actions .btn-row { justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
td .sub { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; line-height: 20px; }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ---------------------------------------------------- Signatur: Schlüssel */
.key { display: inline-flex; gap: 4px; vertical-align: middle; font: 500 13px/20px var(--mono); }
.key span { min-width: 44px; padding: 2px 6px; border-radius: 4px; background: var(--raise); box-shadow: var(--stamp-shadow); text-align: center; white-space: pre; }
.key-row { display: inline-flex; align-items: center; gap: 4px; }

.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-active::before { background: var(--ok); }
.status.is-suspended::before { background: var(--bad); }
.status.is-expired::before { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.tag { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-2); font-size: 13px; line-height: 20px; }
.usage { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
progress { --bar: color-mix(in srgb, var(--text) 45%, var(--card)); appearance: none; width: 56px; height: 6px; border: 0; border-radius: 3px; overflow: hidden; background: var(--raise); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--bar); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--bar); border-radius: 3px; }
.usage.is-wide { display: flex; }
.usage.is-wide progress { --bar: var(--accent); flex: 1; }
.card-body > progress { display: block; width: 100%; }

.alert { display: flex; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.alert .icon { margin-top: 2px; }
.alert p + p { margin-top: 8px; }
.alert.is-success .icon { color: var(--ok); }
.alert.is-danger { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.alert.is-danger .icon { color: var(--bad); }
.alert.is-warning { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.alert.is-warning .icon { color: var(--warn); }
.alert.is-info .icon { color: var(--muted); }

/* ---------------------------------------------------------- Admin-Gerüst */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 0 12px 16px; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.sidebar .brand { flex: none; height: 64px; padding: 0 12px; }
.nav-group { margin-top: 24px; }
.nav-group:first-of-type { margin-top: 8px; }
.nav-label { padding: 0 12px 8px; color: var(--muted); font-size: 13px; line-height: 16px; }
.nav-link { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; margin-bottom: 2px; border-radius: 8px; color: var(--text-2); font-size: 14px; text-decoration: none; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.nav-link .icon { color: var(--muted); }
.nav-link:hover { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 500; }
.nav-link[aria-current="page"] .icon { color: var(--accent-ink); }
:root[data-theme="dark"] .nav-link[aria-current="page"] { background: var(--raise); }
.sidebar-foot { margin-top: auto; padding-top: 24px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 32px; }
.topbar .spacer { flex: 1; }
.topbar .user { color: var(--text-2); font-size: 14px; padding-right: 8px; }
.menu-button { display: none; }
.page { max-width: 1440px; padding: 8px 32px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head p { margin-top: 4px; color: var(--text-2); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--text); }
.back .icon { width: 16px; height: 16px; }

details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; z-index: 20; min-width: 220px; margin-top: 6px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--float); }
.menu-panel a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 14px; text-decoration: none; }
.menu-panel a:hover { background: var(--raise); }

/* ---------------------------------------------------------------- Diagramm */
.chart { position: relative; }
.chart.is-narrow { display: none; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font: 400 12px var(--mono); }
.chart-hit { fill: transparent; }
.chart-bar { fill: color-mix(in srgb, var(--text) 26%, var(--card)); transition: fill 140ms var(--ease); }
.chart-day:hover .chart-bar, .chart-day:focus .chart-bar { fill: color-mix(in srgb, var(--text) 50%, var(--card)); }
.chart-day.is-today .chart-bar { fill: var(--accent); }
.chart-day:focus { outline: none; }
.chart-day:focus-visible .chart-hit { fill: color-mix(in srgb, var(--text) 6%, transparent); }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 8px)); padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--float); font-size: 13px; line-height: 18px; white-space: nowrap; pointer-events: none; }
.chart-tip div { color: var(--muted); }
.chart-foot { color: var(--muted); font-size: 13px; }
.bars { display: grid; gap: 16px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.bars progress { grid-column: 1 / -1; width: 100%; }
.bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------- Typenschild */
.plate { position: relative; padding: 32px; border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(165deg, var(--plate-a), var(--plate-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--float); }
.plate::before, .plate::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: color-mix(in srgb, var(--text) 22%, var(--plate-b)); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45); }
.plate::before { left: 12px; }
.plate::after { right: 12px; }
.plate .brand { margin-bottom: 24px; }
.plate .key { display: flex; font-size: 15px; line-height: 24px; }
.plate .key span { flex: 1; min-width: 0; padding: 6px 0; background: color-mix(in srgb, var(--text) 7%, transparent); }
.plate-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.plate-facts dt { color: var(--muted); font-size: 13px; line-height: 18px; }
.plate-facts dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- Öffentliche Seiten */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-head { display: flex; align-items: center; gap: 4px; width: 100%; max-width: 1200px; height: 72px; margin: 0 auto; padding: 0 32px; }
.site-head .spacer { flex: 1; }
.site-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 32px 80px; }
.check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; align-items: center; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 32px 96px; }
.check h1 { max-width: 12em; font-size: 48px; line-height: 52px; letter-spacing: -0.02em; font-weight: 400; }
.check-lead { max-width: 30em; margin: 20px 0 32px; color: var(--text-2); font-size: 18px; line-height: 28px; }
.check form { display: grid; gap: 8px; max-width: 460px; }
.check .with-button input, .check .with-button .btn { min-height: 48px; }
.check-status { min-height: 24px; margin-top: 12px; color: var(--text-2); }
.check-plate { padding: 48px 56px; min-height: 320px; display: flex; flex-direction: column; }
.check-domain { margin: auto 0; padding: 32px 0; font: 500 28px/36px var(--mono); overflow-wrap: anywhere; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
:root[data-theme="dark"] .check-domain { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6); }
.check-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; color: var(--muted); font-size: 13px; }
.stamp { padding: 6px 14px; border: 2px solid currentColor; border-radius: 6px; color: var(--muted); font-size: 16px; line-height: 24px; font-weight: 500; transform: rotate(-3deg); transition: color 180ms var(--ease), transform 180ms var(--ease); }
[data-state="ok"] .stamp { color: var(--ok); transform: rotate(-6deg); }
[data-state="denied"] .stamp { color: var(--bad); transform: rotate(-6deg); }

.auth { display: grid; place-content: center; grid-template-columns: minmax(0, 420px); flex: 1; padding: 24px 16px 96px; }
.auth h1 { font-size: 24px; line-height: 30px; }
.auth-lead { margin: 6px 0 24px; color: var(--text-2); }
.auth .form { margin-top: 24px; }
.auth .alert { margin-top: 20px; }
.auth-links { margin-top: 24px; font-size: 14px; }
.auth .card { padding: 32px; }

.license { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.license + .license { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 0; }
.rows .sub { color: var(--muted); font-size: 13px; }
.license section + section { margin-top: 32px; }
.license section h2 { margin-bottom: 8px; }
.domain-form { margin-top: 16px; }

/* ----------------------------------------------------------------- Branding */
.slots { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slot { display: grid; gap: 12px; align-content: start; }
.slot-image { display: grid; place-items: center; height: 128px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.slot-image img { max-width: 100%; max-height: 80px; }
.slot-image.on-light { background: #f8f8f9; color: #171717; }
.slot-image.on-dark { background: #141415; color: #ededed; }
.slot-image.is-icon { background: var(--raise); }
.slot-image.is-icon img { width: 48px; height: 48px; object-fit: contain; }
.slot-state { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
input[type="file"] { width: 100%; font: 400 14px/20px var(--sans); color: var(--text-2); }
input[type="file"]::file-selector-button { min-height: 36px; margin-right: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: 500 14px/20px var(--sans); cursor: pointer; }
input[type="color"] { flex: none; width: 48px; height: 40px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); cursor: pointer; }
.accent-row { display: flex; gap: 8px; }
.accent-row input.mono { max-width: 140px; }

.domain-row { display: flex; gap: 8px; }
.domain-list { display: grid; gap: 8px; }
.code-block { max-height: 520px; margin: 0; padding: 20px; overflow: auto; background: var(--raise); border-radius: 8px; font: 400 13px/20px var(--mono); }
.sticky { position: sticky; top: 24px; }

/* --------------------------------------------------------------- Installer */
.install { width: 100%; max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }
.install-head { margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 24px; }
.steps li { padding-top: 8px; border-top: 3px solid var(--line); color: var(--muted); font-size: 14px; }
.steps li.is-done { border-color: var(--text-2); }
.steps li[aria-current] { border-color: var(--accent); color: var(--text); font-weight: 500; }
.install .card { padding: 32px; }
.install .card h2 { margin-bottom: 16px; outline: none; }
.install .lead { margin-bottom: 24px; color: var(--text-2); }
.install .card > p + p { margin-top: 12px; }
.install .alert { margin-bottom: 24px; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.row-host { grid-template-columns: minmax(0, 1fr) 112px; }
.install .field { margin-bottom: 20px; }
.install .field:last-child { margin-bottom: 0; }
.row:last-child .field { margin-bottom: 0; }
.check-item { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.check-item:first-child { border-top: 0; padding-top: 0; }
.check-hint { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 20px; }
.is-ok .check-value { color: var(--text-2); }
.is-warn .check-value { color: var(--warn); }
.is-fail .check-value { color: var(--bad); font-weight: 500; }
.code-field { margin-top: 24px; }
.existing, .warnings { padding: 16px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 8px; }
.existing p { margin-bottom: 12px; }
.warnings { display: grid; gap: 8px; margin-top: 16px; color: var(--warn); }
.install details summary { color: var(--text-2); cursor: pointer; }
.install details .field { margin-top: 16px; }
.actions-done { margin-top: 24px; }
.install-actions { display: flex; justify-content: space-between; margin-top: 24px; }
.install-actions .btn { min-height: 44px; padding: 0 20px; }
.install-actions .btn-primary { margin-left: auto; }

/* --------------------------------------------------------- Kleinere Breiten */
@media (max-width: 1180px) {
  .columns, .license { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky { position: static; }
  .check { gap: 48px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 272px; visibility: hidden; transform: translateX(-100%); transition: transform 220ms var(--ease), visibility 220ms; }
  .nav-open .sidebar { visibility: visible; transform: none; box-shadow: var(--float); }
  .menu-button { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .page { padding: 8px 16px 48px; }
  .columns.is-even, .check { grid-template-columns: minmax(0, 1fr); }
  .check { align-content: start; padding: 24px 16px 64px; }
  .check h1 { font-size: 36px; line-height: 40px; }
  .check-plate { min-height: 240px; padding: 32px 40px; }
  .check-domain { font-size: 20px; line-height: 28px; }
  .site-head { padding: 0 16px; }
  .site-main { padding: 16px 16px 64px; }
}
@media (max-width: 680px) {
  .chart.is-wide { display: none; }
  .chart.is-narrow { display: block; }
}
@media (max-width: 560px) {
  .form-grid, .filters, .slots, .row, .row-host { grid-template-columns: minmax(0, 1fr); }
  .card-body, .install .card, .auth .card { padding: 20px; }
  .card-head { padding: 12px 20px; }
  .stat { padding: 16px; }
  .stat dd { font-size: 26px; line-height: 32px; }
  .stats { gap: 8px; }
  .topbar .user { display: none; }
  .site-head .label-text { display: none; }
  .steps li { font-size: 12px; }
  .plate { padding: 28px; }
  th:first-child, td:first-child { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
