/* slotcar-treff.de - Lightbox fuer Fotos (ohne Fremdbibliothek, ohne Datenuebertragung) */
a[data-lb] { cursor: zoom-in; }
body.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 100000; display: none;
  background: #0e1012; color: #f2f3f4;
  font-family: "Segoe UI", -apple-system, system-ui, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.lb.lb-on { display: block; }
.lb-stage { position: absolute; inset: 3.4rem 0 4.6rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; display: block;
  transform-origin: 0 0; will-change: transform; cursor: zoom-in;
  -webkit-user-drag: none; user-drag: none;
}
.lb-img.lb-zoomed { cursor: grab; }
.lb-img.lb-drag { cursor: grabbing; }
.lb-spin {
  position: absolute; left: 50%; top: 50%; width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.1rem;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%;
  animation: lb-rot .8s linear infinite; display: none;
}
.lb.lb-busy .lb-spin { display: block; }
@keyframes lb-rot { to { transform: rotate(360deg); } }
.lb-top, .lb-bot { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: .4rem; padding: 0 .6rem; }
.lb-top { top: 0; height: 3.4rem; justify-content: space-between; }
.lb-bot { bottom: 0; min-height: 4.6rem; padding-top: .4rem; padding-bottom: .5rem; flex-direction: column; justify-content: center; text-align: center; }
.lb-count { font-size: .9rem; opacity: .85; padding-left: .4rem; }
.lb-tools { display: flex; gap: .2rem; flex-wrap: wrap; justify-content: flex-end; }
.lb-btn {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; margin: 0; text-decoration: none; line-height: 1; font-size: 1rem; letter-spacing: 0; text-transform: none;
  box-shadow: none; min-height: 0;
}
.lb-btn:hover { background: rgba(255, 255, 255, .14); }
.lb-btn:focus-visible { outline: 3px solid #8cc4ff; outline-offset: 1px; }
.lb-btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lb-btn[hidden] { display: none; }
.lb-nav { position: absolute; top: 50%; margin-top: -1.4rem; background: rgba(0, 0, 0, .35); z-index: 2; }
.lb-prev { left: .5rem; } .lb-next { right: .5rem; }
.lb-cap { margin: 0; font-size: .95rem; line-height: 1.35; max-width: 60rem; }
.lb-links { margin: .25rem 0 0; font-size: .85rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.lb-links a, .lb-links button {
  color: #bfe0ff; background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; text-transform: none; letter-spacing: 0; min-height: 0; box-shadow: none; width: auto; height: auto; border-radius: 0;
}
.lb-links a:hover, .lb-links button:hover { color: #fff; background: none; }
.lb-links a:focus-visible, .lb-links button:focus-visible { outline: 3px solid #8cc4ff; outline-offset: 2px; }
.lb-toast {
  position: absolute; left: 50%; bottom: 5.4rem; transform: translateX(-50%); background: #fff; color: #1d2023;
  padding: .45rem .9rem; border-radius: .5rem; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.lb-toast.lb-show { opacity: 1; }
@media (max-width: 640px) {
  .lb-nav { display: none; }
  .lb-btn { width: 2.6rem; height: 2.6rem; }
  .lb-stage { inset: 3.4rem 0 5rem; }
}
@media (prefers-reduced-motion: reduce) { .lb-spin { animation-duration: 2.4s; } .lb-toast { transition: none; } }
@media print { .lb { display: none !important; } }
