/* Praxis Aurea — only what Elementor Free has no control for. Values: doc/reference (live computed). */

/* Image-slot geometry (slots keep their ratio whatever image is inserted) */
.pa-card { aspect-ratio: 369.06 / 247.27; }
.pa-ar-3-2 img { display: block; width: 100%; aspect-ratio: 1000 / 667; object-fit: cover; }

/* Hero info card: translucent over the image on desktop, solid once it sits below the image */
@media (max-width: 800px) { .e-con.pa-hero-card { background-color: #9ED4D3 !important; } }

/* Split section (image | text): between 768 and 800 the original stacks the columns but still equalises their heights
   (both get the image height, 1:1.769 of the 88vw column) and keeps 20px below each column */
@media (min-width: 768px) and (max-width: 800px) { .pa-split > .e-con { --min-height: 155.67vw; --margin-bottom: 20px; } }

/* Quote band: the original's parallax layer is cover-sized in a box 270px taller than the band and sits 37% into that
   excess when the band is centred in the viewport (live: offset = -0.22 * bandTop - 71px). Static equivalent until parallax is built. */
.elementor .elementor-element.elementor-element.e-con.pa-quote-bg { background-size: auto calc(100% + 270px); background-position: center 37%; }
@media (min-width: 1900px) { .elementor .elementor-element.elementor-element.e-con.pa-quote-bg { background-size: cover; } }

/* Text editor: last paragraph carries no trailing margin, spacing is set on the layout */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
/* Lists in running text keep the original's 1em block margins (Hello resets them to 0) */
.elementor-widget-text-editor ul, .elementor-tab-content ul { margin: 1em 0; }
.elementor-widget-text-editor ul ul, .elementor-tab-content ul ul { margin: 0; }
/* Legal pages: the original does not break long URLs; they are cut off at the viewport edge instead of widening the page */
.pa-legal { overflow-x: clip; }

/* Buttons: original transition speed; SVG icons follow the text colour (the kit's button colour only sets `color`) */
.elementor-button { transition: all .2s; fill: currentColor; }

/* Entrance animation speed of the original (fadeInUp 0.3s) */
.pa-fade.animated { animation-duration: .3s; }

/* Accordion (Toggle widget): rule below each item only, 22px teal icon box, title indented beside it on every line */
.pa-acc .elementor-toggle-item { border-bottom: 1px solid #E0DEDE; }
.pa-acc .elementor-tab-title { display: flex; align-items: flex-start; margin: 0; cursor: pointer; }
.pa-acc .elementor-toggle-title { flex: 1; }
.pa-acc .elementor-toggle .elementor-tab-title .elementor-toggle-icon { flex: none; float: none; width: 22px; height: 22px; margin-top: 1.2px; background: #9ED4D3; }
.pa-acc .elementor-toggle .elementor-tab-title .elementor-toggle-icon svg { display: block; width: 11px; height: 13px; margin: 4.5px auto 0; }

/* Anchor targets (/leistungen/#s1–#s3): the original's menu anchors sit 270px above the panel column (= 230px above the panel), at the column top once stacked */
.pa-anchor { scroll-margin-top: 230px; }
@media (max-width: 800px) { .pa-anchor { scroll-margin-top: -20px; } }
/* Where the header is sticky the original ends up a full header height further down (the header leaves the flow after the jump):
   >1024 the panel lands 79px below the viewport top (ours shrinks by 126 instead of 191 → 65px less), <=640 it lands 148px further
   (panel image scrolled out, heading under the fixed bar — as on the live site). */
@media (min-width: 1025px) { .pa-anchor { scroll-margin-top: 165px; } }
@media (max-width: 640px) { .pa-anchor { scroll-margin-top: -168px; } }

/* Modal (Team CV): a .pa-modal container is the overlay, .pa-modal-dialog the box; site.js opens it from any link to its #id and adds
   the close button. Original = Bootstrap modal: 900px dialog 60px from the top (10px side margins below 900), fade .3s + slide-in.
   Inside the Elementor editor it stays a normal block so it can be edited. */
body:not(.elementor-editor-active) .e-con.pa-modal { position: fixed; inset: 0; z-index: 99999; display: block; overflow-x: hidden; overflow-y: auto; background: rgba(0, 0, 0, .5); visibility: hidden; opacity: 0; transition: opacity .3s linear, visibility 0s .3s; }
body:not(.elementor-editor-active) .e-con.pa-modal.pa-open { visibility: visible; opacity: 1; transition: opacity .3s linear; }
body:not(.elementor-editor-active) .pa-modal > .e-con.pa-modal-dialog { transform: translateY(-25%); transition: transform .3s ease-out; }
body:not(.elementor-editor-active) .pa-modal.pa-open > .e-con.pa-modal-dialog { transform: none; }
body.pa-modal-open { overflow: hidden; }
.elementor-editor-active .e-con.pa-modal { padding: 60px 10px 10px; background: rgba(0, 0, 0, .5); }
.elementor .pa-modal > .e-con.pa-modal-dialog { position: relative; width: auto; max-width: 900px; margin: 60px 10px 10px; box-shadow: 0 3px 9px rgba(0, 0, 0, .5); }
@media (min-width: 900px) { .elementor .pa-modal > .e-con.pa-modal-dialog { margin: 60px auto 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, .5); } }
.elementor-editor-active .pa-modal > .e-con.pa-modal-dialog { margin-top: 0; margin-bottom: 0; }
.pa-modal .pa-modal-close,
.pa-modal .pa-modal-close:hover,
.pa-modal .pa-modal-close:focus { position: absolute; top: 8px; right: 20px; z-index: 1; padding: 0; border: 0; border-radius: 0; background: none; color: #000; font: 700 30px/30px Arial, sans-serif; opacity: .2; cursor: pointer; }
.pa-modal .pa-modal-close:focus-visible { opacity: .5; outline: 2px solid currentColor; outline-offset: 2px; }

/* Scroll-to-top (UAE extension, styled in Site Settings): the original only shows it above 900px; icon centred on the 35px tab */
@media (max-width: 900px) { .hfe-scroll-to-top-wrap { display: none !important; } }
.hfe-scroll-to-top-wrap .hfe-scroll-to-top-button { cursor: pointer; transition: background .2s ease-in-out; }
/* skip-link target (id set in site.js): focusable, but no ring around the whole page */
#content[tabindex="-1"]:focus { outline: none; }
/* UAE's fixed 100px threshold → 200px as on the original (class set in site.js) */
.hfe-scroll-to-top-wrap.pa-to-top-early { opacity: 0 !important; pointer-events: none; }
/* the original's thin angle (Avada icon font) instead of Font Awesome's bold one; any other icon chosen in Site Settings is left alone */
.hfe-scroll-to-top-wrap .hfe-scroll-to-top-button i.fa-angle-up::before { content: ""; display: block; box-sizing: border-box; width: 10px; height: 10px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(2.5px) rotate(-45deg); }
.hfe-scroll-to-top-wrap .hfe-scroll-to-top-button:focus-visible { outline: 2px solid #9ED4D3; outline-offset: 2px; }

/* Info card tables (Sprechzeiten / Kontakt) */
.pa-info h3 { margin: 0 0 5.4px; font-size: 18px; font-weight: 500; line-height: 27px; }
.pa-info i { display: inline-block; margin-right: 8px; }
.pa-info table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 18px; }
.pa-info table td,
.pa-info table tbody > tr:nth-child(odd) > td { padding: 4.5px 10px 4.5px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .5); background: none; vertical-align: top; line-height: 1.5385; }
.pa-info table td + td,
.pa-info table tbody > tr:nth-child(odd) > td + td { padding-right: 0; }
.elementor .pa-info a,
.elementor .pa-info a:hover { color: inherit; text-decoration: none; }
@media (max-width: 400px) { .pa-info table td { font-size: 15px; } }

/* Kontakt band: 32px H3 (Heading widget) with its icon */
.pa-info-h i { margin-right: 8px; }

/* Contact form fields (original CF7/Avada geometry): 100px pitch = 27 label + 53 input + 20 */
.pa-form p { margin: 0 0 20px; }
.pa-form label { display: inline; line-height: inherit; vertical-align: baseline; }
.pa-form p:last-child, .pa-form form > p:last-of-type { margin-bottom: 0; }
.pa-form input[type="text"], .pa-form input[type="email"], .pa-form input[type="tel"], .pa-form textarea { display: block; width: 100%; height: 53px; padding: 15px; border: 1px solid #999; border-radius: 0; background: #fff; color: #888787; font-size: 18px; font-weight: 400; line-height: normal; box-shadow: none; outline: 0; transition: none; }
.pa-form textarea { height: 242px; line-height: 1.5; resize: vertical; }
.pa-form input[type="text"]:focus, .pa-form input[type="email"]:focus, .pa-form input[type="tel"]:focus, .pa-form textarea:focus { border-color: #D2D2D2; background: #F4F4F4; }
.pa-form input[type="checkbox"] { margin: 3px 3px 3px 4px; }
.pa-form input[type="button"], .pa-form input[type="submit"] { height: 42px; padding: 13px 29px; border: 0; border-radius: 2px; background: #9ED4D3; color: #545454; font-size: 16px; font-weight: 400; line-height: 16px; cursor: pointer; transition: all .2s; }
.pa-form input[type="button"]:hover, .pa-form input[type="button"]:focus, .pa-form input[type="submit"]:hover, .pa-form input[type="submit"]:focus { background: var(--e-global-color-secondary); color: #545454; }
/* CF7 states: submit stays disabled (teal, not-allowed) until the consent box is ticked; tips = one 27px line; response = Avada alert box */
.pa-form input[type="submit"]:disabled, .pa-form input[type="submit"]:disabled:hover { background: #9ED4D3; cursor: not-allowed; }
.pa-form .wpcf7-form-control-wrap { display: inline; }
.pa-form .wpcf7-list-item { margin: 0; }
.pa-form .wpcf7-spinner { position: absolute; margin: 9px 12px; }
.pa-form .wpcf7-not-valid-tip { display: block; color: #DC3232; font-size: 18px; font-weight: 400; line-height: 27px; }
.pa-form .wpcf7 form .wpcf7-response-output { position: relative; display: flex; align-items: center; justify-content: center; margin: 36px 0 18px; padding: 25px; border: 1px solid #A64242; border-radius: 0; background: #F2DEDE; color: #A64242; font-size: 18px; font-weight: 300; line-height: 27px; text-align: center; text-transform: uppercase; }
.pa-form .wpcf7 form.init .wpcf7-response-output, .pa-form .wpcf7 form.resetting .wpcf7-response-output, .pa-form .wpcf7 form.submitting .wpcf7-response-output, .pa-form .wpcf7 form .wpcf7-response-output.pa-closed { display: none; }
.pa-form .wpcf7 form .wpcf7-response-output::before { content: "\f071"; flex: none; width: 27px; margin-right: 10px; font: 900 24px/27px "Font Awesome 5 Free"; }
.pa-form .wpcf7 form.sent .wpcf7-response-output { border-color: #468847; background: #DFF0D8; color: #468847; }
.pa-form .wpcf7 form.sent .wpcf7-response-output::before { content: "\f00c"; }
.pa-form .pa-alert-close { position: absolute; top: -1px; right: -1px; width: 26px; height: 26px; padding: 0; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font-size: 15px; font-weight: 700; line-height: 24px; cursor: pointer; }
.pa-form .pa-alert-close:hover, .pa-form .pa-alert-close:focus { background: transparent; color: inherit; }

/* Google Map (Home, Kontakt): 400px iframe in a 407px box. While Complianz blocks the iframe (class cmplz-iframe comes from the
   server), .pa-map-blocker shows the original's placeholder: band with text 2/3 + two buttons 1/3 over the placeholder image,
   96px above/below (12% on narrow boxes, stacked card with 6% margin on phones). .pa-map-open = unblocked (site.js). */
/* breakpoints are viewport-based (the box is always 88vw): container queries left a stale height on the column-flex widget */
.pa-map-box { position: relative; }
.pa-map iframe { display: block; width: 100%; height: 400px; margin: 0 0 7px; border: 0; }
.pa-map-blocker { display: none; }
.pa-map:has(iframe.cmplz-iframe):not(.pa-map-open) .pa-map-blocker { position: relative; z-index: 1; display: flex; padding: 96px 0; color: #555; font-size: 14px; font-weight: 400; line-height: 17.5px; text-align: center; }
.pa-map:has(iframe.cmplz-iframe):not(.pa-map-open) .cmplz-placeholder-parent { position: absolute; inset: 0; height: auto !important; overflow: hidden; border-radius: 4px; background-color: #FAFAFA; background-position: center; background-size: cover; }
.pa-map:has(iframe.cmplz-iframe):not(.pa-map-open) .cmplz-placeholder-parent > * { display: none; }
/* one-off unblock ("Inhalt entsperren"): Complianz still regards the iframe as blocked, so neutralise its placeholder box here */
.pa-map.pa-map-open .cmplz-placeholder-parent { display: block; height: auto; border-radius: 0; background: none !important; box-shadow: none; animation: none; }
.pa-map.pa-map-open .cmplz-placeholder-parent iframe { visibility: visible; max-height: none; }
.pa-map.pa-map-open .cmplz-blocked-content-notice { display: none !important; }
.pa-map-main { display: flex; align-items: center; box-sizing: border-box; width: 100%; padding: 16px; background: rgba(250, 250, 250, .85); }
.pa-map-text { flex: 2 1 0; min-width: 0; }
.pa-map-text p { margin: 0; padding: 0 0 16px; }
.pa-map-text strong { font-weight: 700; }
.pa-map-btns { display: flex; flex: 1 1 0; flex-direction: column; gap: 16px; min-width: 0; margin-left: 16px; }
.pa-map-blocker button { border: 0; border-radius: 0; font-family: inherit; white-space: normal; cursor: pointer; }
.pa-map-blocker .pa-map-more { padding: 0; background: none; color: #AAD4D4; font-size: 14px; font-weight: 400; line-height: 17.5px; }
.pa-map-blocker .pa-map-more:hover, .pa-map-blocker .pa-map-more:focus { background: none; color: #AAD4D4; text-decoration: underline; }
.pa-map-btns button { padding: 12px 20px; border-radius: 3px; background: #4285F4; color: #fff; font-size: 14px; font-weight: 600; line-height: 21px; transition: background-color .2s, color .2s; }
.pa-map-btns button:hover, .pa-map-btns button:focus { background: #fff; color: #4285F4; }
@media (max-width: 727px) {
	.pa-map:has(iframe.cmplz-iframe):not(.pa-map-open) .pa-map-blocker { padding: 12% 0; }
}
@media (max-width: 545px) {
	.pa-map:has(iframe.cmplz-iframe):not(.pa-map-open) .pa-map-blocker { padding: 0; }
	.pa-map-main { flex-direction: column; align-items: stretch; width: auto; margin: 6%; }
	.pa-map-text { flex: none; }
	.pa-map-text p { padding-bottom: 8px; }
	.pa-map-btns { flex: none; gap: 8px; margin: 8px 0 0; }
}
.pa-map-info { box-sizing: border-box; width: 576px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); padding: 24px; overflow: auto; border: 0; border-radius: 4px; background: #fff; color: #000; font-size: 14px; line-height: 21px; text-align: left; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.pa-map-info::backdrop { background: rgba(0, 0, 0, .7); }
.pa-map-info h3 { margin: 0 0 12px; color: #000; font-size: 16px; font-weight: 700; line-height: 24px; }
.pa-map-info table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 12.25px; line-height: 17.5px; }
.pa-map-info table th, .pa-map-info table td { padding: 8px; border: 0; border-bottom: 1px solid #F2F2F2; background: #FAFAFA; text-align: left; vertical-align: top; }
.pa-map-info table th { width: 35%; font-weight: 700; }
.pa-map-info a { color: #4605FF; text-decoration: underline; word-break: break-word; }
.pa-map-info .pa-map-info-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; background: none; color: #4605FF; font-size: 22px; line-height: 32px; }

/* Praxis gallery (grid container of Image widgets; .pa-g-wide = landscape slot). Original = Avada masonry, 10px gutters, measured regimes
   (u = content width + 10px): >1024 3 cols, wide spans 2, slot height .8 col - 5 · 970–1024 and 641–759 2-col masonry, wide = half-height slot
   · 760–969 2 cols, wide spans 2 · <=640 1 col (wide 1:.65, square 1:1). Hover: zoom 1.1 / opacity .9 over 1s. */
.pa-gallery-sec > .e-con-inner { container-type: inline-size; }
.elementor .elementor-element.e-con.pa-gallery { --pa-u: calc(100cqw + 10px); --e-con-grid-template-rows: none; grid-auto-rows: calc(var(--pa-u) * .8 / 3 - 5px); }
.pa-gallery > .pa-g-wide { grid-column: span 2; }
.pa-gallery > .elementor-widget-image { overflow: hidden; }
.pa-gallery > .elementor-widget-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s, transform 1s; }
.pa-gallery > .elementor-widget-image:hover img { opacity: .9; transform: scale(1.1); }
@media (max-width: 969px) { .elementor .elementor-element.e-con.pa-gallery { grid-auto-rows: calc(var(--pa-u) * .4 - 5px); } }
@media (min-width: 970px) and (max-width: 1024px), (min-width: 641px) and (max-width: 759px) {
	.elementor .elementor-element.e-con.pa-gallery { --pa-s: calc(var(--pa-u) * .2 - 5px); --pa-m: calc(var(--pa-u) * .2 - 10px); --e-con-grid-template-rows: repeat(2, var(--pa-s) var(--pa-m) var(--pa-s)); }
	.pa-gallery > .elementor-widget-image:nth-child(1) { grid-area: 1 / 1; }
	.pa-gallery > .elementor-widget-image:nth-child(2) { grid-area: 1 / 2 / span 2; }
	.pa-gallery > .elementor-widget-image:nth-child(3) { grid-area: 2 / 1 / span 2; }
	.pa-gallery > .elementor-widget-image:nth-child(4) { grid-area: 3 / 2; }
	.pa-gallery > .elementor-widget-image:nth-child(5) { grid-area: 4 / 1; }
	.pa-gallery > .elementor-widget-image:nth-child(6) { grid-area: 4 / 2 / span 2; }
	.pa-gallery > .elementor-widget-image:nth-child(7) { grid-area: 5 / 1 / span 2; }
	.pa-gallery > .elementor-widget-image:nth-child(8) { grid-area: 6 / 2; }
}
@media (min-width: 641px) and (max-width: 759px) { .elementor .elementor-element.e-con.pa-gallery { --pa-s: calc(var(--pa-u) * .325 - 6.5px); --pa-m: calc(var(--pa-u) * .175 - 13.5px); } }
@media (max-width: 640px) {
	.elementor .elementor-element.e-con.pa-gallery { --e-con-grid-template-columns: 1fr; grid-auto-rows: auto; }
	.pa-gallery > .elementor-widget-image { grid-column: auto; aspect-ratio: 1; }
	.pa-gallery > .pa-g-wide { aspect-ratio: 1 / .65; }
}

/* Team member row: between 768 and 800 the stacked text column keeps the height of the image column (3:2 of 88vw + 20px) */
@media (min-width: 768px) and (max-width: 800px) { .pa-member > .e-con + .e-con { --min-height: calc(88vw * 0.667 + 20px); } }
