/* Shared compact header on inner pages, matching the homepage. */
/* Header refinement: compact logo, right-aligned navigation, reduced whitespace. */
@media (min-width: 851px) {
 body .site_header .menu_box__inner {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;min-height:100px!important;height:auto!important;}
 body .site_header .header_logo_part {flex:0 0 185px!important;width:185px!important;max-width:185px!important;align-self:center!important;}
 body .site_header .header_logo_part a.logo {display:block!important;width:185px!important;max-width:185px!important;margin-top:0!important;margin-bottom:0!important;}
 body .site_header .header_logo_part a.logo img {display:block!important;width:185px!important;max-width:185px!important;max-height:100px!important;height:auto!important;object-fit:contain!important;}
 body .site_header .header_nav_part {flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;}
 body .site_header .main-nav-container {margin-left:auto!important;}
 body .site_header .menu_box,body .site_header .header_container {margin-bottom:0!important;padding-bottom:0!important;}
 body:not(.home) .site_header .menu_box__inner,body.home .site_header .menu_box__inner {min-height:100px!important;}
 body:not(.home) .site_header .header_logo_part,body.home .site_header .header_logo_part {flex-basis:185px!important;width:185px!important;}
 body:not(.home) .site_header .header_logo_part a.logo,body.home .site_header .header_logo_part a.logo {width:185px!important;}
 body:not(.home) .site_header .header_logo_part a.logo img,body.home .site_header .header_logo_part a.logo img.logo_desktop {width:185px!important;max-width:185px!important;max-height:100px!important;}
}
@media (max-width:850px) {
 body .site_header .header_logo_part a.logo img {width:155px!important;max-width:155px!important;height:auto!important;max-height:90px!important;object-fit:contain!important;}
 body .site_header .header_logo_part a.logo {margin-top:0!important;margin-bottom:0!important;}
}

@media(min-width:851px){
body:not(.home) .header_wrapper_container,body:not(.home) .header_cont,body:not(.home) .site_header,body:not(.home) .header_container{min-height:0!important;margin-bottom:0!important;padding-bottom:0!important}
body:not(.home) .menu_box .container{max-width:1600px!important;width:calc(100% - 64px)!important}
body:not(.home) .menu_box__inner{min-height:112px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
body:not(.home) .header_logo_part{flex:0 0 205px!important;width:205px!important;align-self:center!important}
body:not(.home) .header_logo_part a.logo{display:block!important;width:205px!important;margin:0!important}
body:not(.home) .header_logo_part a.logo img{display:block!important;width:205px!important;max-width:205px!important;max-height:115px!important;height:auto!important;object-fit:contain!important}
body:not(.home) .header_nav_part{flex:1 1 auto!important;min-width:0!important;align-self:center!important}
body:not(.home) .header_nav_part .main-menu>li>a{font-size:clamp(14px,1vw,18px)!important}
}
@media(max-width:850px){
body:not(.home) .header_logo_part a.logo img{max-width:180px!important;width:180px!important;height:auto!important;object-fit:contain!important}
body:not(.home) .header_logo_part a.logo{margin:0!important}
}
/* Transfair modern draft – responsive visual system */
:root{--tf-orange:#eb5d05;--tf-ink:#17212b}
body.home{background:#fff}
body.home .site-main{overflow:hidden}
body.home .site-main .page_grid{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
body.home .site-main main,.home .site-main main{max-width:none!important}
.home .header_wrapper_container,.home .header_cont,.home .site_header,.home .header_container{min-height:0!important}
.home .header_logo_part img.logo_desktop{width:205px!important;max-width:205px!important;height:auto!important;max-height:115px!important;object-fit:contain!important}
@media(min-width:851px){.home .header_logo_part img.logo_mobile,.home .header_logo_part img.logo_sticky{display:none!important}}
.home .header_logo_part,.home .header_nav_part{align-self:center!important}
.home .header_logo_part{flex:0 0 205px!important;width:205px!important}
.home .header_logo_part a.logo{width:205px!important}
.home .menu_box .container{max-width:1600px!important;width:calc(100% - 64px)!important}
.home .menu_box__inner{min-height:112px!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
.home .header_nav_part .main-menu>li>a{font-size:clamp(14px,1.1vw,19px)!important}
@media(min-width:851px){.home .header_wrapper_container{margin-bottom:0!important;padding-bottom:0!important}.home .page_content>.container{padding-top:0!important}.home .site-main{margin-top:0!important}}
.home .site-main .page_grid>section{box-sizing:border-box}
.home .site-main .page_grid>section:first-child{min-height:590px!important;display:flex;align-items:center;background-position:center 48%!important;position:relative;isolation:isolate;padding:90px max(5%,calc((100% - 1240px)/2))!important}
.home .site-main .page_grid>section:first-child:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,23,32,.87),rgba(12,23,32,.57) 48%,rgba(12,23,32,.08));z-index:-1}
.home .site-main .page_grid>section:first-child>div{width:100%;max-width:1240px!important}
.home .site-main .page_grid>section:first-child>div>div{background:transparent!important;padding:0!important;max-width:730px!important}
.home .site-main h1,.home .site-main h2,.home .site-main h3{letter-spacing:-.035em!important}
.home .site-main .page_grid>section:first-child h1{font-family:Arial,sans-serif!important;font-weight:800!important;font-size:clamp(44px,5.6vw,82px)!important;line-height:1.03!important;max-width:720px;margin-bottom:24px!important}
.home .site-main .page_grid>section:first-child p{max-width:660px}
.home .site-main .page_grid>section:first-child p[style*="font-size:20px"]{font-size:clamp(17px,2vw,22px)!important;line-height:1.5!important}
.home .site-main a[href*="kontakt"]{transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.home .site-main a[href*="kontakt"]:hover{transform:translateY(-3px);box-shadow:0 12px 25px rgba(235,93,5,.25)}
.home .site-main .page_grid>section:not(:first-child){padding-top:90px!important;padding-bottom:90px!important}
.home .site-main .page_grid>section>div{max-width:1240px!important}
.home .site-main .page_grid>section h2{font-family:Arial,sans-serif!important;font-size:clamp(32px,3.7vw,54px)!important;line-height:1.12!important;font-weight:800!important;margin-bottom:24px!important}
.home .site-main .page_grid>section:nth-child(2){background:#f7f8f8}
.home .site-main .page_grid>section:nth-child(2)>div>div:first-child p:nth-of-type(n+3){font-size:16px!important;line-height:1.75!important}
.home .site-main .page_grid>section:nth-child(3)>div>div:last-child>div{border:1px solid #e8ebee!important;border-top:0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 35px rgba(20,32,44,.07);padding:32px!important;position:relative;transition:transform .3s ease,box-shadow .3s ease}
.home .site-main .page_grid>section:nth-child(3)>div>div:last-child>div:before{content:"";height:5px;position:absolute;top:0;left:25px;right:25px;background:var(--tf-orange);border-radius:0 0 5px 5px}
.home .site-main .page_grid>section:nth-child(3)>div>div:last-child>div:hover{transform:translateY(-9px);box-shadow:0 22px 48px rgba(20,32,44,.13)}
.home .site-main .page_grid>section:nth-child(4){background:linear-gradient(135deg,#17212b,#25384a)!important}
.home .site-main .page_grid>section:nth-child(4)>div>div>div{border:0!important;border-radius:14px!important;padding:30px!important}
.home .site-main .page_grid>section:nth-child(5) img{border-radius:18px!important;box-shadow:20px 20px 0 #fbe5d9}
.home .site-main .page_grid>section:nth-child(6){background:#fff3eb!important;border-top:0!important}
.home .site-main .page_grid>section:nth-child(6) a[href="/kontakt"]{border-radius:9px}
@media(max-width:767px){
.home .header_logo_part{flex:0 0 180px!important;width:180px!important}
.home .header_logo_part a.logo{width:180px!important}
.home .header_logo_part img{max-width:180px!important;width:180px!important;max-height:none!important;height:auto!important}
.home .menu_box .container{width:calc(100% - 32px)!important}
.home .menu_box__inner{min-height:74px!important}
.home .header_wrapper_container,.home .header_cont,.home .site_header,.home .header_container,.home .menu_box{margin-bottom:0!important;padding-bottom:0!important}
.home .site-main .page_grid>section:first-child{min-height:580px!important;padding:65px 7%!important;background-position:62% center!important;align-items:center}
.home .site-main .page_grid>section:first-child:before{background:linear-gradient(90deg,rgba(12,23,32,.9),rgba(12,23,32,.64))}
.home .site-main .page_grid>section:first-child h1{font-size:clamp(37px,10vw,52px)!important;line-height:1.07!important}
.home .site-main .page_grid>section:first-child p[style*="font-size:20px"]{font-size:17px!important;line-height:1.5!important}
.home .site-main .page_grid>section:first-child>div>div{padding:0!important}
.home .site-main .page_grid>section:not(:first-child){padding:58px 6%!important}
.home .site-main .page_grid>section h2{font-size:34px!important}
.home .site-main .page_grid>section:nth-child(2)>div>div:first-child p:nth-of-type(n+4){display:none}
.home .site-main .page_grid>section:nth-child(3)>div>div:last-child>div{min-width:100%!important;box-sizing:border-box}
.home .site-main .page_grid>section:nth-child(4)>div>div>div{min-width:calc(50% - 14px)!important;box-sizing:border-box}
}
/* Homepage layout: override both theme content-padding rules, including layout.css. */
body.home #main .page_content:not(:empty){padding-top:0!important;}
body.home .site-main .page_content:not(:empty){padding-top:0!important;}
body.home .page_content .container{margin-top:0!important;}
/* Remove GlobeCo default 75px top padding on the homepage content. */
body.home #main .page_content{padding-top:0!important;margin-top:0!important;}
body.home #main .page_content>.container{padding-top:0!important;}
body.home .header_wrapper_container,body.home .header_cont{margin-bottom:0!important;padding-bottom:0!important;}
body.home .menu_box__inner{min-height:94px!important;}
/* Keep the full logo image within a compact, predictable header. */
@media(min-width:851px){
 body.home .header_logo_part{transform:none!important;flex:0 0 205px!important;width:205px!important;}
 body.home .header_logo_part a.logo{display:block!important;width:205px!important;margin:0!important;}
 body.home .header_logo_part a.logo img.logo_mobile{display:none!important;}
 body.home .header_logo_part a.logo img.logo_desktop{display:block!important;width:205px!important;max-width:205px!important;height:auto!important;max-height:115px!important;object-fit:contain!important;}
 body.home .header_logo_part a.logo img.logo_sticky{display:none!important;}
}
body.home #main .page_content>.container{margin-top:0!important;padding-top:0!important;}
@media(max-width:767px){body.home #main .page_content{padding-top:0!important;}}
/* Header-to-hero spacing and responsive navigation */
@media(min-width:851px){
 body.home .header_wrapper_container,body.home .header_cont,body.home .site_header,body.home .header_container,body.home .menu_box{height:auto!important;min-height:0!important;margin-bottom:0!important;padding-bottom:0!important}
 body.home .menu_box__inner{min-height:112px!important}
 body.home .page_content,body.home .page_content>.container,body.home .page_content main,body.home #main{margin-top:0!important;padding-top:0!important}
 body.home .header_nav_part{flex:1 1 auto!important;min-width:0!important}
 body.home .main-menu>li>a{font-size:clamp(14px,1vw,18px)!important}
}
/* Hero: one photograph only; suppress legacy decorative truck pseudo-image. */
html body.home #main .page_content .page_grid > section:first-child > div::after,
html body.home #main .page_content .page_grid > section:first-child > div::before{content:none!important;display:none!important;background:none!important;min-height:0!important;box-shadow:none!important;}
html body.home #main .page_content .page_grid > section:first-child > div{display:block!important;grid-template-columns:none!important;}
html body.home #main .page_content .page_grid > section:first-child > div > div{max-width:720px!important;}
@media(prefers-reduced-motion:reduce){.home .site-main *{transition:none!important;animation:none!important}}

/* Version 2: bold contrast, stronger visual rhythm */
/* Mobile hero contrast repair */
body.home #main .page_grid > section:first-child{
 background-image:linear-gradient(90deg,rgba(9,18,27,.88),rgba(9,18,27,.42)),url("https://transfair-solutions.de/wp-content/uploads/2023/12/transfairtruck-1536x1025.jpg")!important;
 background-size:cover!important;background-position:58% center!important;
}
body.home #main .page_grid > section:first-child::before{display:none!important}
body.home #main .page_grid > section:first-child,
body.home #main .page_grid > section:first-child h1,
body.home #main .page_grid > section:first-child p:not(:first-child),
body.home #main .page_grid > section:first-child p:not(:first-child) strong{
 color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;text-shadow:none!important
}
body.home #main .page_grid > section:first-child h1{font-weight:850!important}
body.home #main .page_grid > section:first-child p:first-child,
body.home #main .page_grid > section:first-child p:first-child strong{
 color:#ff8538!important;-webkit-text-fill-color:#ff8538!important
}
body.home #main .page_grid > section:first-child span{
 border-radius:7px!important;background:rgba(255,255,255,.15)!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;
 font-size:13px!important;padding:7px 10px!important
}
body.home #main .page_grid > section:first-child span strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
@media(max-width:767px){
body.home #main .page_grid > section:first-child{background-image:linear-gradient(90deg,rgba(9,18,27,.86),rgba(9,18,27,.52)),url("https://transfair-solutions.de/wp-content/uploads/2023/12/transfairtruck-1536x1025.jpg")!important;background-position:59% center!important}
body.home #main .page_grid > section:first-child h1{font-size:clamp(36px,9vw,48px)!important}
body.home #main .page_grid > section:first-child p[style*="font-size:20px"]{font-size:16px!important}
body.home #main .page_grid > section:first-child span{font-size:12px!important}
}

.home .site-main .page_grid>section:first-child{isolation:auto!important;min-height:660px!important;background-color:#0c151d!important;background-blend-mode:normal!important}
.home .site-main .page_grid>section:first-child:before{z-index:0!important;background:linear-gradient(90deg,rgba(7,15,22,.94) 0%,rgba(7,15,22,.78) 43%,rgba(7,15,22,.23) 100%)!important}
.home .site-main .page_grid>section:first-child>div{position:relative!important;z-index:1!important}
.home .site-main .page_grid>section:first-child h1{color:#fff!important;text-shadow:0 3px 22px rgba(0,0,0,.3)!important}
.home .site-main .page_grid>section:first-child p{color:#fff!important}
.home .site-main .page_grid>section:first-child p:first-child,.home .site-main .page_grid>section p[style*="letter-spacing:2px"]{color:#ff7927!important;font-weight:800!important}
.home .site-main .page_grid>section:first-child a[href*="kontakt"]{background:#f36b0a!important;color:#fff!important;border-radius:8px!important;padding:16px 26px!important;box-shadow:0 14px 35px rgba(235,93,5,.32)!important}
.home .site-main .page_grid>section:nth-child(2){background:linear-gradient(125deg,#f0f2f4,#fff 60%)!important}
.home .site-main .page_grid>section:nth-child(2) h2,.home .site-main .page_grid>section:nth-child(3) h2,.home .site-main .page_grid>section:nth-child(5) h2,.home .site-main .page_grid>section:nth-child(6) h2{color:#111b24!important}
.home .site-main .page_grid>section:nth-child(2) p,.home .site-main .page_grid>section:nth-child(3) p,.home .site-main .page_grid>section:nth-child(5) p,.home .site-main .page_grid>section:nth-child(6) p{color:#263340!important}
.home .site-main .page_grid>section:nth-child(2)>div>div:last-child{background:#152330!important;color:#fff!important;border:0!important;border-radius:18px!important;box-shadow:0 18px 48px rgba(15,25,34,.2)!important}
.home .site-main .page_grid>section:nth-child(2)>div>div:last-child h3,.home .site-main .page_grid>section:nth-child(2)>div>div:last-child p,.home .site-main .page_grid>section:nth-child(2)>div>div:last-child a{color:#fff!important}
.home .site-main .page_grid>section:nth-child(3){background:#fff!important}
.home .site-main .page_grid>section:nth-child(3)>div>div:last-child>div{background:linear-gradient(155deg,#fff,#f1f4f6)!important;border:1px solid #d9e0e5!important;box-shadow:0 16px 42px rgba(12,24,35,.13)!important}
.home .site-main .page_grid>section:nth-child(3)>div>div:last-child>div h3{color:#101b25!important;font-size:25px!important;font-weight:800!important}
.home .site-main .page_grid>section:nth-child(3)>div>div:last-child>div p{color:#253440!important}
.home .site-main .page_grid>section:nth-child(4){background:linear-gradient(130deg,#0a121a,#1c3040 65%,#293b48)!important}
.home .site-main .page_grid>section:nth-child(4) h2,.home .site-main .page_grid>section:nth-child(4) p{color:#fff!important}
.home .site-main .page_grid>section:nth-child(4)>div>div>div{background:#fff!important;box-shadow:0 16px 38px rgba(0,0,0,.22)!important}
.home .site-main .page_grid>section:nth-child(4)>div>div>div h3,.home .site-main .page_grid>section:nth-child(4)>div>div>div p{color:#15222d!important}
.home .site-main .page_grid>section:nth-child(5){background:#f1f3f4!important}
.home .site-main .page_grid>section:nth-child(6){background:linear-gradient(115deg,#f9dfcd,#fff2e8)!important}
.home .site-main .page_grid>section:nth-child(6) a[href="/kontakt"]{background:#e95b00!important;color:#fff!important}
@media(max-width:767px){
.home .site-main .page_grid>section:first-child{min-height:600px!important;padding:54px 7%!important;background-position:62% center!important}
.home .site-main .page_grid>section:first-child:before{background:linear-gradient(90deg,rgba(7,15,22,.94),rgba(7,15,22,.76))!important}
.home .site-main .page_grid>section:first-child h1{font-size:clamp(39px,10vw,54px)!important}
.home .site-main .page_grid>section:nth-child(4)>div>div>div{min-width:100%!important}
}

