
/* Suche genau mittig: Logo | Suche | Aktionen */
body #masthead>.container{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(240px,400px) minmax(0,1fr);align-items:center;column-gap:28px}
body #masthead .fx-hd__a[href^="tel:"] span{display:none}
body #masthead .fx-hd__a{white-space:nowrap}
@media(max-width:1200px){body #masthead .fx-hd__a span{display:none}body #masthead .fx-hd__cartwrap .fx-bn__cart::after{content:none}}
body #masthead .fx-hd{display:contents}
body #masthead .site-branding{justify-self:start}
body #masthead .fx-hd__search{grid-column:2;width:100%;max-width:none;margin:0}
body #masthead .fx-hd__act{grid-column:3;justify-self:end;margin:0}
/* Ein-/Ausblenden beim Scrollen */
body #masthead.header-fixed{transition:transform .32s cubic-bezier(.2,.8,.2,1),box-shadow .2s;will-change:transform}
/* sanft ein-/ausblenden statt springen */
body #masthead .fx-tb{max-height:44px;transition:max-height .45s cubic-bezier(.4,0,.2,1),opacity .35s ease;overflow:hidden}
body #masthead .fx-bn{max-height:64px;transition:max-height .45s cubic-bezier(.4,0,.2,1),opacity .35s ease}
body.fx-hd-compact #masthead .fx-tb,body.fx-hd-compact #masthead .fx-bn{max-height:0!important;opacity:0;overflow:hidden!important;pointer-events:none}
body #masthead>.container,body #masthead .site-branding{transition:min-height .45s cubic-bezier(.4,0,.2,1),padding .45s cubic-bezier(.4,0,.2,1)}
body #masthead .site-branding .custom-logo{transition:max-height .45s cubic-bezier(.4,0,.2,1)}
body #masthead .fx-hd__search .fx-bn__search,body #masthead .fx-hd__a,body #masthead .fx-hd__cartwrap .fx-bn__cart{transition:height .45s cubic-bezier(.4,0,.2,1),border-color .15s,background .15s,box-shadow .15s}
body #masthead{transition:box-shadow .45s ease}
@keyframes fx-hd-slide{from{transform:translateY(-100%);opacity:.4}to{transform:none;opacity:1}}
body.fx-hd-compact #masthead{box-shadow:0 10px 28px -16px rgba(21,23,28,.35)}
/* Logo ohne Theme-Zeilenhoehe */
body #masthead .site-brand-inner,body #masthead .site-logo-div{line-height:0!important;height:auto!important}
body #masthead .custom-logo-link{display:block!important;line-height:0}
body #masthead>.container{min-height:66px!important}
body #masthead .site-branding{padding:8px 0!important}
body #masthead .site-branding .custom-logo{max-height:46px!important}
/* kompakte Zeile beim Scrollen: niedriger */
body.fx-hd-compact #masthead>.container{min-height:54px!important}
body.fx-hd-compact #masthead .site-branding{padding:6px 0!important}
body.fx-hd-compact #masthead .site-branding .custom-logo{max-height:36px!important}
body.fx-hd-compact #masthead .fx-hd__search .fx-bn__search{height:40px!important}
body.fx-hd-compact #masthead .fx-hd__a{height:38px}
body.fx-hd-compact #masthead .fx-hd__cartwrap .fx-bn__cart{height:38px!important}
@media(max-width:900px){body.fx-hd-compact #masthead>.container{min-height:0!important;padding-top:8px;padding-bottom:8px}body.fx-hd-compact #masthead .site-branding{padding:5px 0!important}body.fx-hd-compact #masthead .site-branding .custom-logo{max-height:30px!important}body.fx-hd-compact #masthead .fx-hd__search .fx-bn__search{height:36px!important}body.fx-hd-compact #masthead .fx-hd__a{height:34px}body.fx-hd-compact #masthead .fx-hd__cartwrap .fx-bn__cart{height:34px!important;padding:0 11px}}
body.fx-hd-hide #masthead{transform:translateY(calc(-100% - 40px))}
/* Platzhalter immer so hoch wie der volle Kopf (sonst überdeckt er beim Zurückscrollen den Inhalt) */
body .followWrap{height:var(--fx-hdh,auto)!important;min-height:var(--fx-hdh,0)!important}
/* Handy: Platz fuer den festen Kopf sofort reservieren, nicht erst wenn das Theme den Platzhalter anlegt (gegen Springen) */
@media(max-width:900px){body #header-section{min-height:var(--fx-hdh,200px)}}
body.fx-hd-measure #masthead,body.fx-hd-measure #masthead *{transition:none!important;animation:none!important}
/* Handy: Kopf immer fest oben, schrumpft weich wie am Desktop */
@media(max-width:900px){body #masthead{position:fixed!important;top:0;left:0;right:0;z-index:1000;transition:box-shadow .45s ease,top .3s ease}}
@media(max-width:782px){body.admin-bar:not(.fx-hd-compact) #masthead{top:46px}}
@media(min-width:601px) and (max-width:782px){body.admin-bar #masthead{top:46px}}
@media(min-width:783px) and (max-width:900px){body.admin-bar #masthead{top:32px}}
@media(max-width:900px){
	body #masthead>.container{grid-template-columns:1fr auto;row-gap:0;column-gap:10px;padding-bottom:10px}
	body #masthead .fx-hd__search{display:block!important;grid-column:1 / -1;grid-row:2}
	body #masthead .fx-hd__act{grid-column:2;grid-row:1}
	body #masthead .fx-hd__search .fx-bn__search{height:44px;border-radius:12px}
}
