/* MB Smart CI: Navy, Cyan, Royalblau, Schrift Manrope (lokal gehostet, kein Google-Fonts-Abruf) */
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap;
  src: url('/static/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap;
  src: url('/static/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #1B2240; --cyan: #2BC5E8; --royal: #2F5BD1; --bg: #F2F4F8; --tint: #E8F6FB;
  --text: #1B2240; --muted: #5E6784; --line: #DDE2EC; --card: #fff;
  --ok: #12805C; --warn: #B26A00; --bad: #C0392B;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Manrope, system-ui, sans-serif; background: var(--bg); color: var(--text); display: flex; min-height: 100vh; font-size: 15px; }
a { color: var(--royal); }
.side { width: 232px; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; margin-bottom: 24px; }
.brand img { height: 34px; max-width: 100%; object-fit: contain; }
.brand span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; padding-left: 2px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a { color: #C9D0E6; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a.active { background: var(--royal); color: #fff; }
.me { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; font-size: 13px; }
.me small { color: var(--cyan); display: block; margin: 2px 0 6px; }
button.link { background: none; border: 0; color: #C9D0E6; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
main { flex: 1; padding: 28px 32px; max-width: 1400px; min-width: 0; }
main.bare { display: flex; flex-direction: column; align-items: center; justify-content: center; }
h1 { font-size: 26px; margin: 0 0 18px; font-weight: 800; }
h2 { font-size: 18px; margin: 24px 0 10px; font-weight: 700; }
.envbar { background: var(--tint); color: var(--navy); border: 1px solid #BCE7F4; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 16px; display: inline-block; }
.flash { background: #FFF8E5; border: 1px solid #F1D38A; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 13px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
form.inline { display: inline; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--muted); }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
textarea { min-height: 70px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.row > .shrink { flex: 0 0 auto; min-width: 0; }
.btn { display: inline-block; background: var(--royal); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: #fff; color: var(--royal); border: 1px solid var(--royal); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--tint); color: var(--navy); white-space: nowrap; }
.badge.ok { background: #E3F5EE; color: var(--ok); }
.badge.warn { background: #FFF2DC; color: var(--warn); }
.badge.bad { background: #FCE8E6; color: var(--bad); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.login { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 36px; width: 380px; max-width: 100%; text-align: center; }
.login img { height: 56px; margin-bottom: 8px; }
.login .claim { color: var(--muted); margin: 0 0 22px; }
.result { border-left: 4px solid var(--royal); padding: 10px 14px; background: var(--tint); border-radius: 0 8px 8px 0; margin-top: 12px; }
.result.ok { border-color: var(--ok); background: #EFF9F5; }
.result.bad { border-color: var(--bad); background: #FDF1EF; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); font-weight: 600; }
dl.kv dd { margin: 0; }
@media (max-width: 800px) {
  body { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  main { padding: 18px 16px; }
}
a.mono, td.mono { white-space: nowrap; }
