/* Leer Jezus Kennen — popup op de homepage naar /halloween (tot en met 2 november 2026).
   Het pompoenontwerp van /halloween in het klein: warm zwart, crème tekst, pompoenoranje knop, gescheurd papier.
   Alleen geladen zolang build.js de popup aanzet (pagina_css van de homepage). */

.pop-licht {
  --nacht: #0c0705;
  --creme: #fff4ef;
  --creme-zacht: rgba(255, 244, 239, 0.82);
  --gloed: #e8862e;
  --gloed-licht: #f4a85a;
  width: min(780px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--creme-zacht);
  overflow: visible;
  filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.pop-licht::backdrop {
  background: rgba(12, 7, 5, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.pop-licht[open] { animation: pop-licht-in 0.7s var(--ease-out); }
.pop-licht[open]::backdrop { animation: pop-licht-vaag 0.5s ease-out; }
@keyframes pop-licht-in { from { opacity: 0; transform: translateY(28px) rotate(-1.5deg) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pop-licht-vaag { from { opacity: 0; } }

.pop-licht-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background:
    radial-gradient(ellipse 70% 55% at 85% 0%, rgba(232, 134, 46, 0.22) 0%, rgba(232, 134, 46, 0) 100%),
    var(--nacht);
  clip-path: var(--paper-a);
  outline: none;
}
.pop-licht-beeld { position: relative; min-height: 100%; }
.pop-licht-beeld img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; filter: brightness(1.08) saturate(1.05); }
/* De foto loopt zacht over in het donker van de tekst */
.pop-licht-beeld::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 7, 5, 0) 55%, var(--nacht) 100%); }

.pop-licht-tekst { padding: 48px 46px 42px 34px; }
.pop-licht-boven {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--creme);
}
.pop-licht h2 {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--creme);
}
.pop-licht-tekst > p:not(.pop-licht-boven) { margin-top: 16px; font-size: 1rem; line-height: 1.7; }
.pop-licht-tekst > h2 + p { margin-top: 22px; }

.pop-licht-knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.pop-licht .btn-cta { background: var(--gloed); color: var(--nacht); white-space: normal; text-align: left; }
.pop-licht .btn-cta:hover { background: var(--gloed-licht); color: var(--nacht); }
.pop-licht-later {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 244, 239, 0.35);
  background: none;
  color: var(--creme-zacht);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.pop-licht-later:hover { color: var(--creme); border-bottom-color: var(--creme); }

.pop-licht-x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 244, 239, 0.1);
  color: var(--creme);
  clip-path: var(--tear-pill);
  cursor: pointer;
  transition: background 0.3s var(--ease-out);
}
.pop-licht-x:hover { background: rgba(255, 244, 239, 0.22); }
.pop-licht :focus-visible { outline: 3px solid var(--gloed); outline-offset: 3px; }

@media (max-width: 640px) {
  .pop-licht-in { grid-template-columns: 1fr; }
  .pop-licht-beeld { min-height: 0; }
  .pop-licht-beeld img { aspect-ratio: 16 / 9; height: auto; object-position: 50% 60%; }
  .pop-licht-beeld::after { background: linear-gradient(180deg, rgba(12, 7, 5, 0) 50%, var(--nacht) 100%); }
  .pop-licht-tekst { padding: 4px 24px 28px; }
  .pop-licht-boven { font-size: 1.3rem; }
  .pop-licht h2 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .pop-licht-x { top: 10px; right: 10px; background: rgba(12, 7, 5, 0.55); }
  .pop-licht-knoppen { margin-top: 24px; gap: 6px 20px; }
  .pop-licht .btn-cta { padding: 12px 20px; font-size: 0.75rem; letter-spacing: 0.04em; }
}
/* Lage telefoons: minder hoge foto en iets kleinere tekst, zodat alles zonder scrollen past */
@media (max-width: 640px) and (max-height: 720px) {
  .pop-licht-beeld img { aspect-ratio: 2 / 1; }
  .pop-licht h2 { font-size: clamp(1.8rem, 8.5vw, 2.3rem); }
  .pop-licht-tekst > p:not(.pop-licht-boven) { margin-top: 10px; font-size: 0.95rem; line-height: 1.6; }
  .pop-licht-tekst > h2 + p { margin-top: 14px; }
  .pop-licht-knoppen { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pop-licht[open], .pop-licht[open]::backdrop { animation: none; }
}
