.ddp-host {
  width: 100%;
  container-type: inline-size;
  font-family: Arial, Helvetica, sans-serif;
}

.ddp-portrait { max-width: 300px; }
.ddp-landscape { max-width: 970px; }
.ddp-host *, .ddp-host *::before, .ddp-host *::after { box-sizing: border-box; }

.ddp-banner {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1 / 2;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  background: #0b3d78;
  color: #fff;
}

.ddp-photo {
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  background: url("./assets/badkamer.jpg") center 69% / cover no-repeat;
}

.ddp-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11, 61, 120, .32) 55%, #0b3d78 100%);
}

.ddp-brand {
  position: absolute;
  z-index: 2;
  top: 20%;
  left: 50%;
  width: 76%;
  transform: translateX(-50%);
}

.ddp-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 10px rgba(0, 20, 49, .34));
  animation: ddp-logo-in .65s .1s both cubic-bezier(.2, 1.4, .35, 1);
}

.ddp-offer {
  position: absolute;
  z-index: 3;
  inset: 55% 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 14px 12px;
  text-align: center;
}

.ddp-kicker {
  margin: 0 0 7px;
  color: #ffe000;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.15;
  text-transform: uppercase;
  animation: ddp-rise-in .5s .45s both;
}

.ddp-price-ribbon {
  width: min(100%, 224px);
  background: #eb2528;
  box-shadow: 0 7px 0 rgba(0, 23, 54, .23);
  transform: rotate(-4deg);
  animation: ddp-ribbon-in .6s .65s both cubic-bezier(.16, 1, .3, 1);
}

.ddp-price-ribbon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 9px 6px;
  transform: rotate(4deg);
  text-transform: uppercase;
}

.ddp-price-label {
  font-family: Impact, "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .015em;
  white-space: nowrap;
}

.ddp-price-label sup { font-family: Arial, Helvetica, sans-serif; font-size: .55em; vertical-align: super; }

.ddp-price-value {
  font-family: Impact, "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 69px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .95;
  white-space: nowrap;
  animation: ddp-price-pop .65s 1.45s both cubic-bezier(.18, 1.55, .36, 1);
}

.ddp-subline {
  margin: 13px 0 14px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  animation: ddp-rise-in .5s .9s both;
}

.ddp-cta {
  display: inline-flex;
  width: min(100%, 224px);
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 5px;
  background: #ffe000;
  color: #0b3974 !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 5px 0 #c3a200;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.ddp-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #c3a200; background: #fff076; }
.ddp-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ddp-cta span { font-size: 23px; line-height: 0; }

.ddp-conditions {
  margin: 13px 0 0;
  color: #e9eef8;
  font-size: 12px;
  line-height: 1.2;
}

@keyframes ddp-logo-in {
  from { opacity: 0; transform: translateY(-20px) rotate(-7deg) scale(.84); }
  to { opacity: 1; transform: none; }
}

@keyframes ddp-ribbon-in {
  from { opacity: 0; translate: 110% 0; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes ddp-rise-in {
  from { opacity: 0; translate: 0 15px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes ddp-price-pop {
  from { opacity: 0; transform: scale(.45); filter: blur(3px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@container (max-width: 290px) {
  .ddp-banner { aspect-ratio: auto; min-height: 600px; }
}

@container (min-width: 700px) {
  .ddp-landscape .ddp-banner {
    display: grid;
    grid-template-columns: 27% 44% 29%;
    width: 100%;
    max-width: none;
    height: 250px;
    aspect-ratio: auto;
    border-radius: 23px;
  }

  .ddp-landscape .ddp-photo {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    height: 250px;
    background-position: center 62%;
  }

  .ddp-landscape .ddp-photo::after {
    background: linear-gradient(90deg, #0b3d78 0%, rgba(11, 61, 120, .1) 24%, transparent 45%);
  }

  .ddp-landscape .ddp-brand {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    top: auto;
    left: auto;
    display: flex;
    width: auto;
    align-items: center;
    justify-content: center;
    padding: 12px 0 12px 14px;
    transform: none;
  }

  .ddp-landscape .ddp-logo { width: min(100%, 224px); }

  .ddp-landscape .ddp-offer {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    inset: auto;
    align-items: flex-start;
    justify-content: center;
    padding: 17px 12px 16px 6px;
    text-align: left;
  }

  .ddp-landscape .ddp-kicker { margin-bottom: 5px; font-size: 14px; }
  .ddp-landscape .ddp-price-ribbon { width: 222px; margin-left: -2px; }
  .ddp-landscape .ddp-price-ribbon-inner { align-items: flex-start; padding: 6px 15px 4px; }
  .ddp-landscape .ddp-price-label { font-size: 18px; }
  .ddp-landscape .ddp-price-value { font-size: 58px; }
  .ddp-landscape .ddp-subline { margin: 8px 0 9px; font-size: 19px; }
  .ddp-landscape .ddp-cta { min-height: 38px; width: 190px; padding: 7px 12px; font-size: 15px; }
  .ddp-landscape .ddp-conditions { margin-top: 7px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ddp-host *, .ddp-host *::before, .ddp-host *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}
