html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

#scroll-space {
  width: 1px;
  height: 0;
  pointer-events: none;
  opacity: 0;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 16px;
  box-sizing: border-box;
}

.menu-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.menu-main {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-subpages {
  margin-left: auto;
}

.menu a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
  flex: 0 0 auto;
}

.menu a:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.18);
}

.progress-rail {
  position: fixed;
  left: 14px;
  top: 92px;
  bottom: 18px;
  width: 18px;
  z-index: 9;
  pointer-events: none;
  opacity: 0.82;
  --progress: 0;
}

.progress-track {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.progress-markers {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.progress-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0.7;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.progress-marker.active {
  background: rgba(255, 255, 255, 0.95);
  opacity: 1;
  transform: scale(1.6);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.55),
    0 0 18px rgba(255, 255, 255, 0.35);
}

.progress-thumb {
  position: absolute;
  left: 50%;
  top: calc(var(--progress) * 100%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 22px rgba(255, 255, 255, 0.35);
}

#world {
  position: fixed;
  inset: 0;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.scene {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
  scroll-margin-top: 70px;
}

.scene-content {
  width: min(1600px, 96vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 7vw, 140px);
  will-change: transform, opacity;
}

.hero-content {
  flex-direction: column;
  text-align: center;
  gap: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.7),
    0 0 40px rgba(255, 255, 255, 0.35);
}

.hero p {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.planet-content {
  width: min(1600px, 96vw);
}

.scene-left .planet-content {
  flex-direction: row;
}

.scene-right .planet-content {
  flex-direction: row-reverse;
}

.planet-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
}

.planet-label {
  display: block;
  text-align: center;
  font-size: clamp(1.05rem, 1.9vw, 1.7rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.planet-label small {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  opacity: 0.72;
}

.scene.active .planet-label {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.planet-img {
  display: block;
  user-select: none;
  pointer-events: auto;
  transform-origin: center center;
  width: var(--planet-w, min(18vw, 160px));
  max-width: 100%;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.14));
  transition: transform 0.45s ease, filter 0.45s ease;
}

.scene .planet-img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.22));
}

.planet-link.active .planet-img {
  transform: scale(var(--planet-zoom, 1.22));
  filter: drop-shadow(0 0 55px rgba(255, 255, 255, 0.35));
}

.planet-info {
  width: var(--info-w, min(38vw, 430px));
  max-width: 100%;
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: var(--info-pad, 26px);
  border-radius: 34px;
  background: rgba(10, 10, 20, 0.58);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateX(0) scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
  position: relative;
  min-width: 0;
}

.scene.active .planet-info {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.planet-info h2 {
  margin: 0 42px 16px 0;
  font-size: var(--info-h2, clamp(2rem, 4vw, 3.2rem));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.planet-info p {
  margin: 0;
  font-size: var(--info-body, 1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.planet-info ul {
  margin: 18px 0 0;
  padding-left: 20px;
  font-size: var(--info-ul, 1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 18px;
}

.fact {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fact span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.fact strong {
  font-size: 1rem;
  font-weight: 700;
}

.close-info {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  font-size: 24px;
  line-height: 38px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.close-info:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
}

/* individuelle Grundgrößen */
.merkur   { --planet-w:min(18vw, 210px); }
.venus    { --planet-w:min(24vw, 290px); }
.erde     { --planet-w:min(26vw, 310px); }
.mars     { --planet-w:min(22vw, 250px); }
.jupiter  { --planet-w:min(52vw, 680px); }
.saturn   { --planet-w:min(48vw, 620px); }
.uranus   { --planet-w:min(34vw, 420px); }
.neptun   { --planet-w:min(34vw, 420px); }
.pluto    { --planet-w:min(16vw, 180px); }
.voyager  { --planet-w:min(14vw, 150px); }