/* Finishing touches are limited to the homepage, not the shared header. */
body:has(#mp-planner) main .motion-ready { opacity:1; transform:none; }
body:has(#mp-planner) main :is(a,button,input,select):focus-visible { outline:3px solid #0079aa; outline-offset:4px; }
body:has(#mp-planner) .home-makers { background:#fff; }
body:has(#mp-planner) .home-maker { border-radius:8px; border-top:3px solid #0082ad; transition:border-color .16s,box-shadow .16s; }
body:has(#mp-planner) .home-maker:nth-child(4n+2) { border-top-color:#8bbd40; }
body:has(#mp-planner) .home-maker:nth-child(4n+3) { border-top-color:#e2b54e; }
body:has(#mp-planner) .home-maker:nth-child(4n) { border-top-color:#5e9d97; }
body:has(#mp-planner) .home-maker:hover { box-shadow:0 5px 16px #00477512; }
body:has(#mp-planner) .home-maker-logo { min-height:80px; padding:14px 10px; background:#fff; }
body:has(#mp-planner) .home-maker-logo img { max-height:60px; object-fit:contain; }
body:has(#mp-planner) .home-maker-name { font-size:14px; line-height:1.5; }
body:has(#mp-planner) .home-makers-heading p { max-width:660px; line-height:1.8; }
body:has(#mp-planner) main>section.software { background:#f1f8fa; }
body:has(#mp-planner) main>section.software .software-visual { border-radius:8px; background:#fff; border:1px solid #cfdee5; box-shadow:none; overflow:hidden; }
body:has(#mp-planner) main>section.software .tabs { gap:10px; }
body:has(#mp-planner) main>section.software .tabs button { display:inline-flex; align-items:center; justify-content:center; gap:9px; border-radius:6px; min-height:46px; }
body:has(#mp-planner) main>section.software .tabs svg { width:19px; height:19px; flex-shrink:0; }
body:has(#mp-planner) .mp-software-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:25px; }
body:has(#mp-planner) .mp-software-actions .button { margin:0; min-height:46px; }
body:has(#mp-planner) .mp-configure-link { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; padding:12px 16px; border:1px solid #b8d780; border-radius:6px; color:#004775; background:#e9f5d2; font-weight:700; text-decoration:none; line-height:1.5; }
body:has(#mp-planner) .mp-configure-link:hover { background:#d5ebaf; }
body:has(#mp-planner) .mp-configure-link svg { width:20px; height:20px; flex-shrink:0; }
body:has(#mp-planner) .bb-home .blog-card { display:flex; flex-direction:column; border:1px solid #d3e2e8; border-radius:8px; overflow:hidden; background:#fff; padding:0 22px 22px; box-shadow:none; }
body:has(#mp-planner) .bb-home .blog-card>a:first-child { display:block; margin:0 -22px 22px; overflow:hidden; }
body:has(#mp-planner) .bb-home .blog-card>a:first-child img { display:block; border-radius:0!important; transition:transform .25s; }
body:has(#mp-planner) .bb-home .blog-card:hover>a:first-child img { transform:scale(1.025); }
body:has(#mp-planner) .bb-home .blog-card h3 { font-size:21px; line-height:1.45; margin:12px 0; }
body:has(#mp-planner) .bb-home .blog-card>p { font-size:15px; line-height:1.8; margin-bottom:20px; }
body:has(#mp-planner) .bb-home .blog-card>.text-link { display:inline-flex; align-items:center; gap:8px; align-self:flex-start; margin-top:auto; padding:9px 0 3px; border-bottom:2px solid #8bbd40; font-weight:700; color:#004775; text-decoration:none; }
body:has(#mp-planner) .mp-home-benefits .mp-benefit-icon { border-radius:6px; }
body:has(#mp-planner) .mp-home-benefits li:nth-child(3n+2) .mp-benefit-icon { background:#edf5df; }
body:has(#mp-planner) .mp-home-benefits li:nth-child(3n) .mp-benefit-icon { background:#fff2d1; }
body:has(#mp-planner) .mp-stat-spark { display:none; }
body:has(#mp-planner) .mp-value-stat { border-radius:8px; }
body:has(#mp-planner) .elementor-element-988cd1e .elementor-cta { border-radius:8px; overflow:hidden; }
body:has(#mp-planner) .elementor-element-988cd1e .elementor-cta__title { font-size:29px; line-height:1.35; }
body:has(#mp-planner) .elementor-element-988cd1e .elementor-cta__description { font-size:16px; line-height:1.8; }
#mp-planner #software .sw-tse-certificate { width:fit-content; padding:10px 13px; background:#e2efcc; border:1px solid #b8d28e; border-radius:6px; }
#mp-planner #software .sw-tse-validity { max-width:540px; }
@media(max-width:700px) {
  body:has(#mp-planner) .home-maker-logo { min-height:72px; padding:12px 8px; }
  body:has(#mp-planner) .home-maker-logo img { max-height:48px; }
  body:has(#mp-planner) .home-maker-name { font-size:12px; }
  body:has(#mp-planner) main>section.software .tabs { display:grid; grid-template-columns:minmax(0,1fr); }
  body:has(#mp-planner) main>section.software .tabs button { width:100%; justify-content:flex-start; padding:13px 15px; }
  body:has(#mp-planner) .mp-software-actions { align-items:stretch; flex-direction:column; }
  body:has(#mp-planner) .mp-software-actions :is(.button,.mp-configure-link) { width:100%; }
  body:has(#mp-planner) .bb-home .blog-card h3 { font-size:20px; }
  body:has(#mp-planner) .elementor-element-988cd1e .elementor-cta__title { font-size:25px; }
  #mp-planner #software .sw-tse-country { font-size:12px; }
  #mp-planner #software .sw-tse-validity { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  body:has(#mp-planner) .home-maker,body:has(#mp-planner) .bb-home .blog-card img { transition:none; }
}

/* A short first view; the complete catalogue and all brands remain available. */
body:has(#mp-planner) .home-maker[hidden],body:has(#mp-planner) .mp-maker-more[hidden],body:has(#mp-planner) .mp-maker-empty[hidden],body:has(#mp-planner) .mp-maker-input button[hidden],#mp-planner .mp-selection-jump[hidden] { display:none!important; }
body:has(#mp-planner) .mp-maker-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:24px 0 22px; }
body:has(#mp-planner) .mp-maker-search { display:flex; flex-direction:column; gap:8px; width:min(480px,100%); font-size:13px; font-weight:700; color:#004775; }
body:has(#mp-planner) .mp-maker-input { display:flex; align-items:center; gap:11px; border:1px solid #b8ceda; border-radius:6px; background:#fff; min-height:48px; padding:0 12px; }
body:has(#mp-planner) .mp-maker-input:focus-within { outline:2px solid #0082ad; outline-offset:2px; }
body:has(#mp-planner) .mp-maker-input>svg { width:20px; height:20px; flex-shrink:0; color:#007da5; }
body:has(#mp-planner) .mp-maker-input input { width:100%; min-width:0; padding:12px 0; border:0; background:transparent; font:400 15px/1.5 Arial,Helvetica,sans-serif; color:#16374c; outline:none!important; box-shadow:none; }
body:has(#mp-planner) .mp-maker-input input::-webkit-search-cancel-button { display:none; }
body:has(#mp-planner) .mp-maker-input button { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:44px; height:44px; padding:12px; border:0; background:#edf5f8; color:#004775; border-radius:5px; cursor:pointer; }
body:has(#mp-planner) .mp-maker-input button svg { width:20px; height:20px; }
body:has(#mp-planner) .mp-maker-count { flex-shrink:0; padding-bottom:13px; color:#526d7c; font-size:13px; }
body:has(#mp-planner) .mp-maker-more { display:flex; align-items:center; justify-content:center; gap:10px; min-height:48px; margin:24px auto 0; padding:12px 22px; border:1px solid #b5d482; border-radius:6px; background:#eef6e2; color:#004775; font-size:14px; font-weight:700; cursor:pointer; }
body:has(#mp-planner) .mp-maker-more svg { width:20px; height:20px; }
body:has(#mp-planner) .mp-maker-more:hover { background:#dceebf; }
body:has(#mp-planner) .mp-maker-empty { padding:24px 0; margin:0; font-size:16px; color:#526d7c; }
#mp-planner .mp-selection-jump { display:flex; width:fit-content; align-items:center; gap:10px; margin:0 0 18px auto; padding:11px 15px; min-height:46px; border:1px solid #c0d7a3; border-radius:6px; background:#f1f7e9; color:#004775; font-size:14px; font-weight:700; text-decoration:none; }
#mp-planner #mp-zusammenstellung { scroll-margin-top:150px; }
body:has(#mp-planner) .footer-support-partners>section { background:transparent; box-shadow:none; border:0; padding:20px 0; border-radius:0; }
body:has(#mp-planner) .footer-partner-logos { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
body:has(#mp-planner) .footer-partner { display:flex; align-items:center; justify-content:center; padding:12px; border-radius:6px; min-height:90px; }
body:has(#mp-planner) .footer-partner-dfka img { width:64px; height:64px; object-fit:contain; }
body:has(#mp-planner) .footer-partner-ckv img { width:130px; height:64px; object-fit:contain; }
@media(max-width:700px) {
  body:has(#mp-planner) .mp-maker-toolbar { align-items:stretch; flex-direction:column; gap:10px; margin-top:20px; }
  body:has(#mp-planner) .mp-maker-count { padding-bottom:0; }
  body:has(#mp-planner) .mp-maker-more { width:100%; }
  #mp-planner .product-photo { min-height:150px; }
  #mp-planner .product-photo img { height:150px; object-fit:contain; }
  #mp-planner .product h3 { font-size:15px; line-height:1.5; }
  #mp-planner .product-brand,#mp-planner .product-facts,#mp-planner .product-mpn { font-size:11px; line-height:1.65; }
  #mp-planner .product-actions :is(a,button) { min-height:44px; font-size:11px; }
  #mp-planner .mp-selection-jump { width:100%; justify-content:center; font-size:13px; }
  #mp-planner #mp-zusammenstellung { scroll-margin-top:84px; }
  body:has(#mp-planner) .footer-support-partners { gap:20px; }
  body:has(#mp-planner) .footer-support-partners>section { padding:10px 0; }
  body:has(#mp-planner) .footer-support-partners h3 { font-size:19px; line-height:1.45; }
  body:has(#mp-planner) .footer-support-partners p { font-size:14px; line-height:1.75; }
  body:has(#mp-planner) .footer-partner { min-height:80px; padding:9px; }
  body:has(#mp-planner) .footer-partner-dfka img { width:58px; height:58px; }
  body:has(#mp-planner) .footer-partner-ckv img { width:125px; height:58px; }
}

/* Keep the disclosure and controls outside captions baked into the mobile film. */
@media(max-width:700px) {
  #mp-planner>.intro { padding-bottom:calc(56.25% + 64px); }
  #mp-planner>.intro #brand-film { top:auto; bottom:64px; height:auto; aspect-ratio:16/9; object-fit:contain; }
  #mp-planner>.intro .film-note { display:flex; align-items:center; position:absolute; left:5%; right:calc(5% + 108px); bottom:0; width:auto; max-width:none; height:64px; min-height:64px; padding:0; margin:0; background:transparent; border:0; border-radius:0; color:#e2edf1; font-size:11px; line-height:1.5; text-align:left; white-space:normal; }
  #mp-planner>.intro :is(#film-toggle,#film-open) { top:auto; bottom:10px; width:44px; height:44px; min-width:44px; padding:10px; }
  #mp-planner>.intro #film-toggle { right:5%; }
  #mp-planner>.intro #film-open { right:calc(5% + 52px); }
}
