/* ==========================================================================
   LAGARDENT – Übergangsseite (One-Pager)
   Baut auf lagardent.css auf (Variablen, Titel, Buttons, Formular, Listen).
   ========================================================================== */

body.lgd-cs {
	margin: 0;
	background: var(--lgd-white);
	color: var(--lgd-text);
	font-family: var(--lgd-font);
	font-size: var(--lgd-fs-body);
	font-weight: 300;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.lgd-cs *,
.lgd-cs *::before,
.lgd-cs *::after { box-sizing: border-box; }
.lgd-cs img { max-width: 100%; height: auto; }
.lgd-cs a { color: var(--lgd-slate); }
.lgd-cs p { margin: 0 0 1.2em; }

/* Kopf ===================================================================== */

.lgd-cs-header {
	display: flex;
	justify-content: center;
	padding: clamp(24px, 3vw, 56px) var(--lgd-gutter) clamp(20px, 2.4vw, 44px);
}
.lgd-cs-logo { display: block; line-height: 0; }
.lgd-cs-logo .lgd-logo__img {
	width: auto;
	height: clamp(48px, 5.2vw, 96px);
	max-width: 88vw;
}

/* Kopfbild ================================================================= */

.lgd-cs-hero {
	position: relative;
	margin: 0 var(--lgd-edge);
}
#top.lgd .lgd-cs-hero__img,
.lgd-cs-hero .lgd-bild-fehlt {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	border-radius: var(--lgd-radius);
}
.lgd-cs-hero__badge {
	position: absolute;
	left: calc(var(--lgd-gutter) - var(--lgd-edge));
	bottom: 0;
	padding: clamp(16px, 2vw, 36px) clamp(20px, 3vw, 56px) clamp(14px, 1.6vw, 30px);
	border-radius: var(--lgd-radius) var(--lgd-radius) 0 0;
	background: var(--lgd-slate);
	color: var(--lgd-white);
	text-transform: uppercase;
	line-height: 1.05;
}
#top.lgd .lgd-cs-hero__badge p { margin: 0; }
.lgd-cs-hero__kicker { font-size: calc(var(--lgd-fs-pre) * 0.6); font-weight: 400; letter-spacing: 0.04em; }
.lgd-cs-hero__date { font-size: calc(var(--lgd-fs-main) * 0.7); font-weight: 500; }

.lgd-bild-fehlt {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: var(--lgd-card);
	color: var(--lgd-muted);
	font-size: 14px;
}

/* Sektionen ================================================================ */

.lgd-cs-section { padding: var(--lgd-section-y) 0; }
.lgd-cs-bg-sand { background: var(--lgd-sand-light); }
.lgd-cs-wrap {
	max-width: 1520px;
	margin: 0 auto;
	padding: 0 var(--lgd-gutter);
}
.lgd-cs-narrow {
	max-width: calc(860px + 2 * var(--lgd-gutter));
	margin: 0 auto;
	padding: 0 var(--lgd-gutter);
	text-align: center;
}
.lgd-cs-narrow .lgd-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
#top.lgd .lgd-cs-main .lgd-title { margin-bottom: 0.45em; }
.lgd-cs-sub { max-width: 46em; margin-bottom: 2em !important; }
#top.lgd .lgd-cs-main strong { font-weight: 500; color: var(--lgd-slate); }
#top.lgd .lgd-cs-main h3 {
	margin: 0 0 0.6em;
	color: var(--lgd-slate);
	font-size: clamp(18px, 14px + 0.6vw, 24px);
	font-weight: 500;
	line-height: 1.25;
}
#top.lgd .lgd-cs-main .lgd-cs-h3 {
	margin-top: 1.8em;
	font-weight: 400;
	text-transform: uppercase;
}

/* Buttons */
#top.lgd .lgd-btn--ghost {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--lgd-slate);
	color: var(--lgd-slate);
}
#top.lgd .lgd-btn--ghost:hover { background: var(--lgd-slate); color: var(--lgd-white); }
#top.lgd .lgd-btn--small { font-size: clamp(14px, 12px + 0.3vw, 17px); }
#top.lgd .lgd-btn--small::after { display: none; }

/* Raster =================================================================== */
/* Leistungen, Zahnärzte und Text/Formular teilen sich ein 4-Spalten-Raster mit gleichem Abstand:
   eine Formularbox bzw. Zahnarzt-Kachel ist genau so breit wie zwei Leistungskacheln. */
.lgd-cs { --lgd-cs-gap: clamp(12px, 1.2vw, 24px); }

/* Leistungen =============================================================== */

#top.lgd .lgd-cs-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--lgd-cs-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
#top.lgd .lgd-cs-card {
	min-width: 0;
	margin: 0;
	padding: clamp(18px, 1.5vw, 26px);
	/* keine automatische Silbentrennung – Umbruch nur zwischen Wörtern */
	-webkit-hyphens: manual;
	hyphens: manual;
	overflow-wrap: break-word;
	text-wrap: pretty;
	border-radius: var(--lgd-radius);
	background: var(--lgd-white);
	list-style: none;
}
#top.lgd .lgd-cs-card i,
#top.lgd .lgd-cs-card svg {
	display: block;
	height: 1em;
	margin-bottom: 18px;
	color: var(--lgd-sand-dark);
	font-size: 40px;
}
#top.lgd .lgd-cs-card p {
	margin: 0 0 0.8em;
	font-size: 0.92em;
	/* Getrennt wird nur an den im Text gesetzten weichen Trennstellen (&shy;) */
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
}
#top.lgd .lgd-cs-card p:last-child { margin-bottom: 0; }
/* Optional: Blocksatz (Design › Übergangsseite › Anzeige) */
#top.lgd.lgd-cs-justify .lgd-cs-card p { text-align: justify; text-align-last: left; }
/* Kacheln auf hellem Hintergrund sandfarben, auf sandfarbenem weiß */
#top.lgd .lgd-cs-section:not(.lgd-cs-bg-sand) .lgd-cs-card { background: var(--lgd-sand-light); }
.lgd-cs-bg-sand .lgd-cs-doctor { background: var(--lgd-white); }
.lgd-cs-sub p { margin-bottom: 1em; }
.lgd-cs-sub p:last-child { margin-bottom: 0; }
#top.lgd .lgd-cs-card h3 { font-size: clamp(17px, 13px + 0.45vw, 22px); }
html:not(.lgd-fa) .lgd-cs-card i { display: none; }

/* Zahnärzte ================================================================ */

.lgd-cs-doctors__grid {
	display: grid;
	grid-template-columns: 1fr; /* Zahnärzte untereinander */
	gap: var(--lgd-cs-gap);
}
/* Kachel: Porträt im Originalverhältnis (eine Rasterspalte breit), Text rechts daneben */
.lgd-cs-doctor {
	--lgd-doc-pad: clamp(20px, 2.4vw, 48px);
	display: grid;
	grid-template-columns: calc((100% - 3 * var(--lgd-cs-gap)) / 4) minmax(0, 1fr);
	grid-template-rows: 1fr repeat(4, auto) 1fr; /* Text vertikal mittig neben dem Foto */
	overflow: hidden;
	border-radius: var(--lgd-radius);
	background: var(--lgd-team);
}
#top.lgd .lgd-cs-doctor > .lgd-cs-doctor__img,
.lgd-cs-doctor > .lgd-bild-fehlt {
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
	aspect-ratio: 764 / 1021; /* Seitenverhältnis der Porträts – kein Beschnitt */
	object-fit: cover;
	object-position: 50% 0;
}
#top.lgd .lgd-cs-doctor > .lgd-cs-doctor__img .lgd-figure__img { height: 100%; }
#top.lgd .lgd-cs-doctor > :not(.lgd-cs-doctor__img):not(.lgd-bild-fehlt) {
	grid-column: 2;
	padding-left: var(--lgd-doc-pad);
	padding-right: var(--lgd-doc-pad);
}
#top.lgd .lgd-cs-doctor > h3 { grid-row: 2; white-space: nowrap; }
#top.lgd .lgd-cs-doctor > .lgd-cs-doctor__role { grid-row: 3; }
#top.lgd .lgd-cs-doctor > ul { grid-row: 4; margin-bottom: 0; }
#top.lgd .lgd-cs-doctor > blockquote { grid-row: 5; }
#top.lgd .lgd-cs-doctor .lgd-list { max-width: 40em; }
#top.lgd .lgd-cs-doctor h3 {
	margin-bottom: 0.2em;
	font-size: clamp(22px, 14px + 1vw, 32px);
	font-weight: 400;
}
.lgd-cs-doctor__role { color: var(--lgd-muted); }
.lgd-cs-doctor blockquote {
	margin: 1.4em 0 0;
	padding: 0.2em 0 0.2em 1.1em;
	border-left: 4px solid var(--lgd-muted);
	color: var(--lgd-muted);
	font-style: italic;
}

/* Zweispaltig: Text + Kasten =============================================== */

.lgd-cs-split {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--lgd-cs-gap);
	align-items: start;
}
.lgd-cs-split > * { grid-column: span 2; min-width: 0; }
.lgd-cs-split__text { padding-right: clamp(0px, 3vw, 56px); }
/* Kontakt: Karte unten bündig mit dem Formular */
.lgd-cs-split:has(.lgd-map) { align-items: stretch; }
.lgd-cs-split__text:has(.lgd-map) { display: flex; flex-direction: column; }
.lgd-cs-split__text .lgd-map { margin-top: auto; }
.lgd-cs-split__text:has(.lgd-map) > :nth-last-child(2) { margin-bottom: 2em; }
.lgd-cs-box {
	padding: clamp(24px, 3.4vw, 64px);
	border-radius: var(--lgd-radius);
	background: var(--lgd-sand-light);
}
.lgd-cs-bg-sand .lgd-cs-box { background: var(--lgd-white); }
#top.lgd .lgd-cs-box > h3 {
	margin-bottom: 0.8em;
	font-size: var(--lgd-fs-h3);
	font-weight: 400;
}
#top.lgd .lgd-cs-main .lgd-biglink a { color: var(--lgd-slate); }

/* Datei-Upload im Bewerbungsformular */
#top.lgd .lgd-form__file-label {
	display: block;
	margin-bottom: 6px;
	color: var(--lgd-muted);
	font-size: 14px;
}
#top.lgd .lgd-form input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1px dashed #c9c3ba;
	border-radius: 4px;
	background: var(--lgd-white);
	color: var(--lgd-muted);
	font-size: 14px;
}

/* Karte (Zwei-Klick) ======================================================= */

.lgd-map {
	position: relative;
	overflow: hidden;
	margin-top: 2em;
	border-radius: var(--lgd-radius);
	background: var(--lgd-card);
	aspect-ratio: 16 / 10;
}
.lgd-map__preview,
.lgd-map__placeholder,
.lgd-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
#top.lgd .lgd-map__preview { object-fit: cover; height: 100%; }
#top.lgd .lgd-map__placeholder {
	height: 100%;
	object-fit: cover;
	background: var(--lgd-sand-light);
}
.lgd-map__consent {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 16px 18px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	font-size: 14px;
	line-height: 1.4;
}
#top.lgd .lgd-map__consent p { margin: 0 0 8px; }
#top.lgd .lgd-map__consent p:last-child { margin: 0; }
.lgd-map__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}
.lgd-map.is-loaded { background: none; }

/* Footer & Rechtliches ===================================================== */

.lgd-cs-footer { padding: clamp(16px, 1.6vw, 30px) var(--lgd-hd-x) var(--lgd-hd-x); }
.lgd-cs-footer__box {
	padding: clamp(20px, 2vw, 36px) clamp(16px, 2.6vw, 50px);
	border-radius: 16px;
	background: var(--lgd-sand);
	color: var(--lgd-white);
	font-size: 14px;
}
.lgd-cs-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 30px;
}
#top.lgd .lgd-cs-footer__bar p { margin: 0; }
.lgd-cs-footer__links { display: flex; gap: 24px; }
#top.lgd .lgd-cs-footer__links a {
	color: var(--lgd-slate);
	font-weight: 500;
	text-decoration: none;
}
#top.lgd .lgd-cs-footer__links a:hover { text-decoration: underline; }

.lgd-cs-legal:not([open]) { display: none; }
.lgd-cs-legal {
	margin-top: 20px;
	padding: clamp(20px, 2.4vw, 44px);
	border-radius: var(--lgd-radius);
	background: var(--lgd-white);
	color: var(--lgd-text);
	font-size: 15px;
	scroll-margin-top: 20px;
}
.lgd-cs-legal summary {
	position: relative;
	margin-bottom: 1em;
	padding-right: 40px;
	color: var(--lgd-slate);
	font-size: clamp(20px, 15px + 0.8vw, 28px);
	font-weight: 400;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}
.lgd-cs-legal summary::-webkit-details-marker { display: none; }
.lgd-cs-legal summary::after {
	content: "\00d7";
	position: absolute;
	top: -0.15em;
	right: 0;
	font-size: 1.4em;
	font-weight: 300;
	line-height: 1;
}
#top.lgd .lgd-cs-legal h2,
#top.lgd .lgd-cs-legal h3 {
	margin: 1.4em 0 0.5em;
	color: var(--lgd-slate);
	font-size: 18px;
	font-weight: 500;
	text-transform: none;
}

/* Responsive =============================================================== */

@media (max-width: 1199px) {
	#top.lgd .lgd-cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 989px) {
	.lgd-cs-split,
	.lgd-cs-doctors__grid { grid-template-columns: 1fr; }
	.lgd-cs-split > * { grid-column: auto; }
	.lgd-cs-split__text { padding-right: 0; }
	.lgd-cs-split__text .lgd-map { margin-top: 0.5em; }
	#top.lgd .lgd-cs-hero__img,
	.lgd-cs-hero .lgd-bild-fehlt { aspect-ratio: 4 / 3; }
}

@media (max-width: 767px) {
	.lgd-cs-narrow { text-align: left; }
	.lgd-cs-narrow .lgd-actions { justify-content: flex-start; }
	.lgd-cs-hero__badge { left: 12px; padding: 12px 18px 10px; }
	.lgd-map { aspect-ratio: 4 / 5; }
	.lgd-cs-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* Instagram-Button */
#top.lgd .lgd-btn--instagram::after { display: none; }
#top.lgd .lgd-btn--instagram i { font-size: 1.1em; }
html:not(.lgd-fa) #top.lgd .lgd-btn--instagram i { display: none; }

/* Karte auf sandfarbenem Hintergrund absetzen */
.lgd-cs-bg-sand .lgd-map { box-shadow: 0 0 0 1px #ddd6cc; }

/* Bilder mit Hinweis / Beschriftung ([lgd_bild hinweis="…" beschriftung="…"]) */
.lgd-figure {
	position: relative;
	margin: 0;
	overflow: hidden;
}
#top.lgd .lgd-figure__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.lgd-figure__hint {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 1px 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.45);
	color: rgba(69, 82, 95, 0.75);
	font-size: 9px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.02em;
	pointer-events: none;
}
.lgd-figure__caption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	max-width: calc(100% - 24px);
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--lgd-slate);
	color: var(--lgd-white);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}
.lgd-figure__caption + .lgd-figure__hint {
	top: 8px;
	bottom: auto;
}

/* Kopfbild (Gebäude): Ausschnitt etwas unterhalb der Mitte */
#top.lgd img.lgd-cs-hero__img,
#top.lgd .lgd-cs-hero__img .lgd-figure__img { object-position: 50% 60%; }
.lgd-cs-hero .lgd-figure__hint { right: 10px; bottom: 10px; }

/* Mobil: Leistungen und Zahnärzte als Wischreihe ============================ */
@media (max-width: 767px) {
	#top.lgd .lgd-cs-cards,
	.lgd-cs-doctors__grid {
		display: flex;
		gap: 12px;
		margin-left: calc(-1 * var(--lgd-gutter));
		margin-right: calc(-1 * var(--lgd-gutter));
		padding: 2px var(--lgd-gutter) 4px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 var(--lgd-gutter);
		scrollbar-width: none;
	}
	#top.lgd .lgd-cs-cards::-webkit-scrollbar,
	.lgd-cs-doctors__grid::-webkit-scrollbar { display: none; }
	#top.lgd .lgd-cs-card,
	.lgd-cs-doctor {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}
	/* Zahnarzt-Kachel mobil: Porträt oben, Text darunter */
	.lgd-cs-doctor {
		display: flex;
		flex-direction: column;
	}
	#top.lgd .lgd-cs-doctor > .lgd-cs-doctor__img,
	.lgd-cs-doctor > .lgd-bild-fehlt { height: auto; width: 100%; }
	#top.lgd .lgd-cs-doctor > h3 { font-size: clamp(19px, 5.4vw, 24px); padding-top: var(--lgd-doc-pad); }
	#top.lgd .lgd-cs-doctor > :last-child { padding-bottom: var(--lgd-doc-pad); }
}

/* Punkte unter den Wischreihen (per uebergang.js erzeugt) */
.lgd-swipe-dots { display: none; }
@media (max-width: 767px) {
	.lgd-swipe-dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: 14px;
	}
	.lgd-swipe-dots button {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #d3ccc1;
		cursor: pointer;
	}
	.lgd-swipe-dots button[aria-current="true"] { background: var(--lgd-slate); }
}
