/* ============================================================
   VORKS STATUS — rot/schwarz, Space Grotesk / Inter / JetBrains Mono
   ============================================================ */
:root {
  --bg: #070708;
  --surface: #101013;
  --surface-2: #16161a;
  --line: #232329;
  --text: #ececef;
  --muted: #8b8b93;
  --red: #e8192c;
  --red-dim: #7a0f19;
  --ok: #2fd16d;
  --warn: #ffb224;
  --down: #ff3b4a;
  --gray: #6b6b73;
  --radius: 10px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  background-image:
    radial-gradient(1100px 380px at 50% -120px, rgba(232,25,44,0.10), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.012) 3px 4px);
}

.page { max-width: 1060px; margin: 0 auto; padding: 0 20px 60px; }
.center-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 14px; }
.narrow { max-width: 760px; }
.mono { font-family: var(--font-mono); }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.wrap { flex-wrap: wrap; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 12px; height: 22px; background: var(--red);
  clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
  box-shadow: 0 0 14px rgba(232,25,44,0.55);
}
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; font-size: 16px; }
.brand-accent { color: var(--red); }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 13.5px; letter-spacing: 0.04em; }
.topnav a:hover { color: var(--text); }
.lang-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--red); color: var(--text); }

/* ---------- Hero / Pulse ---------- */
.hero { padding: 44px 0 10px; text-align: center; }
.hero-status { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(24px, 4.4vw, 40px); font-weight: 700; letter-spacing: 0.01em; }
.hero-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gray); flex: 0 0 auto; }
.hero[data-status="operational"] .hero-dot { background: var(--ok); box-shadow: 0 0 18px rgba(47,209,109,0.7); animation: breathe 2.4s ease-in-out infinite; }
.hero[data-status="degraded"] .hero-dot { background: var(--warn); box-shadow: 0 0 18px rgba(255,178,36,0.7); }
.hero[data-status="down"] .hero-dot { background: var(--down); box-shadow: 0 0 18px rgba(255,59,74,0.8); animation: blink 1s steps(2) infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes blink { 50% { opacity: 0.35; } }

.pulse { width: 100%; height: 60px; margin-top: 10px; }
.pulse path { stroke: var(--ok); filter: drop-shadow(0 0 6px currentColor); transition: stroke 0.6s; }
.hero[data-status="operational"] .pulse path { stroke: var(--ok); }
.hero[data-status="degraded"] .pulse path { stroke: var(--warn); }
.hero[data-status="down"] .pulse path { stroke: var(--down); }
.hero[data-status="unknown"] .pulse path { stroke: var(--gray); }

.hero-meta { display: flex; justify-content: center; gap: 18px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(2) infinite; }
.live-pill.offline .live-dot { background: var(--gray); animation: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.section-title { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.month-label { color: var(--red); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 26px 0 10px; }

/* ---------- Incidents ---------- */
.incidents { margin-top: 18px; }
.incident-card { border-left: 3px solid var(--gray); }
.incident-card.sev-minor { border-left-color: var(--warn); }
.incident-card.sev-major { border-left-color: #ff7a1a; }
.incident-card.sev-critical { border-left-color: var(--down); }
.incident-card.sev-maintenance { border-left-color: var(--gray); }
.incident-card.sev-info { border-left-color: #5aa9ff; }
.incident-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.incident-head h3 { font-family: var(--font-display); font-size: 16px; flex: 1; }
.incident-body { margin: 8px 0; color: #cfcfd4; white-space: pre-wrap; }
.sev-badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line);
}
.sev-badge.sev-minor { color: var(--warn); border-color: rgba(255,178,36,0.4); }
.sev-badge.sev-major { color: #ff7a1a; border-color: rgba(255,122,26,0.4); }
.sev-badge.sev-critical { color: var(--down); border-color: rgba(255,59,74,0.5); }
.sev-badge.sev-maintenance { color: var(--muted); }
.sev-badge.sev-info { color: #5aa9ff; border-color: rgba(90,169,255,0.4); }
.status-chip {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px;
}
.timeline { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.timeline-item { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.timeline-item:last-child { border-bottom: none; }

/* ---------- Service Cards ---------- */
.group-title { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin: 30px 0 10px; }
.svc { padding: 16px 20px; }
.svc-head { display: flex; align-items: center; gap: 12px; user-select: none; }
.svc-head[role="button"] { cursor: pointer; }
.svc-name { font-family: var(--font-display); font-weight: 500; font-size: 16px; flex: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.svc-name a { color: var(--muted); text-decoration: none; font-size: 12px; font-family: var(--font-mono); }
.svc-name a:hover { color: var(--red); }
.svc-latency { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.svc-status { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gray); flex: 0 0 auto; }
.st-operational { background: var(--ok); box-shadow: 0 0 8px rgba(47,209,109,0.6); }
.st-degraded { background: var(--warn); box-shadow: 0 0 8px rgba(255,178,36,0.6); }
.st-down { background: var(--down); box-shadow: 0 0 8px rgba(255,59,74,0.7); }
.st-maintenance, .st-disabled, .st-unknown, .st-nodata { background: var(--gray); }
.txt-operational { color: var(--ok); }
.txt-degraded { color: var(--warn); }
.txt-down { color: var(--down); }
.txt-maintenance, .txt-disabled, .txt-unknown { color: var(--muted); }

.svc-error { font-family: var(--font-mono); font-size: 11.5px; color: var(--down); margin-top: 4px; }

/* Uptime-Bars */
.bars { display: flex; gap: 2px; margin-top: 12px; height: 30px; align-items: stretch; }
.bar { flex: 1; border-radius: 1.5px; background: #26262c; min-width: 2px; transition: transform 0.1s; position: relative; }
.bar.b-operational { background: var(--ok); opacity: 0.85; }
.bar.b-degraded { background: var(--warn); }
.bar.b-down { background: var(--down); }
.bar.b-nodata { background: #232328; }
.bar:hover { transform: scaleY(1.18); z-index: 2; }
.bars-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 6px; }
.uptime-pct { color: var(--text); }

/* Komponenten — Tile-Grid, standardmäßig sichtbar */
.components { display: none; margin-top: 14px; }
.svc.open .components { display: block; }
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.comp-tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gray);
  border-radius: 8px;
  padding: 10px 12px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  animation: riseIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--c, 0) * 35ms);
}
body.loaded .comp-tile { animation: none; }
.comp-tile:hover { transform: translateY(-1px); border-color: rgba(232,25,44,0.35); }
.comp-tile.ct-operational { border-left-color: var(--ok); }
.comp-tile.ct-degraded { border-left-color: var(--warn); background: linear-gradient(135deg, rgba(255,178,36,0.05), var(--surface-2)); }
.comp-tile.ct-down { border-left-color: var(--down); background: linear-gradient(135deg, rgba(255,59,74,0.08), var(--surface-2)); box-shadow: 0 0 16px rgba(255,59,74,0.1); }
.comp-tile.ct-maintenance, .comp-tile.ct-disabled { border-left-color: var(--gray); opacity: 0.65; }
.comp-top { display: flex; align-items: center; gap: 8px; }
.comp-top .dot { width: 8px; height: 8px; }
.comp-name { flex: 1; color: #e2e2e6; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-bottom { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.comp-status { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.comp-lat { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.comp-error { font-family: var(--font-mono); font-size: 10.5px; color: var(--down); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-count { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.svc-caret { color: var(--muted); transition: transform 0.2s; font-size: 12px; }
.svc.open .svc-caret { transform: rotate(90deg); }

/* Tooltip für Bars */
.bar-tip {
  position: fixed; pointer-events: none; z-index: 50;
  background: #1b1b20; border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 10px; font-family: var(--font-mono); font-size: 11px; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); display: none; white-space: nowrap;
}

/* ---------- Buttons / Forms ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: 13.5px; padding: 8px 16px; border-radius: 7px;
  cursor: pointer; text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--red); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn-primary:hover { background: #ff2a3e; }
.btn-outline { background: transparent; }
.btn-mini { padding: 4px 10px; font-size: 12px; }
.btn-danger:hover { border-color: var(--down); color: var(--down); }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px;
  background: #0c0c0f; border: 1px solid var(--line); border-radius: 7px;
  color: var(--text); font-family: var(--font-body); font-size: 14px; padding: 9px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,25,44,0.15); }
.check { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.check input { width: auto; display: inline; margin: 0; }

.flash { border-radius: 7px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.flash-error { background: rgba(255,59,74,0.12); border: 1px solid rgba(255,59,74,0.4); color: #ffb3ba; }
.flash-ok { background: rgba(47,209,109,0.1); border: 1px solid rgba(47,209,109,0.35); color: #a9f0c6; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Layout-Helfer ---------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-gap { display: flex; align-items: center; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.login-card { width: min(380px, 92vw); }
.form-card { padding: 22px; }

/* ---------- Admin-Tabelle ---------- */
.table-card { padding: 6px 12px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.url-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 18px; }

/* ---------- 404 Glitch ---------- */
.glitch { font-family: var(--font-display); font-size: 90px; color: var(--red); position: relative; }

@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .topnav { gap: 12px; }
  .footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, .hero-dot, .live-dot { animation: none !important; transition: none !important; }
}

/* ============================================================
   FANCY LAYER — Animationen & Micro-Interactions
   ============================================================ */

/* Page-Load: Cards staffeln rein */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.svc, .incident-card, .group-title {
  animation: riseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.hero-status, .pulse, .hero-meta { animation: riseIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.pulse { animation-delay: 0.12s; }
.hero-meta { animation-delay: 0.22s; }

/* Hover: Cards heben sich, roter Glow */
.svc, .incident-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.svc:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 25, 44, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 25, 44, 0.12);
}

/* Uptime-Bars wachsen beim Laden von unten hoch */
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar {
  transform-origin: bottom;
  animation: barGrow 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--b, 0) * 4ms);
}

/* Status-Wechsel: Card blitzt kurz auf (per JS gesetzt) */
@keyframes statusFlash {
  0%   { box-shadow: 0 0 0 0 rgba(232, 25, 44, 0.0); }
  25%  { box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.55), 0 0 36px rgba(232, 25, 44, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(232, 25, 44, 0.0); }
}
.svc.flash { animation: statusFlash 1.2s ease-out 1; }

/* Hero: dezenter Scan-Streifen, der periodisch durchläuft */
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 140px;
  left: -160px;
  background: linear-gradient(90deg, transparent, rgba(232,25,44,0.06), transparent);
  animation: heroSweep 7s linear infinite;
  pointer-events: none;
}
@keyframes heroSweep { to { left: 110%; } }

/* Brand-Mark pulsiert leicht */
.brand-mark { animation: markPulse 3s ease-in-out infinite; }
@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(232,25,44,0.55); }
  50%      { box-shadow: 0 0 24px rgba(232,25,44,0.85); }
}

/* ---------- Forbidden / 403 ---------- */
.forbidden-page { text-align: center; }
.forbidden-box {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 48px 40px; max-width: 520px; width: 92vw;
  animation: deniedShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.9s 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
@keyframes deniedShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.lock-ring { width: 80px; height: 80px; margin: 0 auto 22px; }
.ring-fg { animation: ringDraw 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; transform: rotate(-90deg); transform-origin: center; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
.lock-icon { opacity: 0; animation: riseIn 0.4s ease 0.7s forwards; }

.glitch-text {
  font-family: var(--font-display); font-size: clamp(22px, 5vw, 34px);
  font-weight: 700; letter-spacing: 0.06em; color: var(--text);
  position: relative; display: inline-block;
}
.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute; inset: 0; overflow: hidden;
}
.glitch-text::before {
  color: var(--red); z-index: -1;
  animation: glitchShift 2.8s steps(2, end) infinite;
}
.glitch-text::after {
  color: #3ad7ff; z-index: -2; opacity: 0.7;
  animation: glitchShift 2.8s steps(2, end) infinite reverse;
}
@keyframes glitchShift {
  0%, 86%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  88% { transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); }
  91% { transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  94% { transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
  97% { transform: translate(2px, 1px); clip-path: inset(75% 0 2% 0); }
}

.forbidden-sub { color: var(--red); font-size: 12px; letter-spacing: 0.18em; margin: 10px 0 16px; }
.forbidden-msg { color: #cfcfd4; line-height: 1.7; }
.forbidden-msg .hl { color: var(--red); font-weight: 600; }
.forbidden-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }

.scan-sweep {
  position: absolute; left: 0; right: 0; height: 2px; top: -10px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.5;
  animation: scanDown 3.5s linear infinite;
  pointer-events: none;
}
@keyframes scanDown { from { top: -4px; } to { top: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .svc, .incident-card, .group-title, .bar, .hero-status, .pulse, .hero-meta,
  .ring-fg, .lock-icon, .forbidden-box, .glitch-text::before, .glitch-text::after,
  .scan-sweep, .hero::after, .brand-mark {
    animation: none !important;
  }
  .ring-fg { stroke-dashoffset: 0; }
  .lock-icon { opacity: 1; }
}

/* Nach dem ersten Render keine Re-Entry-Animationen mehr (SSE-Updates sollen nicht flackern) */
body.loaded .svc:not(.flash),
body.loaded .incident-card,
body.loaded .group-title,
body.loaded .bar,
body.loaded .hero-status,
body.loaded .pulse,
body.loaded .hero-meta {
  animation: none;
}
body.loaded .svc.flash { animation: statusFlash 1.2s ease-out 1; }

/* ---------- Hero-Stats-Leiste ---------- */
.hero-stats {
  display: flex; justify-content: center; align-items: center; gap: 26px;
  margin-top: 24px;
  animation: riseIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
body.loaded .hero-stats { animation: none; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-family: var(--font-mono); font-size: 22px; font-weight: 600; }
.stat-num small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat-sep { width: 1px; height: 30px; background: var(--line); }

/* Service-Beschreibung im Head */
.svc-desc { font-size: 12px; color: var(--muted); font-family: var(--font-body); font-weight: 400; }

/* Bars unter dem Komponenten-Grid */
.svc .bars { margin-top: 14px; }

@media (max-width: 680px) {
  .comp-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 18px; }
  .svc-desc { display: none; }
}

/* ---------- Probe-Picker (Service-Formular) ---------- */
.probe-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0 18px;
}
.probe-status {
  margin-top: 14px;
  padding: 10px 14px;
  background: #0c0c0f;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gray);
  border-radius: 7px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.probe-status.loading { border-left-color: var(--warn); color: var(--muted); }
.probe-status.st-operational { border-left-color: var(--ok); }
.probe-status.st-degraded { border-left-color: var(--warn); }
.probe-status.st-down { border-left-color: var(--down); }
.probe-status .dot { width: 10px; height: 10px; }

.probe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.probe-tile {
  background: #0c0c0f;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gray);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s, opacity 0.15s, background 0.15s;
}
.probe-tile:hover { border-color: rgba(232,25,44,0.35); }
.probe-tile.pt-operational { border-left-color: var(--ok); }
.probe-tile.pt-degraded { border-left-color: var(--warn); }
.probe-tile.pt-down { border-left-color: var(--down); }
.probe-tile.pt-disabled, .probe-tile.pt-maintenance { opacity: 0.65; }
.probe-tile.unchecked { opacity: 0.4; background: transparent; }
.probe-tile.unchecked:hover { opacity: 0.7; }

.cmp-line {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; margin: 0;
}
.cmp-cb {
  width: 16px; height: 16px;
  accent-color: var(--red);
  margin: 0; flex: 0 0 auto;
}
.probe-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray); flex: 0 0 auto;
}
.cmp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.probe-name {
  color: #e6e6ea; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.probe-meta {
  font-family: var(--font-mono); font-size: 11px;
  display: flex; gap: 10px; align-items: center;
}
.probe-meta .ms { color: var(--muted); }
.probe-meta .st { letter-spacing: 0.04em; }

/* Severity-Pills: drei gleich breite Buttons in einer Reihe */
.sev-pills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin-top: 11px;
}
.sev-pill {
  position: relative; cursor: pointer; margin: 0;
  font-size: 10.5px; letter-spacing: 0.05em;
  padding: 5px 4px; text-align: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  transition: all 0.12s;
  user-select: none;
}
.sev-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sev-pill:hover { border-color: rgba(255,255,255,0.22); color: var(--text); }
.sev-pill.active { font-weight: 600; }
.sev-pill.sev-critical.active { background: rgba(255,59,74,0.18); border-color: rgba(255,59,74,0.55); color: #ffb3ba; }
.sev-pill.sev-major.active { background: rgba(255,178,36,0.15); border-color: rgba(255,178,36,0.5); color: #ffd98a; }
.sev-pill.sev-minor.active { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: #d8d8de; }

/* Legende */
.severity-legend {
  margin: 14px 0;
  padding: 11px 14px;
  background: #0c0c0f; border: 1px solid var(--line); border-radius: 7px;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-item strong { color: var(--text); }
.sev-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.sev-dot.sev-critical { background: var(--down); }
.sev-dot.sev-major { background: var(--warn); }
.sev-dot.sev-minor { background: var(--muted); }

/* ---------- Severity-Badges auf der öffentlichen Page ---------- */
.comp-sev {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px; margin-left: 6px;
  border: 1px solid currentColor;
}
.comp-sev-critical { color: #ffb3ba; }
.comp-sev-minor { color: var(--muted); opacity: 0.8; }
/* major (default) wird nicht angezeigt */

/* ---------- Latenz-Schwellen ---------- */
.svc-latency.slow, .comp-lat.slow {
  color: var(--warn);
  font-weight: 600;
  cursor: help;
}
.svc-latency.slow::before, .comp-lat.slow::before {
  content: "⚠ ";
  font-size: 0.9em;
}

/* Form: Latenz-Box */
.latency-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px 4px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.015);
}
.latency-box legend {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  padding: 0 8px;
  letter-spacing: 0.04em;
}
.latency-box small { display: block; margin-top: 4px; font-size: 11px; }
