.termin-bild-vorschau {
  display: inline-grid;
  max-width: 100%;
  justify-items: start;
  gap: .35rem;
  margin-bottom: .75rem;
  cursor: zoom-in;
}

.termin-bild-vorschau .event-image {
  max-width: 100%;
  margin-bottom: 0;
}

.termin-bild-vorschau span {
  color: #174d9c;
  font-weight: 700;
  text-decoration: underline;
}

.termin-bildzoom {
  width: min(72rem, calc(100% - 1rem));
  max-width: none;
  max-height: calc(100% - 1rem);
  height: min(60rem, calc(100dvh - 1rem));
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #bccce1;
  border-radius: 14px;
  background: #fff;
  color: #0f1f38;
  overflow: hidden;
}

.termin-bildzoom[open] {
  display: flex;
  flex-direction: column;
}

.termin-bildzoom::backdrop { background: rgba(10, 22, 42, .78); }

.termin-bildzoom-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: .65rem;
}

.termin-bildzoom-leiste h2 { font-size: 1rem; margin: 0 auto 0 0; }
.termin-bildzoom-leiste form { margin: 0; }

.termin-bildzoom-leiste button,
.termin-bildzoom-leiste a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .3rem .6rem;
  box-sizing: border-box;
  border: 1px solid #bccce1;
  border-radius: 8px;
  color: #174d9c;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.termin-bildzoom-leiste button:disabled { opacity: .45; cursor: default; }
.termin-bildzoom-inhalt {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #e9eef6;
}
.termin-bildzoom-inhalt img {
  display: block;
  height: auto;
  max-width: none;
  margin: 12px auto;
}
