/* ==========================================================
   Wat wij gedaan hebben — paginastijl
   Tekstblok naast een staande video, om en om gespiegeld.
   ========================================================== */

:root {
  --gedaan-groen-donker: #1e6f43;
  --gedaan-groen: #2a9e5c;
  --gedaan-groen-licht: #e3f8ec;
  --gedaan-tekst: #2f3d36;
  --gedaan-grijs: #667a70;
}

/* ---------- HERO ---------- */
.gedaan-hero {
  position: relative;
  background: url('/assets/img/gedaan/poster-woning.jpg') center/cover no-repeat;
  background-color: #16301f;
  color: #fff;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.gedaan-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 111, 67, .94), rgba(42, 158, 92, .82));
}

.gedaan-hero .container { position: relative; z-index: 2; }

.gedaan-hero-inner { max-width: 720px; margin: 0 auto; }

.gedaan-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .45);
  padding: .35rem 1.1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.gedaan-hero h1 {
  font-size: clamp(1.9rem, 4.8vw, 2.9rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.gedaan-hero p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 540px;
  opacity: .95;
}

/* ---------- BLOKKEN ---------- */
.gedaan-blok { padding: 4.5rem 0; background: #fff; }
.gedaan-blok-alt { background: var(--gedaan-groen-licht); }

.gedaan-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}

/* Gespiegelde variant: video links, tekst rechts */
.gedaan-grid-omgekeerd { grid-template-columns: 380px 1fr; }

.gedaan-label {
  display: inline-block;
  background: #fff;
  color: var(--gedaan-groen-donker);
  border: 1px solid #bfe3cd;
  font-size: .82rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 50px;
  margin-bottom: .8rem;
}

.gedaan-tekst h2 {
  color: var(--gedaan-groen-donker);
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 1.2rem;
}

.gedaan-tekst p {
  color: var(--gedaan-tekst);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.gedaan-nadruk {
  border-left: 4px solid var(--gedaan-groen);
  padding: .4rem 0 .4rem 1.2rem;
  color: var(--gedaan-groen-donker) !important;
  font-weight: 600;
}

.gedaan-knoppen {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.gedaan-knoppen-midden { justify-content: center; }

/* ---------- VIDEO ---------- */
.gedaan-video { margin: 0; }

/* De video's zijn staand opgenomen; een vaste maximumhoogte
   voorkomt dat ze het tekstblok wegdrukken. */
.gedaan-video video {
  width: 100%;
  max-height: 620px;
  border-radius: 14px;
  background: #000;
  display: block;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.gedaan-video figcaption {
  text-align: center;
  color: var(--gedaan-grijs);
  font-size: .88rem;
  margin-top: .7rem;
  line-height: 1.5;
}

/* ---------- AFSLUITER ---------- */
.gedaan-cta {
  position: relative;
  background: url('/assets/img/tuktuk/bus-blauw-avond.jpg') center/cover no-repeat;
  background-color: #1e6f43;
  padding: 4.5rem 0;
  text-align: center;
  color: #fff;
}

.gedaan-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 111, 67, .93), rgba(42, 158, 92, .85));
}

.gedaan-cta .container { position: relative; z-index: 2; }

.gedaan-cta h2 { font-size: 2rem; margin: 0 0 1rem; }

.gedaan-cta p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 1.05rem;
}

/* ---------- RESPONSIEF ---------- */
@media (max-width: 900px) {
  .gedaan-grid,
  .gedaan-grid-omgekeerd {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  /* Op smal scherm altijd eerst de tekst, dan de video */
  .gedaan-grid-omgekeerd .gedaan-video { order: 2; }
  .gedaan-grid-omgekeerd .gedaan-tekst { order: 1; }

  .gedaan-video { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .gedaan-hero { padding: 4rem 0 3.5rem; }
  .gedaan-knoppen .btn { width: 100%; }
}

/* ============ KERST: EXTRA VIDEO'S ============ */
.kerst-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.kerst-videos .gedaan-video video {
  height: 400px;
}

/* ============ KERST: FOTOGALERIJ ============ */
.kerst-galerij-titel {
  text-align: center;
  color: var(--gedaan-groen-donker);
  font-size: 1.6rem;
  margin: 3.5rem 0 .4rem;
}

.kerst-galerij-intro {
  text-align: center;
  color: var(--gedaan-grijs);
  font-size: .95rem;
  margin: 0 0 2rem;
}

.kerst-galerij {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .9rem;
}

/* Elke foto is een knop, zodat hij ook met het toetsenbord te openen is */
.kerst-foto {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.kerst-foto img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.kerst-foto:hover img,
.kerst-foto:focus-visible img {
  transform: scale(1.06);
}

.kerst-foto:focus-visible {
  outline: 3px solid var(--gedaan-groen);
  outline-offset: 3px;
}

/* ============ LICHTBAK ============ */
.lichtbak {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(12, 26, 18, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.lichtbak[hidden] { display: none; }

.lichtbak-inhoud {
  margin: 0;
  max-width: 1000px;
  max-height: 100%;
  text-align: center;
}

.lichtbak-inhoud img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
}

.lichtbak-inhoud figcaption {
  color: #eafaf0;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.lichtbak button {
  position: absolute;
  background: rgba(255, 255, 255, .14);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.lichtbak button:hover,
.lichtbak button:focus-visible {
  background: rgba(255, 255, 255, .3);
}

.lichtbak-sluit    { top: 1.2rem; right: 1.2rem; font-size: 2.2rem; }
.lichtbak-vorige   { left: 1.2rem;  top: 50%; transform: translateY(-50%); }
.lichtbak-volgende { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
  .kerst-foto img { height: 150px; }
  .lichtbak-vorige   { left: .5rem;  width: 44px; height: 44px; }
  .lichtbak-volgende { right: .5rem; width: 44px; height: 44px; }
  .lichtbak-inhoud img { max-height: 68vh; }
}
