*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --bg: #161616;
  --surface: #1f1f1e;
  --soft: #262624;
  --soft-hover: #2e2e2c;
  --border: #333331;
  --rule: #2a2a28;
  --text: #f2f2ef;
  --text-2: #cfcfca;
  --text-3: #b0b0ab;
  --muted: #8f8f8a;
  --subtle: #82827d;
  --faint: #73736e;
  --accent: #7fa37f;
  --warn: #d4a55a;
  --error: #e0706b;
}

body {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

/* Kopf */
.site-header { width: 100%; max-width: 700px; margin-bottom: 1.5rem; }

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark-cursor {
  display: inline-block;
  width: 0.62em;
  height: 0.13em;
  margin: 0 0 0.2em 0.15em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wordmark-cursor { animation: none; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem 3.5rem;
  max-width: 700px;
  width: 100%;
}

.name { font-size: 1.4rem; font-weight: bold; letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1.5rem; }
.nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-decoration: none;
}
.nav a:hover { color: var(--text-3); }
.nav a.active { color: var(--text); font-weight: bold; box-shadow: inset 0 -2px 0 var(--accent); }

hr { border: none; border-top: 1px solid var(--rule); margin: 1rem 0 2rem; }

.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 0.4rem;
}

/* Impressum */
.block { margin-bottom: 0.6rem; }
.block:last-child { margin-bottom: 0; }
.value { font-size: 0.9rem; line-height: 1.5; color: var(--text-2); }
.value a { color: var(--text-2); text-decoration: none; }
.value a:hover { text-decoration: underline; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.social-links a { display: inline-flex; align-items: center; gap: 0.4rem; }
.privacy { font-size: 0.8rem; color: var(--subtle); line-height: 1.7; margin-top: 1rem; }
.privacy a { color: var(--text-3); }

.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  font-size: 0.85rem;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.2rem 0.6rem;
  color: var(--text-3);
  text-decoration: none;
}
a.chip:hover { background: var(--soft-hover); border-color: var(--accent); }

/* Aktueller Status */
.status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--state);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  margin-top: 0.2rem;
}
.status.ok   { --state: var(--accent); }
.status.warn { --state: var(--warn); }
.status.down { --state: var(--error); }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--state); flex: none; }
.status-title { font-weight: bold; }
.status-text { font-size: 0.85rem; color: var(--text-3); margin-top: 0.2rem; }
.updated { font-size: 0.75rem; color: var(--faint); margin-top: 0.8rem; }

/* Einzelne Dienste */
.components { margin-top: 1.2rem; }
.component-group {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin: 1.4rem 0 0.4rem;
}
.component-group:first-child { margin-top: 0; }
.components ul {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.component {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
}
.component + .component { border-top: 1px solid var(--rule); }
.component.ok   { --state: var(--accent); }
.component.warn { --state: var(--warn); }
.component.down { --state: var(--error); }
.component-name { color: var(--text); }
.component-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--state);
}
.component .dot { width: 0.55rem; height: 0.55rem; }

/* Hosting-Partner */
.partner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.partner:hover { background: var(--soft-hover); border-color: var(--accent); }
.partner-name { display: block; font-weight: bold; }
.partner-text { display: block; font-size: 0.85rem; color: var(--text-3); margin-top: 0.2rem; }
.partner-link { font-size: 0.85rem; color: var(--accent); }

/* Vorfälle */
.section { margin-top: 2.5rem; }
.section > .label { margin-bottom: 1rem; }
.incident { margin-bottom: 2rem; }
.incident:last-child { margin-bottom: 0; }
.incident-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 0.4rem;
}
.incident-title { font-size: 1.05rem; font-weight: bold; margin-bottom: 0.6rem; }
.incident .chips { margin-bottom: 0.8rem; }
.incident .chip { font-size: 0.8rem; padding: 0.15rem 0.6rem; }
.chip.resolved { color: var(--accent); border-color: var(--accent); }
.chip.planned { color: var(--warn); border-color: var(--warn); }
.incident-text { font-size: 0.9rem; line-height: 1.6; color: var(--text-2); }
.incident-text p { margin-bottom: 0.8rem; }
.incident-text p:last-child { margin-bottom: 0; }
.incident-text a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.incident-text a:hover { color: var(--accent); }

footer {
  max-width: 700px;
  width: 100%;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.6;
}
footer a { color: var(--text-3); }

@media (max-width: 600px) {
  body { padding: 1rem; }
  .card { padding: 1.8rem 1.4rem; }
}
