:root {
  --bg-main: #040706;
  --bg-card: #090e0c;
  --bg-card-hover: #0d1411;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-green: rgba(16, 185, 129, 0.35);
  --green-primary: #10b981;
  --green-bright: #22c55e;
  --green-glow: rgba(16, 185, 129, 0.25);
  --text-main: #f3f6f4;
  --text-muted: #8a9992;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --map-filter: brightness(0.75) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3);
}

/* Light Mode Variablen */
[data-theme="light"] {
  --bg-main: #f0f4f1;
  --bg-card: #ffffff;
  --bg-card-hover: #f7faf8;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-green: rgba(16, 185, 129, 0.4);
  --green-primary: #059669;
  --green-bright: #10b981;
  --green-glow: rgba(16, 185, 129, 0.15);
  --text-main: #111813;
  --text-muted: #52635a;
  --map-filter: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center center;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* Floating Navbar */
.navbar-wrap {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 0 0.75rem;
  display: flex;
  justify-content: center;
}

.navbar {
  width: 100%;
  max-width: 1120px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  border-bottom-color: var(--green-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.theme-btn:hover {
  border-color: var(--border-green);
}

.btn-discord-nav {
  background: var(--green-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 20px var(--green-glow);
  white-space: nowrap;
  transition: transform 0.15s, background 0.2s;
}

.btn-discord-nav:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sektion 1: Hero / Kartenbereich */
.hero-map-section {
  padding: 2.75rem 1rem 4rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse 85% 65% at 50% 35%, rgba(16, 185, 129, 0.12) 0%, transparent 75%);
  border-radius: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.55rem;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1.85rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero-title span {
  color: var(--green-bright);
}

.map-card {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.18), var(--bg-card) 45%);
  border: 1px solid var(--border-green);
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 35px rgba(16, 185, 129, 0.08);
}

.map-inner {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-main);
}

#map {
  width: 100%;
  height: 420px;
  z-index: 1;
}

/* Dynamischer Kartenfilter (Dark vs Light) */
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-attribution-flag {
  filter: var(--map-filter);
}

.da-ist-er {
  position: absolute;
  top: 5%;
  right: 4%;
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(0.85rem, 3vw, 1.35rem);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  transform: rotate(6deg);
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.45), 0 0 0 2px var(--bg-card);
  white-space: nowrap;
}

/* Sektion 2: Datenschutz & Aktualität */
.roadmap-section {
  padding: 4rem 1.75rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: start;
}

.section-heading {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 38ch;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.step-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  transition: border-color 0.2s, background 0.2s;
}

.step-card:hover {
  border-color: var(--border-green);
  background: var(--bg-card-hover);
}

.step-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-bright);
  flex-shrink: 0;
  font-weight: 700;
}

.step-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.step-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.step-text {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.3;
}

/* Footer */
footer {
  padding: 0 1rem 2.25rem;
}

.footer-box {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.brand-footer {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-bright);
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.footer-hobby {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0.85rem;
    gap: 0.5rem;
  }
  .nav-logo {
    height: 28px;
  }
  .nav-links {
    gap: 1.25rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .btn-discord-nav {
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
  }
  .theme-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .roadmap-section {
    padding: 2.5rem 1.15rem;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .step-card {
    padding: 1rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}