

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 4.5rem;
}

.lightbox.is-offen {
  display: flex;
}

.lightbox__grund {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox__buehne {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

.lightbox__bild {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.lightbox__zaehler {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox__zu {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox__zu:hover {
  opacity: 1;
}

.lightbox__pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.lightbox__pfeil:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__pfeil svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox__pfeil--zurueck { left: 1rem; }
.lightbox__pfeil--vor     { right: 1rem; }

.lightbox--einzeln .lightbox__pfeil,
.lightbox--einzeln .lightbox__zaehler {
  display: none;
}

body.hat-lightbox {
  overflow: hidden;
}

@media (max-width: 767px) {
  .lightbox {
    padding: 3.5rem 0.75rem;
  }
  .lightbox__pfeil--zurueck { left: 0.25rem; }
  .lightbox__pfeil--vor     { right: 0.25rem; }
  .lightbox--pdf {
    padding: 3.5rem 0.5rem 1rem;
  }
}

.lightbox--pdf {
  padding: 4rem 5vw 2.5rem;
}

.lightbox__pdf {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox--pdf .lightbox__pdf {
  display: flex;
}

.lightbox--pdf .lightbox__buehne,
.lightbox--pdf .lightbox__pfeil {
  display: none;
}

.lightbox__pdfrahmen {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.lightbox__pdflink {
  flex: none;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lightbox__pdflink:hover {
  color: #fff;
}
