/* Autor: Marc Nitsche – dynamisches Markenmenü. */
.ah-brand-menu{color:#000;background:#fff;font-family:var(--wd-text-font);font-size:15px;text-align:left}
.ah-brand-menu [hidden],.ah-brand-panel[hidden]{display:none!important}
.ah-brand-search{position:relative;margin:0 0 12px}
.ah-brand-search input[type=search]{width:100%;height:44px;padding:0 44px 0 18px;border:1px solid #000;border-radius:999px;background:#fff;color:#000;font:inherit;box-sizing:border-box}
.ah-brand-search input::-webkit-search-cancel-button{display:none}
.ah-brand-clear{position:absolute;inset-inline-end:6px;top:2px;min-width:40px;height:40px;padding:0;background:transparent;color:#000;border:0;font-size:24px}
.ah-brand-letters{display:flex;gap:6px;overflow-x:auto;padding:0 0 10px;margin:0 0 8px;scrollbar-width:thin}
.ah-brand-letters button{flex:0 0 34px;min-width:34px;height:34px;min-height:34px;padding:0;border:1px solid #000;border-radius:8px;background:#fff;color:#000;font:600 14px var(--wd-text-font)}
.ah-brand-letters button[aria-current=true]{background:#000;color:#fff}
.ah-brand-scroll{max-height:min(55vh,510px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 5px 0 0}
.ah-brand-columns{columns:4;column-gap:32px;column-rule:1px solid #000}
.ah-brand-group{break-inside:avoid;padding:0 0 14px;margin:0}
.ah-brand-group h3{margin:0 0 4px!important;font:600 16px/24px var(--wd-text-font)!important;color:#000;letter-spacing:0;text-transform:none}
.ah-brand-group ul{list-style:none;padding:0;margin:0}
.ah-brand-group li{margin:0;padding:0}
.ah-brand-menu .ah-brand-group a{display:block;padding:5px 6px;min-height:32px;color:#000;font:400 15px/22px var(--wd-text-font);text-decoration:none;overflow-wrap:anywhere;border-radius:6px}
.ah-brand-menu .ah-brand-group a:hover,.ah-brand-menu .ah-brand-group a:focus-visible{background:transparent;color:#000}
.ah-brand-menu button:focus-visible,.ah-brand-menu a:focus-visible,.ah-brand-panel-head button:focus-visible,.ah-brand-toggle:focus-visible{outline:2px solid #000;outline-offset:2px}
.ah-brand-all{display:flex;justify-content:center;gap:12px;border-top:1px solid #000;margin-top:12px;padding:14px 0 0;color:#000;font-weight:600}
.ah-brand-empty{margin:12px 0}
.mega-menu-brands .elementor-widget-wd_products_brands>.elementor-widget-container{border:0!important;padding:20px!important;background-color:#fff!important}
.mobile-nav .wd-nav-mobile .ah-brand-toggle{position:relative;display:flex;align-items:center;justify-content:flex-start;width:100%;height:auto;min-height:50px;margin:0;padding:5px 70px 5px 20px;border:0;border-bottom:1px solid #000;border-radius:0;background:transparent;color:var(--wd-title-color);text-align:start;font:600 13px/1.4 var(--wd-text-font);text-transform:uppercase;box-shadow:none}
.mobile-nav .wd-nav-mobile .ah-brand-toggle>span{position:absolute;inset-inline-end:0;inset-block:0;display:flex;align-items:center;justify-content:center;width:50px;border-inline-start:1px solid #000;font-size:0;font-weight:400}
.mobile-nav .wd-nav-mobile .ah-brand-toggle>span::after{content:"\f113";font:14px woodmart-font}
.mobile-nav .ah-brand-mobile-item{position:static}
.ah-brand-panel{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;background:#fff;padding:0 15px 15px;overflow:hidden}
.ah-brand-panel-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 56px;border-bottom:1px solid #000;margin:0 -15px 16px;padding:0 8px;color:#000}
.ah-brand-panel-head strong{font:600 16px var(--wd-text-font)}
.ah-brand-panel-head button{min-width:44px;min-height:44px;padding:0;background:#fff;color:#000;font:400 28px var(--wd-text-font);border:0}
.mobile-nav.ah-brand-panel-open{overflow:hidden!important}
.mobile-nav .ah-brand-panel .ah-brand-menu{display:flex;flex-direction:column;min-height:0;flex:1}
.mobile-nav .ah-brand-panel .ah-brand-scroll{max-height:none;min-height:0;flex:1}
.mobile-nav .ah-brand-columns{columns:1}
.mobile-nav .ah-brand-group{padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid #000}
.mobile-nav .ah-brand-group:last-child{border-bottom:0}
.mobile-nav .ah-brand-menu .ah-brand-group a{min-height:44px;padding:11px 6px;font-size:15px}
.mobile-nav .ah-brand-letters button{flex-basis:40px;min-width:40px;height:40px}
.mobile-nav .ah-brand-all{flex-shrink:0;padding:14px 0 0}
@media(max-width:1024px){.ah-brand-columns{columns:2}}

/* Desktop: gleiche Außenkontur wie die Shop-Menüs, kompakte vollständige Markenliste. */
header .wd-dropdown-menu:has(.mega-menu-brands){width:min(1100px,calc(100vw - 32px));border:1px solid #000;border-radius:0}
.mega-menu-brands .elementor-widget-wd_products_brands>.elementor-widget-container{padding:0!important}
.mega-menu-brands .ah-brand-menu{background-image:linear-gradient(#000,#000),linear-gradient(#000,#000),linear-gradient(#000,#000),linear-gradient(#000,#000);background-size:1px 100%;background-position:20% 0,40% 0,60% 0,80% 0;background-repeat:no-repeat}
.mega-menu-brands .ah-brand-scroll{max-height:calc(100dvh - 180px);padding:16px 0;overflow-y:auto}
.mega-menu-brands .ah-brand-columns{columns:5;column-gap:0;column-rule:0}
.mega-menu-brands .ah-brand-group{padding:0 16px 8px}
.mega-menu-brands .ah-brand-group h3{margin-bottom:2px!important;line-height:22px!important}
.mega-menu-brands .ah-brand-group a{min-height:26px;padding:3px 6px;font-size:14px;line-height:20px}
