/* Shared fluid widths. Existing native controls, menu, prices and configurator tracks stay authoritative. */
:root{--tn-reading-width:100%}
/* GPU sections use their available parent width as well. */
body .tngpu{max-width:var(--tn-reading-width)!important}
/* Category hub shells follow the same fluid shop width. */
body .tn-hub,body #content:has(.tn-hub) #result-wrapper{max-width:var(--tn-reading-width)!important}
body footer>.container:has(.tn-footer),body #footer>.container:has(.tn-footer){width:100%;max-width:var(--tn-reading-width)!important;margin-left:0!important;margin-right:auto!important}
body #content-wrapper:not(:has(#tnc-ui)){
 width:100%;max-width:var(--tn-reading-width)!important;margin-left:0!important;margin-right:auto!important;min-width:0
}
body #content-wrapper .breadcrumb-container{max-width:none;margin-left:0;margin-right:0}
body #content>.container:has(>.title.h2){width:100%;max-width:none!important;margin-left:0!important;margin-right:0!important}
body #content>.container:has(.tn-corporate),body #content>.container:has(.tn-home){
 width:100%;max-width:none!important;margin:0!important;padding-left:0!important;padding-right:0!important
}
body .tn-home .wrap,body .tn-corporate .wrap,body .tn-itad .wrap{
 width:100%;max-width:var(--tn-reading-width)!important;margin-left:0!important;margin-right:auto!important;padding-left:16px;padding-right:16px
}
body .nr-wrap{width:100%;max-width:var(--tn-reading-width)!important;margin-left:0!important;margin-right:auto!important}
body .nr-wrap p,body .nr-wrap li{max-width:72ch}
body .tn-life-request{max-width:var(--tn-reading-width);margin-left:0!important;margin-right:auto!important}
body .tn-life-request>div>.row{margin-left:0!important;margin-right:0!important;width:100%;min-width:0}
body #content>.container:has(.tn-contact)>.contact-form{
 width:calc(100% - 32px);max-width:1200px;margin-left:16px!important;margin-right:auto!important
}
body.tnp-refresh:not(:has(#tnc-ui)) #product-offer{max-width:none!important;width:100%}
body.tnp-commerce .tnp-commerce-root[data-tnp-flow="register"]{max-width:1440px;margin-left:0;margin-right:auto}
/* Moving native nodes preserves the controls and gives keyboard/screen-reader order the same sequence. */
@media(max-width:991px){
 body.tnp-refresh #product-offer.tnp-mobile-reading-order{display:flex!important;flex-direction:column;gap:16px!important;align-items:stretch}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order>.tnp-mobile-product-heading{order:0;width:100%;min-width:0}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order>.product-gallery{display:block!important;order:1;width:100%;max-width:100%;padding:10px!important}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order>.product-gallery>.tnp-maker{display:none}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order>.lpx-productdetail-headline{order:2;width:100%;min-width:0}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order>.tnp-features{order:3;width:100%;margin:0!important}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order .tnp-mobile-product-heading .tnp-eyebrow{margin-bottom:4px}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order .tnp-mobile-product-heading .tnp-subtitle{font-size:17px;line-height:1.4;margin:6px 0}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order .tnp-mobile-product-heading .tnp-manufacturer-pn{margin-bottom:0}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order #image_wrapper:not(.fullscreen) #gallery .square,
 body.tnp-refresh #product-offer.tnp-mobile-reading-order #image_wrapper:not(.fullscreen) #gallery .slick-list,
 body.tnp-refresh #product-offer.tnp-mobile-reading-order #image_wrapper:not(.fullscreen) #gallery .slick-track{height:180px!important;min-height:0!important}
 body.tnp-refresh #product-offer.tnp-mobile-reading-order #image_wrapper:not(.fullscreen) #gallery .square img{max-height:180px!important}
}

/* Mobile menu: one viewport-sized shell, one scrollable body, reachable final row. */
@media(max-width:991px){
 body #mainNavigation.navbar-collapse.show,
 body #mainNavigation.navbar-collapse.collapsing{
  display:flex!important;flex-direction:column;align-items:stretch!important;height:100vh!important;height:100dvh!important;
  max-height:100dvh!important;overflow:hidden!important
 }
 body #mainNavigation>.nav-mobile-header{flex:0 0 auto}
 body #mainNavigation>.nav-mobile-body{
  flex:1 1 0!important;min-height:0!important;height:auto!important;width:100%!important;box-sizing:border-box;max-height:none!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;
  scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))
 }
}

@media(max-width:991px){body #mainNavigation .dropdown-menu{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}}

/* Team portraits retain their full original frame on phones. */
@media(max-width:650px){body .tn-corporate.tn-team .portrait{aspect-ratio:auto!important;height:auto!important}body .tn-corporate.tn-team .portrait img{height:auto!important;aspect-ratio:auto!important;object-fit:contain!important}}

/* Fit the VAT switch to its actual width, aligning desktop utilities with the cart. */
@media(min-width:992px){
 #header-top-bar .tnp-utilities-col .lpxswitcher{width:auto!important;max-width:none!important;flex:0 0 auto!important}
 #header-top-bar .tnp-utilities-col>.topbar-main{flex:0 0 auto}
}

/* Keep native add/update basket success animation inside its configurator button. */
body.tnp-refresh .tnc-ui #add-to-cart .tnc-cart-action.btn{overflow:hidden!important}

/* UX consistency 2026-11-03: shared header and the explicitly marked native homepage only. */
@media(min-width:992px){body .tnp-account #shop-nav{padding-top:0!important;padding-bottom:0!important}}
@media(max-width:991px){
 body #mainNavigation .nav-scrollbar-inner>a[data-tn-ux-quote]{display:block!important;flex:0 0 auto;width:calc(100% - 32px)!important;margin:12px 16px 4px!important;padding:0!important}
 body #mainNavigation a[data-tn-ux-quote]>.lpx-anfrage-btn{display:flex!important;align-items:center;justify-content:flex-start;width:100%;min-height:48px;padding:12px 16px!important;border:1px solid #08b380;border-radius:4px;background:#08b380!important;color:#083d30!important;font-size:16px;line-height:1.4;white-space:normal}
 body #mainNavigation a[data-tn-ux-quote]:focus-visible{outline:3px solid #237db9;outline-offset:3px}
}
body .tn-home[data-tn-ux] .trust-item svg{width:30px;height:30px;stroke-width:1.7}
body .tn-home[data-tn-ux] .config{padding-top:42px;padding-bottom:42px}
body .tn-home[data-tn-ux] .tn-ux-products{padding-top:42px;padding-bottom:42px}
body .tn-home[data-tn-ux] .tn-ux-brands{padding-top:32px;padding-bottom:42px}
body .tn-home[data-tn-ux] .tn-ux-brands .tn-manufacturers{margin-top:0;padding-top:0;border-top:0}
body .tn-home[data-tn-ux] .config-board.tn-ux-config-steps{margin:0;align-self:center}
body .tn-home[data-tn-ux] .tn-ux-config-steps>summary{display:flex;align-items:center;gap:14px;min-height:44px;margin:0;cursor:pointer;list-style:none;font-weight:700;color:#fff}
body .tn-home[data-tn-ux] .tn-ux-config-steps>summary::-webkit-details-marker{display:none}
body .tn-home[data-tn-ux] .tn-ux-config-steps>summary::after{content:'+';margin-left:auto;font-size:24px;line-height:1}
body .tn-home[data-tn-ux] .tn-ux-config-steps[open]>summary{padding-bottom:14px}
body .tn-home[data-tn-ux] .tn-ux-config-steps[open]>summary::after{content:'−'}
body .tn-home[data-tn-ux] .category-body>.link{min-height:44px;line-height:1.3}
@media(max-width:650px){
 body .tn-home[data-tn-ux] .category{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:stretch}
 body .tn-home[data-tn-ux] .category-art{height:100%;min-height:0;padding:10px}
 body .tn-home[data-tn-ux] .category-art svg{width:38px;height:38px;stroke-width:1.4}
 body .tn-home[data-tn-ux] .category-body{padding:16px}
 body .tn-home[data-tn-ux] .category-body h3{font-size:21px;line-height:1.2}
 body .tn-home[data-tn-ux] .category-body p{font-size:15px;line-height:1.45;margin-top:8px}
 body .tn-home[data-tn-ux] .category-body>.link{font-size:16px;margin-top:4px;gap:12px}
 body .tn-home[data-tn-ux] .config-grid{gap:20px}
 body .tn-home[data-tn-ux] .config-board.tn-ux-config-steps{padding:16px}
 body .tn-home[data-tn-ux] .tn-ux-config-steps>summary{font-size:16px;line-height:1.4}
 body .tn-home[data-tn-ux] .tn-ux-products,body .tn-home[data-tn-ux] .tn-ux-brands{padding-top:32px;padding-bottom:32px}
}

/* Center the quote action on the same vertical axis as desktop navigation labels. */
@media(min-width:992px){
 body #mainNavigation .tn-ux-quote-item>a[data-tn-ux-quote]{padding-top:0!important;padding-bottom:0!important}
}
