/* ==========================================================================
   LAGARDENT – Enfold Child Theme
   --------------------------------------------------------------------------
   1. Schriften & Variablen
   2. Enfold-Reset
   3. Typografie & Buttons
   4. Header & Off-Canvas-Menü
   5. Sektionen (Hero, Split, Kasten, Banner, Galerie)
   6. Karussell & Team
   7. Kontakt & Formular
   8. Footer
   9. Responsive (Tablet ≤ 989px, Mobil ≤ 767px)
   ========================================================================== */

/* 1. Schriften & Variablen ================================================= */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
	--lgd-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--lgd-fa: "Font Awesome 7 Pro", "Font Awesome 6 Pro";
	--lgd-mark: url("../img/lagardent-zeichen.svg");

	--lgd-slate: #45525f;
	--lgd-muted: #6b7782;
	--lgd-text: #56606a;
	--lgd-sand: #c4bbae;
	--lgd-sand-dark: #b0a593;
	--lgd-sand-light: #edeae6;
	--lgd-card: #f3f3f3;
	--lgd-gray: #737c87;
	--lgd-gray-dark: #68717c;
	--lgd-team: #ecedef;
	--lgd-white: #fff;

	--lgd-radius: 12px;
	--lgd-gutter: clamp(16px, 5.2vw, 100px);   /* Abstand Inhalt ↔ Seitenrand */
	--lgd-gap: clamp(24px, 3.1vw, 60px);       /* Abstand Bild ↔ Text */
	--lgd-edge: clamp(10px, 1.6vw, 30px);      /* Rand der Hero-Karte */
	--lgd-section-y: clamp(40px, 4.6vw, 90px);

	--lgd-hd-top: 20px;
	--lgd-hd-x: clamp(12px, 2.6vw, 50px);
	--lgd-hd-h: clamp(64px, 6.25vw, 120px);

	--lgd-fs-body: clamp(15px, 13.8px + 0.27vw, 19px);
	--lgd-fs-pre: clamp(20px, 9.6px + 2.42vw, 56px);
	--lgd-fs-main: clamp(28px, 13px + 3.49vw, 80px);
	--lgd-fs-h3: clamp(20px, 14px + 1.35vw, 40px);
	--lgd-fs-btn: clamp(16px, 12.5px + 0.8vw, 28px);
}

/* 2. Enfold-Reset ========================================================== */

.lgd-s, .lgd-s *, .lgd-s *::before, .lgd-s *::after,
.lgd-header, .lgd-header *,
.lgd-offcanvas, .lgd-offcanvas *,
.lgd-footer, .lgd-footer * { box-sizing: border-box; }
html.lgd-menu-open, body.lgd { overflow-x: clip; }

#top.lgd #header,
#top.lgd #footer,
#top.lgd #socket,
#top.lgd .title_container { display: none !important; }

#top.lgd #main { padding-top: 0 !important; }
#scroll-top-link,
#top #scroll-top-link { display: none !important; }
#top.lgd,
#top.lgd #wrap_all,
#top.lgd #main { background: var(--lgd-white); }

#top.lgd .lgd-s.avia-section {
	position: relative;
	border: 0 !important;
	background: var(--lgd-white);
	min-height: 0;
}
#top.lgd .lgd-s .container {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}
#top.lgd .lgd-s .content,
#top.lgd .lgd-s .template-page { padding: 0 !important; border: 0; }
#top.lgd .lgd-s .entry-content-wrapper::before,
#top.lgd .lgd-s .entry-content-wrapper::after { display: none; }

#top.lgd #wrap_all .lgd-s .flex_column {
	float: none;
	margin: 0 !important;
	width: 100% !important;
}
#top.lgd .lgd-s .avia-image-container,
#top.lgd .lgd-s .avia-image-container-inner,
#top.lgd .lgd-s .avia-image-overlay-wrap {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
}
#top.lgd .lgd-s .av_textblock_section { margin: 0; }

.lgd-bg-white { background: var(--lgd-white) !important; }
.lgd-bg-sand { background: var(--lgd-sand-light) !important; }

#anfrage,
#sprechzeiten { scroll-margin-top: calc(var(--lgd-hd-top) + var(--lgd-hd-h) + 24px); }

/* Seiten ohne Layout-Builder (Impressum, Datenschutz, Beiträge …) */
#top.lgd.lgd-plain #main {
	padding-top: calc(var(--lgd-hd-top) + var(--lgd-hd-h) + 20px) !important;
	color: var(--lgd-text);
	font-size: var(--lgd-fs-body);
	font-weight: 300;
	line-height: 1.6;
}
#top.lgd.lgd-plain #main .container { max-width: 1100px; }
#top.lgd.lgd-plain .title_container {
	display: block !important;
	border: 0;
	background: none;
}
#top.lgd.lgd-plain .title_container .breadcrumb { display: none; }
#top.lgd.lgd-plain .title_container .main-title,
#top.lgd.lgd-plain #main h1 {
	margin: 0.6em 0 0.4em;
	color: var(--lgd-slate);
	font-size: clamp(28px, 2vw + 16px, 48px);
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
#top.lgd.lgd-plain #main h2,
#top.lgd.lgd-plain #main h3 {
	color: var(--lgd-slate);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}
#top.lgd.lgd-plain #main h2 { margin: 1.6em 0 0.5em; font-size: clamp(20px, 0.8vw + 15px, 28px); }
#top.lgd.lgd-plain #main h3 { margin: 1.4em 0 0.4em; font-size: clamp(17px, 0.4vw + 14px, 21px); }
#top.lgd.lgd-plain #main strong { font-weight: 500; color: var(--lgd-slate); }
#top.lgd.lgd-plain #main a { color: var(--lgd-slate); text-decoration: underline; }

/* 3. Typografie & Buttons ================================================== */

#top.lgd,
#top.lgd input,
#top.lgd select,
#top.lgd textarea,
#top.lgd button,
#top.lgd h1, #top.lgd h2, #top.lgd h3, #top.lgd h4 {
	font-family: var(--lgd-font);
}

#top.lgd .lgd-s .avia_textblock {
	font-size: var(--lgd-fs-body);
	font-weight: 300;
	line-height: 1.5;
	color: var(--lgd-text);
}
#top.lgd .lgd-s .avia_textblock p { margin: 0 0 1.45em; }
#top.lgd .lgd-s .avia_textblock > :last-child { margin-bottom: 0; }
#top.lgd .lgd-s .avia_textblock strong,
#top.lgd .lgd-lead { font-weight: 500; color: var(--lgd-slate); }
#top.lgd .lgd-lead { margin-bottom: 1em; }

#top.lgd .lgd-title {
	margin: 0 0 0.55em;
	padding: 0;
	color: var(--lgd-slate);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
#top.lgd .lgd-title__pre {
	display: block;
	font-size: var(--lgd-fs-pre);
	color: var(--lgd-muted);
}
#top.lgd .lgd-title__main {
	display: block;
	font-size: var(--lgd-fs-main);
	font-weight: 500;
}

#top.lgd .lgd-s h3 {
	margin: 0 0 0.75em;
	color: inherit;
	font-size: var(--lgd-fs-h3);
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
}
#top.lgd .lgd-s h3.lgd-subtitle {
	margin: 2em 0 0.75em;
	line-height: 1.2;
	font-size: clamp(18px, 14px + 0.6vw, 24px);
	font-weight: 400;
	color: var(--lgd-slate);
	text-transform: uppercase;
}

#top.lgd .lgd-link,
#top.lgd .lgd-contact a {
	color: var(--lgd-sand-dark);
	font-weight: 500;
	text-decoration: none;
}
#top.lgd .lgd-link:hover,
#top.lgd .lgd-contact a:hover { color: var(--lgd-slate); }

#top.lgd .lgd-actions { margin-top: 1.8em; }

#top.lgd .lgd-btn,
#top.lgd .lgd-s .avia-button {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.42em 1.1em;
	border: 0;
	border-radius: 999px;
	background: var(--lgd-sand);
	color: var(--lgd-white);
	font: 500 var(--lgd-fs-btn)/1.25 var(--lgd-font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
#top.lgd .lgd-btn::after {
	content: "\2192"; /* Fallback ohne Font Awesome */
	font-weight: 300;
}
html.lgd-fa-font #top.lgd .lgd-btn::after {
	content: "\f061";
	font-family: var(--lgd-fa);
	font-size: 0.85em;
}
#top.lgd .lgd-btn:hover,
#top.lgd .lgd-btn:focus-visible,
#top.lgd .lgd-s .avia-button:hover { background: var(--lgd-slate); color: var(--lgd-white); }

#top.lgd .lgd-list {
	margin: 0 0 1.4em;
	padding: 0;
	list-style: none;
}
#top.lgd .lgd-list li {
	position: relative;
	margin: 0 0 1.1em;
	padding-left: 1.3em;
	list-style: none;
}
#top.lgd .lgd-list--compact li { margin-bottom: 0.2em; }
#top.lgd .lgd-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 0.5em;
	height: 0.5em;
	background: currentColor;
}

.lgd-notice {
	padding: 1em;
	border: 1px dashed #c00;
	color: #c00;
	font-size: 14px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* 4. Header & Off-Canvas-Menü ============================================== */

.lgd-header {
	position: fixed;
	z-index: 1000;
	top: var(--lgd-hd-top);
	left: var(--lgd-hd-x);
	right: var(--lgd-hd-x);
}
.admin-bar .lgd-header { top: calc(var(--lgd-hd-top) + 32px); }

.lgd-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--lgd-hd-h);
	padding: 0 clamp(16px, 2.6vw, 50px);
	border-radius: 14px;
	background: var(--lgd-white);
	box-shadow: 0 6px 24px rgba(30, 40, 50, 0.14);
}

.lgd-logo {
	display: flex;
	align-items: center;
	height: 100%;
	padding: clamp(12px, 1.1vw, 22px) 0;
	color: var(--lgd-slate);
	text-decoration: none;
}
.lgd-logo:hover { color: var(--lgd-slate); }
.lgd-logo__img {
	display: block;
	width: auto;
	height: 100%;
	max-width: min(60vw, 440px);
}
.lgd-menu-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--lgd-slate);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}
.lgd-burger {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	width: 26px;
}
.lgd-burger span {
	display: block;
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: currentColor;
}
.lgd-burger span:nth-child(2) { width: 70%; }

/* Off-Canvas */
.lgd-offcanvas {
	position: fixed;
	z-index: 100000;
	inset: 0;
	visibility: hidden;
	transition: visibility 0s linear 0.45s;
}
.lgd-menu-open .lgd-offcanvas {
	visibility: visible;
	transition-delay: 0s;
}
html { scrollbar-gutter: stable; } /* kein Layout-Sprung, wenn das Menü die Scrollleiste ausblendet */
html.lgd-menu-open { overflow: hidden; background: var(--lgd-slate); } /* Scrollleisten-Spur in Panel-Farbe */

.lgd-offcanvas__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.35);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.2s ease;
	will-change: opacity;
}
.lgd-menu-open .lgd-offcanvas__backdrop { opacity: 1; }

.lgd-offcanvas__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: clamp(420px, 43vw, 820px);
	padding: clamp(30px, 3.2vw, 60px) clamp(30px, 5vw, 96px) 60px clamp(40px, 7.4vw, 140px);
	overflow-y: auto;
	background: var(--lgd-slate);
	color: var(--lgd-white);
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
	transform: translate3d(100%, 0, 0);
	transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
	will-change: transform;
	contain: layout paint;
}
.lgd-menu-open .lgd-offcanvas__panel { transform: translate3d(0, 0, 0); }
.lgd-menu-open .lgd-offcanvas__backdrop { transition: opacity 0.3s ease 0.15s; } /* Unschärfe erst einblenden, wenn das Panel schon läuft */
.admin-bar .lgd-offcanvas__panel { top: 32px; }

.lgd-offcanvas__close {
	display: flex;
	align-items: center;
	gap: 12px;
	align-self: flex-end;
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--lgd-white);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}
.lgd-close-icon {
	position: relative;
	width: 32px;
	height: 32px;
}
.lgd-close-icon::before,
.lgd-close-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
	background: currentColor;
	transform: rotate(45deg);
}
.lgd-close-icon::after { transform: rotate(-45deg); }

.lgd-nav { margin-top: clamp(40px, 9vh, 170px); }
#top.lgd .lgd-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
#top.lgd .lgd-nav__list li { margin: 0; padding: 0; list-style: none; }
#top.lgd .lgd-nav__list a {
	display: inline-block;
	padding: 0.1em 0;
	color: var(--lgd-white);
	font-size: clamp(34px, 3.7vw, 70px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s;
}
#top.lgd .lgd-nav__list a:hover,
#top.lgd .lgd-nav__list .current-menu-item > a,
#top.lgd .lgd-nav__list .current_page_item > a { color: var(--lgd-sand); }

#top.lgd .lgd-tiles {
	display: flex;
	gap: 10px;
	margin: clamp(40px, 9vh, 170px) 0 0;
	padding: 0;
	list-style: none;
}
#top.lgd .lgd-tiles li { margin: 0; list-style: none; }
#top.lgd .lgd-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: clamp(100px, 8.8vw, 168px);
	aspect-ratio: 1;
	border-radius: 16px;
	background: var(--lgd-sand);
	color: var(--lgd-white);
	font-size: clamp(10px, 0.5vw + 5px, 15px);
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s;
}
#top.lgd .lgd-tile i,
#top.lgd .lgd-tile svg { font-size: clamp(40px, 3.8vw, 72px); height: 1em; }
#top.lgd .lgd-tile:hover { background: var(--lgd-sand-dark); }

/* 5. Sektionen ============================================================= */

/* --- Hero (Unterseiten) --- */
#top.lgd .lgd-hero.avia-section {
	padding: 0 var(--lgd-edge) clamp(16px, 2.9vw, 56px);
}
#top.lgd #wrap_all .lgd-hero__card {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(380px, 36vw, 690px);
	overflow: hidden;
	border-radius: 0 0 var(--lgd-radius) var(--lgd-radius);
	background: var(--lgd-card);
}
#top.lgd .lgd-hero__img {
	position: absolute !important;
	top: 0;
	right: 0;
	bottom: 0;
	width: 62% !important;
	height: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%);
	mask-image: linear-gradient(90deg, transparent 0, #000 32%);
}
#top.lgd .lgd-hero__img *,
#top.lgd .lgd-cover * { height: 100%; }
#top.lgd .lgd-hero__img img,
#top.lgd .lgd-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Bildausschnitt steuern: Klasse am Bild-Element (z. B. „lgd-hero__img lgd-focus-r“) */
#top.lgd .lgd-focus-l img { object-position: 20% 50%; }
#top.lgd .lgd-focus-r img { object-position: 80% 50%; }
#top.lgd .lgd-focus-t img { object-position: 50% 15%; }
#top.lgd .lgd-focus-b img { object-position: 50% 85%; }

#top.lgd .lgd-hero__text {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: calc(var(--lgd-gutter) + 36em);
	padding: calc(var(--lgd-hd-h) + var(--lgd-hd-top)) 0 40px calc(var(--lgd-gutter) - var(--lgd-edge));
}
#top.lgd .lgd-hero .lgd-title { margin-bottom: 0.7em; }
#top.lgd .lgd-hero__intro {
	max-width: 32em;
	font-size: clamp(14px, 12.5px + 0.3vw, 19px);
}

/* Scroll-Pfeil unter Hero-Titeln (Button wird per lagardent.js eingefügt) */
#top.lgd .lgd-scroll {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: -0.3em 0 0 -0.25em;
	padding: 0.25em;
	border: 0;
	background: none;
	color: var(--lgd-slate);
	font-size: var(--lgd-fs-pre);
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s;
}
#top.lgd .lgd-scroll:hover { transform: translateY(4px); }
#top.lgd .lgd-scroll::before { content: "\2193"; }
html.lgd-fa-font #top.lgd .lgd-scroll::before {
	content: "\f063";
	font-family: var(--lgd-fa);
	font-size: 0.6em;
}
#top.lgd .lgd-hero .lgd-scroll { display: none; }

/* --- Startseiten-Hero --- */
#top.lgd .lgd-home-hero.avia-section {
	overflow: hidden;
	padding: calc(var(--lgd-hd-top) + var(--lgd-hd-h) + clamp(20px, 4.6vw, 90px)) 0 clamp(30px, 3.6vw, 70px);
}
.lgd-home-hero::before,
.lgd-gallery::before {
	content: "";
	position: absolute;
	top: -5%;
	left: -8%;
	width: 75%;
	height: 130%;
	background: rgba(0, 0, 0, 0.025);
	-webkit-mask: var(--lgd-mark, linear-gradient(transparent, transparent)) center / contain no-repeat;
	mask: var(--lgd-mark, linear-gradient(transparent, transparent)) center / contain no-repeat;
	pointer-events: none;
}
#top.lgd .lgd-home-hero .entry-content-wrapper {
	display: flex;
	align-items: center;
}
#top.lgd #wrap_all .lgd-home-hero .lgd-text {
	flex: 1 1 0;
	width: auto !important;
	padding: 0 var(--lgd-gap) 0 var(--lgd-gutter);
}
#top.lgd #wrap_all .lgd-home-hero .lgd-slider {
	flex: 0 0 48.5%;
	width: 48.5% !important;
}

/* --- Split: Bild/Kasten + Text --- */
#top.lgd .lgd-split.avia-section { padding: var(--lgd-section-y) 0; }
#top.lgd .lgd-split .entry-content-wrapper {
	display: flex;
	align-items: center;
}
#top.lgd #wrap_all .lgd-split .lgd-media,
#top.lgd #wrap_all .lgd-split .lgd-box,
#top.lgd #wrap_all .lgd-split .lgd-slider {
	flex: 0 0 48.5%;
	width: 48.5% !important;
}
#top.lgd #wrap_all .lgd-split .lgd-text {
	flex: 1 1 0;
	width: auto !important;
}
#top.lgd #wrap_all .lgd-split .lgd-box { align-self: stretch; }

.lgd-col.lgd-pad-l { padding-left: var(--lgd-gutter) !important; }
.lgd-col.lgd-pad-r { padding-right: var(--lgd-gutter) !important; }
.lgd-col.lgd-text.lgd-pad-l { padding-right: var(--lgd-gap) !important; }
.lgd-col.lgd-text.lgd-pad-r { padding-left: var(--lgd-gap) !important; }
#top.lgd .lgd-split--team .lgd-slider { padding-right: 0 !important; }

#top.lgd .lgd-media img {
	display: block;
	width: 100%;
	aspect-ratio: 8 / 7;
	object-fit: cover;
	border-radius: var(--lgd-radius);
}
#top.lgd .lgd-edge-l img { border-radius: 0 var(--lgd-radius) var(--lgd-radius) 0; }
#top.lgd .lgd-edge-r img { border-radius: var(--lgd-radius) 0 0 var(--lgd-radius); }
#top.lgd .lgd-media .avia-image-container:not(:has(img)) {
	aspect-ratio: 8 / 7;
	background: var(--lgd-card);
}

/* --- Kasten (dunkel / sand) --- */
#top.lgd #wrap_all .lgd-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(28px, 6.5vw, 125px) var(--lgd-gutter) clamp(28px, 5vw, 96px) clamp(20px, 4.8vw, 92px) !important;
	border-radius: var(--lgd-radius) 0 0 var(--lgd-radius);
}
#top.lgd .lgd-box--dark { background: var(--lgd-slate); }
#top.lgd .lgd-box--sand { background: var(--lgd-sand-light); }
/* Dunkle Kästen: alle Texte weiß – unabhängig davon, wie Enfold den Textblock verschachtelt */
#top.lgd .lgd-box--dark,
#top.lgd .lgd-box--dark *:not(.lgd-btn) { color: var(--lgd-white) !important; }
#top.lgd .lgd-box--dark .avia_textblock { font-weight: 400; }
#top.lgd .lgd-box--sand h3 { color: var(--lgd-slate); font-weight: 400; }

#top.lgd .lgd-biglink {
	margin: 1.2em 0;
	font-size: clamp(22px, 13px + 1.45vw, 40px);
	font-weight: 500;
	line-height: 1.2;
	word-break: break-word;
}
#top.lgd .lgd-biglink a { text-decoration: none; }
#top.lgd .lgd-biglink a:hover { text-decoration: underline; }

/* --- Banner „Unsere Praxis“ (Startseite) --- */
#top.lgd .lgd-banner.avia-section {
	display: flex;
	align-items: flex-end;
	min-height: clamp(520px, 54vw, 1040px);
	padding: clamp(140px, 20vw, 390px) 0 0;
	overflow: hidden;
}
#top.lgd .lgd-banner .container,
#top.lgd .lgd-banner .content,
#top.lgd .lgd-banner .post-entry,
#top.lgd .lgd-banner .entry-content-wrapper,
#top.lgd #wrap_all .lgd-banner .flex_column { position: static !important; }
#top.lgd .lgd-cover {
	position: absolute !important;
	inset: 0;
	height: 100%;
}
#top.lgd .lgd-banner__box {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto !important;
	padding: clamp(32px, 5.8vw, 112px) clamp(20px, 6.8vw, 130px) clamp(32px, 4vw, 76px);
	border-radius: var(--lgd-radius) var(--lgd-radius) 0 0;
	background: var(--lgd-slate);
	text-align: center;
}
#top.lgd .lgd-banner__box,
#top.lgd .lgd-banner__box *:not(.lgd-btn) { color: var(--lgd-white) !important; }
#top.lgd .lgd-banner__box .lgd-title,
#top.lgd .lgd-banner__box .lgd-title__pre { font-weight: 400; }
#top.lgd .lgd-banner__box .lgd-btn:hover,
#top.lgd .lgd-banner__box .lgd-btn:focus-visible,
#top.lgd .lgd-box--dark .lgd-btn:hover,
#top.lgd .lgd-box--dark .lgd-btn:focus-visible {
	background: var(--lgd-white);
	color: var(--lgd-slate) !important;
}
#top.lgd .lgd-banner__box .lgd-title__main { font-size: calc(var(--lgd-fs-main) * 0.9); }

/* --- Rechtsseiten (Impressum, Datenschutz) --- */
#top.lgd .lgd-legal.avia-section {
	padding: calc(var(--lgd-hd-top) + var(--lgd-hd-h) + clamp(30px, 4vw, 70px)) 0 var(--lgd-section-y);
}
#top.lgd #wrap_all .lgd-legal .lgd-legal__col {
	max-width: calc(1000px + 2 * var(--lgd-gutter));
	margin: 0 auto !important;
	padding: 0 var(--lgd-gutter);
	float: none;
}
#top.lgd .lgd-legal .lgd-legal__title { margin-bottom: 0.8em; }
#top.lgd .lgd-legal .lgd-legal__title .lgd-title__main { font-size: calc(var(--lgd-fs-main) * 0.7); }
#top.lgd .lgd-legal .avia_textblock h2,
#top.lgd .lgd-legal .avia_textblock h3 {
	color: var(--lgd-slate);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}
#top.lgd .lgd-legal .avia_textblock h2 { margin: 1.8em 0 0.5em; font-size: clamp(20px, 0.8vw + 15px, 28px); }
#top.lgd .lgd-legal .avia_textblock h3 { margin: 1.5em 0 0.4em; font-size: clamp(17px, 0.4vw + 14px, 21px); }
#top.lgd .lgd-legal .avia_textblock p { margin-bottom: 1em; }
#top.lgd .lgd-legal .avia_textblock ul { margin: 0 0 1em 1.2em; padding: 0; list-style: disc; }
#top.lgd .lgd-legal .avia_textblock li { margin-bottom: 0.3em; }
#top.lgd .lgd-legal .avia_textblock a { color: var(--lgd-slate); text-decoration: underline; }

/* --- Galerie „Impressionen“ --- */
#top.lgd .lgd-gallery.avia-section {
	overflow: hidden;
	padding: clamp(40px, 4vw, 76px) 0 clamp(40px, 3.6vw, 70px);
	background: var(--lgd-gray);
}
.lgd-gallery::before {
	left: 30%;
	width: 80%;
	background: var(--lgd-gray-dark);
}
#top.lgd .lgd-gallery .entry-content-wrapper { position: relative; z-index: 1; }
#top.lgd .lgd-gallery__title {
	margin: 0 0 1.2em;
	color: var(--lgd-white);
	font-size: clamp(24px, 16px + 1.4vw, 42px);
	font-weight: 300;
	letter-spacing: 0.03em;
	text-align: center;
	text-transform: uppercase;
}

/* 6. Karussell & Team ====================================================== */

.lgd-carousel { position: relative; }
.lgd-carousel__track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	outline-offset: 4px;
}
.lgd-carousel__track::-webkit-scrollbar { display: none; }
.lgd-carousel__slide {
	flex: 0 0 auto;
	overflow: hidden;
	scroll-snap-align: start;
}
.lgd-carousel__img,
.lgd-carousel__link {
	display: block;
	width: 100%;
	height: 100%;
}
#top.lgd .lgd-carousel__img { object-fit: cover; }

.lgd-carousel__btn {
	position: absolute;
	z-index: 2;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-top: -28px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--lgd-white);
	font-size: 44px;
	line-height: 1;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	transition: opacity 0.2s;
}
.lgd-carousel__btn:hover { opacity: 0.7; }
.lgd-carousel__btn--prev { left: 12px; }
.lgd-carousel__btn--next { right: 12px; }
/* Fallback-Pfeile, solange Font Awesome nicht geladen ist */
html:not(.lgd-fa) .lgd-carousel__btn i { display: none; }
html:not(.lgd-fa) .lgd-carousel__btn--prev::before { content: "\2039"; font-size: 64px; font-weight: 300; }
html:not(.lgd-fa) .lgd-carousel__btn--next::before { content: "\203A"; font-size: 64px; font-weight: 300; }

/* Hero-Variante */
.lgd-carousel--hero .lgd-carousel__slide {
	width: 94%;
	aspect-ratio: 3 / 2;
	border-radius: var(--lgd-radius);
}
.lgd-carousel--hero .lgd-carousel__btn--next { right: calc(6% + 12px); }

/* Galerie-Variante */
.lgd-carousel--galerie .lgd-carousel__track {
	padding: 0 var(--lgd-gutter);
	scroll-padding: 0 var(--lgd-gutter);
}
.lgd-carousel--galerie .lgd-carousel__slide {
	width: clamp(260px, 35vw, 680px);
	aspect-ratio: 3 / 2;
	border-radius: var(--lgd-radius);
}
.lgd-carousel--galerie .lgd-carousel__btn--prev { left: calc(var(--lgd-gutter) * 0.5); }
.lgd-carousel--galerie .lgd-carousel__btn--next { right: calc(var(--lgd-gutter) * 0.5); }

/* Team-Variante */
.lgd-carousel--team {
	container-type: inline-size;
	overflow: hidden;
	border-radius: var(--lgd-radius);
}
.lgd-carousel--team .lgd-carousel__track { gap: 0; }
.lgd-carousel--team .lgd-carousel__slide { width: 100%; }
.lgd-carousel--team .lgd-carousel__btn { top: calc(100cqw / 3.06); }

.lgd-member {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--lgd-team);
}
#top.lgd .lgd-member__img {
	display: block;
	width: 100%;
	aspect-ratio: 49 / 32;
	object-fit: cover;
}
.lgd-member__img--empty { background: var(--lgd-card); }
.lgd-member__body {
	flex: 1;
	padding: clamp(18px, 2.4vw, 46px) clamp(18px, 2.6vw, 50px) clamp(24px, 2.4vw, 46px);
}
#top.lgd .lgd-member__name {
	margin: 0 0 0.4em;
	color: var(--lgd-slate);
	font-size: clamp(18px, 12px + 1vw, 30px);
	font-weight: 400;
	text-transform: none;
}
#top.lgd .lgd-member__role {
	margin: 0 0 1.6em;
	color: var(--lgd-muted);
	font-size: clamp(12px, 10px + 0.32vw, 15px);
}
#top.lgd .lgd-member__quote {
	margin: 0;
	padding: 0.2em 0 0.2em 1.1em;
	border-left: 4px solid var(--lgd-muted);
	color: var(--lgd-muted);
	font-size: clamp(12px, 10px + 0.32vw, 15px);
	font-style: italic;
	font-weight: 300;
	line-height: 1.5;
}

/* 7. Kontakt & Formular ==================================================== */

#top.lgd .lgd-contact__address { margin-bottom: 1.2em; }
#top.lgd .lgd-contact__address strong { font-weight: 400; color: var(--lgd-slate); }
#top.lgd .lgd-contact__grid {
	display: flex;
	flex-wrap: wrap;
	column-gap: 2.5em;
}
#top.lgd .lgd-contact__grid p { margin-bottom: 0.8em; }

#top.lgd .lgd-hours { margin: 0; }
#top.lgd .lgd-hours div { margin: 0 0 0.3em; }
#top.lgd .lgd-hours dt { margin: 0; font-weight: 500; color: var(--lgd-slate); }
#top.lgd .lgd-hours dd { margin: 0; }
#top.lgd .lgd-hours__note { margin: 0.2em 0 0; font-weight: 500; color: var(--lgd-slate); }

#top.lgd .lgd-form { margin: 0; }
#top.lgd .lgd-form__group {
	margin: 0 0 clamp(20px, 2.2vw, 40px);
	padding: 0;
	border: 0;
}
#top.lgd .lgd-form legend {
	margin: 0 0 0.6em;
	padding: 0;
	color: var(--lgd-slate);
	font-size: clamp(15px, 13px + 0.3vw, 19px);
	font-weight: 500;
}
#top.lgd .lgd-form__row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
#top.lgd .lgd-form__field { display: block; margin: 0 0 14px; }
#top.lgd .lgd-form__row--split .lgd-form__field { margin-bottom: 14px; }
#top.lgd .lgd-form input[type="text"],
#top.lgd .lgd-form input[type="tel"],
#top.lgd .lgd-form input[type="email"],
#top.lgd .lgd-form select,
#top.lgd .lgd-form textarea {
	width: 100%;
	height: auto;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #dcd8d2;
	border-radius: 4px;
	background-color: var(--lgd-white);
	color: var(--lgd-slate);
	font-size: clamp(15px, 13px + 0.3vw, 19px);
	font-weight: 300;
	line-height: 1.3;
	box-shadow: none;
}
#top.lgd .lgd-form textarea { min-height: 140px; }
#top.lgd .lgd-form ::placeholder { color: #9aa1a8; opacity: 1; }
#top.lgd .lgd-form input:focus,
#top.lgd .lgd-form select:focus,
#top.lgd .lgd-form textarea:focus {
	border-color: var(--lgd-sand-dark);
	outline: 2px solid rgba(196, 187, 174, 0.5);
}
#top.lgd .lgd-form [aria-invalid="true"] { border-color: #b3261e; }
#top.lgd .lgd-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 1l11 11L23 1' fill='none' stroke='%2345525f' stroke-width='1.5'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	background-size: 20px 12px;
}
#top.lgd .lgd-form__check {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
	color: var(--lgd-muted);
	font-size: clamp(11px, 9.5px + 0.3vw, 15px);
	line-height: 1.4;
	cursor: pointer;
}
#top.lgd .lgd-form__check input {
	flex: none;
	width: 30px;
	height: 30px;
	margin: 0;
	border: 1px solid #dcd8d2;
	border-radius: 4px;
	accent-color: var(--lgd-slate);
}
#top.lgd .lgd-form__check a { color: inherit; text-decoration: underline; }
#top.lgd .lgd-form .lgd-btn { margin-top: clamp(16px, 1.6vw, 30px); }
.lgd-form__error { display: block; margin-top: 4px; color: #b3261e; font-size: 13px; }
.lgd-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lgd-form__success,
.lgd-form__alert {
	margin: 0 0 1.4em;
	padding: 14px 18px;
	border-radius: 6px;
	background: var(--lgd-white);
	color: var(--lgd-slate);
	font-weight: 500;
}
.lgd-form__alert { border-left: 4px solid #b3261e; }
.lgd-form__success { border-left: 4px solid #4c8a5b; }

/* Contact Form 7 (Formular „LAGARDENT Anfrage“) */
#top.lgd .lgd-form .wpcf7-form-control-wrap { display: block; }
#top.lgd .lgd-form .wpcf7-not-valid { border-color: #b3261e; }
#top.lgd .lgd-form .wpcf7-not-valid-tip { margin-top: 4px; color: #b3261e; font-size: 13px; font-weight: 400; }
#top.lgd .lgd-form__check .wpcf7-list-item { margin: 0; }
#top.lgd .lgd-form__check label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
#top.lgd .lgd-form__submit {
	position: relative;
	display: inline-block;
	margin-top: clamp(16px, 1.6vw, 30px);
}
#top.lgd .lgd-form__submit .lgd-btn { margin: 0; padding-right: 2.2em; }
#top.lgd .lgd-form__submit::after {
	content: "\2192";
	position: absolute;
	top: 50%;
	right: 1.05em;
	color: var(--lgd-white);
	font-size: var(--lgd-fs-btn);
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}
html.lgd-fa-font #top.lgd .lgd-form__submit::after {
	content: "\f061";
	font-family: var(--lgd-fa);
	font-size: calc(var(--lgd-fs-btn) * 0.85);
}
#top.lgd .lgd-form__submit .wpcf7-spinner {
	position: absolute;
	top: 50%;
	left: 100%;
	margin: -12px 0 0 12px;
}
#top.lgd .wpcf7 form .wpcf7-response-output {
	margin: 1.4em 0 0;
	padding: 14px 18px;
	border: 0;
	border-left: 4px solid #b3261e;
	border-radius: 6px;
	background: var(--lgd-white);
	color: var(--lgd-slate);
	font-size: clamp(14px, 12.5px + 0.3vw, 17px);
	font-weight: 500;
}
#top.lgd .wpcf7 form.sent .wpcf7-response-output { border-left-color: #4c8a5b; }
#top.lgd .wpcf7 form.init .wpcf7-response-output { display: none; }

/* 8. Footer ================================================================ */

.lgd-footer {
	position: relative;
	clear: both;
	padding: clamp(16px, 1.6vw, 30px) var(--lgd-hd-x) var(--lgd-hd-x);
	background: var(--lgd-white);
}
.lgd-footer__box {
	padding: clamp(24px, 2.6vw, 50px) clamp(16px, 2.6vw, 50px) clamp(20px, 1.9vw, 36px);
	border-radius: 16px;
	background: var(--lgd-sand);
	color: var(--lgd-white);
	font-size: clamp(14px, 12.5px + 0.3vw, 18px);
	font-weight: 300;
	line-height: 1.35;
}
.lgd-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 410px));
	gap: 30px;
}
#top.lgd .lgd-footer__title {
	margin: 0 0 0.9em;
	padding: 0;
	color: var(--lgd-white);
	font-size: clamp(17px, 14px + 0.52vw, 24px);
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
#top.lgd .lgd-footer p { margin: 0 0 0.8em; }
#top.lgd .lgd-footer strong,
#top.lgd .lgd-footer dt { font-weight: 500; }
#top.lgd .lgd-footer__claim { display: block; }
#top.lgd .lgd-footer dl { margin: 0; }
#top.lgd .lgd-footer dl div { margin: 0 0 0.8em; }
#top.lgd .lgd-footer dt,
#top.lgd .lgd-footer dd { margin: 0; color: var(--lgd-white); }
#top.lgd .lgd-footer .lgd-hours dt { color: var(--lgd-white); }
#top.lgd .lgd-footer .lgd-hours div { margin-bottom: 0.7em; }
#top.lgd .lgd-footer .lgd-hours__note { color: var(--lgd-white); }
#top.lgd .lgd-footer a {
	color: var(--lgd-slate);
	font-weight: 400;
	text-decoration: none;
}
#top.lgd .lgd-footer a:hover { text-decoration: underline; }

.lgd-footer__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-top: clamp(40px, 4.2vw, 80px);
	font-size: 12px;
}
#top.lgd .lgd-footer__copy { margin: 0; font-weight: 500; }
#top.lgd .lgd-footer__legal {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#top.lgd .lgd-footer__legal li { margin: 0; list-style: none; }

/* 9. Responsive ============================================================ */

@media (min-width: 990px) {
	/* Startseite: Scroll-Pfeil nur am Desktop im Hero sichtbar, Unterseiten zeigen dort den Introtext */
	#top.lgd .lgd-hero .lgd-scroll { display: none; }
}

/* Tablet & kleiner: einspaltig */
@media (max-width: 989px) {
	:root {
		--lgd-hd-top: 12px;
		--lgd-gap: 0px;
	}

	#top.lgd .lgd-split .entry-content-wrapper,
	#top.lgd .lgd-home-hero .entry-content-wrapper {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}
	#top.lgd #wrap_all .lgd-split .flex_column,
	#top.lgd #wrap_all .lgd-home-hero .flex_column {
		flex: none;
		width: 100% !important;
	}
	.lgd-col.lgd-pad-l,
	.lgd-col.lgd-pad-r,
	.lgd-col.lgd-text.lgd-pad-l,
	.lgd-col.lgd-text.lgd-pad-r,
	#top.lgd .lgd-split--team .lgd-slider {
		padding-left: var(--lgd-gutter) !important;
		padding-right: var(--lgd-gutter) !important;
	}

	/* Bilder stehen mobil immer oben und mit Rand */
	#top.lgd #wrap_all .lgd-media { order: -1; padding: 0 var(--lgd-gutter) !important; }
	#top.lgd .lgd-media img,
	#top.lgd .lgd-edge-l img,
	#top.lgd .lgd-edge-r img {
		aspect-ratio: 21 / 20;
		border-radius: var(--lgd-radius);
	}
	@media (min-width: 600px) {
		#top.lgd .lgd-media img,
		#top.lgd .lgd-edge-l img,
		#top.lgd .lgd-edge-r img { aspect-ratio: 16 / 10; }
	}

	/* Kästen laufen rechts bis an den Rand */
	#top.lgd #wrap_all .lgd-split .lgd-box {
		width: auto !important;
		margin-left: var(--lgd-gutter) !important;
		padding: 28px var(--lgd-gutter) 32px 20px !important;
	}

	/* Hero Unterseiten */
	#top.lgd #wrap_all .lgd-hero__card {
		align-items: flex-end;
		min-height: clamp(360px, 90vw, 560px);
	}
	#top.lgd .lgd-hero__img {
		width: 100% !important;
		-webkit-mask-image: none;
		mask-image: none;
	}
	#top.lgd .lgd-hero__card::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(20deg, rgba(243, 243, 243, 0.92) 0, rgba(243, 243, 243, 0.55) 35%, rgba(243, 243, 243, 0) 60%);
		pointer-events: none;
	}
	#top.lgd .lgd-hero__text { padding: 0 var(--lgd-gutter) 16px; }
	#top.lgd .lgd-hero .lgd-title { margin: 0; }
	#top.lgd .lgd-hero .lgd-scroll { display: inline-flex; }
	#top.lgd .lgd-home-hero .lgd-scroll { margin-left: 0; }
	#top.lgd .lgd-hero__intro { display: none; }

	/* Startseiten-Hero */
	#top.lgd .lgd-home-hero.avia-section { padding: calc(var(--lgd-hd-top) + var(--lgd-hd-h) + 16px) 0 30px; }
	#top.lgd #wrap_all .lgd-home-hero .lgd-slider { order: -1; }
	#top.lgd #wrap_all .lgd-split--team .lgd-slider { order: 1; }
	#top.lgd #wrap_all .lgd-home-hero .lgd-text { padding: 0 var(--lgd-gutter) !important; text-align: center; }
	.lgd-carousel--hero .lgd-carousel__track { padding: 0 var(--lgd-gutter); scroll-padding: 0 var(--lgd-gutter); }
	.lgd-carousel--hero .lgd-carousel__slide { width: 84%; aspect-ratio: 3 / 2; }
	.lgd-carousel--hero .lgd-carousel__btn--prev { left: calc(var(--lgd-gutter) + 4px); }
	.lgd-carousel--hero .lgd-carousel__btn--next { right: calc(16% - var(--lgd-gutter) + 4px); }

	/* Banner */
	#top.lgd .lgd-banner.avia-section { min-height: 0; padding: 45vw var(--lgd-gutter) 45vw; align-items: center; }
	#top.lgd .lgd-banner__box { border-radius: var(--lgd-radius); }

	/* Galerie */
	.lgd-carousel--galerie .lgd-carousel__slide { width: 78vw; }

	/* Footer */
	.lgd-footer__box { text-align: center; }
	.lgd-footer__cols { grid-template-columns: 1fr; gap: 26px; }
	#top.lgd .lgd-footer__title { margin-bottom: 0.5em; }
	#top.lgd .lgd-footer dl div { margin-bottom: 0.2em; }
	#top.lgd .lgd-footer__contact dt,
	#top.lgd .lgd-footer__contact dd { display: inline; }
	#top.lgd .lgd-footer__contact dt::after { content: ":"; }
	.lgd-footer__bottom { margin-top: 36px; font-size: 11px; }
	#top.lgd .lgd-footer__legal { flex-direction: column; gap: 6px; text-align: right; }
}

@media (max-width: 782px) {
	.admin-bar .lgd-header { top: calc(var(--lgd-hd-top) + 46px); }
	.admin-bar .lgd-offcanvas__panel { top: 46px; }
}

/* Mobil */
@media (max-width: 767px) {
	.lgd-menu-toggle__label { display: none; }
	.lgd-burger { width: 30px; gap: 5px; }

	.lgd-offcanvas__panel {
		width: 100%;
		align-items: center;
		padding: 24px var(--lgd-gutter) 40px;
		text-align: center;
	}
	.lgd-offcanvas__close-label { display: none; }
	.lgd-close-icon { width: 40px; height: 40px; }
	.lgd-nav { margin: auto 0 0; }
	#top.lgd .lgd-nav__list a { font-size: clamp(30px, 9vw, 42px); line-height: 1.45; }
	#top.lgd .lgd-tiles { margin: auto 0 0; padding-top: 40px; }
	#top.lgd .lgd-tile { width: min(28vw, 140px); }

	#top.lgd .lgd-form__row--split { grid-template-columns: 1fr; gap: 0; }
	#top.lgd .lgd-contact__grid { display: block; }
}

@media (prefers-reduced-motion: reduce) {
	.lgd-offcanvas__panel,
	.lgd-offcanvas__backdrop { transition: none; }
}
