/* Info-Button im Filter neben dem Titel */
.vx-term-info-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: 0.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
}

.vx-term-info-trigger i {
  line-height: 1;
}

/* Overlay-Grundstruktur */
.vx-term-info-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.vx-term-info-overlay.is-visible {
  display: block;
}

.vx-term-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.vx-term-info-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  max-width: 600px;
  width: calc(100% - 40px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 20px 24px;
}

.vx-term-info-inner {
  max-height: 70vh;
  overflow-y: auto;
}

.vx-term-info-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.vx-term-info-body {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Close-Button */
.vx-term-info-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Optional: Scroll-Lock wenn Overlay offen */
body.vx-term-info-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .vx-term-info-modal {
    max-width: 100%;
    width: calc(100% - 20px);
    padding: 16px 18px;
  }

  .vx-term-info-title {
    font-size: 1rem;
  }

  .vx-term-info-body {
    font-size: 0.9rem;
  }
}
