:root {
  --bg: #f8fafc;

  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --panel-3: #ffffff;

  --text: #0f172a;
  --muted: #475569;

  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-border: #93c5fd;

  --line: #e2e8f0;

  --good: #16a34a;
  --good-bg: #dcfce7;
  --good-border: #bbf7d0;

  --warn: #d97706;
  --warn-bg: #fef3c7;
  --warn-border: #fde68a;

  --bad: #dc2626;
  --bad-bg: #fee2e2;
  --bad-border: #fecaca;

  --chip: #f8fafc;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --transition-fast: 120ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.45;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;

  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  margin-bottom: 24px;

  flex-wrap: wrap;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand small {
  display: block;

  margin-top: 4px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.panel,
.card {
  background: var(--panel);

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.panel {
  padding: 18px;
  margin-bottom: 20px;
}

.card {
  padding: 14px;
}

.panel:hover,
.card:hover {
  border-color: #cbd5e1;
}

.panel h1,
.panel h2,
.panel h3,
.card h1,
.card h2,
.card h3 {
  margin-top: 0;
  line-height: 1.2;
}

.subtle,
.hint,
.small {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.hero-title {
  margin: 0 0 8px 0;

  font-size: 34px;
  font-weight: 800;
}

.hero-sub {
  margin-bottom: 16px;

  color: var(--muted);

  font-size: 15px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.form-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 14px;

  margin-top: 12px;
}

label {
  display: block;

  margin-bottom: 6px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 600;
}

input[type="text"],
input[type="file"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;

  padding: 10px 12px;

  background: #ffffff;
  color: var(--text);

  border: 1px solid #cbd5e1;
  border-radius: 10px;

  font-size: 14px;

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;

  border-color: var(--accent-border);

  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 10px;

  flex-wrap: wrap;
}

.checkbox-row label {
  margin: 0;

  color: var(--text);

  font-weight: 500;
}

button,
.button,
.button-link,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 16px;

  background: var(--accent-soft);
  color: var(--accent);

  border: 1px solid var(--accent-border);
  border-radius: 12px;

  cursor: pointer;

  font-size: 14px;
  font-weight: 800;

  text-decoration: none;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

button:hover,
.button:hover,
.button-link:hover,
a.button:hover {
  background: #bfdbfe;

  text-decoration: none;
}

.stats {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  gap: 14px;
}

.stat {
  background: var(--panel-3);

  border: 1px solid var(--line);
  border-radius: 14px;

  padding: 14px;
}

.stat .label {
  margin-bottom: 6px;

  color: var(--muted);

  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat .value {
  font-size: 24px;
  font-weight: 800;
}

.status-badge,
.badge {
  display: inline-flex;
  align-items: center;

  padding: 5px 10px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.03em;

  white-space: nowrap;
}

.status-created,
.badge-neutral {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.status-running,
.badge-warning {
  background: var(--warn-bg);
  color: #92400e;
  border: 1px solid var(--warn-border);
}

.status-completed,
.badge-resolved {
  background: var(--good-bg);
  color: #166534;
  border: 1px solid var(--good-border);
}

.status-failed,
.badge-critical {
  background: var(--bad-bg);
  color: #991b1b;
  border: 1px solid var(--bad-border);
}

.status-unknown {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.table-wrap,
.table-scroll {
  overflow: auto;

  border: 1px solid var(--line);
  border-radius: var(--radius-md);

  background: #ffffff;
}

table {
  width: 100%;

  border-collapse: collapse;

  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);

  padding: 10px 8px;

  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;

  background: #eff6ff;
  color: #1e3a8a;

  font-weight: 700;

  cursor: pointer;

  z-index: 1;
}

tbody tr:hover {
  background: #f8fafc;
}

pre {
  margin: 0;

  white-space: pre-wrap;
  word-break: break-word;

  color: #334155;

  font-size: 12px;
}

.footer-note {
  margin-top: 8px;

  color: var(--muted);

  font-size: 12px;
}

.pill,
.chip {
  display: inline-block;

  padding: 4px 10px;

  background: #ffffff;
  color: #111827;

  border: 1px solid #dbe2ea;
  border-radius: 999px;

  font-size: 13px;
}

.code-pill {
  display: inline-block;

  margin-left: 6px;

  padding: 2px 6px;

  background: #e5e7eb;
  color: #374151;

  border-radius: 6px;

  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;
}

.code-retry {
  background: #dcfce7;
  color: #166534;
}

.code-terminal {
  background: #fee2e2;
  color: #991b1b;
}

.operator-nav-strip,
.nav-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 10px;

  padding: 12px 16px;

  background: #f8fafc;

  border-bottom: 1px solid #e2e8f0;
}

.operator-nav-action,
.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 12px;

  background: #ffffff;
  color: #334155;

  border: 1px solid #cbd5e1;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;

  line-height: 1;
  white-space: nowrap;

  text-decoration: none;
}

.operator-nav-action:hover,
.nav-action:hover {
  background: #eff6ff;

  border-color: #93c5fd;

  color: #1d4ed8;

  text-decoration: none;
}

.operator-nav-action[aria-current="page"],
.nav-action[aria-current="page"] {
  background: #dbeafe;

  border-color: #2563eb;

  color: #1d4ed8;

  font-weight: 700;
}

.panel-legacy {
  display: none;
}

.panel-legacy.active {
  display: block;
}
/* Public usability surfaces */
.public-site-container {
  max-width: 980px;
}

.public-site-panel {
  margin-top: 32px;
}

.eyebrow {
  margin: 0 0 8px 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list h2 {
  margin: 22px 0 8px 0;
  font-size: 18px;
}

.faq-list p {
  margin-top: 0;
  color: var(--muted);
}

.public-registration-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-top: 18px;
}

.error-box {
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--bad-bg);
  color: #991b1b;
  border: 1px solid var(--bad-border);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.small-note {
  margin-top: 18px;
}

.zahlen-site-footer {
  margin-top: 44px;
  padding: 24px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.zahlen-site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.zahlen-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zahlen-site-footer__muted {
  color: var(--muted);
  font-size: 12px;
}

.zahlen-site-footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
