:root {
  --bg: #08080b;
  --bg-soft: #0d0d12;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.68);
  --text-faint: rgba(245, 245, 247, 0.42);

  /* Primärfarbe */
  --accent: #fc00ff;
  --accent-soft: rgba(252, 0, 255, 0.12);
  --on-accent: #0a0a0c;

  --warn: #ffb020;
  --danger: #ff5c5c;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --margin-x: clamp(20px, 4.5vw, 72px);

  --font: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px var(--margin-x);
  background: rgba(8, 8, 11, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.nav-right { justify-content: flex-end; }

.nav-left a,
.nav-right a {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-left a:hover,
.nav-right a:hover,
.nav-left a:focus-visible,
.nav-right a:focus-visible { color: var(--text); }

.nav-left a[aria-current="page"],
.nav-right a[aria-current="page"] { color: var(--text); }

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo__fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  color: var(--on-accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--on-accent);
  background: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 0 var(--on-accent);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.btn__arrow {
  width: 16px;
  height: 10px;
  flex: none;
  transition: transform 0.2s ease;
}

.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(72px, 13vh, 148px) var(--margin-x) clamp(64px, 11vh, 120px);
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg:not([src]),
.hero__bg[src=""] { display: none; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 8, 11, 0.62);
}

.hero__status {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.82em;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.headline {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
}

.headline .accent { color: var(--accent); }

.subcopy {
  margin: clamp(20px, 2.6vh, 28px) auto 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4.5vh, 44px);
}

.hero__chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vh, 56px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.chip svg { width: 14px; height: 14px; flex: none; color: var(--accent); }

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 10vh, 128px) var(--margin-x);
}

.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 640px;
  margin: 0 0 clamp(40px, 5.5vh, 64px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.section__title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section__lead {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Cards (Features / RP-Einblicke) ---------- */

.grid {
  display: grid;
  gap: 16px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: clamp(26px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
}

.card__title {
  margin: 0 0 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Join / Discord CTA section ---------- */

.section--join { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(64px, 10vh, 128px); }

.join {
  padding: clamp(56px, 9vh, 96px) clamp(24px, 5vw, 64px);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}

.join__title {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

.join__lead {
  margin: 16px auto 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.15vw, 18px);
  color: var(--text-muted);
}

.join__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(28px, 4vh, 40px);
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 32px var(--margin-x) 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.site-footer a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--text); }

.site-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ============================================================
   Content pages (Regelwerk, Fraktionsregelwerk)
   ============================================================ */

.page-hero {
  padding: clamp(48px, 8vh, 84px) var(--margin-x) clamp(32px, 5vh, 48px);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-faint);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--accent); }

.page-hero__title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-hero__lead {
  margin: 18px 0 0;
  max-width: 68ch;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
}

.page-hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.page-hero__meta span {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 7vh, 80px) var(--margin-x);
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc__label {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.toc a {
  padding: 9px 0 9px 14px;
  border-left: 2px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--text);
  border-left-color: var(--accent);
}

.doc {
  max-width: 78ch;
}

.doc section {
  padding-top: clamp(24px, 3vh, 36px);
  margin-top: clamp(24px, 3vh, 36px);
  border-top: 1px solid var(--border);
}

.doc section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--text);
}

.doc h2 .num {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.doc .section-lead {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--text-muted);
}

.doc h3 {
  margin: 26px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.doc p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.doc li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--border);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.doc li:first-child { border-top: none; }

.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.doc li strong {
  font-weight: 700;
  color: var(--text);
}

.note {
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

.note strong {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

/* Strafenkatalog / Tabellen */

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

.doc thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.doc tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.doc tbody tr:hover { background: var(--surface); }

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tag--warn { background: rgba(255, 176, 32, 0.14); color: var(--warn); }
.tag--kick { background: var(--accent-soft); color: var(--accent); }
.tag--ban { background: rgba(255, 92, 92, 0.14); color: var(--danger); }

/* Fraktions-Karten */

.faction-card {
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.faction-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.faction-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.faction-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .layout { grid-template-columns: 1fr; }
  .toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 8px;
  }
  .toc a { border-left: none; border-bottom: 2px solid var(--border); padding: 6px 0; }
}

@media (max-width: 720px) {
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .topbar { grid-template-columns: auto; justify-items: center; gap: 12px; }
  .nav-left,
  .nav-right { justify-content: center; flex-wrap: wrap; }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
