body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at center, #3a6073, #16222a);
}

#title {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#title-main {
  font-size: 30px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

#title-sub {
  font-size: 13px;
  font-weight: 400;
  color: rgba(160,160,160,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

#logo-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 12px 40px;
  background: linear-gradient(to top, rgba(16,22,30,0.85) 0%, rgba(16,22,30,0) 100%);
}

#logo-bar img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1) drop-shadow(0 1px 4px rgba(0,0,0,0.5));
  transition: filter 0.2s;
}

#logo-bar img:hover {
  filter: brightness(1.15) drop-shadow(0 1px 6px rgba(0,0,0,0.7));
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.88) 100%
  );
}

#container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

#controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
}

.ctrl-btn {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.ctrl-btn:hover { background: rgba(255,255,255,0.2); }

.ctrl-divider {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 4px 0;
}

.ctrl-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin: 2px 0 4px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin: 2px 0;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}

.toggle-input:checked + .track-bekannt      { background: #22c55e; }
.toggle-input:checked + .track-hypothetisch { background: #b91c1c; }
.toggle-input:checked + .track-gebaeude     { background: #94a3b8; }
.toggle-input:checked + .track-metall       { background: #737373; }
.toggle-input:checked + .track-transluzent  { background: #38bdf8; }
.toggle-input:checked + .track-atmosphaere  { background: #a78bfa; }

.toggle-input:checked + .toggle-track::after { transform: translateX(16px); }

.toggle-label {
  font-size: 13px;
  color: white;
}

#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.slider {
  width: 100%;
  margin: 2px 0 6px;
  accent-color: #88ccff;
  cursor: pointer;
}

.dot.bekannt      { background: #4CAF50; }
.dot.hypothetisch { background: #aa0000; }
.dot.gebaeude     { background: #a0a0c0; }
.dot.transluzent  { background: #88ccff; }
.dot.metall       { background: #1c1208; border: 1px solid #555; }

/* Modal */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

#modal-overlay.visible {
  display: flex;
}

#modal {
  position: relative;
  background: rgba(20,28,36,0.97);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 36px 40px 32px;
  max-width: 560px;
  width: calc(100% - 40px);
  color: rgba(220,220,220,0.9);
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

#modal h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.03em;
}

#modal h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

#modal p {
  margin: 0 0 12px;
}

#modal p em {
  color: white;
  font-style: normal;
}

#modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s;
}

#modal-close:hover { color: white; }

.modal-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 18px 0 16px;
}

.nav-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
}

.nav-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-table td:first-child {
  width: 38%;
  color: white;
  font-weight: 600;
}

.modal-btn {
  width: 100%;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-btn:hover { background: rgba(255,255,255,0.2); }