/* Schwebende Nächte (js/schwebe.js): alle Nächte einer Welt als kleine Flyer im Raum, Zähler als Anker, Lichttisch mit allen Nächten. */
.schwebe { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.schwebe-ding {
  position: absolute; left: 0; top: 0; width: 88px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--schwarz); color: var(--weiss); pointer-events: auto; cursor: pointer;
  transform-origin: 50% 50%; will-change: auto; visibility: hidden;
}
.schwebe-ding img { display: block; width: 100%; height: auto; max-height: 124px; object-fit: cover; }
.schwebe-ding.ohne-bild { width: auto; padding: 3px 7px; font-family: var(--mono); font-size: 0.72rem; white-space: nowrap; }
.schwebe-ding.jetzt { outline: 2px solid var(--weiss); outline-offset: 2px; }
/* Die Stapelung folgt der Tiefe (z-index 35 bis 100, js/schwebe.js); der gezeigte Flyer liegt darüber.
   :hover nur mit Maus, auf dem Telefon bliebe es am zuletzt angetippten Flyer kleben */
.schwebe-ding:focus-visible { opacity: 1 !important; z-index: 101 !important; outline: 2px solid var(--weiss); }
@media (hover: hover) {
  .schwebe-ding:hover { opacity: 1 !important; z-index: 101 !important; outline: 2px solid var(--weiss); }
}

.schwebe-anker {
  position: fixed; left: 24px; top: calc(58px + clamp(3rem, 9vw, 8rem) + 28px); z-index: 8;
  display: flex; align-items: center; gap: 2px; background: var(--tafel); color: var(--tafel-schrift); font-size: 0.8rem;
}
.schwebe-anker button { color: inherit; padding: 6px 10px; line-height: 1; }
.schwebe-anker .schwebe-zurueck, .schwebe-anker .schwebe-vor { font-size: 1.2rem; }
.schwebe-anker .schwebe-zahl { padding: 0 4px; min-width: 5.2em; text-align: center; }
.schwebe-anker .schwebe-alle { border-left: 1px solid currentColor; margin-left: 4px; text-decoration: underline; text-underline-offset: 3px; }
/* Marc (26.09.2026): «All nights» fett, damit man es beim Scrollen findet */
.schwebe-anker .schwebe-alle { font-weight: 700; }
body.im-menue .schwebe-anker, body.im-menue .schwebe { display: none; }
body[data-karte="glas"] .schwebe-anker {
  background: rgba(214, 210, 205, 0.42); color: var(--schwarz);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
body[data-karte="weiss"] .schwebe-anker { background: var(--weiss); color: var(--schwarz); }
body[data-karte="glas"][data-dunkel="true"] .schwebe-anker { background: rgba(214, 210, 205, 0.74); }

/* Lichttisch: alle Nächte der Welt auf einen Blick */
.lichttisch-alle {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding: 22px 24px 96px;
  background: color-mix(in srgb, var(--grund) 90%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.lichttisch-alle[hidden] { display: none; }
body.mit-lichttisch { overflow: hidden; }
.lichttisch-alle header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.lichttisch-alle h2 { margin: 0; font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; }
.lichttisch-alle h2 span { font-size: 0.9rem; letter-spacing: 0; vertical-align: middle; background: var(--schwarz); color: var(--weiss); padding: 3px 7px; }
.lichttisch-zu { background: var(--schwarz); color: var(--weiss); padding: 8px 14px; font-weight: 700; }
.lichttisch-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lichttisch-ding { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--schwarz); color: var(--weiss); padding: 8px 8px 10px; }
.lichttisch-ding img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #111; }
.lichttisch-leer { display: grid; place-items: center; aspect-ratio: 3 / 4; border: 1px solid rgba(255, 255, 255, 0.4); font-family: var(--mono); font-size: 0.8rem; padding: 6px; text-align: center; }
.lichttisch-ding .mono { font-size: 0.72rem; }
.lichttisch-ding b { font-size: 0.86rem; line-height: 1.2; }
.lichttisch-ding:hover, .lichttisch-ding:focus-visible { outline: 2px solid var(--schwarz); outline-offset: 2px; }

@media (max-width: 700px) {
  .schwebe-ding { width: 60px; }
  .schwebe-anker { left: 16px; top: calc(50px + clamp(3rem, 9vw, 8rem) + 24px); }
  .lichttisch-alle { padding: 16px 16px 90px; }
  .lichttisch-raster { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .schwebe-ding { will-change: auto; }
}
.schwebe-ding.an { will-change: transform, opacity; }
.lichttisch-jahr { margin: 28px 0 12px; font-size: 1.6rem; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; }
.lichttisch-jahr span { font-size: 0.8rem; background: var(--schwarz); color: var(--weiss); padding: 2px 6px; }
.lichttisch-welt { font-style: normal; font-size: 0.66rem; opacity: 0.75; }
/* Dunkle Welten (Berlin, Hive): Schrift, Zahlen und Close auf dem dunklen Lichttisch hell (Marc, 26.09.2026) */
body[data-dunkel="true"] .lichttisch-alle { color: var(--weiss); }
body[data-dunkel="true"] .lichttisch-alle :is(h2 span, .lichttisch-jahr span, .lichttisch-zu) { background: var(--weiss); color: var(--schwarz); }
body[data-dunkel="true"] .lichttisch-ding:is(:hover, :focus-visible) { outline-color: var(--weiss); }
