:root {
  --bg: #0d0f14;
  --bg-elev: #161a22;
  --bg-card: #1d222d;
  --border: #2a3140;
  --border-soft: rgba(255,255,255,0.06);
  --text: #e6edf3;
  --text-dim: #95a1b3;
  --accent: #f5c25e;      /* warm gold from logo */
  --accent-2: #5fbf72;    /* MC grass green */
  --accent-3: #6cc4ff;    /* sky blue */
  --danger: #e25c5c;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.55);
  --pixel-font: "Press Start 2P", system-ui, monospace;
  --grass: #5fbf72;
  --dirt: #815936;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }

img { image-rendering: pixelated; }

/* ─── Topbar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(13,15,20,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.brand span {
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--accent);
}
.topbar nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.topbar nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}
.topbar nav a:hover { color: var(--text); }
.topbar nav a.cta {
  background: var(--accent);
  color: #1c160a;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.15s;
}
.topbar nav a.cta:hover { background: #ffd277; color: #1c160a; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 120px 24px 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* sky gradient + sun + drifting clouds */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 80% 18%, #f5c25e 0%, rgba(245,194,94,0.25) 8%, transparent 32%),
    linear-gradient(180deg, #1d3a5e 0%, #2c5b8c 35%, #4d8ec5 70%, #6cc4ff 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(13,15,20,0.95) 0%, rgba(13,15,20,0.2) 60%, transparent 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.clouds {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.9;
}
.cloud {
  position: absolute;
  background: white;
  filter: blur(0.5px);
  box-shadow:
    20px 0 0 0 white,
    40px 0 0 0 white,
    20px -10px 0 0 white,
    -10px -10px 0 0 white,
    10px 10px 0 0 white,
    -20px 0 0 0 white;
  image-rendering: pixelated;
  border-radius: 0;
}
.cloud.c1 { top: 14%; left: -10%; width: 60px; height: 20px; animation: drift 70s linear infinite; opacity: 0.85; }
.cloud.c2 { top: 22%; left: -15%; width: 80px; height: 24px; animation: drift 95s linear infinite 10s; opacity: 0.6; }
.cloud.c3 { top: 8%;  left: -12%; width: 40px; height: 16px; animation: drift 55s linear infinite 25s; opacity: 0.7; }
.cloud.c4 { top: 30%; left: -10%; width: 70px; height: 22px; animation: drift 85s linear infinite 5s;  opacity: 0.55; }
.cloud.c5 { top: 5%;  left: -8%;  width: 50px; height: 18px; animation: drift 110s linear infinite 40s; opacity: 0.4; }
@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 200px)); }
}

/* ground silhouette: pixel-grass strip at bottom of hero */
.hero-ground {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 60px;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, #3a6a47 0 16px, #45794f 16px 32px),
    var(--bg);
  border-top: 6px solid var(--grass);
  box-shadow: 0 -6px 0 var(--dirt) inset;
}

.hero-logo-wrap {
  display: inline-block;
  position: relative;
  animation: float 6s ease-in-out infinite;
  margin-bottom: 28px;
}
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 50%;
  width: 60%;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,0.6), transparent 70%);
  filter: blur(4px);
  animation: shadow 6s ease-in-out infinite;
}
.hero-logo {
  width: 240px;
  height: 240px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  background: rgba(13,15,20,0.4);
  padding: 6px;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@keyframes shadow {
  0%,100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%     { opacity: 0.4; transform: translateX(-50%) scale(0.85); }
}

.hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hero h1 .accent {
  background: linear-gradient(90deg, #f5c25e, #ffd980);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 660px;
  margin: 0 auto 44px;
  font-size: 19px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Hero CTA cluster */
.hero-cta {
  display: inline-flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  background: rgba(13,15,20,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: var(--shadow-lg);
  min-width: 360px;
}

.join-card__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
}
.join-card__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.join-card__row code {
  flex: 1;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--pixel-font);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-align: left;
  user-select: all;
}
#copy-btn {
  background: var(--accent);
  color: #1c160a;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.1s, background 0.15s;
}
#copy-btn:hover { background: #ffd277; }
#copy-btn:active { transform: scale(0.96); }
#copy-btn.copied { background: var(--accent-2); color: white; }

/* big live status: number + label */
.live-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.live-status__left {
  display: flex; align-items: center; gap: 12px; text-align: left;
}
.status-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #6b6f78;
  box-shadow: 0 0 10px rgba(107,111,120,0.4);
  flex: 0 0 auto;
}
.status-dot[data-state="online"]  { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.status-dot[data-state="offline"] { background: var(--danger);  box-shadow: 0 0 10px var(--danger); }
.status-dot[data-state="loading"] { animation: pulse 1.4s infinite ease-in-out; }
@keyframes pulse {
  0%,100% { opacity: 0.4; transform: scale(0.9); }
  50%     { opacity: 1;   transform: scale(1.1); }
}
.live-status__label {
  display: flex; flex-direction: column;
}
.live-status__label .top {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.live-status__label .bot {
  font-size: 14px;
  color: var(--text);
}
.live-status__count {
  font-family: var(--pixel-font);
  font-size: 22px;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}
.live-status__count.is-offline { color: var(--danger); }

/* Hero stats below CTA */
.hero-trust {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-trust > div {
  background: rgba(13,15,20,0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.hero-trust strong {
  color: var(--accent);
  font-family: var(--pixel-font);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

/* ─── Generic main ─── */
main { display: block; }
section.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}
section h2 .tag {
  display: inline-block;
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
section h2 .head { display: block; }

/* grass divider between sections */
.grass-divider {
  height: 28px;
  background:
    linear-gradient(180deg, transparent 0, transparent 60%, var(--bg) 60%, var(--bg) 100%),
    repeating-linear-gradient(90deg, #3a6a47 0 16px, #45794f 16px 32px);
  border-top: 4px solid var(--grass);
  position: relative;
}

/* ─── Features ─── */
.features { padding: 80px 0 40px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.18s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}
.feature:hover::after { opacity: 1; }
.feature__icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: inline-block;
  width: 52px; height: 52px;
  background: rgba(245,194,94,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ─── Plugin showcase (marquee) ─── */
.plugins {
  padding: 60px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.015);
  overflow: hidden;
}
.plugins h3 {
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin: 0 0 28px;
}
.marquee {
  display: flex;
  gap: 22px;
  animation: marq 40s linear infinite;
  width: max-content;
}
.marquee:hover { animation-play-state: paused; }
.marquee span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 22px;
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Map section ─── */
.map-section { padding: 80px 0 40px; }
.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  max-height: 620px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  image-rendering: auto;
}
.map-fullscreen {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(13,15,20,0.85);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.15s;
  backdrop-filter: blur(8px);
}
.map-fullscreen:hover { background: rgba(13,15,20,1); }

/* ─── About ─── */
.about { padding: 80px 0 60px; }
.about__inner {
  background:
    linear-gradient(135deg, rgba(245,194,94,0.05), rgba(95,191,114,0.03)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
}
.about p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 740px;
}
.server-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
}
.server-meta > div {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.server-meta dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.server-meta dd {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

/* ─── Join ─── */
.join { padding: 80px 0; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 18px 70px;
  position: relative;
  counter-increment: step;
  transition: border-color 0.15s, transform 0.15s;
}
.steps li:hover { border-color: var(--accent); transform: translateX(4px); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), #ffd277);
  color: #1c160a;
  font-family: var(--pixel-font);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(245,194,94,0.3);
}
.steps code {
  background: rgba(0,0,0,0.4);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--pixel-font);
  font-size: 13px;
}
.join-hint {
  background: rgba(245,194,94,0.08);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ─── Discord CTA block ─── */
.community {
  padding: 60px 0 100px;
}
.community__inner {
  background:
    radial-gradient(ellipse at top right, rgba(108,196,255,0.15), transparent 60%),
    linear-gradient(135deg, #4154af, #5865f2);
  border-radius: 22px;
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 30px 80px rgba(88,101,242,0.25);
  position: relative;
  overflow: hidden;
}
.community__inner::before {
  content: "🎮";
  position: absolute;
  font-size: 280px;
  right: -40px; top: -40px;
  opacity: 0.07;
  transform: rotate(15deg);
}
.community__text h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: white;
}
.community__text p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  max-width: 460px;
}
.community__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: #4154af;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.community__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: rgba(0,0,0,0.3);
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 14px;
  flex-wrap: wrap;
}
.footer img { border-radius: 6px; }
.footer__inner a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: auto;
}
.footer__inner a:hover { color: var(--accent); }

/* ─── Mobile tweaks ─── */
@media (max-width: 900px) {
  .topbar { padding: 12px 16px; gap: 12px; }
  .brand span { font-size: 12px; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: 13px; }
  .topbar nav a.cta { padding: 8px 14px; font-size: 13px; }
  .about__inner { padding: 32px; }
}

@media (max-width: 720px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { display: none; }              /* hide GrandeCraft text, keep logo */
  .topbar nav { gap: 10px; flex-wrap: nowrap; }
  .topbar nav a:not(.cta) { display: none; }  /* only CTA visible on mobile */
  .topbar nav a.cta { padding: 8px 14px; font-size: 13px; }

  .hero {
    padding: 60px 18px 70px;
    min-height: auto;
  }
  .hero-logo {
    width: 160px;
    height: 160px;
  }
  .hero-logo-wrap { margin-bottom: 18px; }
  .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.1;
    margin-top: 8px;
  }
  .hero .lead {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 0 4px;
  }

  /* CTA card: full width, allow row to wrap so Kopieren stays visible */
  .hero-cta {
    min-width: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 14px;
  }
  .join-card__row {
    flex-wrap: wrap;
  }
  .join-card__row code {
    flex: 1 1 100%;
    font-size: 13px;
    padding: 12px 14px;
    min-width: 0;
    overflow-x: auto;
  }
  #copy-btn {
    flex: 1 1 100%;
    padding: 12px 0;
    height: auto;
  }
  .live-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
  .live-status__count {
    font-size: 24px;
    align-self: flex-end;
  }

  .hero-trust {
    gap: 10px;
    margin-top: 22px;
  }
  .hero-trust > div {
    flex: 1 1 100%;
    padding: 10px 14px;
    font-size: 12px;
  }

  /* Sections */
  section.wrap { padding-left: 18px; padding-right: 18px; }
  section h2 .head { font-size: 26px; }
  .features { padding: 50px 0 30px; }
  .feature { padding: 22px; }
  .feature h3 { font-size: 17px; }

  .plugins { padding: 36px 0; }
  .marquee { gap: 14px; }
  .marquee span { padding: 9px 16px; font-size: 10px; }

  .map-section { padding: 50px 0 30px; }
  .map-frame { aspect-ratio: 4/5; }
  .map-fullscreen { font-size: 11px; padding: 6px 10px; top: 10px; right: 10px; }

  .about { padding: 50px 0 40px; }
  .about__inner { padding: 24px; }
  .server-meta { grid-template-columns: 1fr 1fr; }

  .join { padding: 50px 0; }
  .steps li { padding: 16px 16px 16px 60px; font-size: 14px; }
  .steps li::before { width: 32px; height: 32px; font-size: 11px; left: 12px; }

  .community { padding: 40px 0 70px; }
  .community__inner {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 22px;
  }
  .community__text h2 { font-size: 24px; }
  .community__cta { width: 100%; justify-content: center; }

  .footer { padding: 24px 18px; }
  .footer__inner { font-size: 13px; flex-wrap: wrap; }
  .footer__inner a { margin-left: 0; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 26px; }
  .hero-logo { width: 140px; height: 140px; }
  .feature__icon { width: 44px; height: 44px; font-size: 24px; }
  section h2 .head { font-size: 22px; }
}
