body {
  margin: 0;
  background-color: #333333;
  color: #fff;
  font-family: Arial, sans-serif;
}

#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 10px 0 12px 0;
  z-index: 2000;
  background: transparent;
  pointer-events: none;
}

#top-nav .top-button {
  pointer-events: auto;
  background: transparent;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1.7em;
  text-decoration: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: normal;
  box-sizing: border-box;
  border-radius: 0;
  transition: color 0.2s, text-decoration 0.2s;
  outline: none;
  line-height: 1.2;
}

#top-nav .top-button:hover {
  color: #5e5e5e;
}

.impressum-link {
  position: fixed;
  bottom: 12px;
  right: 16px;
  z-index: 1000;
  font-size: 0.9em;
  padding: 3px 6px;
  color: #ffffff;
  border-radius: 6px;
  opacity: 0.85;
  background: none;
  transition: color 0.2s, text-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}

.impressum-link:hover {
  color: #5e5e5e;
  text-shadow: 0 2px 8px #1976d255;
  opacity: 1;
}

.switch-container {
  position: fixed;
  top: 60px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Arial, sans-serif;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: 0.3s;
  border-radius: 28px;
  border: 2px solid #fff;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 2px;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider:hover {
  border-color: #5e5e5e;
}

input:focus + .slider {
  box-shadow: 0 0 1px #4CAF50;
}

.switch-label {
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.switch-label:hover {
  color: #5e5e5e;
}

#container3D canvas {
  width: 100vw !important;
  height: 100vh !important;
  position: absolute;
  top: 0;
  left: 0;
}

#loading-bar-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  text-align: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#loading-bar-container.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-bar {
  width: 200px;
  height: 8px;
  background-color: #555;
  border: 2px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

#loading-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background-color: #4CAF50;
  transition: width 0.1s ease;
}

#loading-text {
  color: #fff;
  font-size: 0.9em;
  font-family: Arial, sans-serif;
}
