/* Reference widths from the eBook catalogue and product pages. */
body .dww-unified-search {
  width: min(1178px, calc(100% - 48px)) !important;
  margin: 24px auto !important;
}
body[data-dww-home] .dww-search-shell .dww-unified-search {
  width: 100% !important;
  margin: 0 auto !important;
}
body [data-catalog-search] #dww-shared-results {
  background: #fffaf1 !important;
  max-height: min(340px, 42vh) !important;
}
body .dww-unified-search button:focus-visible,
body .dww-unified-search input:focus-visible {
  outline: 2px solid #a87c38 !important;
  outline-offset: 3px;
}
body .dww-unified-search .dww-quick-filters button { cursor: pointer; }
body .dww-unified-search .dww-quick-filters button:hover { border-color: #e4c78b !important; }
body [data-dww-back].dww-back-activated { color: #ff7778 !important; }
body [hidden] { display: none !important; }

body[data-dww-aligned] :is(.software-catalog,#dww-training-overview) {
  width: min(1178px, calc(100% - 48px));
  max-width: 1178px;
  margin-inline: auto;
  padding-inline: 0;
}
body[data-dww-aligned] #dww-training-overview .dww-unified-search {
  width: 100% !important;
}
body[data-dww-aligned] :is(.software-intro,.dww-pl-intro,.dww-offer-benefits) {
  color: #f4ede0;
}
body[data-dww-aligned] :is(.software-intro,.dww-pl-intro) h1 {
  font-family: Manrope, 'DM Sans', Arial, sans-serif;
  letter-spacing: -.042em;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
}
body[data-dww-aligned] .software-intro {
  background: linear-gradient(110deg, #20180f, #131210);
  border: 1px solid #705638;
  border-radius: 17px;
  padding: clamp(18px, 3vw, 34px);
}
body[data-dww-aligned] #software-category-grid > .dww-pl-cat { text-decoration: none; }
body[data-dww-aligned] :is(.software-card,.dww-training-card,.dww-offer-benefits,.dww-offer-feature) {
  border: 1px solid #735533 !important;
  border-radius: 17px !important;
  background: linear-gradient(120deg, #271d12, #151310) !important;
}
body[data-dww-aligned] .dww-offer-benefits {
  width: min(1178px, calc(100% - 48px)) !important;
  box-sizing: border-box;
  margin: 28px auto !important;
  padding: clamp(20px, 3vw, 36px);
}
body[data-dww-aligned] .dww-offer-benefits h2 { margin-top: 0; }
body[data-dww-aligned] .lp-hero-grid { align-items: center; }
body[data-dww-aligned] .dww-software-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid #92714d;
}
body[data-dww-aligned] .dww-software-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
body[data-dww-aligned] .lp > .dww-engagement .dww-engagement-inner,
body[data-dww-aligned] .lp > .dew-review-invite {
  width: min(1178px, calc(100% - 48px)) !important;
  max-width: 1178px !important;
  margin-inline: auto !important;
  box-sizing: border-box;
}
body[data-dww-aligned] .lp .dww-engagement-card {
  border-radius: 17px !important;
}
body[data-dww-aligned] #dww-vorteilswelt,
body[data-dww-aligned] .catalog-back-row {
  box-sizing: border-box;
}
#qr-overlay.is-open, #qrModal.is-open { z-index: 2147482000; }
#qr-overlay.is-open :is(#page-qr-image,.qr-dialog),
#qrModal.is-open :is(#qrImage,.qr-dialog) { visibility: visible; }
#qr-overlay.is-open #page-qr-image, #qrModal.is-open #qrImage { display: block; opacity: 1; }
@media (max-width: 760px) {
  body .dww-unified-search,
  body[data-dww-aligned] :is(.software-catalog,#dww-training-overview),
  body[data-dww-aligned] .dww-offer-benefits,
  body[data-dww-aligned] .lp > .dww-engagement .dww-engagement-inner,
  body[data-dww-aligned] .lp > .dew-review-invite {
    width: calc(100% - 24px) !important;
  }
  body[data-dww-aligned] .lp-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body[data-dww-aligned] .dww-software-photo img { aspect-ratio: 16 / 10; }
  body .dww-unified-search #dww-shared-query { font-size: 16px !important; }
}
body[data-dww-aligned] a[data-dww-back] {
  display: inline-flex !important;
  align-items: center;
  font-size: 15px !important;
  color: #e6c37f !important;
}
body[data-dww-aligned] a[data-dww-back]::before,
body[data-dww-aligned] a[data-dww-back]::after { content: none !important; }
body[data-dww-aligned] a[data-dww-back]:is(:active,.dww-back-activated) { color: #ff7778 !important; }
body[data-dww-aligned] #software-category-grid { margin-block: 20px 32px; }
body[data-dww-aligned] #software-category-grid .dww-pl-cat { box-sizing: border-box; }
@media (max-width: 760px) {
  body[data-dww-aligned] #software-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body[data-dww-aligned] #software-category-grid .dww-pl-cat { min-height: 0; gap: 8px; padding: 14px; }
}
@media (max-width: 350px) {
  body .dww-unified-search #dww-shared-query { padding-left: 35px !important; background-position: 8px center !important; }
  body .dww-unified-search button[type=submit] { padding-inline: 8px !important; }
}
@media (max-width: 430px) {
  body[data-dww-aligned] #software-category-grid { grid-template-columns: minmax(0, 1fr); }
}
body[data-dww-aligned] .lp-copy button.dww-heart-save {
  background: #1b150e !important;
  color: #f0ce8b !important;
  border: 1px solid #b99457 !important;
}
body[data-dww-aligned] .lp-copy button.dww-heart-save[aria-pressed=true] {
  background: #463119 !important;
}
