:root {
  --bg: #12150e;
  --bg-soft: #1a1f14;
  --surface: #1c2116;
  --ink: #050603;
  --border: #3a4530;
  --border-strong: #4d5a3d;
  --text: #e9e8dd;
  --text-muted: #9a9c8a;
  --accent: #86c65a;
  --accent-dim: #5c8a3f;
  --rust: #c07a3e;
  --gold: #d9ab4f;
  --gold-text: #221a06;
  --online: #7ed957;
  --offline: #e0654f;
  --note-bg: #262110;
  --note-border: #574a1d;
  --note-text: #dcc27a;
  --radius: 4px;
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

/* Feiner Filmkorn-Schleier ueber der ganzen Seite - bricht die glatte Flaeche auf */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: 'Kalam', 'Segoe UI', cursive, sans-serif; }

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Kalam', cursive;
  font-size: 0.95rem;
  color: var(--rust);
  transform: rotate(-2deg);
  margin: 0 0 4px;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1080px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  white-space: nowrap;
}
.brand img {
  width: 40px; height: 40px;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  transform: rotate(-4deg);
}

nav.tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 12px;
  cursor: pointer;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.burger {
  display: none;
  background: none;
  border: 2px solid var(--border-strong);
  width: 42px;
  height: 38px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
}

@media (max-width: 820px) {
  nav.tabs { display: none; width: 100%; order: 3; flex-direction: column; align-items: stretch; }
  nav.tabs.open { display: flex; }
  .tab-btn { text-align: left; border-bottom: none; border-left: 3px solid transparent; }
  .tab-btn.active { border-left-color: var(--accent); border-bottom-color: transparent; }
  .header-inner { flex-wrap: wrap; }
  .burger { display: block; }
}

/* ---------- Page panels ---------- */
main { min-height: 60vh; }
.panel { display: none; padding: 40px 0 70px; }
.panel.active { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 50px 0 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: center;
}
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.hero img.logo-big {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border: 4px solid var(--border-strong);
  transform: rotate(-3deg);
  box-shadow: var(--shadow-hard);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.05;
}
.hero h1 span { color: var(--accent); }
.hero p.tagline {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 24px;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
@media (max-width: 700px) { .cta-row { justify-content: center; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { text-decoration: none; }
.btn:active, .btn.pressed {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}
.btn-primary { background: var(--accent); color: #0c1607; border-color: #0c1607; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-gold { background: var(--gold); color: var(--gold-text); border-color: #2a1f08; }

/* ---------- Status bar (eine Leiste statt drei gleicher Karten) ---------- */
.status-bar {
  display: flex;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  margin: 34px 0 6px;
  flex-wrap: wrap;
}
.status-cell {
  flex: 1 1 200px;
  padding: 16px 20px;
  border-right: 2px solid var(--border-strong);
}
.status-cell:last-child { border-right: none; }
.status-cell .row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.status-cell h3 { margin: 0; font-size: 1rem; font-family: inherit; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--offline); flex-shrink: 0; }
.dot.online { background: var(--online); }
.status-cell .players { font-size: 1.7rem; font-weight: 800; color: var(--text); font-family: 'Kalam', cursive; }
.status-cell .players span { font-size: 1rem; font-weight: 600; color: var(--text-muted); font-family: inherit; }
.status-cell .meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* standalone status block (in den Server-Untertabs) */
.status-standalone { border: 2px solid var(--border-strong); background: var(--surface); padding: 16px 20px; margin-bottom: 16px; }

.ip-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 2px dashed var(--border-strong);
  padding: 9px 12px;
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  justify-content: space-between;
}
.ip-copy:hover { border-color: var(--accent); }
.ip-copy .copy-icon { color: var(--accent); font-family: inherit; font-size: 0.78rem; text-transform: uppercase; }

/* ---------- Section header ---------- */
.section-head { margin-bottom: 26px; max-width: 620px; }
.section-head h2 { font-size: 2.1rem; color: var(--text); margin: 0 0 8px; line-height: 1.1; }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Sub-tabs ---------- */
.subtabs {
  display: flex;
  gap: 22px;
  margin: 10px 0 28px;
  border-bottom: 2px solid var(--border);
}
.subtab-btn {
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 2px 10px;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.subtab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.subpanel { display: none; }
.subpanel.active { display: block; }

/* ---------- Server overview ---------- */
.server-overview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 760px) { .server-overview { grid-template-columns: 1fr; } }

.info-card {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  padding: 24px;
}
.info-card h3 { color: var(--text); margin-top: 0; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.feature-list li { padding-left: 18px; position: relative; color: var(--text-muted); }
.feature-list li::before { content: "–"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Rules: editorial Liste statt Karten-Raster ---------- */
.rules-note {
  background: var(--note-bg);
  border: 2px solid var(--note-border);
  color: var(--note-text);
  padding: 12px 18px;
  font-size: 0.9rem;
  margin-bottom: 30px;
}
.rules-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.rule-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.rule-row .num { font-family: 'Kalam', cursive; font-size: 1.9rem; color: var(--accent-dim); line-height: 1; }
.rule-row h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--text); font-family: inherit; }
.rule-row p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Community / Support ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  padding: 22px;
}
.card h3 { color: var(--text); margin-top: 0; }

.perk-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.perk-list li { padding-left: 18px; position: relative; font-size: 0.95rem; color: var(--text-muted); }
.perk-list li::before { content: "+"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }

/* ---------- Footer ---------- */
footer {
  border-top: 3px solid var(--border-strong);
  padding: 26px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer a { color: var(--text); font-weight: 700; }
.footer-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #0c1607;
  padding: 9px 18px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
