/* Praktijk Dennis Roovers | Ontwerp & ontwikkeling: 4Content | https://4content.be */
.hero-image > img,
.hero-image > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.hero-image > video {
  opacity: 0;
}
.hero-image > video.klaar {
  opacity: 1;
}
.actie-knop {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border: 1px solid #ffffff60;
  border-radius: 24px;
  background: #20392feb;
  color: white;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.actie-knop:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.actie-knop {
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}
.actie-knop[hidden],
.hero-endcard[hidden] {
  display: none;
}
.hero-endcard {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 30px;
  background: radial-gradient(ellipse at 50% 42%, #edf2eb 0%, #e0e9df 68%, #d9e4d9 100%);
  color: #58675c;
  text-align: center;
}
.hero-endcard img {
  width: min(48%, 210px);
  height: auto;
}
.hero-endcard .endcard-name {
  margin: 0;
  line-height: 1.4;
}
.hero-endcard .endcard-name span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-endcard .endcard-name strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 2.5vw, 38px);
  letter-spacing: -.02em;
  font-weight: 500;
}

.hero-endcard:not([hidden]) { animation: endcard-reveal 900ms ease-out both; }
@keyframes endcard-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-endcard:not([hidden]) { animation: none; }
}
