/* === Politik-Barometer — mynexa.cloud === */
/* Dunkel, futuristisch, Glassmorphism — gleiche Designsprache wie /krisen/ und /rohstoffe/ */

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

:root {
  --bg-base: #050714;
  --bg-surface: rgba(15, 23, 42, 0.6);
  --bg-elevated: rgba(30, 41, 59, 0.7);
  --border: rgba(148, 163, 184, 0.15);
  --border-hover: rgba(148, 163, 184, 0.3);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;

  --color-gruen: #22c55e;
  --color-rot: #ef4444;
  --color-gelb: #eab308;

  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.3);
  --gradient-night: linear-gradient(180deg, #050714 0%, #0f172a 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--gradient-night);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.13), transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(139, 92, 246, 0.13), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Navigation (gleiche Struktur wie /krisen/) === */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.nav-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-home:hover { color: var(--text-primary); border-color: var(--border-hover); }
.nav-home-label { font-family: var(--font-mono); }

.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }

.nav-links a {
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links a:hover { color: var(--text-primary); border-color: var(--border); }
.nav-links a.is-active {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.14);
  box-shadow: var(--shadow-glow-blue);
}

.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 0.1em; font-size: 0.84rem; }
.nav-logo .accent { color: var(--accent-blue); }
.logo-pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-gruen);
  box-shadow: 0 0 12px var(--color-gruen);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.32; } }

.nav-status { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--text-secondary); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }

/* === Hero === */
.hero { padding: 46px 0 30px; }
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(1.75rem, 4.8vw, 2.8rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero-title .title-accent {
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-blue) 60%, var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--text-secondary); max-width: 780px; font-size: 0.96rem; }
.hero-subtitle strong { color: var(--text-primary); }

.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 7px 14px;
  border-radius: 999px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-gruen); box-shadow: 0 0 10px var(--color-gruen); }

/* === Parlament-Auswahl === */
.selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 26px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
}

.selector button {
  font: inherit;
  font-size: 0.79rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.selector button:hover { border-color: var(--border-hover); color: var(--text-primary); }
.selector button.is-active {
  border-color: rgba(59, 130, 246, 0.7);
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
}

/* === Panels === */
.grid { display: grid; gap: 20px; grid-template-columns: 1.35fr 1fr; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.panel + .panel { margin-top: 20px; }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.panel-head h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.panel-head .meta { font-size: 0.74rem; color: var(--text-muted); font-family: var(--font-mono); }

/* === Balken === */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 118px 1fr 78px; gap: 12px; align-items: center; }

.bar-row .name {
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-row .name .swatch { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }

.bar-track {
  position: relative;
  height: 22px;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 7px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: right;
  font-weight: 600;
}

.delta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-left: 7px;
  vertical-align: middle;
}
.delta.up { color: var(--color-gruen); border-color: rgba(34, 197, 94, 0.4); }
.delta.down { color: var(--color-rot); border-color: rgba(239, 68, 68, 0.4); }
.delta.flat { color: var(--text-muted); }

/* === Detail-Karten === */
.kv { display: flex; flex-direction: column; gap: 10px; }
.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.83rem;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row .k { color: var(--text-muted); }
.kv-row .v { color: var(--text-primary); text-align: right; font-weight: 500; }

/* === Chart === */
.chart-wrap { overflow-x: auto; }
svg.chart { width: 100%; height: 250px; display: block; }
svg.chart .gridline { stroke: rgba(148, 163, 184, 0.14); stroke-width: 1; }
svg.chart .axis-text { fill: var(--text-muted); font-size: 10px; font-family: var(--font-mono); }

.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 0.75rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.legend i { width: 13px; height: 3px; border-radius: 2px; display: inline-block; }

/* === Footer === */
.footer {
  margin-top: 34px;
  padding: 22px 0 60px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer a { color: var(--text-secondary); }

.state-msg {
  padding: 26px;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition: none; }
  .logo-pulse, .pill-dot { animation: none; }
}
