/* Design tokens (site-wide, taken from the /verkaufen landing page) */
:root {
	--lp-dark: #121212;
	--lp-gold: #f2be5a;
	--lp-gold-hover: #e5a93a;
	--lp-gold-dark: #856628; /* gold as text/icon on light grounds: 4.8:1 on beige, 5.4:1 on white */
	--lp-gold-text: var(--lp-gold-dark); /* links, focus ring: switches to --lp-gold on dark grounds (see "Gold on dark") */
	--lp-beige: #f4f2ee;
	--lp-text: #222;
	--lp-muted: #666;
	--lp-line: #dcd9d2;
	--lp-accent-s: 56px;  /* gold accent line, inside content (columns, cards, icon headings) */
	--lp-accent-l: 112px; /* gold accent line, under section headings */
	--lp-phone-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); /* filled handset */
	--lp-mail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
	--lp-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E"); /* button/link arrow, drawn in currentColor via mask */
}
/* Swiper's default accent is blue (active dots, arrows); its CSS sets it on :root after this file, so set it on body */
body { --swiper-theme-color: var(--lp-gold); }

/* Landingpage /verkaufen (page cssClass lp-verkaufen) */

/* :is(…, body) keeps the old specificity but also matches lp sections on other pages (team on Home/Über uns) */
:is(.lp-verkaufen, body) .mod_article.lp {
	scroll-margin-top: 80px;
	background: #fff;
	color: var(--lp-text);
	font-size: 17px;
	line-height: 1.6;

	&.lp-dark { background: var(--lp-dark); color: #fff; }
	&.lp-beige { background: var(--lp-beige); }
	&.lp-cols-2 { --cols: 2; }
	&.lp-cols-3, &.lp-benefits { --cols: 3; }

	> .container {
		max-width: 1240px; /* 1160 px content, like header and theme sections */
		padding: 96px 40px;

		@media (max-width: 767px) { padding: 56px 20px; }
	}

	:is(h1, h2, h3) { margin: 0 0 .5em; color: inherit; font-weight: 700; letter-spacing: 0; line-height: 1.15; text-transform: none; }
	h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
	h2 { font-size: clamp(30px, 4vw, 50px); }
	h3 { font-size: 22px; line-height: 1.3; }
	p { margin: 0 0 1em; color: inherit; font-size: inherit; font-weight: 400; line-height: inherit; }
	:is(p, li, h1, h2, h3, summary) { hyphens: manual; }
	a { color: inherit; }
	img { display: block; width: 100%; height: auto; }

	:is(ul, ol) { margin: 0; padding: 0; list-style: none; }
	li { margin: 0; padding: 0; color: inherit; list-style: none; }
	li::before { content: none; }
	li p, .lp-intro { color: var(--lp-muted); }
	&.lp-dark .ce_text p { color: rgba(255, 255, 255, .85); }

	.lp-eyebrow { margin-bottom: 1.25rem; color: var(--lp-gold-dark); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
	.lp-lead { font-size: 22px; font-weight: 700; line-height: 1.35; }
	&.lp-dark .ce_text :is(.lp-eyebrow, .lp-lead) { color: var(--lp-gold); }
	.lp-small { color: var(--lp-muted); font-size: 13px; }
	&.lp-dark .ce_text .lp-small { color: rgba(255, 255, 255, .6); }
	.lp-link { text-decoration: underline; text-underline-offset: 4px; }

	/* Head: eyebrow + h2 left, intro right */
	.ce_text:has(> .lp-intro) {
		display: grid;
		grid-template-columns: 3fr 2fr;
		column-gap: 64px;

		> * { grid-column: 1 / -1; }
		> .lp-eyebrow { grid-area: 1 / 1; }
		> h2 { grid-area: 2 / 1; }
		> .lp-intro { grid-area: 2 / 2; padding-top: .5em; }

		@media (max-width: 767px) { display: block; }
	}
	/* Section headlines without intro: same width as next to an intro (left 3/5), so all break alike */
	@media (min-width: 768px) { &:not(.lp-split) .ce_text:not(:has(> .lp-intro)) > h2 { max-width: calc((100% - 64px) * .6); } }

	/* Repeated items: one text element with a list, columns via --cols */
	.ce_text > :is(ul, ol) {
		display: grid;
		grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
		gap: 48px;

		&:not(:first-child) { margin-top: 56px; }
		@media (max-width: 767px) { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	}

	.lp-cta-row {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		margin-top: 56px;

		p { margin: 0; }
	}

	/* Gold short line */
	&.lp-lines li::before, .lp-sign::before, .lp-role::after { content: ""; display: block; width: var(--lp-accent-s); height: 2px; margin: 0 0 24px; background: var(--lp-gold); }
	.lp-role::after { margin: 20px 0 0; }

	&.lp-split > .container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 80px;
		align-items: start;

		> :first-child { grid-row: span 2; }
		@media (max-width: 900px) { grid-template-columns: minmax(0, 1fr); gap: 48px; > :first-child { grid-row: auto; } }
	}

	&.lp-hero {
		.ce_image img { aspect-ratio: 3 / 4; object-fit: cover; } /* size and alignment: "Hero" block further down */
		@media (max-width: 900px) { .ce_image img { aspect-ratio: 4 / 3; } }
		.lp-rotate { display: inline-block; transition: opacity .3s, transform .3s; }
		.lp-rotate.is-out { opacity: 0; transform: translateY(-.3em); }
		&:not(.lp-split) .ce_text { max-width: 720px; } /* text-only hero (10 % Prämie) */
	}

	&.lp-benefits {
		ul { gap: 0; }
		li { display: grid; grid-template-columns: 32px 1fr; align-content: start; column-gap: 20px; padding: 0 32px; }
		li:first-child { padding-left: 0; }
		li + li { border-left: 1px solid var(--lp-line); }
		li::before { grid-row: 1 / 3; color: var(--lp-gold-dark); font: 28px/1 FontAwesome; }
		li:nth-child(1)::before { content: "\f080"; }
		li:nth-child(2)::before { content: "\f0f6"; }
		li:nth-child(3)::before { content: "\f0c0"; }
		.lp-cta-row { padding-top: 32px; border-top: 1px solid var(--lp-line); font-size: 20px; }

		@media (max-width: 767px) {
			li { padding: 28px 0 0; }
			li + li { border-left: 0; border-top: 1px solid var(--lp-line); }
		}
	}

	&.lp-numbered {
		ol { counter-reset: lp; }
		li { counter-increment: lp; }
		li::before { content: counter(lp, decimal-leading-zero); display: block; margin-bottom: 20px; color: var(--lp-gold-dark); font-size: 18px; font-weight: 700; }
	}

	&.lp-numbered.lp-cols-2 {
		ol { gap: 48px 64px; }
		li { display: grid; grid-template-columns: 64px 1fr; align-content: start; padding-top: 28px; border-top: 1px solid var(--lp-line); }
		li::before { grid-row: 1 / 3; margin: 0; line-height: 1.3; }
	}

	/* Präsentation: head, 360° tour (core video element), two columns (tour / portals with logos) */
	&.lp-presentation {
		.lp-tour { position: relative; margin: 56px 0; cursor: pointer; }
		.lp-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 24px; }
		.lp-logos img { width: auto; height: 24px; }
		.lp-tour video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 500; object-fit: cover; background: #000; }
		.lp-tour::before { content: "Interaktiver 360°-Rundgang"; position: absolute; top: 20px; left: 20px; z-index: 2; padding: 8px 12px; background: rgba(18, 18, 18, .85); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
		/* one overlay: dim, gold play button, label below */
		.lp-tour::after {
			content: "Rundgang starten"; position: absolute; inset: 0; z-index: 1;
			display: flex; align-items: center; justify-content: center; padding-top: 104px;
			background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23f2be5a'/%3E%3Cpath d='M26 21v22l18-11z' fill='%23121212'/%3E%3C/svg%3E") center calc(50% - 16px) / 64px no-repeat, rgba(0, 0, 0, .3);
			color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
		}
		.lp-tour.is-playing { cursor: auto; &::before, &::after { display: none; } }
		@media (max-width: 767px) { .lp-tour { margin: 40px 0; } .lp-tour::before { display: none; } .lp-tour video { aspect-ratio: 16 / 10; } }
	}

	&.lp-cards {
		ul { gap: 32px; }
		img { aspect-ratio: 3 / 2; margin-bottom: 20px; object-fit: cover; background: #e8e6df; }
		.lp-eyebrow { margin-bottom: .5rem; }
	}

	&.lp-team {
		li { display: flex; align-items: center; gap: 28px; }
		li img { flex: none; width: 220px; aspect-ratio: 4 / 5; object-fit: cover; }
		@media (max-width: 767px) { li img { width: 130px; } li h3 { font-size: 20px; } }
		li h3 { font-size: 24px; }
		li p { margin-bottom: .5rem; }
		li a { color: var(--lp-text); font-size: 18px; text-decoration: none; }
		&.lp-dark li a { color: #fff; }
		.lp-mail { margin-top: 48px; font-size: 18px; }
		/* email as button: envelope icon instead of the arrow */
		.lp-mail a::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--lp-mail-icon) center / contain no-repeat; mask: var(--lp-mail-icon) center / contain no-repeat; } /* same icon as footer/contact */

	}

	&.lp-faq {
		> .container > :first-child { position: sticky; top: 120px; }
		@media (max-width: 900px) { > .container > :first-child { position: static; } }
		.mod_faqpage { margin-bottom: 40px; border-top: 1px solid var(--lp-line); }
		details { border-bottom: 1px solid var(--lp-line); }
		summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 19px; cursor: pointer; list-style: none; }
		summary::-webkit-details-marker { display: none; }
		summary::after { content: "+"; color: var(--lp-gold-dark); font-size: 24px; line-height: 1; }
		details[open] summary { font-weight: 700; }
		details[open] summary::after { content: "–"; }
		details p { color: var(--lp-muted); }
	}
}

/* Multi-step forms (sell form, referral form): tabs from the step legends */
.lp-verkaufen .ce_form {
	padding: 40px;
	background: #fff;
	color: var(--lp-text);

	@media (max-width: 767px) { padding: 24px; }
}

.lp-verkaufen .mod_article.lp .ldi-steps {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0;

	li { margin: 0; padding: 0 0 14px; border-bottom: 2px solid var(--lp-line); color: var(--lp-muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
	[aria-current] { border-color: var(--lp-gold); color: var(--lp-text); }
}

.lp-verkaufen #main .mod_article.lp .ldi-sell-form { /* #main: outranks the site-wide form rules below */
	[hidden] { display: none !important; }
	fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
	fieldset.ldi-step { padding-top: 24px; }
	fieldset.ldi-step > legend { display: none; } /* shown as tab above the form */
	/* No display: grid on a fieldset with a legend: Safari (after a reload) shrinks the legend to one
	   word per line. Option groups use flex-wrap instead, which Safari handles. */
	span.mandatory { display: none; }

	.widget-text:has(> input:not(:required)) > label::after { content: " (freiwillig)"; font-weight: 400; }

	.ldi-note { margin: 12px 0 0; color: var(--lp-muted); font-size: 13px; }
	.ldi-step > .ldi-note:first-child { margin: 0 0 20px; }
	a { text-decoration: underline; }

	.ldi-back { margin: 0 0 16px; padding: 0; border: 0; background: none; color: var(--lp-muted); font-size: 14px; text-decoration: underline; cursor: pointer; }

	fieldset.ldi-segments {
		display: flex;
		gap: 12px;

		> span { position: relative; flex: 1 1 0; }
		input { position: absolute; opacity: 0; }
		label { display: flex; align-items: center; height: 50px; margin: 0; padding: 0 14px; border: 1px solid var(--lp-line); font-weight: 400; cursor: pointer; }
		input:checked + label { border-color: var(--lp-gold); background: #fdf8ec; font-weight: 700; }
		input:focus-visible + label { outline: 2px solid var(--lp-text); }
	}

	/* Property type: icon tiles (icons inline, coloured via mask) */
	fieldset.ldi-type-tiles {
		--per-row: 4;
		display: flex;
		flex-wrap: wrap;
		gap: 10px;

		> span { position: relative; display: grid; flex: 0 0 calc((100% - (var(--per-row) - 1) * 10px) / var(--per-row)); }
		input { position: absolute; opacity: 0; pointer-events: none; }
		label {
			display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
			min-height: 108px; margin: 0; padding: 14px 6px; border: 1px solid var(--lp-line);
			font-size: 13px; font-weight: 400; line-height: 1.25; text-align: center; hyphens: manual; cursor: pointer; transition: border-color .15s, background-color .15s;
		}
		label::before { content: ""; width: 34px; height: 34px; background: var(--lp-text); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
		label:hover { border-color: var(--lp-gold); }
		input:checked + label { border-color: var(--lp-gold); background: #fdf8ec; }
		input:checked + label::before { background: var(--lp-gold-dark); }
		input:focus-visible + label { outline: 2px solid var(--lp-text); }
		input[value="Einfamilienhaus"] + label { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E"); }
		input[value="Doppelhaushälfte"] + label { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 12 7 7l5 4.5L17 7l5.5 5'/%3E%3Cpath d='M3 11v9h18v-9'/%3E%3Cpath d='M12 11.5V20'/%3E%3Cpath d='M6 20v-3.5h2V20'/%3E%3Cpath d='M16 20v-3.5h2V20'/%3E%3C/svg%3E"); }
		input[value="Reihenhaus"] + label { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 12 5 8.5 8.5 12 12 8.5l3.5 3.5L19 8.5l3.5 3.5'/%3E%3Cpath d='M2.5 11.5V20h19v-8.5'/%3E%3Cpath d='M8.5 12v8M15.5 12v8'/%3E%3C/svg%3E"); }
		input[value="Mehrfamilienhaus"] + label { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20.5V3.5h14v17'/%3E%3Cpath d='M3 20.5h18'/%3E%3Cpath d='M8.5 7h2M13.5 7h2M8.5 10.5h2M13.5 10.5h2M8.5 14h2M13.5 14h2'/%3E%3Cpath d='M10.5 20.5v-3h3v3'/%3E%3C/svg%3E"); }
		input[value="Wohnung"] + label { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='.5'/%3E%3Cpath d='M11 4v6M11 13.5V20'/%3E%3Cpath d='M11 10h-4M3 10h1.5'/%3E%3Cpath d='M14.5 13H21'/%3E%3C/svg%3E"); }
		input[value="Grundstück"] + label { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 19.5 6 15h15.5L18 19.5z'/%3E%3Cpath d='M12 12.5s-3.5-3-3.5-6a3.5 3.5 0 0 1 7 0c0 3-3.5 6-3.5 6z'/%3E%3Ccircle cx='12' cy='6.5' r='1.2'/%3E%3C/svg%3E"); }
		input[value="Gewerbe"] + label { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5h17L19 4.5H5z'/%3E%3Cpath d='M9.5 4.5 9 9.5M14.5 4.5l.5 5'/%3E%3Cpath d='M5 9.5V20h14V9.5'/%3E%3Cpath d='M9.5 20v-5h5v5'/%3E%3C/svg%3E"); }
		input[value="Sonstiges"] + label { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M8 12h.01M12 12h.01M16 12h.01'/%3E%3C/svg%3E"); }

		@media (max-width: 480px) { --per-row: 2; }
	}

	/* Optional details: closed by default, fields depend on the type (see form_wrapper_ldi_sell.html5) */
	.ldi-more {
		margin: 4px 0 24px; border-block: 1px solid var(--lp-line);

		summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; }
		summary::-webkit-details-marker { display: none; }
		summary::before { content: "+"; width: 12px; color: var(--lp-gold-dark); font-size: 20px; line-height: 1; }
		&[open] summary::before { content: "–"; }
		summary span { color: var(--lp-muted); font-size: 13px; font-weight: 400; }

		.ldi-more-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding-bottom: 4px; }
		.ldi-col-full { grid-column: 1 / -1; }
		.widget-text:has(> input:not(:required)) > label::after { content: none; }
		textarea { width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid var(--lp-line); }
		@media (max-width: 480px) { .ldi-more-body { grid-template-columns: minmax(0, 1fr); } }
	}

	fieldset.ldi-chips {
		display: flex; flex-wrap: wrap; gap: 8px;

		> legend { margin-bottom: 8px; }
		span { position: relative; }
		input { position: absolute; opacity: 0; }
		label { display: block; margin: 0; padding: 8px 14px; border: 1px solid var(--lp-line); font-size: 14px; font-weight: 400; cursor: pointer; }
		input:checked + label { border-color: var(--lp-gold); background: #fdf8ec; }
		input:focus-visible + label { outline: 2px solid var(--lp-text); }
	}
}

.ldi-sell-success h3 { margin: 0 0 .5em; }

/* ==========================================================================
 * Site-wide look (all pages): buttons, form fields, type, backgrounds.
 * #main/#slider prefix outranks the theme; !important only where the theme
 * or files/ldi/scss/styles.scss uses it.
 * ========================================================================== */

/* Buttons: square, gold, arrow right */
:is(#main, #slider) :is(a.lp-btn, a.hyperlink_txt, .btn-action-call, button.submit, .ldi-next, button.reset, .lp-mail a) {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px; /* half the side padding */
	width: auto;
	min-width: 0; /* theme gives submit buttons min-width 140px, which pushes the arrow away */
	max-width: none;
	height: auto;
	margin: 0;
	padding: 15px 20px;
	border: 0 !important;
	border-radius: 0;
	background: var(--lp-gold) !important;
	color: var(--lp-dark);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	opacity: 1;
	cursor: pointer;
	transition: background-color .15s, transform .1s ease-out;

	&::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--lp-arrow) center / contain no-repeat; mask: var(--lp-arrow) center / contain no-repeat; }
	&:hover { background: var(--lp-gold-hover) !important; color: var(--lp-dark); }
	&:active { transform: scale(.96); }

	@media (prefers-reduced-motion: reduce) { transition: none; &:active { transform: none; } }
}

#main .ldi-sell-form :is(button.submit, .ldi-next) { width: 100%; margin-top: 8px; }
#main .lp-hero a.lp-btn { margin-top: 1rem; }
#main .lp-mail a::after { content: none; } /* email button: envelope instead of arrow */

/* Über uns intro on beige; its image has a white background, multiply lets it blend in */
/* Home "Jetzt kontaktieren": beige box as tall as the form next to it (desktop; stacked on mobile) */
@media (min-width: 768px) {
	#main .autogrid_grid:has(> .column > .ce_bgimage):has(> .column > .ce_form) {
		display: flex; align-items: stretch;
		> .column { display: flex; flex: 1 1 0; flex-direction: column; float: none; }
		> .column > :is(.ce_bgimage, .ce_form) { flex: 1; margin-top: 0; margin-bottom: 0; }
		.ce_bgimage-outer { height: 100%; display: flex; flex-direction: column; justify-content: center; }
		.ce_bgimage-inside { width: 100%; } /* keep the original inner width, only the height changes */
		/* no invisible spacing at the edges of the form: empty helper widgets (hidden fields only) and the last margin */
		.ce_form .widget:has(> input.hidden:only-child) { margin: 0; } /* Immobilie / Immobilie-ID, filled on exposé pages */
		.ce_form .formbody > .widget:last-child { margin-bottom: 0; }
	}
}

/* lp sections on dark outside /verkaufen: beat the site-wide dark heading colour */
#main .mod_article.lp.lp-dark :is(h1, h2, h3) { color: #fff; }

#main .mod_article.bg-beige { background: var(--lp-beige); }
#main .mod_article.bg-beige img { mix-blend-mode: multiply; }

/* Phone and mail icons site-wide (footer, contact boxes, team): one line style, drawn in the text colour.
   Replaces the theme's FontAwesome glyphs fa-phone / fa-envelope(-o). */
.fa:is(.fa-phone, .fa-envelope, .fa-envelope-o)::before, #main .lp-team a[href^="tel:"]::before, .ce_teambox :is(.phone, .email a)::before, :is(.lp-ic-phone, .lp-ic-mail)::before {
	content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; background: currentColor;
	-webkit-mask: var(--lp-icon) center / contain no-repeat; mask: var(--lp-icon) center / contain no-repeat;
}
.fa.fa-phone::before, #main .lp-team a[href^="tel:"]::before, .ce_teambox .phone::before, .lp-ic-phone::before { --lp-icon: var(--lp-phone-icon); }
.fa:is(.fa-envelope, .fa-envelope-o)::before, .ce_teambox .email a::before, .lp-ic-mail::before { --lp-icon: var(--lp-mail-icon); }
:is(.lp-ic-phone, .lp-ic-mail)::before { margin-right: 10px; color: var(--lp-gold-dark); } /* Kontakt page */
.lp-contact a { color: inherit; }
.ce_teambox :is(.phone, .email a)::before { margin-right: 8px; }
#main .lp-team a[href^="tel:"]::before { width: 18px; height: 18px; margin-right: 10px; color: var(--lp-gold-dark); vertical-align: -3px; }

/* Hover for links that otherwise read as plain text: text links, property cards, icon and photo links */
#main :is(p, li) a:not([class*=btn]):hover { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
#main .real_estate_item_default a:hover .title { color: var(--lp-gold-dark); }
#main :is(.real_estate_item_default .main-image, .ce_iconbox_icon, .ce_teambox) a img { transition: opacity .2s; }
#main :is(.real_estate_item_default .main-image, .ce_iconbox_icon, .ce_teambox) a:hover img { opacity: .85; }

/* One accent line site-wide, 2 px brand gold in two lengths (--lp-accent-l under section headings, -s inside content). Covers the theme's .sep-line and divider
   element (all versions; the theme draws some with spans, some white via .invert !important)
   and the heading underline on exposé/reference pages (styles.scss: 95px, theme yellow) */
:is(#main, #slider) :is(.sep-line, .ce_divider_extended) {
	width: var(--lp-accent-l); max-width: none; height: 2px; border: 0;
	background: var(--lp-gold) !important;
	span { display: none !important; }
}
:is(#main, #slider) :is(.sep-line, .ce_divider_extended.align-center) { margin-inline: auto; }
#main .ldi-detail-objektangaben h2::after { width: var(--lp-accent-s); background-color: var(--lp-gold); } /* :is() takes no pseudo-elements */

/* /kaufen: results with room above and below (theme article has pt-0/pb-0 !important), count aligned with the cards */
#main .mod_article:has(.kaufen-ergebnisliste) > .container {
	padding-top: 80px !important; padding-bottom: 40px !important; /* + 40px card margin below = 80px */
	@media (max-width: 767px) { padding-top: 48px !important; padding-bottom: 8px !important; }
}
#main .kaufen-ergebnisliste .result-count {
	margin: 0 0 28px; padding: 0 20px; color: var(--lp-muted) !important; font-size: 15px; font-weight: 400; line-height: 1.5; /* 20px = grid gutter, aligns with the cards; an h2 (outline), styled as a line of text */
	span { color: var(--lp-text); font-weight: 700; }
}

/* Home: testimonials on beige, white cards, no fade-in (theme .animate starts at opacity 0) */
#main .mod_article:has(.ce_testimonial) {
	background-color: var(--lp-beige);
	:is(.animate, .animated) { opacity: 1; animation: none; }
	.ce_testimonial .text, .ce_testimonial .text::after { background-color: #fff; }
	/* avatar: line icon drawn by CSS (inline SVG, no image in the content, nothing to load) */
	.ce_testimonial .info { display: flex; align-items: center; gap: 12px; }
	.ce_testimonial .info::before {
		content: ""; flex: none; width: 56px; height: 56px; border: 1px solid var(--lp-line); border-radius: 50%;
		background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6a2e' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='9' r='3.5'/%3E%3Cpath d='M5.5 19.5c1.2-3.3 3.6-5 6.5-5s5.3 1.7 6.5 5'/%3E%3C/svg%3E") center / 28px no-repeat;
	}
}

/* Home: four service icons on the photo band (white/gold SVGs in files/ldi/icons) */
#main .autogrid_grid:has(.ce_iconbox_icon img[src*="ldi/icons/"]) {
	.ce_iconbox { margin-bottom: 24px !important; } /* same gap for all four (theme .mb-xxs is !important, only on three) */
	.ce_iconbox_icon img { width: 72px; height: 72px; transition: transform .2s, opacity .2s; }
	.ce_iconbox_icon a:hover img { opacity: 1; transform: translateY(-4px); }
	/* min-content: one word per line, so all four two-word headings always break the same way */
	h3 { width: min-content; margin-inline: auto; hyphens: manual; color: #fff !important; font-size: 19px; line-height: 1.3; } /* !important: theme .color-gray h3 */
	h3::after { content: ""; display: block; width: var(--lp-accent-s); height: 2px; margin: 14px auto 12px; background: var(--lp-gold); }
	.ce_text_extented p { color: rgba(255, 255, 255, .8) !important; font-size: 15px; }
	@media (prefers-reduced-motion: reduce) { .ce_iconbox_icon a:hover img { transform: none; } }
}
#main .ce_form form.ldi-sell-form { .ldi-step { padding-top: 24px; } .widget { margin: 0 0 20px; } }
:is(#main, #slider) :is(a, div).btn-action-call { display: flex; width: max-content; margin-inline: auto; }
#main .ldi-search-form-btn { margin-right: 16px; }
/* Secondary button (Kaufen filter "Zurücksetzen", Home hero "Immobilien ansehen"): the gold button outlined, no arrow */
#main :is(button.reset, a.lp-btn.lp-btn-outline) {
	margin-right: 16px;
	padding: 14px 20px;
	border: 1px solid var(--lp-gold) !important;
	background: transparent !important;
	color: #fff;

	&::after { content: none; }
	&:hover { background: rgba(242, 190, 90, .12) !important; color: #fff; }
}
/* Card links ("Referenz ansehen", "Zum Exposé"): muted, bold, underlined, arrow */
#main :is(.lp-cards li a, .real_estate_item_default :is(a.expose-link, .expose-link a)) {
	color: var(--lp-muted); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-transform: none;
	&::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .35em; vertical-align: -.15em; background: currentColor; -webkit-mask: var(--lp-arrow) center / contain no-repeat; mask: var(--lp-arrow) center / contain no-repeat; }
	&:hover { color: var(--lp-gold-dark); text-decoration-thickness: 2px; }
	.icon-right-open-big { display: none; }
}

/* Form fields: square, 1px line, gold focus */
:is(#main, #slider) {
	:is(input.text, input.captcha, select, textarea) {
		width: 100%;
		height: 50px;
		padding: 0 14px;
		border: 1px solid var(--lp-line);
		border-radius: 0;
		background-color: #fff;
		color: var(--lp-text);
		font-size: 16px;

		&:focus { border-color: var(--lp-gold); outline: 2px solid var(--lp-gold); outline-offset: -2px; }
		&:user-invalid { border-color: #c0392b; }
	}

	textarea.textarea { height: 180px; padding: 12px 14px; }
	select:has(option[value=""]:checked), input::placeholder, textarea::placeholder { color: #8a8a8a; opacity: 1; }
	input[type="checkbox"], input[type="radio"] { accent-color: var(--lp-gold-dark); }
	p.error { margin: 0 0 6px; color: #c0392b; font-size: 14px; }

	:is(.ce_form, .ce_filter, .mod_filter) { /* mod_filter: the Kaufen search via insert tag in the hero */
		:is(label, legend) { display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; background: none; color: inherit; font-size: 15px; font-weight: 700; text-transform: none; }
		.checkbox_container label { display: inline; font-weight: 400; }
		fieldset { padding: 0; border: 0; }
		fieldset:not(.ldi-step, .radio_container, .checkbox_container) { margin: 0 0 32px; }
		fieldset:not(.radio_container, .checkbox_container) > legend { color: var(--lp-gold-dark); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
		.widget { margin-bottom: 16px; }
	}
}

/* Type: bold headings, no wide spacing; theme serif off; eyebrow style */
body:not(.lp-verkaufen) :is(#main, #slider) {
	:is(h1, h2, h3, h4, h5, h6) { color: var(--lp-text); font-weight: 700; letter-spacing: 0; line-height: 1.2; }
	:is(h1, h2, h3, h4, h5, h6) :is(.color-accent, span) { color: inherit; }
	.background-text { display: none; }
	.ce_text_extented.color-lightgray.font_serif p { color: var(--lp-gold-dark) !important; font-size: 13px; font-weight: 700; letter-spacing: .06em; } /* !important: theme .color-lightgray p */
	:is(.font-style-letter-sp5, .font-style-letter-sp5 *) { letter-spacing: 0; }
}

:is(#main, #slider, #footer) :is(.font_serif, .font_serif_2) { font-family: "Open Sans", sans-serif; }
:is(#main, #slider) .ce_list li { font-family: "Open Sans", sans-serif !important; &::before { font-family: FontAwesome !important; } }

/* Backgrounds: near-black instead of greys/black, beige instead of light grey */
body:not(.lp-verkaufen) {
	:is(.bg-darkgrey, .bg-darkgray, .bg-black, .mod_article.bg-styles:is([style*="0,0,0,1"], [style*="64,64,64,1"])) { background-color: var(--lp-dark) !important; }
	#slider .ce_bgimage:has(> .ce_bgimage-image[style*="url("]:not([style*="10Prozent"])) { background-color: var(--lp-dark) !important; }
	#slider .ce_bgimage-image[style*="url("]:not([style*="10Prozent"]) { background-image: none !important; }
	.bg-lightgray { background-color: var(--lp-beige) !important; }

	:is(#slider, .bg-darkgrey, .bg-darkgray, .bg-black, .bg-styles, .bg_dark) {
		:is(h1, h2, h3, h4, h5, h6, label) { color: #fff; }
		:is(h1, h2, h3, h4, h5, h6) .color-accent, :is(.font-style-letter-sp5, .txt-color-second) * { color: var(--lp-gold); }
		fieldset > legend { color: var(--lp-gold) !important; }
	}

	#slider .bg-lightgray :is(h1, h2, h3, h4, h5, h6) { color: var(--lp-text); .color-accent { color: inherit; } }

	.ce_teambox {
		.name { color: #fff; }
		.function { color: var(--lp-gold); }
		.phone { color: rgba(255, 255, 255, .85); }
	}
}

/* Footer: near-black, gold accents */
#footer {
	background: var(--lp-dark);
	color: rgba(255, 255, 255, .75);

	:is(h1, h2, h3, h4, h5, h6) { color: #fff; font-weight: 700; }
	a:hover { color: var(--lp-gold); }
}

.body_bottom, #bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: var(--lp-dark); }
#bottom :is(p, a) { color: rgba(255, 255, 255, .6); } /* was #666 on black, 3.7:1 */

/* Flat: no shadows or 3D text anywhere (Google Maps controls excepted); cards keep their edge as a 1px line */
:not(.gm-style *), :not(.gm-style *)::before, :not(.gm-style *)::after { text-shadow: none !important; box-shadow: none !important; }
:is(.real_estate_item_default, .mod_realEstateExpose.detail-top) { border: 1px solid var(--lp-line); }
.swiper-pagination-bullet { border: 1px solid currentColor; }

/* Form fields on dark backgrounds (Home/Kaufen filter, 10 % form): dark fill, soft line, white text */
:is(#main, #slider) :is(.ce_filter, .mod_filter, #vermittlungsform) :is(input.text, select, textarea) {
	border-color: rgba(255, 255, 255, .22);
	background-color: rgba(255, 255, 255, .06);
	color: #fff;

	&::placeholder { color: rgba(255, 255, 255, .5); }
	option { color: var(--lp-text); }
}

/* Home "Top Immobilien" slider: long descriptions end with "…" so every card keeps the same height */
.ldi-top-imo-slider .main-description {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
}

/* Same slider: every photo in a 4:3 frame (portrait photos are cropped), so no photo stretches its card */
.ldi-top-imo-slider .main-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Same slider: hide the black info strip when a listing has no m²/Zimmer/Badezimmer (e.g. plots) */
.ldi-top-imo-slider .main-image-info:not(:has(span)) { display: none; }

/* Main navigation: regular weight instead of bold (matches the mobile menu); hover turns gold (theme: opacity only) */
.header .mod_navigation.mainmenu :is(a, span) { font-weight: 400; }
.header .mod_navigation.mainmenu a { transition: color .15s ease-out; }
.header .mod_navigation.mainmenu a:hover { color: var(--lp-gold); opacity: 1; }

/* ==========================================================================
 * One palette (all pages): the design tokens replace the theme's own colours
 * ========================================================================== */

/* Dark: one near-black for header, sections, footer (theme designer: #000) */
.header, .header.cloned { background: var(--lp-dark); }

/* Text: #222 / #666 instead of the theme's #555, #7f7f7f, #b4b4b4, #8c8c8c */
body { color: var(--lp-text); }
#main .color-gray :is(h1, h2, h3, h4, h5, h6) { color: var(--lp-text) !important; } /* !important: theme .color-gray */
#main :is(.color-gray, .color-lightgray) :is(p, i, a:not(.link-white)) { color: var(--lp-muted) !important; }
#main .ce_testimonial .text p { color: var(--lp-text) !important; } /* theme: #8c8c8c !important */

/* Gold on dark: gold text and focus rings use --lp-gold-text, dark gold on light grounds (5:1), brand gold on dark ones */
:is(.lp-dark, .bg-darkgrey, .bg-darkgray, .bg-black, .bg_dark, #slider, .header, #footer, #bottom, #mmenu) { --lp-gold-text: var(--lp-gold); }
#slider .bg-lightgray { --lp-gold-text: var(--lp-gold-dark); }

/* Links inside running text (theme sections, legal pages, cookie banner, map placeholder); lp sections style their own */
/* (phone/mail rows keep the text colour, like the team block) */
#main .mod_article:not(.lp) :is(p, li) a:not([class*="btn"], [href^="tel:"], [href^="mailto:"]), .mod_privacy_optin .privacy_text a, p.privacy a { color: var(--lp-gold-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Map without consent (Kaufen, Kontakt): the notice fills the map area as a beige panel instead of a raw line at the page edge */
:is(.ce_privacy_iframe, .mod_realEstateGoogleMap) { position: relative; }
:is(.ce_privacy_iframe, .mod_realEstateGoogleMap):has(> p.privacy:not(.hidden)) { background: var(--lp-beige); } /* the map covers it once loaded */
#main p.privacy[id^="privacy_info_"] { /* #main: beats the dark hero's white text */
	position: absolute; top: 50%; right: 0; left: 0; z-index: 1; margin: 0; padding: 0 15%; transform: translateY(-50%);
	color: var(--lp-muted); font-size: 15px; line-height: 1.6; text-align: center;
	&.hidden { display: none; }
	a { color: var(--lp-gold-dark); } /* light panel, also inside the dark hero */
}

/* Keyboard focus, visible on every control; text selection in brand colours */
:focus-visible { outline: 2px solid var(--lp-gold-text); outline-offset: 3px; }
::selection { background: var(--lp-gold); color: var(--lp-dark); }

/* Hero: one structure on every page (design phase 4, decisions 2026-11-24). The first section in #main, dark, label and
   H1 always at the same distance from the header, so switching pages moves nothing.
   Landing pages (Home, Kaufen, Verkaufen, 10 % Prämie, class lp-split): text left, photo or map right, 80 % of the
   screen height. Subpages (Über uns, Kontakt, Impressum, Datenschutz): text only, 40 % (280-420 px).
   svh = height with the mobile browser bars shown; content that needs more room (phones) still grows. */
#main .mod_article.lp.lp-hero { --hero-pad: clamp(48px, 8svh, 80px); }
#main .mod_article.lp.lp-hero > .container { align-items: start; min-height: clamp(280px, 40svh, 420px); padding-top: var(--hero-pad); padding-bottom: var(--hero-pad); }
#main .mod_article.lp.lp-hero h1 { font-size: clamp(38px, 4.4vw, 56px); }
#main .mod_article.lp.lp-hero.lp-split > .container { min-height: 80svh; }
@media (min-width: 901px) {
	#main .mod_article.lp.lp-hero.lp-split :is(.ce_image img, .google-map) { height: calc(80svh - 2 * var(--hero-pad)) !important; aspect-ratio: auto; } /* !important: map height inline */
}
@media (max-width: 900px) { #main .mod_article.lp.lp-hero.lp-split .google-map { height: auto !important; aspect-ratio: 4 / 3; } }
@media (max-width: 767px) { #main .mod_article.lp.lp-hero > .container { padding-top: 56px; padding-bottom: 56px; } }
#main .mod_article.lp.lp-hero .ce_text p:has(> a.lp-btn + a.lp-btn) { display: flex; flex-wrap: wrap; gap: 16px; } /* two buttons (Home) */
#main .leaflet-bar a { color: var(--lp-text); } /* map zoom +/-: the dark hero makes links white (white on the white buttons) */
/* Kaufen hero: search form in three rows (location | type, price from | to, area from | to) so it fits the 80 % */
@media (min-width: 768px) { /* same as the price/area pairs in styles.scss: 49 % + 1 % gap */
	#main .lp-hero .mod_filter :is(.widget-location, .widget-type) { display: inline-block; width: 49%; margin-right: 1%; vertical-align: top; }
	#main .lp-hero .mod_filter .widget-type { margin-right: 0; }
	#main .lp-hero .mod_filter .widget { margin-bottom: 12px; }
}

/* Slider arrows, site-wide standard (Home "Top Immobilien", exposé photos): gold box, dark arrow, always visible.
   Theme: thin 70 px white chevrons at 30 % opacity; before: old gold with a white arrow (1.7:1) */
body :is(.swiper-button-prev, .swiper-button-next) {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-top: -22px; padding: 0;
	background: var(--lp-gold); color: var(--lp-dark); opacity: 1 !important; cursor: pointer; transition: background-color .15s ease-out;

	/* the buttons' line arrow instead of the theme's FontAwesome chevron, mirrored for "back" */
	&::after { content: ""; width: 20px; height: 20px; color: inherit; background: currentColor; /* inherit: theme colours the ::after white */ -webkit-mask: var(--lp-arrow) center / contain no-repeat; mask: var(--lp-arrow) center / contain no-repeat; }
	&.swiper-button-prev::after { transform: scaleX(-1); }
	&:hover { background: var(--lp-gold-hover); }
	&.swiper-button-disabled { opacity: .35 !important; cursor: default; }
}
/* Phone: Home slider arrows on the middle of the photo, not of the whole card (photo is 4:3, 100vw minus 2×20 page and 2×21 card padding) */
@media (max-width: 767px) {
	body .ldi-top-imo-slider-controls :is(.swiper-button-prev, .swiper-button-next) { top: calc((100vw - 82px) * .375 + 1px); } /* body: outranks styles.scss */
}

/* Energy class bar (exposé, vendor CSS): its white labels relied on a text shadow, which the flat rule removes */
#expose-energiebar .bar .item { color: var(--lp-dark); font-weight: 700; }
#expose-energiebar .bar .item:last-child { color: #fff; } /* red end */
#expose-energiebar .bar .item::after, #expose-energiebar .bar .item:first-child::before { color: var(--lp-muted); }
#expose-energiebar .pointer { border-radius: 0; background: var(--lp-dark); }
#expose-energiebar .pointer::after { border-top-color: var(--lp-dark); }

/* ==========================================================================
 * One type scale (all pages): the /verkaufen steps for the theme sections too.
 * Theme default was 15 px body with em headings (28.5 / 35 / 28 px).
 * ========================================================================== */
/* No single word on a last line, headings broken into even lines */
:is(#main, #slider) :is(p, li) { text-wrap: pretty; }
:is(#main, #slider) :is(h1, h2, h3, h4, h5, h6) { text-wrap: balance; }

:is(#main, #slider) .mod_article:not(.lp, .home-multi-teaser-container) { /* Home hero keeps its sizes until it is rebuilt (plan phase 4) */
	:is(p, li) { font-size: 17px; line-height: 1.6; }
	/* Section titles (headline elements, any level; subpage banners use them as their H1) */
	:is(h1.ce_headline, h2.ce_headline, .ce_headline_extended :is(h1, h2, h3)) { font-size: clamp(30px, 4vw, 50px); line-height: 1.15; }
	/* Section head on Home: gold label + headline + long gold line, centred (decision 2026-11-24);
	   inside a column box (Home contact box) left-aligned */
	:is(.ce_text, .ce_text_extented):has(> .lp-eyebrow:first-child) { text-align: center; }
	.lp-eyebrow { margin: 0 0 1.25rem; color: var(--lp-gold-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }
	.lp-eyebrow + h2 { margin: 0 0 32px; font-size: clamp(30px, 4vw, 50px); line-height: 1.15; }
	.lp-eyebrow + h2::after { content: ""; display: block; width: var(--lp-accent-l); height: 2px; margin: 24px auto 0; background: var(--lp-gold); }
	.column :is(.ce_text, .ce_text_extented):has(> .lp-eyebrow:first-child) { text-align: left; }
	.column .lp-eyebrow + h2::after { margin-left: 0; }
	/* Column titles in text elements (Kontakt): H2/H3 in the outline, smaller on screen */
	.ce_text > h2:first-child { font-size: 22px; line-height: 1.3; }
	.ce_text > h3:first-child { font-size: 19px; line-height: 1.3; }
	/* Headings inside running text (Datenschutz, Impressum) */
	> .container > h1:not(.ce_headline) { font-size: clamp(30px, 4vw, 50px); line-height: 1.15; }
	> .container > h2:not(.ce_headline) { font-size: 30px; line-height: 1.2; }
	> .container > h3, h3.ce_headline { font-size: 22px; line-height: 1.3; }
	&:has(> .container > h2:not(.ce_headline)) > .container > :is(p, ul, ol, h2, h3, h4) { max-width: 64ch; } /* legal text (Datenschutz: headings straight in the text) at a readable line length */
}
/* Exposé: a data page, so smaller steps; the property description keeps a readable line length */
/* Footer and property cards on the same steps: meta 15 / text 17 / H3 22 (theme: 13.95 / 16.5 / 22.5) */
:is(#footer, #bottom) :is(p, li, a, strong) { font-size: 15px; }
#footer :is(h1, h2, h3, h4, h5, h6) { font-size: 22px; }
#main .real_estate_item_default h3.title { font-size: 17px; }
#main .expose_mod_title h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
#main .expose_mod_similar > h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.15; }
#main .mod_article:has(.mod_realEstateExpose) {
	:is(h2, h2.ce_headline) { font-size: 22px; line-height: 1.3; } /* h2.ce_headline: same weight as the section-title rule above */
	:is(h3, h3.ce_headline) { font-size: 19px; line-height: 1.3; }
	:is(.objektbeschreibung, .ausstattBeschr, .lage, .sonstigeAngaben) p { max-width: 70ch; }
}

/* Cookie banner (privacy manager, module 611): site font, tokens and the site's buttons instead of Arial, italics and grey */
.mod_privacy_optin {
	* { font-family: "Open Sans", sans-serif; }
	.privacy_content { padding: 28px; background: #fff; color: var(--lp-text); }
	h6 { color: var(--lp-text); font-size: 18px; font-weight: 700; }
	.privacy_text :is(p, em) { color: var(--lp-text); font-size: 14px; font-style: normal; line-height: 1.55; }
	.privacy_label { color: var(--lp-text); }
	.privacy_option_info { color: var(--lp-muted); font-size: 13px; }
	.privacy_label .privacy_checkmark { border: 1px solid var(--lp-line); border-radius: 0; background-color: #fff; }
	.privacy_label:hover input ~ .privacy_checkmark { border-color: var(--lp-gold-dark); background-color: #fff; }
	.privacy_label input:checked ~ .privacy_checkmark { border-color: var(--lp-gold-dark); background-color: var(--lp-gold-dark); }
	.privacy_buttons input.submit {
		height: auto; margin-bottom: 10px; padding: 14px 20px; border: 1px solid var(--lp-gold) !important; border-radius: 0;
		background: var(--lp-gold) !important; color: var(--lp-dark) !important; font-size: 16px; font-weight: 700; line-height: 1.4;
		letter-spacing: 0; text-transform: none; opacity: 1; cursor: pointer; transition: background-color .15s;
	}
	.privacy_buttons input.submit:hover { background: var(--lp-gold-hover) !important; }
	.privacy_buttons input.submit.readonly { border-color: var(--lp-line) !important; background: #fff !important; }
	.privacy_buttons input.submit:disabled { color: var(--lp-muted) !important; cursor: not-allowed; }
	:is(a, div).privacy_help_link { color: var(--lp-muted); }
}

/* Header: one header, always at the top, CSS only. The theme rendered a copy (#stickyheader) at the end of the body and
   slid it in by JS; fe_page.html5 no longer outputs it. The real header sticks instead and stays in the flow, so the
   page starts below it from the first paint (no white strip, no jump, nothing to swap). scripts.js measures #header. */
#fix-wrapper { position: sticky; top: 0; }

/* Desktop logo 150 px (theme designer: 268 px). Mobile keeps its own small logo. */
@media (min-width: 768px) {
	#header .logo { width: 150px; } /* id: beats the theme designer's .header.original .logo */
	#header .logo a { height: 70px; background: url("/files/ldi/logo/ld-logo.svg") left center / 100% auto no-repeat; } /* vector logo (was a PNG, blurry on high-density screens) */
	#header.original { height: 71px; overflow: hidden; } /* logo and menu float 81 px tall; the .clear after the header would add the extra 10 px */
}
