/* ============================================================
   Das Chaos — modernes Design
   Gleicher Inhalt wie die Originalseite, eigenstaendiges CSS
   (kein Bootstrap), Schriftart bleibt Google Sans.
   ============================================================ */

:root {
  --bg: #0b0c10;
  --bg-elevated: #15161c;
  --bg-card: #1b1d26;
  --bg-card-hover: #21232e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --text-muted: #a6a8b3;
  --text-faint: #75777f;
  --accent: #e8b923;
  --accent-soft: rgba(232, 185, 35, 0.14);
  --accent-text: #f3cf5c;
  --accent-gradient: linear-gradient(135deg, #ffe085 0%, #d9a622 100%);
  --accent-contrast: #1b1406;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --nav-height: 76px;
  --container: 920px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f7;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #fbfbfc;
    --border: rgba(10, 10, 20, 0.08);
    --text: #15161c;
    --text-muted: #55565f;
    --text-faint: #8b8c94;
    --shadow-lg: 0 20px 60px -24px rgba(20, 15, 40, 0.25);
    --shadow-sm: 0 8px 24px -14px rgba(20, 15, 40, 0.2);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Google Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

/* ---------------- Background glow ---------------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 420px at 12% -5%, rgba(232, 185, 35, 0.14), transparent 60%),
    radial-gradient(520px 380px at 100% 10%, rgba(140, 110, 20, 0.14), transparent 60%);
  pointer-events: none;
}

/* ---------------- Navigation ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

/* Blur lives on a plain (non-fixed-context) pseudo layer: putting
   backdrop-filter directly on .site-header would make it the
   containing block for the fixed mobile nav-panel below, breaking
   its full-height overlay in Chromium/WebKit. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .site-header::before {
    background: rgba(255, 255, 255, 0.78);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-links a.cta {
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-left: 36px;
}

.nav-links a.cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

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

.hero {
  padding: 76px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}

.hero .tag {
  font-family: "Google Sans", monospace;
  color: var(--text-faint);
  font-size: 1.05rem;
  margin: 0 0 22px;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--bg-card-hover);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--accent-contrast);
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

/* ---------------- Section shell ---------------- */

section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 640px;
}

.section-head .kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 8px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-weight: 700;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

/* ---------------- Rules grid ---------------- */

.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.rule-num {
  flex-shrink: 0;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rule-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.rule-card strong {
  color: var(--text);
}

.rule-card .ref {
  color: var(--accent-text);
  font-weight: 600;
}

/* ---------------- FAQ ---------------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.faq-q .rule-num {
  height: 22px;
  min-width: 22px;
  border-radius: 7px;
  font-size: 0.7rem;
  padding: 0 5px;
}

.faq-item .chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  transition: transform 0.2s ease;
}

.faq-item[open] .chev {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------------- Join CTA ---------------- */

.join-card {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.join-card h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.join-card p {
  margin: 0;
  opacity: 0.92;
  max-width: 480px;
}

.join-card code {
  display: inline-block;
  margin-top: 10px;
  background: rgba(27, 20, 6, 0.14);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "Google Sans", monospace;
  white-space: nowrap;
}

.join-card .btn-light {
  background: var(--accent-contrast);
  color: #fff;
  border: none;
  flex-shrink: 0;
}

.join-card .btn-light:hover {
  background: #2b2210;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

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

@media (max-width: 920px) {
  :root {
    --nav-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-card);
  }

  .nav-links a.cta {
    order: -1;
    margin-left: 0;
    margin-bottom: 6px;
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .join-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
