/* ───────── Allgemeines Layout ───────── */
body {
  margin: 0;
  font-family: sans-serif;
  display: flex;
  height: 100vh;
  background: #000;
  color: #ddd;
  overflow: hidden;
}

/* ───────── Sidebar ───────── */
.sidebar {
  width: 250px;
  background: #111;
  padding: 20px;
  border-right: 1px solid #333;
  box-sizing: border-box;

  position: relative;
  z-index: 1000;

  overflow-y: auto;
  max-height: 100vh;

  /* Optisch abgesetzt */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.6);

  /* Scrollbar dezent (für moderne Browser) */
  scrollbar-width: thin;
  scrollbar-color: #333 #111;
}
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: #111;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 4px;
}

/* Link-Gruppen */
.link-group {
  margin-bottom: 20px;
}
.link-group strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 1em;
}
.timestamp {
  display: block;
  font-size: 0.75em;
  color: #aaa;
  margin-left: 10px;
  margin-top: -4px;
}
a {
  display: block;
  margin-left: 10px;
  margin-bottom: 3px;
  color: #1e90ff;
  text-decoration: none;
  cursor: pointer;
}
a:hover {
  text-decoration: underline;
}

/* ───────── Content-Bereich ───────── */
.content {
  flex-grow: 1;
  background: #000;
  overflow: hidden;
  position: relative;
}

/* Bild/Video-Container */
#image-container {
  position: relative;
  overflow: hidden;
}

/* ───────── Bild & Video ───────── */
#sat-image,
#sat-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
}
#sat-image {
  cursor: grab;
  transform-origin: center center;
  transition: transform 0.05s linear;
  object-fit: contain;
  max-width: none;
  max-height: none;
}
#sat-video {
  display: none;
}

/* ───────── Zoom-Buttons ───────── */
.zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}
.zoom-controls button {
  background: #222;
  color: #fff;
  font-size: 20px;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.7;
}
.zoom-controls button:hover {
  opacity: 1;
  background: #444;
}

/* Cesium-Container: Vollbild hinter Sidebar */
.content{
  flex: 1 1 0;
  position: relative;   /* Bezugspunkt für absolute Kinder */
  overflow: hidden;
  background: #000;
}

#cesiumContainer{
  position: absolute;
  inset: 0;             /* top/right/bottom/left = 0   */
  display: none;        /* per JS ein-/ausblenden */
  z-index: 0;           /* liegt hinter Bild/Video, vor Background */
}

#htmlOverlay{
  position: absolute;
  z-index: 1;           /* Marker über dem Globus */
  pointer-events: none; /* Klicks gehen an Cesium durch */
}
