/* H&K historische Wasserschutz-Karten – Lightbox v4.0 */
.hakni-lightbox {
  box-sizing: border-box !important;
  width: min(96vw, 1600px) !important;
  max-width: none !important;
  height: min(94dvh, 1000px) !important;
  max-height: none !important;
  margin: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 9px !important;
  background: #1b2028 !important;
  color: #fff !important;
  box-shadow: 0 16px 75px rgba(0,0,0,.48) !important;
  font: 15px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif !important;
}
.hakni-lightbox::backdrop { background: rgba(0,0,0,.86); }
.hakni-lightbox *, .hakni-lightbox *::before, .hakni-lightbox *::after { box-sizing: border-box; }
.hakni-lightbox__layout { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.hakni-lightbox__header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 52px; flex: 0 0 auto; padding: 8px 12px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.hakni-lightbox__title { font-size: 15px; line-height: 1.35; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hakni-lightbox__controls { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.hakni-lightbox button {
  appearance: none; border: 1px solid rgba(255,255,255,.30); border-radius: 5px;
  background: #333c49; color: #fff; width: 35px; min-height: 35px; padding: 5px;
  font: inherit; line-height: 1; cursor: pointer;
}
.hakni-lightbox button:hover:not(:disabled), .hakni-lightbox button:focus-visible { background: #a92225; border-color: #fff; }
.hakni-lightbox button:focus-visible, .hakni-lightbox a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hakni-lightbox button:disabled { opacity: .35; cursor: default; }
.hakni-lightbox__close { font-size: 25px !important; }
.hakni-lightbox__stage {
  display: flex; align-items: center; justify-content: center;
  position: relative; flex: 1 1 auto; min-height: 0; min-width: 0;
  overflow: auto; padding: 14px; text-align: center;
}
.hakni-lightbox__image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; }
.hakni-lightbox__iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.hakni-lightbox__stage[data-kind="html"] { padding: 0; }
.hakni-lightbox__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 42px; flex: 0 0 auto; padding: 6px 16px;
  border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; color: #dde4ed;
}
.hakni-lightbox__counter { white-space: nowrap; }
.hakni-lightbox__original { color: #fff !important; font-size: 12px; text-decoration: underline !important; }
.hakni-lightbox__original:hover { color: #ffc8c8 !important; }
body.hakni-lightbox-open { overflow: hidden !important; }
@media (max-width: 620px) {
  .hakni-lightbox { width: 100vw !important; height: 100dvh !important; border: 0 !important; border-radius: 0 !important; }
  .hakni-lightbox__header { padding: 6px 9px; }
  .hakni-lightbox__stage { padding: 6px; }
  .hakni-lightbox__footer { padding: 6px 10px; }
}

.hakni-lightbox [hidden] { display: none !important; }
