:root {
  --bg: #0c0f17;
  --bg-2: #121726;
  --card: #161c2d;
  --card-2: #1c2338;
  --line: #262f4a;
  --text: #e8ebf3;
  --muted: #9aa3bb;
  --gold: #f5b83d;
  --gold-2: #ffd77a;
  --green: #4ade80;
  --red: #f87171;
  --grass: #5fa83a;
  --dirt: #7a5232;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 15, 23, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand .cube { width: 26px; height: 26px; }
.brand span b { color: var(--gold); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav ul a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav .menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(245, 184, 61, .22), transparent 60%),
    radial-gradient(700px 400px at 95% 10%, rgba(95, 168, 58, .18), transparent 60%),
    linear-gradient(180deg, #111a33 0%, var(--bg) 85%);
}
.hero::after { /* Pixel-Raster */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; margin: 14px 0 18px; letter-spacing: -1px; }
.hero h1 b { color: var(--gold); text-shadow: 0 0 40px rgba(245, 184, 61, .35); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.badge { border: 1px solid var(--line); background: rgba(22, 28, 45, .7); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; border-radius: 10px; padding: 12px 18px; transition: transform .12s ease, filter .12s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; filter: brightness(1.08); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #241800; box-shadow: 0 6px 0 #a8731a, var(--shadow); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 3px 0 #a8731a; }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-discord { background: #5865f2; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Status-Karte */
.status-card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding: 5px 12px; border-radius: 999px; background: rgba(154, 163, 187, .12); color: var(--muted); }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-pill.online { background: rgba(74, 222, 128, .12); color: var(--green); }
.status-pill.online .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
.status-pill.offline { background: rgba(248, 113, 113, .12); color: var(--red); }
.status-pill.offline .dot { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.players { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.players small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 14px 0 22px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--grass), var(--green)); transition: width .6s ease; }
.ip-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ip { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.ip code { flex: 1; font-family: var(--mono); font-size: 1.05rem; padding: 14px 16px; color: var(--gold-2); overflow-wrap: anywhere; }
.ip button { border: 0; border-left: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-weight: 700; padding: 0 18px; cursor: pointer; min-width: 120px; }
.ip button:hover { background: var(--line); }
.ip button.done { color: var(--green); }
.status-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* ---------- Abschnitte ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 8px 0 10px; letter-spacing: -.5px; }
.head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 18px; }
.grid.f { grid-template-columns: repeat(3, 1fr); }
.grid.r { grid-template-columns: repeat(4, 1fr); }
.grid.v { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: #34406a; }
.card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card code { font-family: var(--mono); font-size: .88em; color: var(--gold-2); background: var(--bg); padding: 1px 6px; border-radius: 6px; }

/* Pixel-Block als Icon */
.block { width: 44px; height: 44px; border-radius: 8px; position: relative; image-rendering: pixelated; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(255, 255, 255, .06); }
.block::after { content: ""; position: absolute; inset: 0; border-radius: 8px; opacity: .35;
  background-image: linear-gradient(45deg, rgba(0,0,0,.25) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.25) 75%), linear-gradient(45deg, rgba(0,0,0,.25) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.25) 75%);
  background-size: 11px 11px; background-position: 0 0, 5.5px 5.5px; }
.b-grass { background: linear-gradient(180deg, var(--grass) 0 34%, var(--dirt) 34%); }
.b-gold { background: #e9b730; }
.b-emerald { background: #2fbf71; }
.b-diamond { background: #4fd1d9; }
.b-stone { background: #8a8f98; }
.b-amethyst { background: #9a6be0; }
.b-redstone { background: #d23c3c; }
.b-lapis { background: #3557c7; }
.b-copper { background: #c86d47; }
.b-quartz { background: #e7e1d6; }
.b-wood { background: #a77a46; }
.b-ender { background: #1f6f62; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #241800; background: var(--gold); }
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Ränge */
.rank { display: flex; flex-direction: column; }
.rank .tag { align-self: flex-start; font-weight: 800; padding: 4px 12px; border-radius: 8px; font-size: .95rem; }
.rank ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.rank li { padding: 6px 0 6px 24px; position: relative; border-top: 1px dashed var(--line); }
.rank li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.rank .req { margin-top: 10px; color: var(--text); font-weight: 600; }
.t-player { background: #2a3150; color: #c9d1ea; }
.t-vip { background: rgba(74, 222, 128, .15); color: var(--green); }
.t-vipplus { background: rgba(245, 184, 61, .16); color: var(--gold); }
.t-buerger { background: #2a3150; color: #c9d1ea; }
.t-ritter { background: rgba(74, 222, 128, .15); color: #4ade80; }
.t-freiherr { background: rgba(56, 214, 230, .15); color: #38d6e6; }
.t-graf { background: rgba(232, 121, 249, .15); color: #e879f9; }
.t-fuerst { background: rgba(168, 85, 247, .18); color: #c084fc; }
.t-herzog { background: rgba(250, 204, 21, .15); color: #facc15; }
.t-koenig { background: rgba(245, 184, 61, .2); color: var(--gold); }
.rank.feat { border-color: rgba(245, 184, 61, .45); box-shadow: 0 0 0 1px rgba(245, 184, 61, .15), var(--shadow); }
.note { text-align: center; margin: 26px auto 0; max-width: 640px; color: var(--muted); font-size: .95rem; }
.note b { color: var(--text); }

/* Voten */
.vote { display: flex; flex-direction: column; gap: 14px; }
.vote .num { font-weight: 800; color: var(--gold); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.vote h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.vote .btn { justify-content: center; margin-top: auto; }
.rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 30px; }
.reward { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 600; }
.reward .block { width: 28px; height: 28px; border-radius: 6px; }

/* Regeln & FAQ */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; counter-reset: r; }
.rules li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 58px; position: relative; color: var(--muted); }
.rules li b { color: var(--text); display: block; }
.rules li::before { counter-increment: r; content: "§" counter(r); position: absolute; left: 16px; top: 16px; font-weight: 800; color: var(--gold); }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* CTA + Footer */
.cta { text-align: center; padding: 70px 0; background: radial-gradient(600px 240px at 50% 0%, rgba(245, 184, 61, .18), transparent 70%); }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 10px; }
.cta p { color: var(--muted); margin: 0 0 26px; }
.cta .actions { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }
footer .disclaimer { flex-basis: 100%; font-size: .8rem; opacity: .8; }

/* Unterseiten (Impressum, Datenschutz) */
.legal { max-width: 780px; margin: 0 auto; padding: 60px 16px 80px; }
.legal h1 { font-size: 2.2rem; margin: 0 0 24px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; color: var(--gold-2); }
.legal p, .legal li { color: #c7cde0; }
.legal .todo { background: rgba(245, 184, 61, .12); border: 1px dashed var(--gold); color: var(--gold-2); padding: 2px 6px; border-radius: 6px; }

.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid.f, .grid.r { grid-template-columns: repeat(2, 1fr); }
  .grid.v { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav ul.open { display: flex; }
  .grid.f, .grid.r, .grid.v, .rules { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  section { padding: 60px 0; }
  .ip button { min-width: 96px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
