/* ========== Farben & Grundwerte ========== */
:root {
  --bg: oklch(0.20 0.018 255);
  --surface: oklch(0.24 0.018 255);
  --surface-deep: oklch(0.21 0.018 255);
  --surface-hover: oklch(0.23 0.03 262);
  --line: oklch(0.31 0.018 255);
  --line-soft: oklch(0.29 0.018 255);
  --line-strong: oklch(0.41 0.018 255);
  --text: oklch(0.95 0.012 250);
  --text-strong: oklch(0.96 0.012 250);
  --text-nav: oklch(0.9 0.012 250);
  --text-muted: oklch(0.8 0.012 250);
  --text-dim: oklch(0.72 0.012 250);
  --accent: #7FA2F0;
  --accent-light: #A9C1F5;
  --accent-ring: #3D6BD6;
  --brand: #023597;
  --brand-hover: #0A45BF;
  --online: oklch(0.72 0.15 150);

  --font-display: 'Chewy', cursive;
  --font-title: 'Luckiest Guy', cursive;
  --font-body: 'Inter', system-ui, sans-serif;

  --pad-x: clamp(20px, 5vw, 56px);
  --max: 1120px;
}

html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}
a { color: var(--accent); }
a:hover { color: var(--accent-light); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 3px; }
img { max-width: 100%; }

/* Kein Markieren/Kopieren */
* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,107,214,.55); }
  50% { box-shadow: 0 0 0 7px rgba(61,107,214,0); }
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }

/* ========== Navigation ========== */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(36,40,48,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.nav__logo {
  font-family: var(--font-display); font-size: 30px; line-height: 1;
  color: var(--accent); text-decoration: none; margin-right: auto;
}
.nav__links {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em;
}
.nav__links a { color: var(--text-nav); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--accent); }

/* ========== Allgemeine Bausteine ========== */
section[id] { scroll-margin-top: 64px; }
.section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.section--last { padding-bottom: 104px; }
.kicker {
  display: block; font-family: var(--font-title); font-size: 20px;
  letter-spacing: 0.04em; color: var(--accent); margin-bottom: 10px;
}
.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 5vw, 60px); line-height: 1.05; margin: 0 0 44px;
}
.muted { color: var(--text-muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn img { display: block; }
.btn--primary { background: var(--brand); color: #fff; border: 0; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--lift:hover { transform: translateY(-2px); }
.btn--lift:active { transform: translateY(0); }
.btn--ghost {
  border: 1.5px solid var(--line-strong); background: transparent;
  color: oklch(0.92 0.012 250);
}
.btn--ghost:hover { border-color: var(--accent-ring); color: var(--accent); }

.card {
  padding: 28px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent-ring); transform: translateY(-3px); }
.card__title {
  font-family: var(--font-title); font-weight: 400; letter-spacing: 0.02em;
  font-size: 28px; margin: 0 0 10px; color: var(--accent);
}
.card p { margin: 0; color: var(--text-muted); }

.grid { display: grid; gap: 20px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); animation: pulse 1.8s infinite; flex: none;
}
[hidden] { display: none !important; }

/* ========== Hero ========== */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px; align-items: center; padding: 48px 0 88px;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 6px 14px 6px 12px; border: 1.5px solid var(--accent-ring); border-radius: 999px;
  font-weight: 500; font-size: 14px; color: var(--accent); text-decoration: none;
  font-variant-numeric: tabular-nums; transition: background .2s;
}
.live-badge:hover { background: rgba(61,107,214,.12); }
.live-badge span { white-space: nowrap; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(76px, 11vw, 144px); line-height: 0.9; letter-spacing: 0.01em;
  margin: 0 0 0.3em; color: var(--text-strong);
}
.hero__sub {
  font-family: var(--font-title); letter-spacing: 0.02em; font-size: 30px;
  line-height: 1.2; margin: 0 0 22px; color: var(--accent);
}
.hero__text { max-width: 44ch; margin: 0 0 34px; color: var(--text-muted); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__figure {
  margin: 0; justify-self: center; width: min(460px, 100%); height: 620px;
  padding: 20px; box-sizing: border-box;
}
.hero__figure img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ========== Discord ========== */
.discord {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px 64px; align-items: center;
}
.discord .h2 { margin-bottom: 16px; }
.discord__intro { max-width: 42ch; margin: 0; }

.server-card {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em;
  border-radius: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid oklch(0.33 0.018 255);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.server-card:hover {
  border-color: var(--accent-ring);
  box-shadow: 0 18px 50px -20px rgba(61,107,214,.35);
  transform: translateY(-3px);
}
.server-card__banner { height: 140px; }
.server-card__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.server-card__body { padding: 0 28px 28px; }
.server-card__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.server-card__icon {
  width: 76px; height: 76px; margin-top: -38px; flex: none;
  border: 5px solid var(--surface); border-radius: 22px; overflow: hidden;
  background: var(--line-soft);
}
.server-card__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.server-card__live { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--accent); }
.server-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0 0 8px; }
.server-card__stats {
  display: flex; gap: 22px; flex-wrap: wrap; font-size: 17px; margin-bottom: 20px;
  font-variant-numeric: tabular-nums; color: oklch(0.82 0.012 250);
}
.server-card__stats > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--online { background: var(--online); }
.dot--members { background: oklch(0.55 0.012 250); }
.channels { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.channel {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 10px; background: var(--surface-deep); font-size: 17px;
}
.channel b { color: var(--accent); font-weight: 400; }
.server-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.server-card__actions .btn--primary { flex: 1; padding: 12px 20px; }
.server-card__actions .btn--ghost { padding: 12px 16px; font: 400 17px var(--font-display); letter-spacing: 0.02em; }

/* ========== Projekte ========== */
.project {
  display: flex; flex-direction: column; gap: 12px;
  color: var(--text); text-decoration: none;
}
.project:hover { color: var(--text); }
.project h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: 0.02em; font-size: 28px; margin: 0; }
.project p { font-size: 16px; flex: 1; }
.project__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 19px; color: var(--accent);
}
.project__cta img { display: block; }

.locked {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); min-height: 240px;
}
.locked__blur {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; height: 100%;
  box-sizing: border-box; background: var(--surface);
  filter: blur(7px); opacity: .7; user-select: none;
}
.locked__blur h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: 0.02em; font-size: 28px; margin: 0; }
.locked__blur p { margin: 0; font-size: 16px; color: var(--text-muted); }
.locked__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; background: rgba(28,32,40,.35);
}
.locked__icon {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--accent-ring); background: var(--bg); color: var(--accent);
}
.locked__label { font-family: var(--font-display); font-size: 28px; color: var(--text-strong); }

/* ========== Social ========== */
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.social {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.social:hover { border-color: var(--accent-ring); background: var(--surface-hover); transform: translateY(-2px); color: var(--text); }
.social__icon {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 14px; background: var(--bg);
}
.social__icon img { display: block; }
.social__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.social__name { font-family: var(--font-title); letter-spacing: 0.02em; font-size: 22px; line-height: 1.1; }
.social__handle { font-size: 14px; color: var(--text-dim); }
.social__arrow { color: var(--accent); font-size: 18px; }

/* ========== Footer ========== */
.footer { border-top: 1px solid var(--line-soft); }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: oklch(0.7 0.012 250);
}
.footer__logo { font-family: var(--font-display); font-size: 20px; color: var(--accent); }
.footer a { color: inherit; }

/* ========== Scroll-Reveal ========== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
}

/* ========== Mobil ========== */
@media (max-width: 640px) {
  section[id] { scroll-margin-top: 96px; }
  .nav__inner { gap: 10px 20px; }
  .nav__links { gap: 16px; font-size: 17px; }
  .hero { padding-top: 32px; gap: 32px; }
  .hero__figure { height: 440px; }
  .hero__sub { font-size: 24px; }
  .section { padding: 64px 0; }
  .server-card__body { padding: 0 20px 22px; }
}
