/* Nexus Gateway — ein Stylesheet, zwei Marken (body.brand-nexus / body.brand-neutral) */

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #6b7482;
  --line: #e3e6ea;
  --error: #a4283a;
}
body.brand-neutral { --accent: #3d5a80; --accent-ink: #ffffff; }
body.brand-nexus   { --accent: #bf4515; --accent-ink: #ffffff; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- Landing / Login ---- */
.center {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 500px at 50% -10%,
      color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--bg);
}
.card {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 36px 32px;
  box-shadow: 0 1px 2px rgba(20, 28, 40, .04), 0 12px 32px rgba(20, 28, 40, .07);
}
.mark { text-align: center; margin-bottom: 28px; }
.glyph {
  width: 40px; height: 40px;
  stroke: var(--accent); fill: var(--accent);
  stroke-width: 1.6;
}
.glyph line, .glyph path { fill: none; }
.glyph rect { fill: none; stroke-width: 1.8; }
.mark h1 {
  margin: 10px 0 2px;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.claim {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .02em;
}

form label {
  display: block;
  margin: 14px 0 5px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
  text-transform: uppercase;
}
form input {
  width: 100%;
  padding: 10px 12px;
  font-size: .95rem;
  color: var(--ink);
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
form button {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: filter .12s;
}
form button:hover { filter: brightness(1.08); }
.error {
  margin: 0 0 4px;
  padding: 9px 12px;
  font-size: .85rem;
  color: var(--error);
  background: color-mix(in srgb, var(--error) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--error) 25%, #fff);
  border-radius: 6px;
}

/* ---- App-Rumpf ---- */
.shell { display: flex; min-height: 100vh; }
.nav {
  display: flex;
  flex-direction: column;
  width: 216px;
  flex-shrink: 0;
  background: #202834;
  color: #cfd6df;
}
.nav-mark {
  padding: 22px 20px 18px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav nav { flex: 1; padding: 10px 0; }
.nav nav a {
  display: block;
  padding: 10px 20px;
  font-size: .9rem;
  color: inherit;
  text-decoration: none;
}
.nav nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}
.nav nav a.soon { opacity: .45; cursor: default; }
.nav nav a.soon::after { content: " ·"; }
.nav footer {
  padding: 16px 20px;
  font-size: .8rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.who { display: block; margin-bottom: 6px; color: #9aa4b1; }
.logout { color: #cfd6df; }
.content { flex: 1; padding: 34px 42px; }
.content h2 { margin: 0 0 12px; font-size: 1.25rem; }
.muted { color: var(--muted); }

/* ═══ Status-Seite — nach Knowledge/design/mikes-intuition.md ═══
   Haarlinien statt Kästen · Füllungslogik (rot gefüllt springt, gelb Umriss
   warnt, ok klein schwarz) · Beschriftung links · kompakte Dichte · keine
   Deko-Konturen. Warnfarben bewusst nur für Zustände (System vor Komponente). */

.status-server { margin: 0 0 34px; }
.status-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 14px 0 8px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}
.status-kopf.ok   { color: var(--ink); }
.status-kopf.warn { color: #8a6d00; }
.status-kopf.err  { color: var(--error); }
.status-meta { margin-left: auto; font-size: .78rem; font-weight: 400;
               color: var(--muted); }

.glyph-status { display: inline-flex; align-items: center; }
.glyph-ok   { width: 13px; height: 13px; color: var(--ink); }
.glyph-warn { width: 19px; height: 19px; color: #b8860b; }
.glyph-err  { width: 19px; height: 19px; color: var(--error); }

.status-tabelle { width: 100%; border-collapse: collapse;
                  font-size: .86rem; }
.status-tabelle td { padding: 7px 10px 7px 0;
                     border-bottom: 1px solid var(--line); vertical-align: top; }
.status-tabelle tr:last-child td { border-bottom: none; }
.status-zelle-zustand { width: 30px; padding-top: 8px; }
.status-zelle-name { font-weight: 600; white-space: nowrap; }
.status-zelle-detail { color: var(--muted); }
.status-zelle-vor { width: 90px; text-align: right; color: var(--muted);
                    white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Zeile selbst schweigt — der Zustand lebt allein in der Glyphe (Regel 2) */
