/* Jeder Partner verwendet eine eigene Akzentfarbe und Wortmarke. */
.tech { --ad-ink: #d9fffe; --ad-bg: #123741; --ad-accent: #8ee4e3; --ad-font: "Trebuchet MS", sans-serif; }
.luxury { --ad-ink: #f9e7c2; --ad-bg: #332725; --ad-accent: #efd08a; --ad-font: Georgia, serif; }
.consulting { --ad-ink: #f1f2fd; --ad-bg: #232d53; --ad-accent: #bfcbff; --ad-font: "Segoe UI", sans-serif; }
.finance { --ad-ink: #eaf3db; --ad-bg: #263d2d; --ad-accent: #cce68f; --ad-font: Cambria, Georgia, serif; }
.akademie { --ad-ink: #fff5df; --ad-bg: #542831; --ad-accent: #f6ccae; --ad-font: Georgia, serif; }
.versicherung { --ad-ink: #f4fbff; --ad-bg: #1d3c59; --ad-accent: #c2e5ff; --ad-font: Verdana, sans-serif; }
.nutrition { --ad-ink: #282f20; --ad-bg: #d9e5b3; --ad-accent: #355424; --ad-font: "Trebuchet MS", sans-serif; }
.future { --ad-ink: #fdf0ff; --ad-bg: #443056; --ad-accent: #f1cafe; --ad-font: "Courier New", monospace; }
.ad-logo { display: inline-flex; align-items: center; gap: .42rem; font: 700 .88rem/1.18 var(--ad-font); color: var(--ad-accent); }
.ad-symbol { border: 1px solid currentColor; min-width: 1.67rem; min-height: 1.67rem; display: inline-grid; place-items: center; border-radius: 50%; font: bold 1rem/1 Georgia, serif; }
.tech .ad-symbol, .consulting .ad-symbol { border-radius: 0; }
.akademie .ad-symbol { border-radius: .15rem .15rem 48% 48%; }
.versicherung .ad-symbol { border-radius: .15rem; transform: rotate(12deg); }
.future .ad-symbol { border-style: dashed; border-radius: 0; }
.luxury .ad-wordmark { letter-spacing: .16em; text-transform: uppercase; }
.future .ad-wordmark, .consulting .ad-wordmark { text-transform: uppercase; }
.ad-label { font-size: .73rem; color: var(--ad-accent, var(--rust)); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.ad-strip { padding-top: 26px; }
.ad-strip + .section { padding-top: clamp(48px, 6vw, 84px); }
.inline-ad { background: var(--ad-bg); color: var(--ad-ink); display: grid; grid-template-columns: minmax(115px, .31fr) minmax(0, 1fr); min-width: 0; }
.inline-ad img { width: 100%; height: 100%; min-height: 125px; max-height: 230px; }
.ad-copy { padding: clamp(.82rem, 2.6vw, 1.52rem); }
.ad-copy .ad-logo { margin-top: .35rem; }
.ad-copy h3 { font-size: clamp(1.55rem, 3vw, 2.32rem); margin: .18em 0; }
.ad-copy p:not(.ad-label) { font-size: .91rem; }
.ad-discount { margin-top: .32rem; font-style: italic; }
.ad-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .44rem .63rem; margin-top: .56rem; border: 1px solid currentColor; color: inherit; background: transparent; text-align: start; font-size: .83rem; font-weight: 700; line-height: 1.2; }
.ad-action:hover { text-decoration: underline; }
.oracle-ad { margin-top: 1.55rem; max-width: 470px; }
.oracle-ad .inline-ad, .news-ad .inline-ad { grid-template-columns: minmax(65px, .37fr) minmax(0, 1fr); }
.oracle-ad .ad-copy, .news-ad .ad-copy { padding: .68rem .8rem; }
.oracle-ad .ad-copy h3, .news-ad .ad-copy h3 { font-size: 1.3rem; }
.oracle-ad .ad-label, .news-ad .ad-label { font-size: .65rem; }
.news-ad, .sponsored, #extra-ads { margin-top: 1.2rem; }
.shop-section { background: #e8e5d8; border-block: 1px solid var(--line); }
.shop-controls { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .75rem; }
.shop-controls label { margin-bottom: 0; }
.shop-controls select { display: block; color: var(--ink); background: var(--paper); border: 1px solid #627765; border-radius: 0; font: inherit; font-weight: 400; min-height: 44px; margin-top: .35rem; padding: .43rem .65rem; }
.shop-count { margin-bottom: .55rem; }
.shop-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.65rem); }
.product-card { display: flex; flex-direction: column; background: var(--ad-bg); color: var(--ad-ink); min-width: 0; overflow-wrap: anywhere; }
.product-card > img { width: 100%; height: auto; aspect-ratio: 1.35; }
.product-copy { display: flex; flex-direction: column; align-items: start; flex: 1; padding: clamp(.78rem, 2.3vw, 1.5rem); }
.product-copy h3 { margin-block: .35em .18em; font-size: clamp(1.35rem, 2.9vw, 2.12rem); }
.ad-price { font-weight: 700; margin-top: .45rem; }
.product-copy .ad-price { margin-top: auto; padding-top: .62rem; color: var(--ad-accent); }
.partner-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .72rem; }
.partner-card { min-width: 0; background: var(--ad-bg); color: var(--ad-ink); padding: clamp(.72rem, 1.8vw, 1.25rem); display: flex; flex-direction: column; align-items: start; }
.partner-card p { margin-top: .58rem; flex: 1; }
.shop-dialog { width: min(760px, calc(100% - 22px)); max-height: calc(100% - 24px); padding: 0; overflow: auto; }
.dialog-bar { display: flex; justify-content: end; position: sticky; top: 0; background: var(--paper); z-index: 1; border-bottom: 1px solid var(--line); }
.dialog-bar button { color: var(--ink); background: transparent; border: 0; padding: .6rem 1rem; min-height: 44px; font-weight: 700; }
.product-detail-hero { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1fr); background: var(--ad-bg); color: var(--ad-ink); }
.product-detail-hero img { width: 100%; height: 100%; max-height: 280px; }
.product-detail-copy, .product-description, .cart-detail { padding: clamp(15px, 3.5vw, 30px); }
.product-detail-copy h2 { font-size: clamp(1.75rem, 4.3vw, 3.3rem); margin-top: .45em; }
.product-detail-copy .ad-logo { margin-top: .45em; }
.product-description details { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.product-description button.primary { background: var(--rust); color: #fffaf0; }
.product-description button.primary:hover { background: #803619; }
.product-review { background: #ece7d9; padding: .65rem .8rem; margin-top: .8rem; }
.product-review cite { font-size: .84rem; }
#cart-title { font-size: clamp(1.9rem, 4.8vw, 3.6rem); margin-block: .32em; }
#cart-items { list-style: none; padding: 0; }
#cart-items li { display: flex; justify-content: space-between; align-items: center; gap: .65rem; border-bottom: 1px solid var(--line); padding-block: .31rem; }
#cart-items button { color: var(--ink); border: 1px solid currentColor; min-width: 44px; min-height: 44px; background: transparent; }
#checkout-button { color: #fffaf0; border-color: var(--rust); background: var(--rust); }
.ad-popup { position: fixed; bottom: 16px; right: 16px; width: min(410px, calc(100vw - 32px)); z-index: 4; box-shadow: 0 5px 22px #0005; }
#ad-popup .ad-copy { padding-right: 50px; }
#popup-close { position: absolute; top: 1px; right: 1px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-width: 44px; min-height: 44px; font-size: 1.55rem; line-height: 1; }
@media (max-width: 830px) {
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .shop-products { grid-template-columns: 1fr; }
  .inline-ad { grid-template-columns: minmax(72px, .35fr) minmax(0, 1fr); }
  .product-detail-copy h2 { font-size: 1.5rem; }
}
@media print {
  body.print-certificate .ad-popup { display: none !important; }
}

.shared-ad { max-width: 940px; }
.shared-ad article { background: var(--paper); border: 1px solid var(--line); }
.shared-ad h1 { font-size: clamp(2.15rem, 7vw, 4.28rem); overflow-wrap: anywhere; margin-block: .2em; }
.shared-ad .product-description p + p { margin-top: .75rem; }
