/* Aanvulling los gehouden zodat verborgen checkboxen nooit pagina-overloop geven. */
/* In WordPress loopt de gele pagina-achtergrond door rondom de module. */
html,
body {
  background: transparent !important;
  max-width: 100%;
  overflow: hidden;
}

.boek-wrap {
  max-width: 1230px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 22px;
  padding-right: 22px;
}

.boek-kop {
  grid-template-columns: 1fr;
  gap: 0;
}

.formulier-grid .keuzes input,
.privacy input {
  width: 1px;
  height: 1px;
}

.ruimte-beeld {
  height: auto;
  aspect-ratio: 4 / 3;
  position: relative;
  background: #2f2f7e;
}

.ruimte-beeld img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.ruimte-beeld::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(31, 31, 84, .38));
}

.ruimte-beeld span {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 7px;
  font-size: 35px;
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.ruimte-kaart:hover .ruimte-beeld img {
  transform: scale(1.045);
}

@media (max-width: 800px) {
  .ruimte-beeld {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ruimte-beeld img {
    position: absolute;
    inset: 0;
  }

  .ruimte-beeld span {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 10px;
  }
}

@media (max-width: 440px) {
  .boek-wrap,
  .stap,
  .planning-grid,
  .kalender,
  .moment-keuze,
  .weekkop,
  .dagen,
  .blokken,
  .blokken button {
    min-width: 0;
    max-width: 100%;
  }

  .boek-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .planning-grid {
    width: 100%;
  }

  .kalender,
  .moment-keuze {
    width: 100%;
    overflow: hidden;
  }

  .weekkop,
  .dagen {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .dag {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .blokken button {
    width: 100%;
    overflow: hidden;
  }

  .blokken button span {
    min-width: 0;
  }

  .blokken button i {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .ruimte-beeld {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ruimte-beeld img {
    position: static;
  }

  .ruimte-beeld span {
    left: auto;
    right: 12px;
    transform: none;
  }
}
