.cdl-glossary {
  margin: 0;
}

.cdl-glossary__controls {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 100%;
  overflow: visible;
  position: relative;
}

.cdl-glossary__search {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  display: flex;
  flex-shrink: 0;
  left: calc(100% + 1rem);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: box-shadow .2s ease, width .2s ease;
  width: 3rem;
  z-index: 1;
}

.cdl-glossary__search:focus-within {
  box-shadow: 0 0 0 3px rgba(91, 146, 246, .45);
}

.cdl-glossary__search.is-open {
  border: 2px solid #86185f;
  width: 25rem;
}

.cdl-glossary__search-icon {
  fill: none;
  height: 1.25rem;
  stroke: #86185f;
  stroke-linecap: round;
  stroke-width: 2;
  width: 1.25rem;
}

.cdl-glossary__search-input {
  background: transparent;
  border: 0;
  color: #000;
  display: none;
  flex: 1;
  font: inherit;
  font-size: 1rem;
  min-width: 0;
  outline: 0;
  padding: .625rem .75rem;
}

.cdl-glossary__search-input::placeholder {
  color: rgba(0, 0, 0, .65);
}

.is-open .cdl-glossary__search-input {
  display: block;
}

.cdl-glossary__search-toggle {
  align-items: center;
  background: #86185f;
  border: 2px solid #86185f;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 3rem;
  height: 3rem;
  justify-content: center;
  padding: 0;
  transition: background-color .2s ease, color .2s ease;
  width: 3rem;
}

.cdl-glossary__search-toggle:hover {
  background: #fff;
  color: #86185f;
}

.cdl-glossary__search-toggle:focus-visible {
  outline: 3px solid #5b92f6;
  outline-offset: 3px;
}

.cdl-glossary__search-toggle .cdl-glossary__search-icon {
  stroke: currentColor;
}

.cdl-glossary__search-icon-close {
  display: none;
}

.is-open .cdl-glossary__search-icon-search {
  display: none;
}

.is-open .cdl-glossary__search-icon-close {
  display: block;
}

.cdl-glossary__alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 0;
}

.cdl-glossary__alphabet-link {
  color: #86185f;
  font-family: Inter, sans-serif;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.cdl-glossary__alphabet-link:hover,
.cdl-glossary__alphabet-link:focus-visible {
  text-decoration: underline;
}

.cdl-glossary__alphabet-link:focus-visible {
  outline: 2px solid #86185f;
  outline-offset: 3px;
}

.cdl-glossary__alphabet-link.is-unavailable {
  color: rgba(0, 0, 0, .4);
  cursor: default;
  text-decoration: none;
}

.cdl-glossary__group {
  scroll-margin-top: 9rem;
}

.cdl-glossary__group + .cdl-glossary__group {
  margin-top: 4rem;
}

.cdl-glossary__letter {
  color: #86185f;
  margin: 0 0 1.25rem;
}

.cdl-glossary__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.cdl-glossary__card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.cdl-glossary__term {
  color: #86185f;
  margin: 0 0 1rem;
}

.cdl-glossary__definition {
  margin: 0;
}

.cdl-glossary__definition > :first-child {
  margin-top: 0;
}

.cdl-glossary__definition > :last-child {
  margin-bottom: 0;
}

.cdl-glossary__results {
  margin: -2rem 0 2rem;
}

.cdl-glossary__empty {
  color: #86185f;
  font-family: Fraktion, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.search-teaser--glossary {
  cursor: default;
}

.search-teaser--glossary:hover {
  transform: scale(1);
}

@media (max-width: 660px) {
  .cdl-glossary__controls {
    gap: .75rem;
  }
}

.cdl-glossary-tooltip {
  color: #86185f;
  cursor: help;
  font-weight: inherit;
  position: relative;
  text-decoration-color: rgba(134, 24, 95, .55);
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .15s ease, text-decoration-color .15s ease;
}

.cdl-glossary-tooltip:hover,
.cdl-glossary-tooltip:focus,
.cdl-glossary-tooltip.is-active {
  color: #961c6b;
  text-decoration-color: currentColor;
}

.cdl-glossary-tooltip:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(91, 146, 246, .7);
  outline-offset: 3px;
}

.cdl-glossary-tooltip__content {
  background: #fff;
  border: 1px solid rgba(134, 24, 95, .16);
  border-radius: 12px;
  bottom: calc(100% + .5rem);
  box-shadow: 0 12px 28px rgba(134, 24, 95, .18), 0 2px 6px rgba(0, 0, 0, .08);
  color: #292929;
  display: block;
  font-family: Inter, sans-serif;
  font-size: 14px;
  height: auto !important;
  left: 50%;
  line-clamp: none !important;
  line-height: 1.5;
  max-height: none !important;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  padding: 16px 20px 20px;
  pointer-events: none;
  position: absolute;
  text-overflow: clip !important;
  text-align: left;
  transform: translateX(-50%);
  transition: opacity .18s ease, visibility .18s ease;
  visibility: hidden;
  white-space: normal !important;
  width: min(32rem, calc(100vw - 2rem));
  z-index: 2000;
  -webkit-line-clamp: none !important;
  overflow: visible !important;
  overflow-wrap: break-word;
}

.cdl-glossary-tooltip__term {
  color: #86185f;
  display: block;
  font-family: Fraktion, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cdl-glossary-tooltip__definition {
  color: #292929;
  display: block;
  font-weight: 400;
}

.cdl-glossary-tooltip:hover .cdl-glossary-tooltip__content,
.cdl-glossary-tooltip:focus .cdl-glossary-tooltip__content,
.cdl-glossary-tooltip:focus-visible .cdl-glossary-tooltip__content {
  opacity: 1;
  visibility: visible;
}

main .vc_row:has(.cdl-glossary-tooltip) {
  overflow: visible !important;
}

.cdl-glossary-tooltip__content.is-positioned {
  bottom: auto;
  position: fixed;
  transform: none;
}

.cdl-glossary-tooltip__content.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
