/* Lexikonverweise: klar unterscheidbar von den normalen SPOREDO-Links. */
a.sporedo-lexikon-term,
a.sporedo-lexikon-term:visited {
  color: #087C83 !important;
  text-decoration-line: underline !important;
  text-decoration-style: dotted !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.18em;
  text-decoration-color: currentColor !important;
  cursor: pointer;
  transition: color .15s ease, text-decoration-thickness .15s ease;
}

a.sporedo-lexikon-term:hover,
a.sporedo-lexikon-term:focus-visible {
  color: #075F65 !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: 2px !important;
}

.sporedo-lexikon-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: 680px;
  max-height: min(82vh, 850px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #243238;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.sporedo-lexikon-dialog::backdrop {
  background: rgba(17, 29, 34, .58);
  backdrop-filter: blur(2px);
}

.sporedo-lexikon-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #e7eeee;
}

.sporedo-lexikon-dialog__title {
  margin: 0;
  color: #087C83;
  font-size: 1.35rem;
  line-height: 1.25;
}

.sporedo-lexikon-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #33454a;
  background: #edf4f4;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.sporedo-lexikon-dialog__body {
  max-height: calc(min(82vh, 850px) - 145px);
  overflow: auto;
  padding: 20px 22px;
  font-size: 1rem;
  line-height: 1.6;
}

.sporedo-lexikon-dialog__body > :first-child { margin-top: 0; }
.sporedo-lexikon-dialog__body > :last-child { margin-bottom: 0; }

.sporedo-lexikon-popup-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 260px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 9px;
}

.sporedo-lexikon-dialog__footer {
  padding: 14px 22px 18px;
  border-top: 1px solid #e7eeee;
  text-align: right;
}

.sporedo-lexikon-dialog__full-entry {
  color: #087C83;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.sporedo-lexikon-dialog__full-entry[hidden] { display: none; }

@media (max-width: 600px) {
  .sporedo-lexikon-dialog {
    width: 100vw;
    max-width: none;
    max-height: 90vh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }
  .sporedo-lexikon-dialog__body {
    max-height: calc(90vh - 135px);
    padding: 17px 18px;
  }
  .sporedo-lexikon-dialog__header,
  .sporedo-lexikon-dialog__footer { padding-left: 18px; padding-right: 18px; }
}
