/* Praxis Aurea — header/footer states Elementor Free + UAE have no control for. Templates: UAE "Header" / "Footer".
   Values: doc/reference/measurements/chrome.json, chrome-sticky.json, chrome-extra.json (live computed). */

/* ---------- Header: layers ---------- */
#masthead { position: relative; z-index: 10011; }
/* 1px #dedede hairline under the header, gutter to gutter (gone while stuck) */
#masthead .pa-header { transition: background-color .25s ease-in-out; background-image: linear-gradient(#dedede, #dedede); background-repeat: no-repeat; background-position: center bottom; background-size: min(88vw, 1800px) 1px; }
/* Elementor loads widget-image.css only on pages that contain an Image widget (not on Kontakt) – keep the logo box independent of it */
#masthead .pa-logo a, #masthead .pa-logo img { display: block; }
#masthead .pa-logo img { height: auto; max-width: 100%; }
.pa-logo img { transition: width .25s ease, height .25s ease; }
.pa-logo, #masthead .pa-nav-desktop .menu-item a.hfe-menu-item { transition: margin .25s ease, padding .25s ease, color .2s linear; }

/* ---------- Desktop navigation: 190px items, 3px teal top line, text centred below the line ---------- */
#masthead .pa-nav-desktop .menu-item a.hfe-menu-item { padding-top: 87.5px; padding-bottom: 84.5px; }
#masthead .pa-nav-desktop .menu-item a.hfe-menu-item::before { transition: opacity .2s linear; }

/* when the items no longer fit they wrap left-aligned; <=1024 the last item keeps its 25px too (live: third row at 1024) */
#masthead .pa-nav-desktop ul.hfe-nav-menu { flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 1024px) { #masthead .pa-nav-desktop ul.hfe-nav-menu > li.menu-item:last-child { margin-right: 25px; } }

/* "Online-Termin" = default button inside the menu */
#masthead .pa-nav-desktop .pa-nav-btn a.hfe-menu-item { margin-top: 75px; margin-bottom: 72px; padding: 13px 29px; border-radius: 2px; background: var(--e-global-color-accent); color: var(--e-global-color-text); font-weight: 400; line-height: 17px; transition: margin .25s ease, background-color .2s; }
#masthead .pa-nav-desktop .pa-nav-btn a.hfe-menu-item:hover, #masthead .pa-nav-desktop .pa-nav-btn a.hfe-menu-item:focus { background: var(--e-global-color-secondary); color: var(--e-global-color-text); }
#masthead .pa-nav-desktop .pa-nav-btn a.hfe-menu-item::before { content: none; }

/* ---------- Sticky: >1024 shrinks to 65px (placeholder collapses as on the original), <=640 stays full height; 641–1024 not sticky ---------- */
@media (min-width: 1025px) {
	.pa-stuck #masthead { height: 65px; }
	.pa-stuck #masthead .pa-header { position: fixed; top: 0; left: 0; right: 0; height: 65px; --padding-bottom: 0px; background-image: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .118); }
	.pa-stuck #masthead .pa-logo { margin-top: 5px; margin-bottom: 5px; }
	.pa-stuck #masthead .pa-logo img { width: 64.7px; }
	.pa-stuck #masthead .pa-nav-desktop .menu-item a.hfe-menu-item { padding-top: 25px; padding-bottom: 22px; }
	.pa-stuck #masthead .pa-nav-desktop .pa-nav-btn a.hfe-menu-item { margin-top: 12.5px; margin-bottom: 9.5px; padding: 13px 29px; }
	.admin-bar.pa-stuck #masthead .pa-header { top: 32px; }
}
@media (max-width: 640px) {
	#masthead { height: 148px; }
	.pa-stuck #masthead .pa-header { position: fixed; top: 0; left: 0; right: 0; --padding-bottom: 0px; background-image: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .118); }
}

/* ---------- Mobile trigger: three 30x2 lines, 6px apart, flush with the gutter ---------- */
#masthead .pa-nav-mobile { align-self: flex-start; margin-top: 64.5px; }
#masthead .pa-nav-mobile .hfe-nav-menu__toggle { justify-content: flex-end; }
#masthead .pa-nav-mobile .hfe-nav-menu-icon { width: 30px; height: 18px; padding: 0; background: linear-gradient(#333, #333) 0 0 / 30px 2px no-repeat, linear-gradient(#333, #333) 0 8px / 30px 2px no-repeat, linear-gradient(#333, #333) 0 16px / 30px 2px no-repeat; }
#masthead .pa-nav-mobile .hfe-nav-menu-icon svg { display: none; }

/* ---------- Mobile menu: fullscreen white .95 layer fading in .4s, links centred, list centred above a 25px foot ---------- */
#masthead .pa-nav-mobile .hfe-flyout-overlay { display: none !important; }
#masthead .pa-nav-mobile .hfe-flyout-wrapper .hfe-side { display: block; top: 0; right: 0 !important; bottom: 0; left: 0; width: 100vw; height: 100%; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
#masthead .pa-nav-mobile .hfe-flyout-wrapper .hfe-side.hfe-flyout-show { opacity: 1; visibility: visible; transition: opacity .4s; }
#masthead .pa-nav-mobile .hfe-flyout-content { display: flex; align-items: center; padding: 0 0 25px; }
#masthead .pa-nav-mobile .hfe-flyout-content nav { width: 100%; max-height: 100%; }
#masthead .pa-nav-mobile .hfe-flyout-content ul.hfe-nav-menu { padding: 25px 0; text-align: center; }
#masthead .pa-nav-mobile .hfe-flyout-content .menu-item a.hfe-menu-item { display: inline-block; }
#masthead .pa-nav-mobile .hfe-flyout-content .menu-item:first-child a.hfe-menu-item { padding-top: 0; }
#masthead .pa-nav-mobile .hfe-flyout-content .menu-item:last-child a.hfe-menu-item { padding-bottom: 0; }
/* close cross in place of the trigger: two 26x2 lines */
#masthead .pa-nav-mobile .hfe-flyout-close { top: 60.5px; right: calc(6vw + 9px); width: 26px; height: 26px; margin: 0; background: linear-gradient(#333, #333) center / 26px 2px no-repeat; transform: rotate(45deg); }
#masthead .pa-nav-mobile .hfe-flyout-close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#333, #333) center / 2px 26px no-repeat; }
#masthead .pa-nav-mobile .hfe-flyout-close svg { display: none; }
/* the trigger lines become the cross on the original: hide them under the open layer */
#masthead .pa-nav-mobile .hfe-nav-menu-icon { transition: opacity .25s ease-in-out; }
#masthead .pa-nav-mobile:has(.hfe-flyout-show) .hfe-nav-menu-icon { opacity: 0; }

/* ---------- Page frame: the original adds 50px below the content at <=640 ---------- */
@media (max-width: 640px) { .elementor[data-elementor-type="wp-page"] { padding-bottom: 50px; } }

/* ---------- Footer: links keep the text colour, no hover change ---------- */
.elementor .pa-footer a, .elementor .pa-footer a:hover { color: inherit; text-decoration: none; }

/* ---------- Doctolib side tab (fixed container in the footer template): block-level pills and logo, no inline line-box gaps ---------- */
.pa-doctolib .elementor-button { display: block; white-space: normal; }
.pa-doctolib .elementor-widget-image img { display: block; width: auto; margin: 0 auto; }
