/* ============================================================
   marketingRAUM — popup.css
   Aktions-Popup · Overlay · Modal · Close
   ============================================================ */

/* ------------------------------------------------------------
   Overlay
   ------------------------------------------------------------ */

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(30, 43, 38, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.popup-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------------------------------------
   Modal Box
   ------------------------------------------------------------ */

.popup {
  position: relative;
  background: var(--color-cream);
  max-width: 520px;
  width: 100%;
  padding: 3.5rem 3rem 3rem;
  transform: translateY(20px);
  transition: transform 0.45s var(--ease-out);
}

.popup-overlay.is-visible .popup {
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Eyebrow / Aktions-Label
   ------------------------------------------------------------ */

.popup__eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sage);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.popup__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Titel & Text
   ------------------------------------------------------------ */

.popup__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-forest);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.popup__title em {
  font-style: italic;
  color: var(--color-mid);
}

.popup__text {
  font-size: 0.9375rem;
  color: var(--color-sage);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */

.popup__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--color-forest);
  color: var(--color-cream);
  padding: 0.9rem 2.25rem;
  border-radius: 2px;
  border: 1px solid var(--color-forest);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.popup__cta:hover {
  background: var(--color-forest-light);
  border-color: var(--color-forest-light);
}

.popup__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.popup__cta:hover svg {
  transform: translate(3px, -3px);
}

/* ------------------------------------------------------------
   Close Button
   ------------------------------------------------------------ */

.popup__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-sage);
  opacity: 0.6;
  transition: opacity 0.25s;
  padding: 0;
}

.popup__close:hover {
  opacity: 1;
}

.popup__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ------------------------------------------------------------
   Akzentlinie links
   ------------------------------------------------------------ */

.popup::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3rem;
  bottom: 3rem;
  width: 2px;
  background: var(--color-sage);
  opacity: 0.25;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 600px) {
  .popup {
    padding: 2.5rem 1.75rem 2rem;
  }
}
