:root{
  --coord-font: "koordinaten", monospace;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden; /* wichtig: keine Browser-Scrollbars */
  background: #d4d8d6;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Viewport = Fenster */
#viewport {
  position: fixed;
  inset: 0;
  touch-action: none; /* wir managen Gesten selbst */
  user-select: none;
  -webkit-user-select: none;
}

/* Hintergrund-Canvas */
#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* World = Koordinatensystem, wird transformiert */
#world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

/* Elemente ("cards") */
.item {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: grab;
  touch-action: none;
}

.item:active { cursor: grabbing; }

.item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Text soll schweben (ohne Karte) */
.item.text {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  color: rgba(40,40,40,0.80);
  font-size: 14px;
  line-height: 1.35;
}

.item.text.coord {
  font-family: var(--coord-font);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(50,50,50,0.55);
}

/* Hint */
#hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
}
/* Koordinaten: sehr klein, trocken, schwebend */
.item.text.coord{
  /* Hier kommt gleich die Adobe-Schrift rein */
  font-family: var(--coord-font, system-ui);
  font-size: 10px;              /* Grundgröße – wächst später per Zoom */
  letter-spacing: 0.04em;
  color: rgba(50,50,50,0.55);
  background: transparent;
  box-shadow: none;
}
.item {
  opacity: 1;
  transition: opacity 300ms ease;
}

.item.is-hidden {
  opacity: 0;
  pointer-events: none;
}

