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

body {
  /* Hintergrund-SVG aus dem WordPress-Uploads-Ordner */
  background-image: url('/wp-content/uploads/2026/05/nox-bg1.svg');
  
  /* Fixiert – scrollt nicht mit */
  background-attachment: fixed;
  
  /* Skaliert, um den Bildschirm zu füllen (bei hochformatigen SVGs) */
  background-size: cover;
  
  /* Zentriert */
  background-position: center;
  
  /* Nicht wiederholen */
  background-repeat: no-repeat;
  
  /* Fallback-Farbe, falls SVG nicht lädt */
  background-color: #0f172a;

  /* Alle anderen body-Styles bleiben erhalten */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
  padding: 1rem;
}

/* ===== Glas-Container (exakt wie .nox-header__bar) ===== */
.container {
  max-width: 1400px;
  width: 100%;

  /* ===== Glas-Effekt OHNE Backdrop-Blur ===== */
  background: rgba(0, 0, 0, 0.35);
  /* Kein backdrop-filter mehr – der Hintergrund bleibt scharf! */
  
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 2rem;
  padding: 1.5rem 2rem 2rem;
  color: #f8fafc;

  /* Optional: Leichte Glas-Textur durch einen inneren Schatten */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.6rem;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}
h1 span {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 0.2rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.6rem 1.2rem;
  margin-bottom: 1rem;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  color: #f8fafc;
  font-weight: 500;
}
.info-panel .placeholder { color: rgba(255, 255, 255, 0.5); font-weight: 400; }

/* ===== Karte ===== */
.map-wrapper {
  width: 100%;
  background: rgba(255, 255, 255, 0.05); /* leicht durchsichtig, damit Glas durchscheint */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  height: 100dvh;
  min-height: 400px;
  touch-action: none;
}

#svg-container {
  width: 100%;
  height: 100%;
  cursor: grab;
  position: relative;
  transform-origin: 0 0;
  will-change: transform;
}
#svg-container:active { cursor: grabbing; }
#svg-container svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Nur klickbare Elemente reagieren auf Maus */
#svg-container svg [data-clickable="true"] {
  pointer-events: all;
  vector-effect: non-scaling-stroke;
  transition: fill 0.15s, stroke 0.15s, stroke-width 0.15s, filter 0.15s;
  cursor: pointer;
}
#svg-container svg [data-clickable="true"]:hover {
  stroke: #4d6bfe !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 10px rgba(77, 107, 254, 0.35));
}

/* Alle anderen SVG-Elemente sind komplett passiv */
#svg-container svg *:not([data-clickable="true"]) {
  pointer-events: none !important;
  cursor: default !important;
}

/* ===== Tooltip ===== */
.tooltip-box {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 0.3rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  white-space: nowrap;
  z-index: 20;
}
.tooltip-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Zoom‑Anzeige & Reset ===== */
.zoom-indicator {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  pointer-events: none;
  user-select: none;
}
.reset-btn {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #f8fafc;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.2s;
  z-index: 10;
}
.reset-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

/* ===== Legende & Buttons ===== */
.legend {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}
.legend-color {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.controls {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.btn {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.btn-primary {
  background: #4d6bfe;
  border-color: #4d6bfe;
  color: white;
}
.btn-primary:hover {
  background: #3b5bde;
  border-color: #3b5bde;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .container { padding: 1rem; }
  .map-wrapper { height: 50vh; min-height: 300px; }
  h1 { font-size: 1.2rem; }
}