/* === Weltkrisen-Dashboard 2026 === */
/* Dunkel, futuristisch, Glassmorphism, Neon-Akzente, Mobile-First */

/* === Reset & Variablen === */
* {
  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-gelb: #eab308;
  --color-orange: #f97316;
  --color-rot: #ef4444;
  --color-kritisch: #dc2626;

  --shadow-soft: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.3);
  --shadow-glow-red: 0 0 30px rgba(239, 68, 68, 0.3);

  --gradient-fire: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #eab308 100%);
  --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;
}

canvas#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Top-Nav === */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(5, 7, 20, 0.7);
  border-bottom: 1px solid var(--border);
}

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

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.nav-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.6);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.nav-home:hover,
.nav-home:focus-visible {
  color: var(--accent-cyan, #06b6d4);
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.08);
  outline: none;
}

.nav-home svg {
  flex: 0 0 auto;
  opacity: 0.85;
}

.nav-home-label {
  display: inline;
}

@media (max-width: 560px) {
  .nav-home-label {
    display: none;
  }
  .nav-home {
    padding: 7px 9px;
  }
  .nav-left {
    gap: 12px;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 14px;
}

.logo-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-rot);
  box-shadow: 0 0 12px var(--color-rot);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.logo-text { color: var(--text-primary); }
.accent { color: var(--color-orange); }
.logo-year {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 400;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gruen);
  box-shadow: 0 0 8px var(--color-gruen);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  padding: 120px 0 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  padding: 6px 14px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 100px;
  background: rgba(6, 182, 212, 0.05);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-fire {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.3));
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle strong { color: var(--text-primary); font-weight: 600; }

/* Gauge */
.hero-gauge {
  display: inline-block;
  margin: 0 auto 48px;
  position: relative;
}

.gauge-svg {
  width: 240px;
  height: 240px;
}

.gauge-value {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  fill: var(--text-primary);
}

.gauge-suffix {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  fill: var(--text-secondary);
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  fill: var(--color-orange);
}

/* Meta-Cards unter der Gauge */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 64px;
}

.meta-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.meta-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.meta-label {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.meta-value.critical { color: var(--color-orange); }
.meta-value.warn { color: var(--color-gelb); }
.meta-value.ok { color: var(--color-gruen); }

.meta-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.scroll-hint:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

/* === Sections (allgemein) === */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #f1f5f9 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === Weltkarte (Leaflet + CartoDB Dark Tiles) === */
.map-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.map-wrap {
  position: relative;
  width: 100%;
  height: 500px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(5, 7, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
  transition: opacity 0.4s ease;
}

.map-loading.gone {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Leaflet-spezifische Overrides */
.world-map .leaflet-container {
  background: #0a0e27 !important;
}
.world-map .leaflet-control-attribution {
  display: none !important;
}

/* Leaflet Marker-Styles */
.leaflet-hot-marker {
  position: relative;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.leaflet-hot-marker .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor, 0 0 4px rgba(255,255,255,0.6);
}

.leaflet-hot-marker.red { color: #ef4444; }
.leaflet-hot-marker.orange { color: #f97316; }
.leaflet-hot-marker.yellow { color: #eab308; }
.leaflet-hot-marker.green { color: #22c55e; }

.leaflet-hot-marker .pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  transform: translate(-50%, -50%);
  animation: marker-pulse 2.2s ease-out infinite;
}

.leaflet-hot-marker .pulse.delay {
  animation-delay: 1.1s;
}

@keyframes marker-pulse {
  0%   { width: 10px; height: 10px; opacity: 0.9; }
  100% { width: 60px; height: 60px; opacity: 0; }
}

.leaflet-hot-marker .label {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 0 6px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* Tooltip bei Hover über Marker */
.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(5, 7, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  transform: translate(12px, 12px);
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.map-tooltip.show { opacity: 1; }

.map-tooltip strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.map-tooltip .tt-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* === Alte SVG-Stile entfernt (waren Polygon-Stil) === */

.map-detail {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 500px;
  position: sticky;
  top: 100px;
  transition: border-color 0.3s ease, min-height 0.3s ease, padding 0.3s ease;
}

/* Default-Zustand: klein und unauffaellig, bis ein Krisenherd gewaehlt wird */
.map-detail:has(.map-detail-default) {
  min-height: 0;
  padding: 16px 20px;
}

.map-detail-default {
  text-align: center;
  color: var(--text-muted);
  padding: 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.map-detail-default svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  flex-shrink: 0;
}

.map-detail-default p {
  font-size: 13px;
  margin: 0;
  letter-spacing: 0.02em;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-land {
  font-size: 24px;
  font-weight: 700;
}

.detail-score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.detail-score.rot { background: rgba(239,68,68,0.15); color: var(--color-rot); }
.detail-score.orange { background: rgba(249,115,22,0.15); color: var(--color-orange); }
.detail-score.gelb { background: rgba(234,179,8,0.15); color: var(--color-gelb); }
.detail-score.gruen { background: rgba(34,197,94,0.15); color: var(--color-gruen); }

.detail-zusammenfassung {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.detail-kat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-kat {
  background: var(--bg-elevated);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--text-muted);
}

.detail-kat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.detail-kat-name {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-kat-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.detail-kat-trend {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-kat-trend.steigend { color: var(--color-rot); }
.detail-kat-trend.fallend { color: var(--color-gruen); }
.detail-kat-trend.stabil { color: var(--text-secondary); }

/* === Krisenherde-Tiefe (Cards) === */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.country-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--text-muted);
  transition: background 0.3s ease;
}

.country-card[data-ampel="rot"]::before { background: var(--color-rot); }
.country-card[data-ampel="orange"]::before { background: var(--color-orange); }
.country-card[data-ampel="gelb"]::before { background: var(--color-gelb); }
.country-card[data-ampel="gruen"]::before { background: var(--color-gruen); }

.country-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.country-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.country-name {
  font-size: 20px;
  font-weight: 700;
}

.country-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.country-badge.rot { background: rgba(239,68,68,0.15); color: var(--color-rot); }
.country-badge.orange { background: rgba(249,115,22,0.15); color: var(--color-orange); }
.country-badge.gelb { background: rgba(234,179,8,0.15); color: var(--color-gelb); }
.country-badge.gruen { background: rgba(34,197,94,0.15); color: var(--color-gruen); }

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

.kat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kat-bar-label {
  flex: 0 0 110px;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.kat-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.kat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.kat-bar-fill.score-1, .kat-bar-fill.score-2, .kat-bar-fill.score-3 { background: var(--color-gruen); }
.kat-bar-fill.score-4, .kat-bar-fill.score-5 { background: var(--color-gelb); }
.kat-bar-fill.score-6, .kat-bar-fill.score-7 { background: var(--color-orange); }
.kat-bar-fill.score-8, .kat-bar-fill.score-9, .kat-bar-fill.score-10 { background: var(--color-rot); }

.kat-bar-num {
  flex: 0 0 24px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.country-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Zeitstrahl === */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--color-rot) 10%,
    var(--color-orange) 30%,
    var(--color-gelb) 60%,
    var(--color-gruen) 100%
  );
}

.tl-event {
  position: relative;
  margin-bottom: 32px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.3s ease;
}

.tl-event:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.tl-event::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--text-muted);
}

.tl-event[data-sev="kritisch"]::before {
  border-color: var(--color-rot);
  box-shadow: 0 0 12px var(--color-rot);
  background: var(--color-rot);
}
.tl-event[data-sev="hoch"]::before {
  border-color: var(--color-orange);
  background: var(--color-orange);
}
.tl-event[data-sev="mittel"]::before {
  border-color: var(--color-gelb);
  background: var(--color-gelb);
}
.tl-event[data-sev="niedrig"]::before {
  border-color: var(--color-gruen);
  background: var(--color-gruen);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.tl-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tl-tag[data-type="nuklear"] { background: rgba(239,68,68,0.15); color: var(--color-rot); }
.tl-tag[data-type="krieg"] { background: rgba(249,115,22,0.15); color: var(--color-orange); }
.tl-tag[data-type="diplomatie"] { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.tl-tag[data-type="cyber"] { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.tl-tag[data-type="wirtschaft"] { background: rgba(6,182,212,0.15); color: var(--accent-cyan); }

.tl-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.tl-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Risiko-Analyse === */
.risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.risk-col {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.risk-col-title {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.risk-list, .expert-list, .divisor-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.risk-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid var(--text-muted);
}

.risk-item[data-impact="sehr hoch"] { border-left-color: var(--color-kritisch); }
.risk-item[data-impact="hoch"] { border-left-color: var(--color-rot); }
.risk-item[data-impact="mittel"] { border-left-color: var(--color-gelb); }
.risk-item[data-impact="niedrig"] { border-left-color: var(--color-gruen); }

.risk-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.risk-item-title {
  font-size: 15px;
  font-weight: 600;
}

.risk-item-meta {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-meta-pill {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

.risk-meta-pill[data-level="sehr hoch"] { color: var(--color-kritisch); background: rgba(220,38,38,0.1); }
.risk-meta-pill[data-level="hoch"] { color: var(--color-rot); background: rgba(239,68,68,0.1); }
.risk-meta-pill[data-level="mittel"] { color: var(--color-gelb); background: rgba(234,179,8,0.1); }
.risk-meta-pill[data-level="niedrig"] { color: var(--color-gruen); background: rgba(34,197,94,0.1); }
.risk-meta-pill[data-level="niedrig-mittel"] { color: var(--color-gelb); background: rgba(234,179,8,0.1); }

.risk-indikatoren {
  list-style: none;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.risk-indikatoren li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

.risk-indikatoren li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.expert-item, .divisor-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.expert-quelle, .divisor-text {
  font-size: 13px;
  font-weight: 500;
}

.expert-wert {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  text-align: right;
}

.expert-bewertung {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

.divisor-item {
  border-left: 2px solid var(--color-gruen);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.divisor-wirkung {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

.empty-state {
  background: rgba(148, 163, 184, 0.08);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 14px;
}

/* === Methodik === */
.method-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.method-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.method-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.method-weights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.method-weights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.weight-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(59,130,246,0.15);
  color: var(--accent-blue);
  min-width: 60px;
  text-align: center;
}

.ampel-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ampel-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.ampel-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0.1em;
}

.ampel-cell.gruen { background: rgba(34,197,94,0.15); color: var(--color-gruen); }
.ampel-cell.gelb { background: rgba(234,179,8,0.15); color: var(--color-gelb); }
.ampel-cell.orange { background: rgba(249,115,22,0.15); color: var(--color-orange); }
.ampel-cell.rot { background: rgba(239,68,68,0.15); color: var(--color-rot); }

.caveat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.caveat-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--color-gelb);
}

.caveat-list strong { color: var(--text-primary); }

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.indicator {
  background: var(--bg-elevated);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 2px solid var(--accent-cyan);
}

/* === Footer === */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 20, 0.5);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-logo {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  font-family: var(--font-mono);
}

.footer-meta strong { color: var(--text-secondary); font-weight: 600; }

.footer-bottom {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* === Responsive === */
@media (max-width: 900px) {
  .map-container {
    grid-template-columns: 1fr;
  }

  .map-detail {
    position: static;
    min-height: auto;
  }

  .risk-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 40px;
    min-height: auto;
  }

  .gauge-svg {
    width: 200px;
    height: 200px;
  }

  .gauge-value { font-size: 32px; }

  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .meta-card { padding: 14px 12px; }
  .meta-value { font-size: 22px; }

  .method-card { padding: 24px 20px; }
  .ampel-row {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: left;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

/* === Reveal-Animation === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Performance: auf Tablet/Mobile wird das Reveal deaktiviert.
   Hintergrund: 0.8s-Transition pro Section fuehlt sich auf
   Android-Tablets an wie "Seite laedt nach und nach" - der Browser
   triggert beim Scrollen erst die IntersectionObserver-Callback, dann
   die CSS-Transition. Beides kostet auf Tablet-CPU spuerbar Zeit.
   Desktop (> 1024px) behaelt die Reveal-Animation. */
@media (max-width: 1024px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* === Loading-State === */
.loading-pulse {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Performance: backdrop-filter auf Tablet/Mobile deaktivieren ===
   Hintergrund: 20 backdrop-filter:blur(20px)-Schichten erzwingen auf
   Android-Tablets sichtbares Scroll-Stottern, weil der Browser bei jedem
   Scroll-Tick den Hintergrund aller Glas-Layer neu sampelt.
   Fix: ab <= 1024px (Tablet Portrait + Mobile) den Blur abschalten und
   die Opazität der Surfaces kompensieren, damit der Look stabil bleibt.
   Desktop (> 1024px) behält den vollen Glassmorph-Look.
   Der Sticky-Header (z-index:100) behält bewusst sein backdrop-filter,
   weil er die einzige sichtbare Glas-Schicht ist und Scroll-Verbesserung bringt.
*/
@media (max-width: 1024px) {
  /* Globale Variablen leicht abdunkeln, damit Cards ohne Blur nicht "flach" wirken */
  :root {
    --bg-surface: rgba(15, 23, 42, 0.92);
    --bg-elevated: rgba(30, 41, 59, 0.95);
  }

  /* Alle backdrop-filter deaktivieren - außer im Top-Header (Navigation).
     Die Ausnahme .nav und .top-bar wird durch die ID/Class-Spezifität unten gehalten. */
  .country-card,
  .risk-item,
  .expert-item,
  .divisor-item,
  .tl-event,
  .kat-bar,
  .map-detail,
  .map-sidebar,
  .modal-content,
  .filter-bar,
  .data-source-banner,
  .timeline::before,
  section .container > * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
