/* Public status page — Flatdesign, container width */
:root {
  --bg: #131b25;
  --panel: #1c2434;
  --line: #2d3340;
  --text: #e6eaeb;
  --muted: #dce4f2;
  --ok: #3bd671;
  --down: #df484a;
  --pending: #fac800;
  --none: #2d3340;
  --on-brand: #131b25;
  --page-w: 920px;
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: var(--ok); text-decoration: none; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 2px;
}
img { display: block; }

.page {
  width: min(var(--page-w), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}
.brand img { width: 36px; height: 36px; }
.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.btn:hover { border-color: var(--ok); color: var(--ok); }
.btn-main {
  width: 100%;
  min-height: 48px;
  margin-top: 1.25rem;
  border: none;
  background: var(--ok);
  color: var(--on-brand);
  font-size: 1rem;
}
.btn-main:hover { filter: brightness(1.06); color: var(--on-brand); }

.banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.banner-dot {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background: var(--pending);
}
.banner-dot.up { background: var(--ok); }
.banner-dot.down { background: var(--down); }
.banner-dot.empty { background: var(--none); }
.banner-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
}
.banner-title .hl { color: var(--ok); }
.banner-title .hl-down { color: var(--down); }
.banner-title .hl-pending { color: var(--pending); }
.page-desc {
  margin: -0.75rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.group {
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.group-head {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
}
.monitor-row {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) auto minmax(12rem, 2.2fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.monitor-row:last-child { border-bottom: none; }
.monitor-name {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.monitor-pct {
  color: var(--ok);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  white-space: nowrap;
}
.monitor-pct.is-na { color: var(--muted); }
.bars {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 1px;
  height: 28px;
  min-width: 0;
  align-items: stretch;
}
.bars span {
  flex: 0 0 3px;
  width: 3px;
  min-width: 3px;
  background: var(--none);
}
.bars span.up { background: var(--ok); }
.bars span.down { background: var(--down); }
.bars span.none { background: var(--none); }
.state-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ok);
  white-space: nowrap;
  justify-self: end;
}
.state-label.down { color: var(--down); }
.state-label.pending { color: var(--pending); }
.state-label .dot {
  width: 8px;
  height: 8px;
  background: currentColor;
}

.overall { margin-top: 1.5rem; }
.overall-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.25rem;
}
.overall-grid {
  display: grid;
  grid-template-columns: repeat(var(--tiles, 5), minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) {
  .overall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.overall-cell {
  text-align: center;
  padding: 0.35rem 0.25rem;
}
.overall-cell b {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.2rem;
}
.overall-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.empty {
  padding: 1.25rem 1.1rem;
  color: var(--muted);
  text-align: center;
}

.foot {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .monitor-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name status"
      "pct pct"
      "bars bars";
    gap: 0.45rem 0.75rem;
  }
  .monitor-name { grid-area: name; }
  .monitor-pct { grid-area: pct; }
  .bars { grid-area: bars; height: 22px; }
  .state-label { grid-area: status; }
  .overall-grid { grid-template-columns: 1fr 1fr; gap: 1rem 0.5rem; }
}

/* Kachel, deren Zeitraum die Messung noch nicht abdeckt: der Wert bleibt
   stehen, darunter steht ab wann er gilt. Keine erfundene Vollstaendigkeit. */
.overall-cell i {
  display: block;
  font-style: normal;
  font-size: 11px;
  line-height: 15px;
  color: var(--muted);
  opacity: 0.75;
}
.overall-cell.is-partial b {
  opacity: 0.65;
}

/* 208: Zeitraum des Fensters, Zeitzone und Legende unter der Ueberschrift.
   Graue Felder sind Tage ohne Daten, weder erreichbar noch gestoert. */
.window-note {
  margin: -0.35rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.window-note .lgi { white-space: nowrap; }
.window-note .lg {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 0.3rem 0 0.6rem;
  vertical-align: 0;
  background: var(--none);
  outline: 1px solid var(--muted);
}
.window-note .lg.up { background: var(--ok); outline: none; }
.window-note .lg.down { background: var(--down); outline: none; }
