/* Halla Deutsch header menu (halla-header-nav.php). Desktop: one row. 721-1040px: menu on its own row. Up to 720px: levels row + menu button. */
.site .wrap{flex-wrap:wrap;column-gap:14px}
.hnav{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:10px}
.hnav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center}
.hnav .lvls{gap:4px;padding:4px;background:var(--card);border:2px solid var(--line);border-bottom-width:4px;border-radius:16px}
.hnav .lvls a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:58px;height:44px;padding:0 10px;border-radius:11px;text-decoration:none;color:var(--ink);transition:background-color .15s ease,color .15s ease}
.hnav .lvls b{font-family:var(--f-de);font-weight:700;font-size:15.5px;line-height:1.1;color:var(--plum);letter-spacing:.01em}
.hnav .lvls small{font-size:10.5px;line-height:1.3;color:var(--muted);white-space:nowrap}
.hnav .lvls a:hover{background:var(--plum-bg,#d9cefc)}
.hnav .lvls a[aria-current]{background:var(--lila,#7a5af8);box-shadow:inset 0 -3px 0 var(--plum-edge,#5b3fd6)}
.hnav .lvls a[aria-current] b,.hnav .lvls a[aria-current] small{color:#fff}
.hnav .lnks{gap:2px}
.hnav .lnks a,.hnav .lnks button.hx-btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 11px;border:0;border-radius:12px;background:transparent;text-decoration:none;font:inherit;font-size:15px;font-weight:600;color:var(--ink);white-space:nowrap;cursor:pointer;transition:background-color .15s ease,color .15s ease}
.hnav .lnks svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--plum)}
.hnav .lnks a>svg{display:none}
.hnav .lnks a:hover,.hnav .lnks a[aria-current],.hnav .lnks button.hx-btn:hover,.hnav .lnks button.hx-btn[aria-expanded="true"]{background:var(--plum-bg,#d9cefc);color:var(--plum)}
.hnav a:focus-visible,.hnav button:focus-visible{outline:3px solid var(--olive-band,#ffc531);outline-offset:2px}
.hnav .hx-chev{width:14px!important;height:14px!important;transition:transform .2s ease}
.hnav button[aria-expanded="true"] .hx-chev{transform:rotate(180deg)}
.hnav-burger{display:none}
/* dropdowns (desktop: floating, placed by script) */
.hx-menu{position:fixed;z-index:60;width:320px;max-width:calc(100vw - 16px);padding:8px;background:var(--card);border:2px solid var(--line);border-bottom-width:5px;border-radius:18px;box-shadow:0 18px 40px -18px rgba(43,36,64,.45);font-family:var(--f-ar);font-size:15px;line-height:1.55;color:var(--ink);text-align:start}
.hx-menu[hidden]{display:none}
.hx-menu .hx-h{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px 10px;font-size:13px;color:var(--muted)}
.hx-menu .hx-h b{font-size:14px;color:var(--ink)}
.hnav .hx-menu ul,.hx-menu ul{list-style:none;margin:0;padding:0;display:grid;align-items:stretch;gap:4px}
.hx-menu .hx-i{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;cursor:default}
.hx-menu .hx-i:hover{background:var(--none-bg,#dfd7f7)}
.hx-menu .hx-code{flex:none;width:44px;height:40px;display:grid;place-items:center;border-radius:10px;background:var(--plum-bg,#d9cefc);color:var(--plum);font-family:var(--f-de);font-weight:700;font-size:15px}
.hx-menu .hx-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.hx-menu .hx-t span{font-weight:600;font-size:14.5px}
.hx-menu .hx-t small{font-size:12px;color:var(--muted);white-space:nowrap}
.hx-menu .hx-soon{flex:none;font-size:11.5px;font-weight:700;color:#2b2440;background:var(--olive-band,#ffc531);border-radius:999px;padding:3px 10px;box-shadow:inset 0 -2px 0 rgba(0,0,0,.12)}
.hnav-prev{position:fixed;inset-inline-start:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:50;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#2b2440;color:#f3f0ff;font-size:12.5px;font-weight:600;border:1px solid rgba(255,255,255,.14);box-shadow:0 8px 24px -10px rgba(0,0,0,.45);pointer-events:none}
.hnav-prev i{width:8px;height:8px;border-radius:50%;background:#ffc531;box-shadow:0 0 0 3px rgba(255,197,49,.25)}

/* the domain text makes room for the menu */
@media (max-width:1240px){.site .htools .dom{display:none}}
@media (max-width:1100px){.hnav .lvls small{display:none}.hnav .lvls a{min-width:46px}.hnav .lnks .hx-btn>svg:first-child{display:none}}
/* tablets and small laptops: the menu gets its own row under the logo */
@media (max-width:1040px){
.hnav{order:3;flex-basis:100%;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding:2px 0 4px}
.hnav::-webkit-scrollbar{display:none}
.hnav .lvls small{display:block}
.hnav .lvls a{min-width:56px}
}
@media (min-width:721px) and (max-width:820px){.hnav .lvls small{display:none}.hnav .lvls a{min-width:46px}}
/* phones: levels stay in view, the other links open from the menu button */
@media (max-width:720px){
.site .wrap{row-gap:10px}
.hnav{flex-wrap:wrap;overflow:visible;gap:8px;padding:0 0 2px}
.hnav .lvls{flex:1 1 0;min-width:0}
.hnav .lvls>li{flex:1 1 auto;min-width:0}
.hnav .lvls a{width:100%;min-width:0;padding:0 6px}
.hnav .lvls small{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:10px}
.hnav-burger{display:grid;place-items:center;flex:none;align-self:stretch;width:54px;min-height:44px;padding:0;border-radius:16px;background:var(--card);color:var(--ink);border:2px solid var(--line);border-bottom-width:4px;cursor:pointer}
.hnav-burger svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.hnav-burger .hb-close,.hnav.is-open .hnav-burger .hb-open{display:none}
.hnav.is-open .hnav-burger .hb-close{display:block}
.hnav.is-open .hnav-burger{background:var(--plum-bg,#d9cefc);color:var(--plum);border-color:color-mix(in srgb,var(--plum) 35%,var(--line))}
.hnav .lnks{display:none;flex-basis:100%;flex-direction:column;align-items:stretch;gap:2px;padding:6px;background:var(--card);border:2px solid var(--line);border-bottom-width:4px;border-radius:16px}
.hnav.is-open .lnks{display:flex}
.hnav .lnks>li{display:block}
.hnav .lnks a,.hnav .lnks button.hx-btn{width:100%;height:48px;padding:0 12px;gap:12px;justify-content:flex-start;font-size:15.5px}
.hnav .lnks a>svg,.hnav .lnks .hx-btn>svg:first-child{display:block;width:20px;height:20px}
.hnav .lnks .hx-chev{margin-inline-start:auto}
.hnav .hx-menu{position:static;z-index:auto;width:auto;max-width:none;margin:4px 0 6px;padding:4px;border:0;border-radius:14px;box-shadow:none;background:color-mix(in srgb,var(--plum-bg,#d9cefc) 45%,transparent)}
.hnav .hx-menu .hx-h{display:none}
.hnav .hx-menu .hx-i{padding:8px}
.hnav .hx-menu .hx-t small{white-space:normal}
}
@media (max-width:340px){.hnav .lvls small{display:none}.hnav-burger{width:48px}}
@media (prefers-reduced-motion:reduce){.hnav *,.hx-menu *{transition:none!important}}
