
/* Autocenter Herrenberg global header + stock v0.7 */
:root{--ach-red:#d90812;--ach-black:#090909;--ach-soft:#f5f5f5}
body:not(.wp-admin) .site-header{display:none!important}
.ach-site-header{background:#090909;color:#fff;border-bottom:4px solid var(--ach-red);position:relative;z-index:9999}
.ach-header-inner{max-width:1760px;margin:auto;min-height:86px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.ach-brand .custom-logo-link{display:block}.ach-brand .custom-logo{display:block;max-height:62px;width:auto}
.ach-brand-text{color:#fff!important;text-decoration:none!important;display:flex;flex-direction:column;line-height:.9}
.ach-brand-text strong{font-size:29px;font-style:italic;letter-spacing:-1.5px}.ach-brand-text strong span{color:var(--ach-red)}
.ach-brand-text small{letter-spacing:7px;font-size:11px;margin-top:7px}
.ach-main-nav .ach-menu,.ach-main-nav ul{display:flex;align-items:center;gap:3px;list-style:none;margin:0;padding:0}
.ach-main-nav a{display:block;color:#fff!important;text-decoration:none!important;font-weight:800;text-transform:uppercase;font-size:13px;padding:31px 16px;border-bottom:3px solid transparent}
.ach-main-nav a:hover,.ach-main-nav .current-menu-item>a{border-color:var(--ach-red);background:#151515}
.ach-menu-toggle{display:none;background:none;border:0;color:#fff;padding:12px;align-items:center;gap:5px}.ach-menu-toggle span{display:block;width:27px;height:2px;background:#fff}.ach-menu-toggle b{font-size:0}
.ach-inventory{max-width:1680px!important;margin:0 auto;padding:42px 28px 70px}
.ach-stock-head span{color:var(--ach-red);font-size:12px;font-weight:900;letter-spacing:.1em}
.ach-stock-head h1{font-size:clamp(42px,4vw,70px);line-height:1;margin:7px 0 10px;font-weight:900;letter-spacing:-.04em}
.ach-stock-head p{font-size:17px;margin-bottom:30px}
.ach-stock-tools{display:grid;grid-template-columns:2fr repeat(4,1fr) 1.2fr;gap:8px;padding:14px;background:#111;border-left:6px solid var(--ach-red)}
.ach-stock-tools input,.ach-stock-tools select{min-width:0;height:48px;border:1px solid #444;background:#fff;padding:0 12px;font-size:14px}
.ach-stock-count{margin:20px 0 10px}
.ach-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.ach-car-card{border:1px solid #ddd;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.06);display:flex;flex-direction:column}
.ach-card-image{display:block;position:relative;aspect-ratio:16/10;background:#111;overflow:hidden}
.ach-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}.ach-card-image:hover img{transform:scale(1.025)}
.ach-card-status{position:absolute;left:10px;top:10px;background:#fff;color:#111;padding:5px 8px;font-size:11px;font-weight:800;border-left:4px solid var(--ach-red)}
.ach-card-noimage{height:100%;display:grid;place-items:center;color:#aaa}
.ach-card-body{padding:18px;display:flex;flex-direction:column;flex:1}.ach-card-body h2{font-size:25px;line-height:1.08;margin:0 0 10px;font-weight:900}
.ach-card-body h2 a{color:#111;text-decoration:none}.ach-card-price{font-size:31px;font-weight:900;margin-bottom:14px}
.ach-card-specs{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e2e2e2;margin-bottom:16px}
.ach-card-specs div{padding:9px;border-right:1px solid #eee;border-bottom:1px solid #eee;min-height:58px}.ach-card-specs div:nth-child(2n){border-right:0}
.ach-card-specs small{display:block;color:#777;font-size:10px;text-transform:uppercase}.ach-card-specs strong{font-size:13px}
.ach-card-button{margin-top:auto;display:block;background:var(--ach-red);color:#fff!important;text-align:center;text-decoration:none!important;text-transform:uppercase;font-weight:900;padding:13px}
.ach-no-results{padding:40px;text-align:center;background:#f5f5f5}
@media(min-width:1600px){.ach-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.ach-stock-tools{grid-template-columns:repeat(3,1fr)}.ach-card-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){
 .ach-header-inner{min-height:68px;padding:0 14px}.ach-brand .custom-logo{max-height:48px}.ach-brand-text strong{font-size:22px}.ach-brand-text small{font-size:9px;letter-spacing:5px}
 .ach-menu-toggle{display:flex;flex-direction:column}
 .ach-main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#0b0b0b;border-top:1px solid #333;border-bottom:4px solid var(--ach-red)}
 .ach-site-header.is-open .ach-main-nav{display:block}
 .ach-main-nav .ach-menu,.ach-main-nav ul{display:block}.ach-main-nav a{padding:16px 20px;border-bottom:1px solid #292929}
 .ach-inventory{padding:28px 12px 50px}.ach-stock-head h1{font-size:42px}
 .ach-stock-tools{grid-template-columns:1fr 1fr;padding:9px}.ach-stock-tools input{grid-column:1/-1}.ach-stock-tools select:last-child{grid-column:1/-1}
 .ach-card-grid{grid-template-columns:1fr;gap:14px}.ach-card-body h2{font-size:23px}
}

/* v0.7.2 — GeneratePress stock page layout fix */
body.ach-stock-page #right-sidebar,
body.ach-stock-page #left-sidebar,
body.ach-stock-page .widget-area{display:none!important}
body.ach-stock-page #page,
body.ach-stock-page .site.grid-container,
body.ach-stock-page .grid-container.site,
body.ach-stock-page .site-content,
body.ach-stock-page #primary,
body.ach-stock-page .content-area,
body.ach-stock-page main.site-main,
body.ach-stock-page article.page,
body.ach-stock-page .inside-article,
body.ach-stock-page .entry-content{
 max-width:none!important;
 width:100%!important;
 float:none!important;
 margin-left:auto!important;
 margin-right:auto!important;
}
body.ach-stock-page #page{padding:0!important}
body.ach-stock-page .site-content{padding:0!important;display:block!important}
body.ach-stock-page .inside-article{padding:0!important;background:#fff!important}
body.ach-stock-page .entry-header{display:none!important}
body.ach-stock-page .entry-content{margin:0!important}
body.ach-stock-page .ach-inventory{
 display:block!important;
 max-width:1680px!important;
 width:calc(100% - 64px)!important;
 margin:0 auto!important;
 padding:48px 0 72px!important;
}
body.ach-stock-page .ach-stock-tools{
 width:100%!important;
 min-width:0!important;
}
body.ach-stock-page .ach-card-grid{
 width:100%!important;
 display:grid!important;
 grid-template-columns:repeat(3,minmax(280px,1fr))!important;
 gap:22px!important;
 align-items:stretch!important;
}
body.ach-stock-page .ach-car-card{
 min-width:0!important;
 width:100%!important;
}
body.ach-stock-page .ach-car-card:only-child{
 max-width:480px!important;
}
@media(min-width:1600px){
 body.ach-stock-page .ach-card-grid{grid-template-columns:repeat(4,minmax(280px,1fr))!important}
}
@media(max-width:1100px){
 body.ach-stock-page .ach-inventory{width:calc(100% - 36px)!important}
 body.ach-stock-page .ach-card-grid{grid-template-columns:repeat(2,minmax(260px,1fr))!important}
}
@media(max-width:680px){
 body.ach-stock-page .ach-inventory{width:100%!important;padding:28px 12px 50px!important}
 body.ach-stock-page .ach-card-grid{grid-template-columns:minmax(0,1fr)!important}
 body.ach-stock-page .ach-car-card:only-child{max-width:none!important}
}

/* v0.7.3 — shortcode-driven fallback, independent of page slug */
body:has(.ach-inventory) #right-sidebar,
body:has(.ach-inventory) #left-sidebar,
body:has(.ach-inventory) .widget-area{display:none!important}
body:has(.ach-inventory) #page,
body:has(.ach-inventory) .site-content,
body:has(.ach-inventory) #primary,
body:has(.ach-inventory) .content-area,
body:has(.ach-inventory) main.site-main,
body:has(.ach-inventory) article.page,
body:has(.ach-inventory) .inside-article,
body:has(.ach-inventory) .entry-content{
 max-width:none!important;width:100%!important;float:none!important;margin-left:auto!important;margin-right:auto!important
}
body:has(.ach-inventory) .entry-header{display:none!important}
body:has(.ach-inventory) .site-content,
body:has(.ach-inventory) .inside-article{padding:0!important}
.ach-inventory .ach-card-grid{grid-template-columns:repeat(3,minmax(320px,1fr))!important}
.ach-inventory .ach-car-card{min-width:320px!important;max-width:480px!important}
.ach-inventory .ach-car-card:only-child{width:100%!important;max-width:480px!important}
@media(min-width:1600px){.ach-inventory .ach-card-grid{grid-template-columns:repeat(4,minmax(300px,1fr))!important}}
@media(max-width:1100px){.ach-inventory .ach-card-grid{grid-template-columns:repeat(2,minmax(280px,1fr))!important}}
@media(max-width:680px){.ach-inventory .ach-card-grid{grid-template-columns:1fr!important}.ach-inventory .ach-car-card{min-width:0!important;max-width:none!important}}
