.banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;

  /* hoogte komt uit CSS vars (geen inline height meer) */
  height: var(--banner-height, 85vh);

  /* geen animatie bij height-wissel */
  transition: none;
}

.banner-section .background-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner-section .wrapper {
  position: relative;
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 50px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.banner-section .overlay-box,
.banner-section .overlay-text-only {
  position: relative;
  display: flex;
  flex-direction: column;
}

.typing {
  color: rgb(185, 0, 74);
}

.overlay-box {
  width: 340px;
  padding: 24px;
  border-radius: 4px;
  backdrop-filter: blur(1px);
  overflow: hidden;
}

.overlay-title {
  margin: 0;
  font-weight: 500;
  line-height: 1.1;
  font-size: clamp(32px, 5vw, 72px);
  overflow-wrap: break-word;
}

.overlay-sub {
  margin-top: 6px;
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(18px, 3.5vw, 36px);
  overflow-wrap: break-word;
}

.typing {
  margin-top: -12px;
  font-size: 30px;
  font-weight: 500;
  white-space: nowrap;
  color: #ffffff;
}

.overlay-text-only .overlay-title {
  font-size: clamp(40px, 6vw, 90px);
}

.overlay-text-only .overlay-sub {
  font-size: clamp(22px, 4vw, 42px);
}

@media (max-width: 900px) {
  .overlay-box {
    width: 260px;
    padding: 18px;
  }
}

/* Mobile hoogte komt uit var --banner-height-mobile */
@media (max-width: 768px) {
  .banner-section {
    height: var(--banner-height-mobile, 60vh);
  }
}

@media (max-width: 600px) {
  .overlay-box {
    width: 200px;
    padding: 12px;
  }

  .typing {
    font-size: 22px;
  }
}
