@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }

:root {
  --ink: #14181d; --surface: #1c222a; --surface-2: #262e38;
  --mist: #eef1f3; --mist-dim: #9aa7b2; --hairline: #333c47;
  --route: #ff5a1f; --danger: #e02e2e; --radius: 10px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: var(--ink); color: var(--mist);
  font: 400 15px/1.45 "Inter", system-ui, sans-serif;
}
.card {
  width: 100%; max-width: 380px; padding: 24px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.card--wide { max-width: 960px; }
.brand { margin: 0 0 4px; color: var(--route); font: 600 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
h1 { margin: 0 0 16px; font: 600 24px/1.2 "Barlow Condensed", sans-serif; }
h2 { margin: 24px 0 8px; font: 600 18px/1.2 "Barlow Condensed", sans-serif; }
form { display: grid; gap: 12px; }
form.inline { display: inline; }
label { display: grid; gap: 4px; color: var(--mist-dim); font-size: 13px; }
input, select {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--mist);
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 8px;
}
input:focus, select:focus { outline: 2px solid var(--route); outline-offset: 1px; }
button {
  padding: 10px 14px; font: 600 15px/1 "Inter", sans-serif; color: #fff; cursor: pointer;
  background: var(--route); border: 0; border-radius: 8px;
}
button.secondary { background: var(--surface-2); color: var(--mist); border: 1px solid var(--hairline); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
button.link { background: none; padding: 0; color: var(--route); font-weight: 400; text-decoration: underline; }
a { color: var(--route); }
.links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.error { padding: 10px 12px; border-radius: 8px; background: rgba(224, 46, 46, .15); color: #ffb4b4; }
.notice { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.secret { font: 600 20px/1.2 ui-monospace, monospace; letter-spacing: .05em; color: var(--mist); user-select: all; }
code { font-family: ui-monospace, monospace; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: middle; }
th { color: var(--mist-dim); font-weight: 400; }
td .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
td .row-actions form { display: flex; gap: 6px; }
td .row-actions button { padding: 6px 10px; font-size: 13px; }
.muted { color: var(--mist-dim); }
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  td { border: 0; padding: 4px 0; }
}

/* ---- Daten-Seite (/admin/data) ------------------------------------------ */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.facts dt { color: var(--mist-dim); font-size: 13px; padding-top: 2px; }
.facts dd { margin: 0; }
.state { font-weight: 600; }
.state--running { color: var(--route); }
.state--ok { color: #7fd48a; }
.state--failed, .state--aborted { color: #ffb4b4; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.actions form { display: block; }
button:disabled { opacity: .45; cursor: not-allowed; }
.log {
  max-height: 420px; overflow: auto; margin: 0; padding: 12px;
  background: var(--ink); border: 1px solid var(--hairline); border-radius: 8px;
  font: 12px/1.45 ui-monospace, monospace; white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 6px; }
}
