/* =========================================================
   Versandkosten-Hinweis (Popup)
   Hengelhaupt Verbindungstechnik
   ========================================================= */

.dhv-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 16, 45, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dhv-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.dhv-popup {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: #333333;
  text-align: left;
}

.dhv-popup-overlay.is-open .dhv-popup {
  transform: translateY(0) scale(1);
}

/* Kopfbereich */
.dhv-popup__header {
  position: relative;
  padding: 24px 62px 22px 24px;
  background: linear-gradient(135deg, #1a1e6c 0%, #2d40e8 100%);
  color: #ffffff;
  border-radius: 14px 14px 0 0;
}

.dhv-popup__eyebrow {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.82;
}

.dhv-popup__title {
  margin: 0;
  font-family: "Raleway", "Open Sans", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.dhv-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dhv-popup__close:hover,
.dhv-popup__close:focus {
  background: rgba(255, 255, 255, 0.26);
  outline: none;
}

/* Inhalt */
.dhv-popup__body {
  padding: 24px 28px 6px;
}

.dhv-popup__body p {
  margin: 0 0 15px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #333333;
}

.dhv-popup__amount {
  color: #1a1e6c;
  font-weight: 700;
  white-space: nowrap;
}

/* Vergleich der Versandkosten */
.dhv-popup__compare {
  margin: 4px 0 18px;
  border: 1px solid #dfe3f7;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f8ff;
}

.dhv-popup__compare-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
}

.dhv-popup__compare-row + .dhv-popup__compare-row {
  border-top: 1px solid #dfe3f7;
}

.dhv-popup__compare-label {
  flex: 1 1 auto;
  font-size: 14px;
  color: #3c3f57;
}

.dhv-popup__compare-price {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  color: #1a1e6c;
  white-space: nowrap;
}

.dhv-popup__compare-note {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: #2d40e8;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
}

.dhv-popup__thanks {
  font-weight: 600;
  color: #1a1e6c !important;
}

/* Fußbereich */
.dhv-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 28px 24px;
}

.dhv-popup__link {
  font-size: 13.5px;
  color: #2d40e8;
  text-decoration: underline;
}

.dhv-popup__link:hover,
.dhv-popup__link:focus {
  color: #1a1e6c;
}

.dhv-popup__btn {
  display: inline-block;
  padding: 10px 26px;
  border: 0;
  border-radius: 6px;
  background: #2d40e8;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dhv-popup__btn:hover,
.dhv-popup__btn:focus {
  background: #1a1e6c;
  outline: none;
}

body.dhv-popup-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 575px) {
  .dhv-popup-overlay {
    padding: 12px;
  }

  .dhv-popup {
    max-height: calc(100vh - 24px);
  }

  .dhv-popup__header {
    padding: 20px 54px 18px 18px;
  }

  .dhv-popup__title {
    font-size: 1.12rem;
  }

  .dhv-popup__body {
    padding: 20px 18px 4px;
  }

  .dhv-popup__body p {
    font-size: 14.5px;
  }

  .dhv-popup__compare-row {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 10px 12px;
  }

  .dhv-popup__compare-label {
    flex: 1 1 100%;
  }

  .dhv-popup__footer {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 4px 18px 20px;
    gap: 12px;
  }

  .dhv-popup__btn {
    width: 100%;
  }

  .dhv-popup__link {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dhv-popup-overlay,
  .dhv-popup,
  .dhv-popup__close,
  .dhv-popup__btn {
    transition: none;
  }

  .dhv-popup {
    transform: none;
  }
}
