:root {
  --bg: #050816;
  --bg-grad-1: #0b1120;
  --bg-grad-2: #020617;
  --card-bg: rgba(15,23,42,0.9);
  --card-border: rgba(148,163,184,0.3);
  --ok: #22c55e;
  --warn: #f97316;
  --down: #ef4444;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34,197,94,0.25), transparent 55%),
    linear-gradient(135deg, var(--bg-grad-1), var(--bg-grad-2));
  color: var(--text-main);
  min-height: 100vh;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site-header {
  border-bottom: 1px solid rgba(148,163,184,0.3);
  backdrop-filter: blur(18px);
  background: linear-gradient(to right,
              rgba(15,23,42,0.9),
              rgba(15,23,42,0.75),
              rgba(15,23,42,0.9));
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand__logo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #60a5fa, #1d4ed8);
  box-shadow: 0 0 24px rgba(96,165,250,0.8);
}

.brand__name {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f9fafb;
  text-decoration: none;
  font-size: 1.05rem;
}

.header-meta {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.hero {
  margin-bottom: 2rem;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-title span.emoji {
  font-size: 1.5rem;
}

.hero-sub {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(34,197,94,0.8);
  color: #bbf7d0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 12px rgba(34,197,94,0.9);
}

.layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 20px 45px rgba(15,23,42,0.7);
}

.card + .card {
  margin-top: 1rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.card-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.card-header small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.75rem;
}
.pill--ok {
  border-color: rgba(34,197,94,0.8);
  background: rgba(22,163,74,0.15);
  color: #bbf7d0;
}
.pill--warn {
  border-color: rgba(249,115,22,0.9);
  background: rgba(248,153,29,0.16);
  color: #fed7aa;
}
.pill--down {
  border-color: rgba(239,68,68,0.9);
  background: rgba(248,113,113,0.16);
  color: #fecaca;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}
.pill-dot--ok { background: var(--ok); box-shadow: 0 0 8px rgba(34,197,94,0.9); }
.pill-dot--warn { background: var(--warn); box-shadow: 0 0 8px rgba(249,115,22,0.9); }
.pill-dot--down { background: var(--down); box-shadow: 0 0 8px rgba(239,68,68,0.9); }

.grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0.7rem;
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.service-card {
  border-radius: 0.8rem;
  border: 1px solid rgba(148,163,184,0.4);
  padding: 0.7rem 0.8rem;
  background: radial-gradient(circle at 0% 0%, rgba(59,130,246,0.2), transparent 60%);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.service-name {
  font-weight: 500;
}

.service-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.uptime-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.uptime-row strong {
  color: #e5e7eb;
}

/* "Graph" – einfache Balkenübersicht */
.chart {
  margin-top: 0.8rem;
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 120px;
}

.bar {
  flex: 1;
  height: 100%;
  background: rgba(100,116,139,0.3); /* neutraler Hintergrund */
  border-radius: 4px;                /* weniger rund */
  position: relative;
  overflow: hidden;
}

.bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--value, 1) * 100%);
  background: var(--ok);
  transition: height 0.3s ease;
  border-radius: 0; /* flach statt rund */
}

.bar--warn::before {
  background: var(--warn);
}

.bar--down::before {
  background: var(--down);
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.incident-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.incident {
  border-radius: 0.7rem;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 0.6rem 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.6rem;
}

.incident-severity {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fecaca;
}

.incident-title {
  font-weight: 500;
}

.incident-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

footer.site-footer {
  border-top: 1px solid rgba(148,163,184,0.3);
  padding: 0.75rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(15,23,42,0.96);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 0.75rem;
}
.footer-links a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}