#emsig-gutschein-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(940px, calc(100% - 32px));
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: auto;
  background: white;
  box-shadow: 0 12px 48px #0002;
}
#emsig-gutschein-dialog::backdrop {
  background: rgb(0 0 0 / 30%);
  backdrop-filter: blur(4px);
}
#emsig-gutschein-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  background: white;
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
}
#emsig-gutschein-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  font-size: 28px;
  line-height: 1;
}
#emsig-gutschein-close:focus-visible {
  outline: 2px solid #666;
  outline-offset: 1px;
}
#emsig-gutschein-close[data-pointer-open]:focus {
  outline: none;
}
#emsig-gutschein-close:hover {
  background: #e4e4e4;
}
#emsig-gutschein-shop {
  display: flex;
  justify-content: center;
  padding: 0 12px 12px;
}
#emsig-gutschein-dialog schenkwerk-voucher {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}
#emsig-gutschein-feedback {
  text-align: center;
  padding: 16px 24px 32px;
}
#emsig-gutschein-dialog [hidden] {
  display: none !important;
}
body:has(#emsig-gutschein-dialog[open]) {
  overflow: hidden;
}
@media (max-width: 600px) {
  #emsig-gutschein-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 8px;
  }
  #emsig-gutschein-toolbar {
    padding: 4px 8px;
  }
  #emsig-gutschein-shop {
    padding: 0 4px 8px;
  }
  #emsig-gutschein-dialog schenkwerk-voucher {
    width: 100%;
  }
}

.gutschein-aktion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.gutschein-aktion-buttons .hero-cta {
  margin: 14px 0 0;
  min-height: 56px;
  box-shadow: none;
}
.gutschein-aktion-buttons .gutschein-secondary {
  background: white;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.gutschein-aktion-buttons .gutschein-secondary:hover {
  background: #f5f5f5;
}
button.gutschein-button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: var(--orange);
}
button.gutschein-button:focus-visible {
  outline: 2px solid #333;
  outline-offset: 3px;
}
.gutschein-bereich {
  text-align: center;
  background: #f5f5f5;
}
.gutschein-bereich h2 {
  margin: 0 0 12px;
}
.gutschein-bereich .gutschein-slogan {
  color: var(--orange);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 16px;
}
.gutschein-bereich .gutschein-icon {
  width: 52px;
  height: 52px;
  color: var(--orange);
  margin: 0 auto 16px;
  display: block;
}
.gutschein-bereich .hero-cta {
  margin: 16px auto 0;
}
@media (max-width: 850px) {
  .gutschein-aktion-buttons {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .gutschein-aktion-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .gutschein-aktion-buttons .hero-cta {
    width: 100%;
    margin: 0;
    min-height: 50px;
  }
  .gutschein-aktion-buttons {
    margin-top: 14px;
  }
}

/* V23-test-02: match existing Probetraining CTA and strengthen slogan. */
button.hero-cta.gutschein-button {
  background: #ff5100;
  box-shadow: none;
}
button.hero-cta.gutschein-button:hover {
  background: #e64900;
  box-shadow: none;
}
.gutschein-aktion-buttons .gutschein-secondary {
  color: #ff5100;
  border-color: #ff5100;
}
.gutschein-bereich p.gutschein-slogan:not(.ems-kicker) {
  font-size: 24px;
}
@media (max-width: 600px) {
  .gutschein-bereich p.gutschein-slogan:not(.ems-kicker) {
    font-size: 20px;
  }
  #emsig-gutschein-toolbar {
    position: sticky;
    top: 0;
    height: 0;
    padding: 0 8px;
    overflow: visible;
    background: transparent;
  }
  #emsig-gutschein-toolbar #emsig-gutschein-close {
    flex: 0 0 44px;
    margin-top: 4px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
  }
  #emsig-gutschein-shop {
    padding-top: 0;
  }
  #emsig-gutschein-feedback {
    padding-top: 56px;
  }
}
