/* ===================================================
   Aloe Fresca – Schliessungs-Popup
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

/* Overlay */
#af-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 42, 30, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: af-fadeIn 0.4s ease forwards;
}

#af-popup-overlay.af-hidden {
  display: none;
}

/* Popup Box */
#af-popup-box {
  position: relative;
  background: #faf8f3;
  border-radius: 4px;
  max-width: 480px;
  width: 100%;
  padding: 52px 48px 44px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.08),
    0 20px 60px rgba(0,0,0,0.18);
  animation: af-slideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-top: 3px solid #7a9e6e;
}

/* Decorative leaf accent */
#af-popup-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #a8c89a;
  border-radius: 0 0 3px 3px;
}

/* Close Button */
#af-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: #c0392b;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
  line-height: 1;
}

#af-popup-close:hover {
  background: #96281b;
  transform: scale(1.1);
}

#af-popup-close svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Aloe icon */
.af-icon {
  display: block;
  margin: 0 auto 20px;
  width: 48px;
  height: 48px;
  opacity: 0.65;
}

/* Heading */
#af-popup-box h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #2c3e2d;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Subline */
#af-popup-box .af-subline {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a9e6e;
  text-align: center;
  margin: 0 0 28px;
}

/* Divider */
.af-divider {
  width: 40px;
  height: 1px;
  background: #c8d8c0;
  margin: 0 auto 28px;
  display: block;
}

/* Body text */
#af-popup-box p {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #4a5c4b;
  line-height: 1.75;
  text-align: center;
  margin: 0 0 10px;
}

#af-popup-box p:last-of-type {
  margin-bottom: 0;
}

/* Links */
#af-popup-box a {
  color: #5a8a4e;
  text-decoration: none;
  border-bottom: 1px solid #a8c89a;
  transition: color 0.2s, border-color 0.2s;
  font-weight: 400;
}

#af-popup-box a:hover {
  color: #2c3e2d;
  border-color: #5a8a4e;
}

/* Info block */
.af-info-block {
  background: #f0f5ec;
  border-left: 3px solid #7a9e6e;
  border-radius: 0 3px 3px 0;
  padding: 14px 18px;
  margin-top: 24px;
  text-align: left;
}

.af-info-block p {
  text-align: left;
  font-size: 0.88rem;
  color: #4a5c4b;
  margin: 0 0 6px;
}

.af-info-block p:last-child {
  margin-bottom: 0;
}

/* Footer note */
.af-footer-note {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: #9aaa9a;
  text-align: center;
  margin-top: 22px;
  display: block;
}

/* Animations */
@keyframes af-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes af-slideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Mobile */
@media (max-width: 520px) {
  #af-popup-box {
    padding: 44px 28px 36px;
  }
  #af-popup-box h2 {
    font-size: 1.3rem;
  }
}