/* Statusseite 360 Hosting (deploy/server/monitoring/www). Farben wie apps/portal: Navy #10203d, Teal #008b92. */
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: #10203d;
  --navy-2: #0b3240;
  --teal: #008b92;
  --teal-2: #12b8a6;
  --ok: #0f9d58;
  --warn: #e8890c;
  --bad: #d64545;
  --none: #c9d2df;
  --bg: #f3f6fa;
  --card: #ffffff;
  --line: #e3e9f1;
  --text: #10203d;
  --muted: #5b6b84;
  --shadow: 0 1px 2px rgba(16, 32, 61, 0.06), 0 8px 24px rgba(16, 32, 61, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1424;
    --card: #101d33;
    --line: #1d2d48;
    --text: #e6edf7;
    --muted: #93a3bd;
    --none: #2a3a56;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 Outfit, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(920px, 100% - 32px); margin-inline: auto; }

/* ---------- Kopf ---------- */
.band {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(18, 184, 166, 0.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #0f2742 55%, var(--navy-2) 100%);
  color: #fff;
  padding-bottom: 72px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-tag {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
}
.links { display: flex; gap: 6px; flex-wrap: wrap; }
.links a {
  text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.15s;
}
.links a:hover, .links a:focus-visible { background: rgba(255, 255, 255, 0.18); }

.hero { display: flex; align-items: center; gap: 20px; padding-top: 28px; }
.hero h1 { margin: 0; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.15; font-weight: 650; letter-spacing: -0.01em; }
.hero p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 16px; }
.hero-icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.hero-icon span { width: 22px; height: 22px; border-radius: 50%; background: var(--none); position: relative; }
.hero[data-state="ok"] .hero-icon span { background: #2fd27c; box-shadow: 0 0 0 6px rgba(47, 210, 124, 0.22); }
.hero[data-state="warn"] .hero-icon span { background: #ffb020; box-shadow: 0 0 0 6px rgba(255, 176, 32, 0.25); }
.hero[data-state="bad"] .hero-icon span { background: #ff5c5c; box-shadow: 0 0 0 6px rgba(255, 92, 92, 0.25); }
.hero[data-state="ok"] .hero-icon span::after,
.hero[data-state="warn"] .hero-icon span::after,
.hero[data-state="bad"] .hero-icon span::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
.hero[data-state="ok"] .hero-icon span::after { color: #2fd27c; }
.hero[data-state="warn"] .hero-icon span::after { color: #ffb020; }
.hero[data-state="bad"] .hero-icon span::after { color: #ff5c5c; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-icon span::after { animation: none !important; } }

/* ---------- Gruppen ---------- */
main { margin-top: -44px; display: grid; gap: 16px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; }
.group-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.group-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.svc { padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.group-head + .svc { border-top: 0; }
.svc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-name { font-weight: 500; }
.svc-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.pill.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.pill.none { background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--muted); }

.bars { display: flex; gap: 3px; height: 30px; margin-top: 10px; align-items: stretch; }
.bars i {
  flex: 1 1 0; min-width: 3px; border-radius: 3px; background: var(--ok); opacity: 0.9; transition: transform 0.12s, opacity 0.12s;
}
.bars i.bad { background: var(--bad); }
.bars i.none { background: var(--none); }
.bars i:hover { transform: scaleY(1.12); opacity: 1; }
.scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }

.skeleton h2, .skeleton p, .skeleton .bars {
  border-radius: 8px; background: linear-gradient(90deg, var(--line), var(--bg), var(--line)); background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton h2 { width: 140px; } .skeleton p { width: 260px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }

/* ---------- Fuß ---------- */
.foot { color: var(--muted); font-size: 14px; padding: 28px 0 48px; text-align: center; }
.foot p { margin: 4px 0; }
.foot .fine { margin-top: 14px; font-size: 13px; }

@media (max-width: 560px) {
  .brand img { height: 32px; }
  .links a { padding: 6px 10px; font-size: 14px; }
  .hero { gap: 14px; }
  .hero-icon { width: 52px; height: 52px; }
  .svc-meta .uptime { display: none; }
  .group-head, .svc { padding-left: 16px; padding-right: 16px; }
}
