@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #0c0f18;
  --bg-alt: #101425;
  --panel: #141a2d;
  --panel-muted: #1b233a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7ff;
  --muted: #a4b3d9;
  --accent: #38bdf8;
  --accent-strong: #60d4ff;
  --glow: rgba(56, 189, 248, 0.35);
  --gold: #f7c948;
  --danger: #ff6b6b;
  --success: #22d3ee;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(96, 212, 255, 0.08), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(18px);
  background: rgba(12, 15, 24, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.header-inner {
  width: 100%;
  margin: 0;
  padding: 18px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Chakra Petch", "Inter", sans-serif;
  letter-spacing: 0.08em;
}

.branding img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.branding strong {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-page="home"] .nav-links a[href="index.html"],
body[data-page="about"] .nav-links a[href="3thcore.html"],
body[data-page="factions"] .nav-links a[href="fraktionen.html"],
body[data-page="faq"] .nav-links a[href="faq.html"] {
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.primary-btn {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #080a12;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.01);
}


.content-wrapper {
  width: 100%;
  margin: 40px 0;
  padding: 0 clamp(18px, 4vw, 52px);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  flex: 1;
}

.sidebar-shell {
  position: sticky;
  top: 120px;
  align-self: start;
}

.sidebar {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar h3 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--panel-muted);
  border: 1px solid transparent;
  color: var(--muted);
  transition: border 0.2s ease, transform 0.2s ease, color 0.2s;
}

.sidebar-links a .fa-solid {
  font-size: 1rem;
  color: var(--accent);
}

.sidebar-links a[href*="ucp"] {
  border-color: rgba(247, 201, 72, 0.3);
}

.sidebar-links a[href*="leitstelle"] .fa-solid,
.sidebar-links a[href*="admin"] .fa-solid {
  color: var(--gold);
}

.sidebar-links a:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(4px);
}

.sidebar .status-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(96, 212, 255, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(34, 211, 238, 0.2);
  color: var(--success);
  font-weight: 600;
  font-size: 0.85rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

section {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  margin: 0 0 18px;
  font-family: "Chakra Petch", sans-serif;
}

.hero-content p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secondary-btn {
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.35);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-family: "Chakra Petch", sans-serif;
}

.stat-card strong.rstate:not([svstate="running"]),
.stat-card strong.svstate {
  text-transform: capitalize;
  color: #ea1413;
}
.stat-card strong.svstate[svstate="started"] {
  color: #dbd00d;
}
.stat-card strong.svstate[svstate="running"] {
  color: #0ddb0d;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--panel-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border 0.2s ease;
}

.feature-card:hover::after {
  border-color: rgba(56, 189, 248, 0.4);
}

.feature-card .fa-solid {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 18px 22px;
  border-left: 3px solid rgba(56, 189, 248, 0.5);
  background: var(--panel-muted);
  border-radius: var(--radius-sm);
}

.timeline-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.cta-banner {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cta-banner h3 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--panel-muted);
  border: 1px solid var(--border);
  padding: 18px 20px;
  cursor: pointer;
}

.faq-item.open {
  border-color: rgba(56, 189, 248, 0.4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  margin-top: 12px;
}

.faq-item.open .faq-answer-inner {
  padding-top: 8px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.faction-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--panel-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: ease-in-out .25s;
  user-select: none;
}

.faction-card .image {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 70px;
  width: 70px;
  object-fit: contain;
  border-radius: 7px;
  pointer-events: none;
}

.faction-card .tag {
  align-self: flex-start;
  transition: .25s;
  cursor: default;
}

.faction-card:hover .tag {
  box-shadow: 0px 1px 5px 0px #a4b3d9;
}

.faction-card:hover {
  box-shadow: 1px 3px 5px 4px #121820;
  transform: scale(1.1);
  z-index: 99;
  border-color: rgba(56, 189, 248, 0.4);
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
}

.tag.gold {
  border-color: rgba(247, 201, 72, 0.5);
  color: var(--gold);
}

.tag.info {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--accent);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.staff-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--panel-muted);
  padding: 20px;
}

.staff-card strong {
  display: block;
  font-size: 1.1rem;
}

.progress-stack {
  display: grid;
  gap: 12px;
}

.progress-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-line span {
  font-size: 0.9rem;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.site-footer {
  margin-top: 40px;
  padding: 32px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--border);
  background: rgba(12, 15, 24, 0.9);
}
.site-footer a[href]:hover {
  color: #106cff;
}

.footer-inner {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.footer-block h4 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
}

@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-shell {
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: #000;
    backdrop-filter: none;
    z-index: 1000;
    flex-direction: column;
    padding: 80px 20px 24px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: none;
  }

  .nav-links.open {
    transform: translateX(0);
    display: flex;
  }

  .nav-links a {
    font-size: clamp(0.95rem, 3.6vw, 1.15rem);
    padding: 10px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .site-header {
    background: #000;
  }

  .header-inner {
    padding: 12px clamp(14px, 4vw, 24px);
    gap: 18px;
  }

  .branding img {
    width: 40px;
    height: 40px;
  }

  .branding strong {
    font-size: 1rem;
  }

  .mobile-toggle {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #111;
    box-shadow: var(--shadow-glow);
    font-size: 1.1rem;
  }

  .primary-btn {
    padding: 10px 16px;
  }
}

/* Abdunkelung des Hintergrunds, wenn die Navigation offen ist */
body.nav-open::before {
  content: "";
  position: fixed;
  background: rgba(0, 0, 0, 0.6);
  inset: 0;
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }

  section {
    padding: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
}
