:root {
  --bg:#0b0f14;
  --panel:#10151c;
  --muted:#2a3340;
  --acc:#3b82f6;
  --acc-2:#22c55e;
  --text:#e5ecf4;
  --text-dim:#a4b0bf;
  --text-a:#AD4A44;
  --danger:#ef4444;
  --warn:#f59e0b;

  /* Server-Farben */
  --web:#6b7280;
  --bungee:#ef4444;
  --city:#3b82f6;
  --survival:#22c55e;
  --lobby:#06b6d4;

  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto;
  background: linear-gradient(180deg,var(--bg),#0a0f16 25%,var(--bg) 100%);
  color: var(--text);
  display:flex;
  flex-direction:column;
}

/* ---------- Header / Nav ---------- */
header {
  background: rgba(16,21,28,.9);
  backdrop-filter: blur(8px);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content: space-between;
  position:sticky;
  top:0;
  z-index:10;
}

header h1 {
  margin:0;
  font-size:26px;
  font-weight:800;
  background:linear-gradient(135deg,var(--acc),#8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav { display:flex; gap:16px; }

nav a {
  color: var(--text);
  text-decoration:none;
  font-weight:600;
  padding:10px 14px;
  border-radius:10px;
  transition:.2s;
}

nav a:hover {
  background: color-mix(in srgb,var(--acc),transparent 85%);
}

/* ---------- Layout ---------- */
main {
  flex:1;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:60px 40px;
  gap:40px;
}

/* ---------- Hero ---------- */
.hero {
  flex:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
  max-width:980px;
}

.hero h2 {
  font-size:56px;
  margin:0 0 16px;
  font-weight:800;
}

.hero p {
  font-size:22px;
  color:var(--text-dim);
  margin:0 0 40px;
}

.buttons {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:32px;
  margin-bottom:36px;
}

.btn {
  display:inline-block;
  min-width:420px;
  padding:28px 32px;
  background: var(--panel);
  color: var(--text);
  border-radius: 20px;
  text-decoration:none;
  font-size:22px;
  font-weight:700;
  border:1px solid color-mix(in srgb,var(--muted),transparent 25%);
  box-shadow: var(--shadow);
  transition: transform .2s, background .3s, box-shadow .2s;
}

.btn:hover {
  background: color-mix(in srgb,var(--acc),transparent 82%);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

/* ---------- Server-Status ---------- */
#server-status {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

#server-status h3 {
  font-size: 28px;
  margin: 12px 0 22px;
  text-align: center;
}

/* 2 Karten pro Reihe */
#status-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: stretch;
}

.status-card {
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 320px;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid color-mix(in srgb,var(--muted),transparent 25%);
  text-align: center;
  transition: transform .2s ease, background .3s ease;
}

.status-card:hover {
  transform: translateY(-4px);
  background: color-mix(in srgb,var(--acc),transparent 90%);
}

.status-error {
  grid-column: 1 / -1;
  background: var(--panel);
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--warn);
  text-align: center;
}

/* ---------- Footer ---------- */
footer {
  background:#0a0f16;
  color:var(--text-dim);
  padding:16px;
  font-size:14px;
  text-align:center;
  margin-top:auto;
}

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .hero h2 { font-size:40px; }
  .btn { min-width:280px; font-size:18px; padding:20px 24px; }
}