/*
 * werredocs – Besucher-Infomodal
 * Stand: 15 May 2026
 */

#werredocs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

body.werredocs-modal-open {
  overflow: hidden;
}

#werredocs-modal.is-open {
  display: block;
}

#werredocs-modal .werredocs-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 400px at 50% 110%, rgba(30, 64, 175, 0.25), transparent 60%),
    rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

#werredocs-modal .werredocs-dialog {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 120%);
  width: min(760px, calc(100% - 20px));
  padding: 20px 20px 16px;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fbff 60%, #eef4ff 100%);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(30, 64, 175, 0.08) inset;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

#werredocs-modal.is-open .werredocs-dialog {
  transform: translate(-50%, 0);
}

#werredocs-modal .werredocs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1e40af;
  background: #dbeafe;
}

#werredocs-modal .werredocs-title {
  margin: 0 30px 10px 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0f172a;
}

#werredocs-modal .werredocs-content {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.58;
}

#werredocs-modal .werredocs-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

#werredocs-modal .werredocs-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

#werredocs-modal .werredocs-btn {
  appearance: none;
  border: 1px solid #1d4ed8;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
}

#werredocs-modal .werredocs-btn:hover {
  filter: brightness(1.03);
}

#werredocs-modal .werredocs-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

#werredocs-modal .werredocs-close:hover {
  background: #f8fafc;
  color: #0f172a;
}

@media (min-width: 720px) {
  #werredocs-modal .werredocs-dialog {
    bottom: 20px;
    border-radius: 20px;
    width: min(760px, calc(100% - 40px));
  }
}

@media (max-width: 640px) {
  #werredocs-modal .werredocs-dialog {
    width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 14px 14px;
  }

  #werredocs-modal .werredocs-title {
    margin-right: 24px;
  }

  #werredocs-modal .werredocs-actions {
    justify-content: stretch;
  }

  #werredocs-modal .werredocs-btn {
    width: 100%;
    min-height: 44px;
  }
}
