/**
 * ImmoTemplates Core - Frontend-Styles fuer Immobilien-Uebersicht und -Exposé.
 * Portiert aus dem Theme "immotemplates-code" (style.css), nur auf den Templates
 * archive-immobilien.php / single-immobilien.php geladen. Bewusst ohne Header-/
 * Footer-/Navigations-Styles, die kommen vom jeweils aktiven Theme.
 */

:root {
	--accent: #4B6355;
	--bg: #F7F4EE;
	--ink: #1F2420;
	--ink-soft: #2B2F2A;
	--muted: #5B6259;
	--line: #E1E1E1; /* seit 0.3.33 neutrales Grau statt Goldton #E4DFD3 */
	--card: #FFFFFF;
	--radius: 2px;
	--gutter: 20px;
	--section-bg: #3B4A3D;
}

@media (min-width: 900px)  {
:root {
		--gutter: 64px;
	}
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	font-size: 15px;
	line-height: 1.6;
}

h1, h2, h3 {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 0;
	font-weight: 500;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	cursor: pointer;
	font-family: inherit;
	/*
	 * iOS/Safari blendet beim Antippen eines Buttons standardmaessig einen
	 * grauen "Tap-Highlight"-Schatten in Button-Form ein, auch wenn der Button
	 * selbst transparent ist - bei den runden Icon-Buttons (Slider-/Lightbox-
	 * Pfeile, Schliessen-Button) sah das wie ein unerwuenschter Kreis-Hintergrund
	 * aus. Hier global fuer alle Buttons deaktiviert.
	 */
	-webkit-tap-highlight-color: transparent;
}

input, textarea, select {
	font-family: inherit;
}

img {
	max-width: 100%;
	display: block;
}

.wrap {
	max-width: var(--immotpl-content-width, 1160px);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
	box-sizing: border-box;
}

/*
 * Ab 900px (Desktop-Breite, selber Breakpoint wie die Header-Zeile mit
 * Logo links / Social-Icons rechts) faellt das innere Gutter-Padding weg,
 * damit Text und Inhalte innerhalb von .wrap/.content-grid/.contact-section
 * buendig mit dem Header abschliessen statt zusaetzlich eingerueckt zu sein.
 * Auf Mobil bleibt das Gutter erhalten, da der Header dort anders (gestapelt)
 * aufgebaut ist und der Inhalt sonst randlos an den Bildschirmrand stossen wuerde.
 */
@media (min-width: 900px)  {
.wrap {
		padding-left: 0;
		padding-right: 0;
	}
}

/*
 * Oben (direkt unterm Header) und unten (direkt überm Footer) Abstand zum
 * restlichen Seiteninhalt, auf Übersicht und Exposé identisch. Umschließt
 * jeweils den kompletten Template-Inhalt zwischen get_header() und
 * get_footer().
 */
.immotpl-core-page-pad {
	padding-top: 50px;
	padding-bottom: 50px;
}

@media (min-width: 900px)  {
.immotpl-core-page-pad {
		padding-bottom: 100px;
	}
}

.card,
.immotpl-card {
	background: var(--card);
	border: 1px solid var(--line);
}

#nav-toggle {
	display: none;
}

.hero-header {
	position: relative;
	padding-top: 24px;
	padding-bottom: 20px;
}

.hero-back {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	color: var(--accent);
	white-space: nowrap;
}

.hero-media {
	display: flex;
	align-items: stretch;
	gap: 20px;
	margin: 0 var(--gutter);
	position: relative;
	height: 300px;
}

@media (max-width: 899px)  {
.hero-media {
		gap: 12px;
	}
}

@media (min-width: 900px)  {
.hero-media {
		height: 440px;
	}
}

.hero-slider {
	position: relative;
	flex: 1 1 68%;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	/* Seit 1.17.1 aus den Farben des Maklers statt festem Grün. */
	background: linear-gradient(135deg, var(--section-bg, #3B4A3D) 0%, var(--accent, #4B6355) 100%);
}

.hero-slider-track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/*
	 * touch-action: pan-x statt des Browser-Standards "auto" - damit uebernimmt
	 * der Slider selbst sauber das horizontale Wischen (inkl. Scroll-Snap), waehrend
	 * ein vertikaler Finger-Zug zuverlaessig an die Seite durchgereicht wird, statt
	 * dass der Browser bei jedem Touch neu raten muss, ob horizontal oder vertikal
	 * gemeint war. Genau dieses Raten/Ueberschneiden hat vorher den "instabilen"/
	 * "verschobenen" Eindruck erzeugt (der Slider ruckte beim eigentlich vertikalen
	 * Scrollen der Seite leicht mit). Wischen zum Bildwechsel bleibt dadurch erhalten,
	 * die Pfeil-Buttons (per JS/scrollLeft) funktionieren unabhaengig davon weiter.
	 */
	touch-action: pan-x;
}

.hero-slider-track::-webkit-scrollbar {
	display: none;
}

.hero-slide {
	flex: 0 0 100%;
	height: 100%;
	scroll-snap-align: start;
	background-size: cover;
	background-position: center;
	cursor: pointer;
}

.hero-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(31, 36, 32, 0.6);
	color: var(--bg);
	cursor: pointer;
	transition: background 0.15s ease;
	padding: 0;
}

.hero-slider-arrow--prev {
	left: 12px;
}

.hero-slider-arrow--next {
	right: 12px;
}

.hero-slider-arrow:hover {
	background: rgba(31, 36, 32, 0.85);
}

/*
 * Hoehere Spezifitaet als das generische Theme-Default
 * "[type=button], [type=submit], button { border: 1px solid rgb(204,51,102); border-radius: 3px; }"
 * und Elementors ".elementor-kit-6 button { border-radius: 10px; }" - sonst
 * gewinnt je nach Ladereihenfolge der generische rote Rahmen/Radius statt
 * unserem eigenen runden, randlosen Pfeil. Dieselbe Theme-Regel setzt ausserdem
 * "display: block" (statt unserem flex), dadurch landete das SVG-Pfeilsymbol
 * als normales Inline-Element auf der Textgrundlinie statt zentriert zu werden -
 * sichtbar an einem leichten Versatz nach oben, obwohl der Kreis selbst schon
 * rund war. display/align-items/justify-content hier deshalb mit abgesichert.
 * Ausserdem setzt Elementors Kit-CSS ".elementor-kit-6 button { background-color:
 * var(--e-global-color-primary); }" mit Spezifitaet (0,1,1) objektiv hoeher als
 * unsere bisherige einfache Basis-Regel - dadurch schimmerte ein helles Tan/Beige
 * statt unseres dunklen, halbtransparenten Kreis-Hintergrunds durch. Hier deshalb
 * mit der korrekten Hintergrundfarbe abgesichert.
 */
.immotpl-core-page-pad .hero-slider-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(31, 36, 32, 0.6);
}

/*
 * Elementors Kit-CSS bringt auch eigene Hover/Focus-Regeln mit
 * (".elementor-kit-6 button:hover/:focus { background-color:
 * var(--e-global-color-secondary); }"), Spezifitaet (0,2,1) - das liegt sogar
 * ueber unserer obigen page-pad-Regel (0,2,0) UND ueber der bisherigen einfachen
 * ".hero-slider-arrow:hover"-Regel (0,2,0). Beim Hovern/Fokussieren blitzte
 * dadurch kurz Elementors Sekundaerfarbe statt unseres dunkleren Hover-Tons auf.
 * Hier deshalb mit noch hoeherer Spezifitaet (0,3,0) explizit abgesichert.
 */
.immotpl-core-page-pad .hero-slider-arrow:hover,
.immotpl-core-page-pad .hero-slider-arrow:focus,
.immotpl-core-page-pad .hero-slider-arrow:active {
	background: rgba(31, 36, 32, 0.85);
}

.hero-slider-counter {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	background: rgba(31, 36, 32, 0.6);
	color: var(--bg);
	font-size: 12px;
	letter-spacing: 0.02em;
}

.hero-thumbs {
	flex: 0 0 30%;
	max-width: 320px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-y: auto;
}

.hero-thumb {
	flex: 0 0 170px;
	width: 100%;
	border: 2px solid transparent;
	padding: 0;
	border-radius: var(--radius);
	background-size: cover;
	background-position: center;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.hero-thumb:hover {
	opacity: 1;
}

.hero-thumb.is-active {
	opacity: 1;
	border-color: #000000;
}

/*
 * Hoehere Spezifitaet als das generische Theme-Default
 * "[type=button], [type=submit], button { border: 1px solid rgb(204,51,102); border-radius: 3px; }"
 * und Elementors ".elementor-kit-6 button { border-radius: 10px; }" - sonst
 * gewinnt je nach Ladereihenfolge der rote Standard-Rahmen bzw. der groessere
 * Radius statt unseres eigenen (transparent, bzw. schwarz bei Auswahl).
 * Zusaetzlich setzt Elementors Kit-CSS ".elementor-kit-6 button { background-color:
 * var(--e-global-color-primary); }" objektiv hoehere Spezifitaet (0,1,1) als unsere
 * bisherige einfache Basis-Regel - hier deshalb "background-color: transparent"
 * mit abgesichert, damit das Vorschaubild nicht von einem Elementor-Farbton
 * (hellbraun/tan) ueberdeckt wird. Das Hintergrundbild selbst (background-image per
 * Inline-Style) ist davon unberuehrt, nur background-color wird neutralisiert.
 */
.immotpl-core-page-pad .hero-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--radius);
	background-color: transparent;
}

.immotpl-core-page-pad .hero-thumb.is-active {
	border-color: #000000;
}

/*
 * Gleiches Prinzip wie oben: Elementors Kit-CSS setzt auch bei :hover/:focus
 * eine eigene Hintergrundfarbe mit hoeherer Spezifitaet (0,2,1) als unsere
 * bisherige page-pad-Regel (0,2,0) - hier mit background-color (nicht background,
 * um das per Inline-Style gesetzte Hintergrundbild nicht zu ueberschreiben)
 * nochmal explizit neutralisiert.
 */
.immotpl-core-page-pad .hero-thumb:hover,
.immotpl-core-page-pad .hero-thumb:focus,
.immotpl-core-page-pad .hero-thumb:active {
	background-color: transparent;
}

@media (max-width: 899px)  {
.hero-thumbs {
		display: none;
	}
.hero-slider {
		flex: 1 1 100%;
	}
}

.hero-photo-note {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 6px 12px;
	background: rgba(247, 244, 238, 0.92);
	border-radius: var(--radius);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
}

.hero-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.hero-tag {
	padding: 5px 12px;
	background: var(--accent);
	color: var(--bg);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--radius);
}

.hero-status {
	padding: 5px 12px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--radius);
}

/*
 * Die drei Status-Varianten (hero-status--available/--reserved/--sold, siehe
 * immotpl_core_status_badge_variant() in inc/templates.php) hatten bisher gar
 * keine eigene Hintergrundfarbe hinterlegt - der Badge blieb deshalb komplett
 * ohne Hintergrund, obwohl die Markup-Klasse dafuer laengst existiert. Jetzt mit
 * den bestehenden Palette-Variablen nachgeruestet, analog zum .hero-tag-Badge.
 */
.hero-status--available {
	background: var(--accent);
	color: var(--bg);
}

.hero-status--reserved {
	background: var(--muted);
	color: var(--bg);
}

.hero-status--sold {
	background: var(--ink);
	color: var(--bg);
}

.hero-location {
	font-size: 16px;
	opacity: 0.88;
	color: var(--muted);
}

.hero-title {
	color: var(--ink);
	font-size: 28px;
	line-height: 1.2;
}

@media (min-width: 900px)  {
.hero-title {
		font-size: 42px;
		line-height: 1.18;
	}
}

.subnav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

body.admin-bar .subnav {
	top: 32px;
}

@media (max-width: 782px)  {
body.admin-bar .subnav {
		top: 46px;
	}
}

.subnav-inner {
	display: flex;
	gap: 18px;
	padding-top: 14px;
	padding-bottom: 14px;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}

@media (min-width: 900px)  {
.subnav-inner {
		gap: 30px;
		font-size: 12px;
		letter-spacing: 0.05em;
	}
}

.content-grid {
	max-width: var(--immotpl-content-width, 1160px);
	margin: 0 auto;
	padding: 40px var(--gutter) 0;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (min-width: 900px)  {
.content-grid {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (min-width: 980px)  {
.content-grid {
		grid-template-columns: 1fr 360px;
		gap: 56px;
		padding-top: 56px;
	}
}

.main-col {
	display: flex;
	flex-direction: column;
	gap: 48px;
	min-width: 0;
}

@media (min-width: 900px)  {
.main-col {
		gap: 64px;
	}
}

.section-title {
	font-size: 21px;
}

@media (min-width: 900px)  {
.section-title {
		font-size: 24px;
	}
}

.section-block {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

@media (min-width: 900px)  {
.section-block {
		gap: 20px;
	}
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

@media (min-width: 640px)  {
.stat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.stat-tile {
	background: var(--card);
	padding: 16px 16px;
}

@media (min-width: 900px)  {
.stat-tile {
		padding: 20px 22px;
	}
}

.stat-label {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 6px;
}

.stat-value {
	font-size: 18px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (min-width: 900px)  {
.stat-value {
		font-size: 19px;
	}
}

.desc-text p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink-soft);
	margin: 0 0 16px;
}

.desc-text p:last-child {
	margin-bottom: 0;
}

.legal-content {
	padding-top: 48px;
	padding-bottom: 64px;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 32px 0 12px;
}

.legal-content h1:first-child,
.legal-content h2:first-child,
.legal-content h3:first-child {
	margin-top: 0;
}

.legal-content p,
.legal-content li {
	font-size: 15px;
	line-height: 1.75;
	color: var(--ink-soft);
}

.legal-content p {
	margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
	margin: 0 0 16px;
	padding-left: 20px;
}

.legal-content a {
	color: var(--accent);
}

.legal-content table {
	border-collapse: collapse;
	margin: 0 0 16px;
	width: 100%;
}

.legal-content table td,
.legal-content table th {
	border: 1px solid var(--line);
	padding: 8px 10px;
	text-align: left;
	font-size: 14px;
}

/*
 * 0.3.27: Button fuer [immotpl_widerrufsbelehrung], wenn eine PDF statt Text
 * hinterlegt ist. Eigene Klasse statt .btn-primary (das ist auf eine feste
 * Elternklasse .immotpl-core-page-pad angewiesen, um Elementors Kit-Linkfarbe
 * zu ueberschreiben - siehe Kommentar dort), da dieser Button auf einer frei
 * gebauten Elementor-Seite ohne diesen Vorfahren steht. Alle Eigenschaften mit
 * !important, aus demselben Grund wie bei den Slider-Punkten in 0.3.25.
 */
.immotpl-legal-pdf-button {
	display: inline-block !important;
	padding: 13px 28px !important;
	background: var(--accent) !important;
	color: #FFFFFF !important;
	border-radius: var(--radius) !important;
	font-size: 16px !important;
	letter-spacing: 0.02em !important;
	text-decoration: none !important;
}

.immotpl-legal-pdf-button:hover {
	color: #FFFFFF !important;
	opacity: 0.9;
}

.ausstattung-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px 32px;
}

@media (min-width: 640px)  {
.ausstattung-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ausstattung-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
}

.energy-scale {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
}

.energy-scale-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.energy-scale-bar {
	display: flex;
	align-items: center;
	height: 26px;
	padding-left: 12px;
	min-width: 44px;
	width: calc(20% + (var(--step, 0) / 8) * (80% - 34px));
	border-radius: var(--radius);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	opacity: 0.62;
	transition: width 0.15s ease, opacity 0.15s ease;
}

.energy-scale-row.is-current .energy-scale-bar {
	opacity: 1;
}

.energy-scale-check {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.data-table {
	display: flex;
	flex-direction: column;
}

.data-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--line);
	font-size: 16px;
}

@media (min-width: 900px)  {
.data-row {
		padding: 13px 22px;
	}
}

.data-row:last-child {
	border-bottom: none;
}

.data-row span:first-child {
	color: var(--muted);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

@media (min-width: 640px)  {
.gallery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: 130px;
	}
.gallery-grid > :first-child {
		grid-column: span 2;
		grid-row: span 2;
	}
}

.gallery-tile {
	border-radius: var(--radius);
	min-height: 130px;
	background-size: cover;
	background-position: center;
	cursor: pointer;
}

.grundriss-box {
	padding: 20px;
	display: flex;
	justify-content: center;
	overflow-x: auto;
}

@media (min-width: 900px)  {
.grundriss-box {
		padding: 32px;
	}
}

.grundriss-box svg {
	max-width: 100%;
	height: auto;
}

.grundriss-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.grundriss-tile {
	overflow: hidden;
	border-radius: var(--radius);
	cursor: pointer;
}

.grundriss-tile img {
	width: 100%;
	height: auto;
	display: block;
}

.lage-map {
	border: 1px solid var(--line);
	border-radius: 0;
	overflow: hidden;
	position: relative;
}

#lage .lage-map {
	margin-top: 10px;
}

.lage-map .immotpl-osm-map {
	display: block;
}

.lage-text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink-soft);
	margin: 14px 0 0;
}

.similar-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 640px)  {
.similar-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.similar-card {
	display: flex;
	flex-direction: column;
}

.similar-photo {
	height: 130px;
	background-size: cover;
	background-position: center;
	background-color: var(--section-bg, #3B4A3D);
}

.similar-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.similar-tag {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent);
}

.similar-title {
	font-size: 16px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.similar-meta {
	font-size: 16px;
	color: var(--muted);
}

.sidebar-card {
	position: static;
	display: flex;
	flex-direction: column;
	padding: 22px;
	gap: 18px;
}

@media (min-width: 980px)  {
.sidebar-card {
		position: sticky;
		top: 64px;
		padding: 26px;
	}
}

@media (min-width: 980px)  {
body.admin-bar .sidebar-card {
		top: 96px;
	}
}

.sidebar-price-label {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 4px;
}

.sidebar-price {
	font-size: 24px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (min-width: 900px)  {
.sidebar-price {
		font-size: 26px;
	}
}

.sidebar-divider {
	height: 1px;
	background: var(--line);
}

.sidebar-agent {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sidebar-agent-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent, #4B6355), var(--section-bg, #3B4A3D));
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}

.sidebar-agent-name {
	font-size: 16px;
	font-weight: 500;
}

.sidebar-agent-role {
	font-size: 12px;
	color: var(--accent);
}

.sidebar-contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 16px;
	color: var(--ink-soft);
}

.btn-primary {
	padding: 13px 0;
	background: var(--accent);
	color: var(--bg);
	border: none;
	border-radius: var(--radius);
	font-size: 16px;
	letter-spacing: 0.02em;
	text-align: center;
}

/*
 * Elementor laedt seine eigenen, global auf der ganzen Kundenseite geltenden
 * Kit-Typo-Regeln (z. B. ".elementor-kit-6 a" fuer die Standard-Linkfarbe,
 * ".elementor-kit-6 h2" fuer Ueberschriften) mit derselben CSS-Spezifitaet wie
 * .btn-primary bzw. .contact-intro h2 - je nach Ladereihenfolge gewinnt dann
 * Elementor und ueberschreibt z. B. die Schriftfarbe von "Jetzt anfragen" (grauer
 * statt heller Text, dadurch auf der Akzentfarbe kaum lesbar) oder macht die
 * Ueberschrift im "Interesse geweckt?"-Kasten schwarz statt weiss. Fix ueber
 * hoehere Spezifitaet (zusaetzlicher .immotpl-core-page-pad-Vorfahre) statt
 * !important, analog zur Pagination-Korrektur in 0.3.7.
 */
.immotpl-core-page-pad .btn-primary,
.immotpl-core-page-pad .btn-primary:hover {
	color: #FFFFFF;
}

.contact-section {
	max-width: var(--immotpl-content-width, 1160px);
	margin: 48px auto 0;
	padding: 0 var(--gutter);
	box-sizing: border-box;
}

@media (min-width: 900px)  {
.contact-section {
		margin-top: 64px;
		padding-left: 0;
		padding-right: 0;
	}
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 780px)  {
.contact-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.contact-intro {
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--section-bg);
	color: var(--bg);
}

@media (min-width: 900px)  {
.contact-intro {
		padding: 44px;
	}
}

.contact-intro h2 {
	font-size: 20px;
	color: var(--bg);
}

@media (min-width: 900px)  {
.contact-intro h2 {
		font-size: 22px;
	}
}

/*
 * Hoehere Spezifitaet als Elementors globale ".elementor-kit-6 h2"/".elementor-kit-6 a"
 * Kit-Regeln, siehe Kommentar bei .immotpl-core-page-pad .btn-primary weiter oben.
 * Ohne das wird die Ueberschrift hier schwarz statt weiss (auf dunklem
 * --section-bg-Hintergrund quasi unsichtbar) und Telefon-/E-Mail-Links grau
 * statt weiss.
 */
.immotpl-core-page-pad .contact-intro h2 {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 500;
	text-transform: none;
	font-size: 20px;
	color: #FFFFFF;
}

@media (min-width: 900px)  {
.immotpl-core-page-pad .contact-intro h2 {
		font-size: 22px;
	}
}

.immotpl-core-page-pad .contact-intro,
.immotpl-core-page-pad .contact-intro p,
.immotpl-core-page-pad .contact-intro-details,
.immotpl-core-page-pad .contact-intro-details a {
	color: #FFFFFF;
}

.contact-intro p {
	font-size: 16px;
	line-height: 1.7;
	opacity: 0.88;
	margin: 0;
}

.contact-intro-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.5;
	opacity: 0.92;
}

.contact-intro-details a {
	color: inherit;
}

.contact-intro-name {
	font-weight: 500;
}

.contact-form {
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 900px)  {
.contact-form {
		padding: 44px;
	}
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-field label {
	font-size: 12px;
	color: var(--muted);
}

.form-field input,
.form-field textarea,
.jet-form-builder__field:not(.hidden-field):not(.checkradio-field) {
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 16px;
	width: 100%;
	box-shadow: none;
	background: var(--card);
	font-family: inherit;
	color: inherit;
}

.form-field textarea,
.jet-form-builder__field.textarea-field {
	resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.jet-form-builder__field:not(.hidden-field):not(.checkradio-field):focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: none;
}

.contact-form button[type="submit"],
.jet-form-builder button[type="submit"],
.jet-form-builder__submit button {
	padding: 13px 28px;
	background: var(--accent);
	color: var(--bg);
	border: none;
	border-radius: var(--radius);
	font-size: 16px;
	align-self: flex-start;
}

.archive-intro {
	padding-top: 32px;
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media (min-width: 900px)  {
.archive-intro {
		padding-top: 48px;
	}
}

.eyebrow {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.archive-intro h1 {
	font-size: 26px;
	line-height: 1.25;
}

@media (min-width: 900px)  {
.archive-intro h1 {
		font-size: 34px;
	}
}

.archive-lead {
	font-size: 16px;
	color: var(--muted);
	max-width: 620px;
	margin: 0;
	line-height: 1.6;
}

.filter-bar {
	position: static;
	margin-top: 24px;
}

/* Seit 1.2.3: Filter läuft nicht mehr beim Scrollen mit (vorher sticky ab 980px). */

.filter-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding-left: 0;
	padding-right: 0;
}

@media (min-width: 640px)  {
.filter-form {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 980px)  {
.filter-form {
		grid-template-columns: 1fr 1fr 1.3fr 1fr 1fr auto;
		align-items: end;
		gap: 16px;
	}
}

.filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.filter-field label {
	font-size: 16px;
	color: var(--muted);
}

.filter-field select,
.filter-field input {
	padding: 10px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 16px;
	background: var(--card);
	color: var(--ink);
	width: 100%;
}

.filter-submit {
	grid-column: 1 / -1;
	padding: 11px 22px;
	background: var(--accent);
	color: var(--bg);
	border: none;
	border-radius: 0;
	font-size: 16px;
}

@media (min-width: 980px)  {
.filter-submit {
		grid-column: auto;
	}
}

/*
 * Hoehere Spezifitaet als das generische Theme-Default
 * "[type=button], [type=submit], button { border: 1px solid rgb(204,51,102); border-radius: 3px; }"
 * - sonst behaelt der Filter-Button trotz border:none/border-radius:0 oben
 * den roten Standard-Rahmen samt Radius. Vorsorglich (0.3.15) auch die
 * Hintergrundfarbe hier mit abgesichert, da Elementors Kit-CSS
 * ".elementor-kit-6 button { background-color: var(--e-global-color-primary); }"
 * mit Spezifitaet (0,1,1) hoeher liegt als unsere bisherige einfache
 * Basis-Regel (0,1,0) und denselben Farbton durchsetzen wuerde.
 */
.immotpl-core-page-pad .filter-submit {
	padding: 11px 22px;
	border: none;
	border-radius: 0;
	background: var(--accent);
}

/*
 * Vorsorglich auch hier (0.3.16): Elementors Kit-CSS setzt bei :hover/:focus
 * eine eigene Hintergrundfarbe mit hoeherer Spezifitaet (0,2,1) als unsere
 * obige page-pad-Regel (0,2,0).
 */
.immotpl-core-page-pad .filter-submit:hover,
.immotpl-core-page-pad .filter-submit:focus,
.immotpl-core-page-pad .filter-submit:active {
	background: var(--accent);
}

.results-header {
	padding-top: 22px;
	padding-left: 0;
	padding-right: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

@media (min-width: 640px)  {
.results-header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.results-count {
	font-size: 16px;
	color: var(--muted);
}

.sort-form {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
}

.sort-form label {
	color: var(--muted);
	white-space: nowrap;
}

.sort-form select {
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 16px;
	background: var(--card);
	color: var(--ink);
}

.sort-submit {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	font-size: 16px;
}

.property-grid {
	padding-top: 20px;
	padding-bottom: 8px;
	padding-left: 0;
	padding-right: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 640px)  {
.property-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px)  {
.property-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px;
	}
}

.property-card {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit;
}

.property-photo {
	height: 160px;
	background-size: cover;
	background-position: center;
	position: relative;
	background-color: var(--section-bg, #3B4A3D);
}

.property-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	background: var(--accent);
	color: var(--bg);
	font-size: 11px;
	border-radius: var(--radius);
}

/*
 * "Miete" hat bewusst keine eigene Hintergrundfarbe mehr - nutzt dieselbe
 * (im Backend unter Design > Akzentfarbe einstellbare) Farbe wie "Kauf".
 */

.property-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.property-title {
	font-size: 16px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 600;
	color: var(--ink) !important;
}

.property-meta {
	font-size: 16px;
	color: var(--muted);
}

.property-meta-icon {
	display: flex;
	align-items: center;
	gap: 6px;
}

.eckdaten-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 26px;
}

.eckdaten-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.eckdaten-icon {
	display: inline-block;
	flex-shrink: 0;
}

.property-price {
	font-size: 16px;
	margin-top: 2px;
}

.no-results {
	grid-column: 1 / -1;
	padding: 40px 0;
	color: var(--muted);
	font-size: 16px;
}

.pagination {
	padding-top: 16px;
	padding-bottom: 56px;
	padding-left: 0;
	padding-right: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/*
 * Höher spezifisch als .pagination allein, weil das aktive Theme ebenfalls
 * eine generische .pagination-Regel mitbringt (justify-content: space-between),
 * die sonst je nach Ladereihenfolge gewinnt und die Seitenzahlen an die
 * äußeren Ränder schiebt statt sie mittig zusammenzuhalten.
 */
.immotpl-core-page-pad .pagination {
	justify-content: center;
}

.page-link {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	font-size: 16px;
	border-radius: var(--radius);
	color: var(--ink);
}

.page-link.is-active {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}

.immotpl-social-icons {
	display: flex;
	align-items: center;
	gap: 14px;
}

.immotpl-social-icon {
	display: inline-flex;
	color: inherit;
}

.immotpl-social-icon:hover {
	opacity: 0.75;
}

.contact-intro-details .immotpl-social-icons {
	margin-top: 10px;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(31, 36, 32, 0.92);
	padding: 40px var(--gutter);
}

.lightbox[aria-hidden="true"] {
	display: none;
}

.lightbox-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: calc(100vh - 140px);
}

.lightbox-image {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
}

.lightbox-caption {
	margin-top: 16px;
	color: var(--bg);
	font-size: 14px;
	text-align: center;
	min-height: 1.2em;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: var(--gutter);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	color: var(--bg);
	cursor: pointer;
}

/*
 * Bewusst ohne Kreis-Hintergrund (vorher ein kaum sichtbarer heller Schimmer,
 * rgba(247,244,238,0.12)) - auf Kundenwunsch schlicht/klassisch gehalten, das
 * Pfeilsymbol steht direkt frei auf dem dunklen Lightbox-Hintergrund, analog zu
 * Elementors eigener nativer Lightbox. Hover-Feedback jetzt ueber Opacity statt
 * Hintergrundfarbe.
 */
.lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--bg);
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.lightbox-arrow--prev {
	left: var(--gutter);
}

.lightbox-arrow--next {
	right: var(--gutter);
}

.lightbox-arrow:hover {
	opacity: 0.65;
}

/*
 * Hoehere Spezifitaet als das generische Theme-Default
 * "[type=button], [type=submit], button { border: 1px solid rgb(204,51,102); border-radius: 3px; }"
 * und Elementors ".elementor-kit-6 button { border-radius: 10px; }" - betrifft
 * sowohl die Lightbox-Pfeile als auch den Schliessen-Button. Dieselbe Theme-Regel
 * setzt ausserdem "display: block" (statt unserem flex), dadurch landeten die
 * SVG-Symbole (Pfeile und X) als normales Inline-Element auf der Textgrundlinie
 * statt zentriert zu werden - sichtbar an einem leichten Versatz nach oben.
 * display/align-items/justify-content hier deshalb mit abgesichert.
 * Neu entdeckt (0.3.15): Elementors eigenes Kit-CSS ".elementor-kit-6 button {
 * background-color: var(--e-global-color-primary); }" hat Spezifitaet (0,1,1) -
 * objektiv hoeher als unsere bisherige einfache Basis-Regel (0,1,0), gewinnt also
 * unabhaengig von der Ladereihenfolge. Dadurch blieb trotz "background: transparent"
 * in der Basis-Regel ein helles Tan/Beige hinter Pfeilen und X sichtbar. Hier mit
 * "background: transparent" nochmal explizit abgesichert, jetzt mit ausreichender
 * Spezifitaet (0,2,0).
 */
.immotpl-core-page-pad .lightbox-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
}

.immotpl-core-page-pad .lightbox-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
}

/*
 * 0.3.16: trotz 0.3.15 war der Elementor-Hintergrund bei Mouse-Hover bzw. nach
 * dem Anklicken (Fokus) immer noch kurz sichtbar. Grund: Elementors Kit-CSS hat
 * zusaetzlich eigene Hover/Focus-Regeln (".elementor-kit-6 button:hover/:focus {
 * background-color: var(--e-global-color-secondary); }") mit Spezifitaet (0,2,1) -
 * das liegt sogar ueber unserer obigen Basis-Regel (0,2,0), die nur den
 * Normalzustand abdeckt. Hier deshalb mit noch hoeherer Spezifitaet (0,3,0)
 * explizit fuer :hover/:focus/:active abgesichert.
 */
.immotpl-core-page-pad .lightbox-arrow:hover,
.immotpl-core-page-pad .lightbox-arrow:focus,
.immotpl-core-page-pad .lightbox-arrow:active,
.immotpl-core-page-pad .lightbox-close:hover,
.immotpl-core-page-pad .lightbox-close:focus,
.immotpl-core-page-pad .lightbox-close:active {
	background: transparent;
}

body.lightbox-open {
	overflow: hidden;
}

/*
 * 0.3.23: [immobilien_slider] - zeigt per Default 3 Objekte gleichzeitig
 * (1 auf Mobil, 2 ab 640px, 3 ab 980px, siehe Breakpoints unten), die
 * Breite/den Abstand pro Slide übernimmt assets/frontend.js zur Laufzeit
 * (getBoundingClientRect), die CSS-Breakpoints hier legen nur fest, WIE
 * VIELE Karten nebeneinander passen.
 */
.immobilien-slider {
	position: relative;
}

.immobilien-slider-viewport {
	overflow: hidden;
}

.immobilien-slider-track {
	display: flex;
	align-items: stretch;
	gap: 22px;
	transition: transform 0.6s ease;
	will-change: transform;
}

.immobilien-slider-slide {
	flex: 0 0 100%;
	max-width: 100%;
}

.immobilien-slider-slide .property-card {
	height: 100%;
}

@media (min-width: 640px)  {
.immobilien-slider-slide {
		flex: 0 0 calc((100% - 22px) / 2);
		max-width: calc((100% - 22px) / 2);
	}
}

@media (min-width: 980px)  {
.immobilien-slider-slide {
		flex: 0 0 calc((100% - 44px) / 3);
		max-width: calc((100% - 44px) / 3);
	}
}

.immobilien-slider-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

.immobilien-slider-dot {
	width: 6px !important;
	height: 6px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: #C7C2B4 !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.immobilien-slider-dot.is-active,
.immobilien-slider-dot:hover {
	background: var(--ink) !important;
}

/*
 * 0.3.23: [immotpl_team] - Team-Übersicht, analog zum früheren "Unser Team"-
 * Bereich im Theme "immotemplates-code" (bdohi.myrdbx.io/ueber-uns/).
 * .card liefert bereits Hintergrund/Rahmen (siehe oben), hier nur noch das
 * kartenspezifische Layout.
 *
 * 0.3.28: Feste Spaltenzahl (1/2/3 je Breakpoint) durch auto-fit ersetzt, da
 * bei Kunden mit z. B. nur zwei statt drei Mitarbeitern in der 3-Spalten-
 * Ansicht eine leere dritte Spalte rechts stehenblieb (unausgewogen,
 * linksbündig wirkend). minmax(min(260px, 100%), 340px) lässt die Browser-
 * Grid-Engine selbst so viele Spalten wie moeglich in dieser Breite bilden
 * (auf schmalen Bildschirmen automatisch nur eine, ohne Overflow), leere
 * Spalten werden von auto-fit kollabiert, justify-content:center zentriert
 * die tatsaechlich belegten Spalten dann in der Zeile - funktioniert damit
 * automatisch korrekt fuer jede Mitarbeiterzahl, nicht nur 2 oder 3.
 */
.immotpl-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 340px));
	justify-content: center;
	gap: 22px;
}

.immotpl-team-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.immotpl-team-photo {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-size: cover;
	background-position: center center;
	background-color: var(--section-bg, #3B4A3D);
}

.immotpl-team-photo img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
}

.immotpl-team-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.immotpl-team-name {
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
}

.immotpl-team-position {
	font-size: 14px;
	color: var(--accent);
	margin-bottom: 8px;
}

.immotpl-team-contact {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--muted);
}

.immotpl-team-contact a {
	color: inherit;
	text-decoration: none;
}

.immotpl-team-contact svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

/* Seit 1.27.1: steht unter der Position, über den Kontaktdaten. */
.immotpl-team-text {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--muted);
	line-height: 1.5;
}

/* =========================================================
 * Seit 0.3.33: Inhaltsboxen im Exposé
 * Jeder Abschnitt der Hauptspalte steht in einer eigenen Box mit
 * Rahmen (wie die Ansprechpartner-Box rechts), ohne Schatten.
 * Rahmenfarbe über --line, einstellbar im Design-Tab.
 * ========================================================= */
.main-col {
	gap: 20px;
}

@media (min-width: 900px)  {
.main-col {
		gap: 24px;
	}
}

.main-col > .section-block {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
}

@media (min-width: 900px)  {
.main-col > .section-block {
		padding: 28px 30px;
	}
}

.main-col > .expose-back {
	margin-top: 0;
	align-self: flex-start;
}

/* Eckdaten-Raster: leere Restfelder weiß statt in Rahmenfarbe. Bis
 * 0.3.32 kamen die Trennlinien vom Hintergrund des Rasters (gap: 1px),
 * der in leeren Restfeldern als Farbfläche sichtbar wurde. Jetzt zeichnet
 * jede Kachel ihre Linie rechts und unten selbst, das Raster oben und
 * links. Der innere Schatten des Rasters schließt rechts und unten auch
 * dort ab, wo keine Kachel steht. */
.stat-grid {
	gap: 0;
	background: var(--card);
	border: 0;
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
	box-shadow: inset -1px -1px 0 var(--line);
}

.stat-tile {
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

/* ---- 0.3.34: Provision ohne inneren Rahmen ---- */
.data-table-plain .data-row {
	padding-left: 0;
	padding-right: 0;
}

/* ---- 0.3.34: Kontaktbereich, Links und Social Icons bleiben beim Hover weiss ---- */
.contact-intro a,
.contact-intro a:hover,
.contact-intro a:focus,
.immotpl-core-page-pad .contact-intro a,
.immotpl-core-page-pad .contact-intro a:hover,
.immotpl-core-page-pad .contact-intro a:focus,
.immotpl-core-page-pad .contact-intro-details a:hover,
.immotpl-core-page-pad .contact-intro-details a:focus {
	color: #FFFFFF;
	opacity: 1;
	text-decoration: none;
}
.contact-intro .immotpl-social-icon:hover,
.contact-intro .immotpl-social-icon:focus {
	color: #FFFFFF;
	opacity: 1;
}
.contact-intro .immotpl-social-icon svg,
.contact-intro .immotpl-social-icon:hover svg {
	color: #FFFFFF;
	fill: currentColor;
}

/* ---- 0.3.34: Weitere Immobilien als Slider (ohne Pfeile/Dots) ---- */
.weitere-slider {
	position: relative;
	margin: 0 -2px;
}
.weitere-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px;
	cursor: grab;
}
.weitere-track::-webkit-scrollbar {
	display: none;
}
.weitere-track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}
.weitere-slide {
	flex: 0 0 82%;
	scroll-snap-align: start;
	min-width: 0;
}
@media (min-width: 640px) {
	.weitere-slide {
		flex-basis: calc((100% - 18px) / 2);
	}
}
@media (min-width: 1100px) {
	.weitere-slide {
		flex-basis: calc((100% - 36px) / 3);
	}
}
.weitere-slide .similar-photo {
	height: 170px;
	overflow: hidden;
}
.weitere-slide .similar-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

/* =========================================================================
 * Kundenstimmen (seit 1.5.0)
 * Nutzt die Design-Variablen; Fallbacks für Themes ohne ImmoTemplates-Optik.
 * ========================================================================= */

.it-rv-wrap,
.it-rv-form-wrap {
	--rv-card: var(--card, #fff);
	--rv-line: var(--line, #e6e1d7);
	--rv-ink: var(--ink, #1f2420);
	--rv-muted: var(--muted, #5b6259);
	--rv-bg: var(--bg, #f7f4ee);
	--rv-r: var(--r-lg, 24px);
	--rv-star: #f0b429;
	color: var(--rv-ink);
}

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

.it-rv-wrap .it-btn,
.it-rv-form-wrap .it-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--r-pill, 999px);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
}

.it-rv-wrap .it-btn--accent,
.it-rv-form-wrap .it-btn--accent {
	background: var(--accent, #4b6355);
	color: #fff;
}

.it-rv-form-wrap .it-btn--dark {
	background: var(--rv-ink);
	color: #fff;
}

/* Sterne (anteilig füllbar) */
.it-rv-stars {
	position: relative;
	display: inline-flex;
	line-height: 0;
	vertical-align: middle;
}

.it-rv-stars svg {
	flex: 0 0 auto;
	margin-right: 2px;
}

.it-rv-stars-bg svg {
	fill: var(--rv-line, #e6e1d7);
}

.it-rv-stars-fg {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
	display: inline-flex;
}

.it-rv-stars-fg svg {
	fill: var(--rv-star, #f0b429);
}

/* Zusammenfassung */
.it-rv-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: clamp(24px, 4vw, 40px);
	background: var(--rv-card);
	border: 1px solid var(--rv-line);
	border-radius: var(--rv-r);
	box-shadow: var(--shadow, none);
}

@media (min-width: 800px) {
	.it-rv-summary {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 48px;
	}
}

.it-rv-score {
	display: flex;
	align-items: center;
	gap: 18px;
}

.it-rv-score-num {
	font-family: var(--font-head, inherit);
	font-size: clamp(56px, 7vw, 80px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
}

.it-rv-score-label {
	margin-top: 6px;
	font-size: 14px;
	color: var(--rv-muted);
}

.it-rv-bars {
	display: grid;
	gap: 6px;
	max-width: 420px;
	width: 100%;
}

.it-rv-bar {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--rv-muted);
}

.it-rv-bar-track {
	height: 8px;
	border-radius: var(--r-pill, 99px);
	background: var(--rv-bg);
	overflow: hidden;
}

.it-rv-bar-track span {
	display: block;
	height: 100%;
	border-radius: var(--r-pill, 99px);
	background: var(--rv-star);
}

.it-rv-bar-n {
	text-align: right;
}

/* Filter */
.it-rv-filter {
	display: flex;
	gap: 8px;
	margin: 20px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.it-rv-filter::-webkit-scrollbar {
	display: none;
}

.it-rv-pill {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0 16px;
	border-radius: var(--r-pill, 999px);
	border: 1px solid var(--rv-line);
	background: var(--rv-card);
	color: var(--rv-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.it-rv-pill.is-current {
	background: var(--rv-ink);
	border-color: var(--rv-ink);
	color: #fff;
}

/* Kacheln als Pinnwand */
.it-rv-grid {
	columns: 1;
	column-gap: var(--gap, 16px);
}

.it-rv-summary + .it-rv-grid {
	margin-top: var(--gap, 16px);
}

@media (min-width: 700px) {
	.it-rv-grid {
		columns: 2;
	}
}

@media (min-width: 1024px) {
	.it-rv-grid {
		columns: 3;
	}
}

.it-rv-card {
	break-inside: avoid;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: var(--gap, 16px);
	padding: 24px 26px;
	background: var(--rv-card);
	border: 1px solid var(--rv-line);
	border-radius: var(--rv-r);
	box-shadow: var(--shadow, none);
}

.it-rv-card[hidden] {
	display: none;
}

.it-rv-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.it-rv-verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: var(--r-pill, 999px);
	background: #e3f2e6;
	color: #1d5e2b;
	font-size: 12px;
	font-weight: 500;
}

.it-rv-text {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--rv-ink);
	font-style: normal;
}

.it-rv-text p {
	margin: 0 0 10px;
}

.it-rv-text p:last-child {
	margin-bottom: 0;
}

.it-rv-objekt {
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: var(--r-pill, 999px);
	background: var(--rv-bg);
	font-size: 12px;
	color: var(--rv-muted);
}

.it-rv-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.it-rv-avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--accent, #4b6355);
	color: #fff;
	font-weight: 600;
}

.it-rv-who {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: var(--rv-muted);
	line-height: 1.4;
}

.it-rv-who strong {
	font-size: 15px;
	color: var(--rv-ink);
	font-weight: 600;
}

.it-rv-source {
	font-size: 12px;
	color: var(--rv-muted);
}

.it-rv-source a {
	color: inherit;
	text-decoration: underline;
}

.it-rv-reply {
	padding: 14px 16px;
	border-radius: var(--r-ui, 16px);
	background: var(--rv-bg);
	font-size: 14px;
	line-height: 1.6;
	color: var(--rv-muted);
}

.it-rv-reply p {
	margin: 0;
}

.it-rv-reply-head {
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rv-ink);
}

.it-rv-hinweis {
	margin-top: 8px;
	font-size: 13px;
	color: var(--rv-muted);
}

.it-rv-hinweis summary {
	cursor: pointer;
	font-weight: 500;
}

.it-rv-hinweis p {
	max-width: 760px;
	margin: 8px 0 0;
	line-height: 1.6;
}

.it-rv-empty {
	padding: 40px;
	text-align: center;
	background: var(--rv-card);
	border: 1px dashed var(--rv-line);
	border-radius: var(--rv-r);
}

/* Formular */
.it-rv-form-wrap {
	scroll-margin-top: 24px;
}

.it-rv-form,
.it-rv-thanks {
	display: grid;
	gap: 18px;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 56px);
	background: var(--rv-card);
	border: 1px solid var(--rv-line);
	border-radius: var(--rv-r);
	box-shadow: var(--shadow, none);
}

.it-rv-form-head h2,
.it-rv-thanks h2 {
	margin: 0 0 8px;
	font-size: clamp(26px, 3.4vw, 36px);
}

.it-rv-form-head p,
.it-rv-thanks p {
	margin: 0;
	color: var(--rv-muted);
}

.it-rv-invite-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: var(--r-ui, 14px);
	background: #e3f2e6;
	color: #1d5e2b !important;
	font-size: 14px;
}

.it-rv-error {
	margin-top: 12px !important;
	padding: 12px 14px;
	border-radius: var(--r-ui, 14px);
	background: #fdecea;
	color: #8a1f11 !important;
	font-size: 14px;
}

.it-rv-field {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.it-rv-field label,
.it-rv-field legend {
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}

.it-rv-field input,
.it-rv-field select,
.it-rv-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--rv-line);
	border-radius: var(--r-ui, 14px);
	background: #fff;
	color: var(--rv-ink);
	font: inherit;
	font-size: 16px;
}

.it-rv-field textarea {
	min-height: 140px;
	resize: vertical;
}

.it-rv-field input:focus,
.it-rv-field select:focus,
.it-rv-field textarea:focus {
	outline: 2px solid var(--accent, #4b6355);
	outline-offset: 1px;
}

.it-rv-hint {
	font-size: 12px;
	color: var(--rv-muted);
}

.it-rv-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

@media (min-width: 640px) {
	.it-rv-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Sterne-Auswahl: Reihenfolge 5 bis 1 im Code, optisch 1 bis 5. */
.it-rv-rating-input {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
}

.it-rv-rating-input input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.it-rv-rating-input label {
	cursor: pointer;
	line-height: 0;
}

.it-rv-rating-input svg {
	fill: var(--rv-line);
	transition: fill 0.12s ease, transform 0.12s ease;
}

.it-rv-rating-input label:hover svg,
.it-rv-rating-input label:hover ~ label svg,
.it-rv-rating-input input:checked ~ label svg {
	fill: var(--rv-star);
}

.it-rv-rating-input label:hover svg {
	transform: scale(1.08);
}

.it-rv-rating-input input:focus-visible + label svg {
	outline: 2px solid var(--accent, #4b6355);
	outline-offset: 2px;
	border-radius: 4px;
}

.it-rv-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.it-rv-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.55;
	color: var(--rv-muted);
}

.it-rv-consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--accent, #4b6355);
}

.it-rv-consent a {
	color: var(--accent, #4b6355);
	text-decoration: underline;
}

.it-rv-form button[type="submit"] {
	justify-self: start;
}

.it-rv-thanks {
	text-align: center;
	justify-items: center;
}

.it-rv-thanks-icon {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e3f2e6;
	color: #1d5e2b;
}

/* Kleines Bewertungs-Abzeichen */
.it-rv-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px 10px 12px;
	border-radius: var(--r-pill, 999px);
	background: var(--rv-card);
	border: 1px solid var(--rv-line);
	box-shadow: var(--shadow, none);
	color: var(--rv-ink);
	text-decoration: none;
}

.it-rv-badge-num {
	font-family: var(--font-head, inherit);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.it-rv-badge-label {
	font-size: 13px;
	color: var(--rv-muted);
}

/* =========================================================================
 * Partner (seit 1.6.0)
 * ========================================================================= */

.it-pt-wrap {
	--pt-card: var(--card, #fff);
	--pt-line: var(--line, #e6e1d7);
	--pt-ink: var(--ink, #1f2420);
	--pt-muted: var(--muted, #5b6259);
	--pt-bg: var(--bg, #f7f4ee);
	--pt-r: var(--r-lg, 24px);
	display: grid;
	gap: 28px;
	color: var(--pt-ink);
}

.it-pt-group-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pt-muted);
}

.it-pt-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap, 16px);
}

@media (min-width: 700px) {
	.it-pt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.it-pt-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.it-pt-card {
	display: flex;
	flex-direction: column;
	background: var(--pt-card);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-r);
	box-shadow: var(--shadow, none);
	overflow: hidden;
}

.it-pt-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 132px;
	padding: 24px 32px;
	background: var(--pt-card);
	border-bottom: 1px solid var(--pt-line);
}

.it-pt-logo img {
	max-width: 100%;
	max-height: 84px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.it-pt-logo.is-empty {
	background: var(--pt-bg);
}

.it-pt-logo.is-empty span {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--accent, #4b6355);
	color: #fff;
	font-size: 26px;
	font-weight: 600;
}

.it-pt-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 22px 24px 24px;
}

.it-pt-cat {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent, #4b6355);
}

.it-pt-name {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
}

.it-pt-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--pt-muted);
}

.it-pt-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
}

.it-pt-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 14px;
	border-radius: var(--r-pill, 999px);
	border: 1px solid var(--pt-line);
	font-size: 14px;
	font-weight: 500;
	color: var(--pt-ink);
	text-decoration: none;
}

.it-pt-links a:hover {
	border-color: var(--pt-ink);
}

.it-pt-disclosure {
	margin-top: 6px;
	font-size: 12px;
	color: var(--pt-muted);
}

.it-pt-note {
	margin: 0;
	font-size: 13px;
	color: var(--pt-muted);
}

/* =========================================================================
 * Siegel (seit 1.6.0)
 * ========================================================================= */

.it-siegel-title {
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted, #5b6259);
}

.it-siegel-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.it-siegel-item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 88px;
	min-width: 88px;
	padding: 12px 18px;
	border-radius: var(--r-ui, 18px);
	background: #fff;
	border: 1px solid var(--line, #e6e1d7);
}

.it-siegel-item a {
	display: flex;
	align-items: center;
	height: 100%;
}

.it-siegel-img {
	max-height: 64px;
	max-width: 140px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Einzelner Partner (seit 1.6.2): quer in voller Breite statt schmaler Kachel. */
@media (min-width: 700px) {
	.it-pt-grid.is-single {
		grid-template-columns: minmax(0, 1fr);
	}

	.it-pt-grid.is-single .it-pt-card {
		flex-direction: row;
	}

	.it-pt-grid.is-single .it-pt-logo {
		flex: 0 0 clamp(200px, 28%, 320px);
		height: auto;
		min-height: 180px;
		border-bottom: 0;
		border-right: 1px solid var(--pt-line);
	}

	.it-pt-grid.is-single .it-pt-body {
		justify-content: center;
		padding: 28px 32px;
	}

	.it-pt-grid.is-single .it-pt-name {
		font-size: 24px;
	}

	.it-pt-grid.is-single .it-pt-text {
		max-width: 640px;
		font-size: 16px;
	}

	.it-pt-grid.is-single .it-pt-links {
		margin-top: 8px;
	}
}

/* =========================================================================
 * ImmoTemplates-Formulare (seit 1.7.0)
 * ========================================================================= */

.it-form-wrap {
	--fm-line: var(--line, #e6e1d7);
	--fm-ink: var(--ink, #1f2420);
	--fm-muted: var(--muted, #5b6259);
	--fm-err: #b3261e;
	color: var(--fm-ink);
	scroll-margin-top: 24px;
}

.it-form {
	display: grid;
	gap: 18px;
}

.it-form[hidden],
.it-form-success[hidden],
.it-form-error[hidden],
.it-form-msg[hidden] {
	display: none !important;
}

.it-form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

@media (min-width: 640px) {
	.it-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.it-form-field,
	.it-form-consent {
		grid-column: 1 / -1;
	}
	.it-form-field.is-half {
		grid-column: auto;
	}
}

.it-form-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.it-form-field label {
	font-size: 14px;
	font-weight: 600;
}

.it-form-req {
	color: var(--accent, #4b6355);
}

.it-form-field input,
.it-form-field textarea {
	width: 100%;
	min-height: 50px;
	padding: 13px 15px;
	border: 1px solid var(--fm-line);
	border-radius: var(--r-ui, 14px);
	background: #fff;
	color: var(--fm-ink);
	font: inherit;
	font-size: 16px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.it-form-field textarea {
	min-height: 130px;
	resize: vertical;
}

.it-form-field input:focus,
.it-form-field textarea:focus {
	outline: none;
	border-color: var(--accent, #4b6355);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #4b6355) 18%, transparent);
}

.it-form-field.has-error input,
.it-form-field.has-error textarea {
	border-color: var(--fm-err);
}

.it-form-msg {
	font-size: 13px;
	color: var(--fm-err);
}

.it-form-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.55;
	color: var(--fm-muted);
	cursor: pointer;
}

.it-form-consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--accent, #4b6355);
}

.it-form-consent a {
	color: var(--accent, #4b6355);
	text-decoration: underline;
}

.it-form-consent.has-error span {
	color: var(--fm-err);
}

.it-form-error {
	margin: 0;
	padding: 12px 14px;
	border-radius: var(--r-ui, 14px);
	background: #fdecea;
	color: #8a1f11;
	font-size: 14px;
}

.it-form-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.it-form-note {
	font-size: 12px;
	color: var(--fm-muted);
}

.it-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--r-pill, 999px);
	background: var(--accent, #4b6355);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.it-form-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.it-form-submit.is-loading::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: it-form-spin 0.8s linear infinite;
}

@keyframes it-form-spin {
	to {
		transform: rotate(360deg);
	}
}

.it-form-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.it-form-success {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 32px 20px;
	text-align: center;
}

.it-form-success p {
	margin: 0;
	max-width: 440px;
	font-size: 17px;
	line-height: 1.55;
}

.it-form-success-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e3f2e6;
	color: #1d5e2b;
}

/* Danke-Seite (seit 1.7.1) */
.it-danke {
	display: grid;
	gap: 24px;
}

.it-danke-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap, 16px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 800px) {
	.it-danke-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.it-danke-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 26px 26px 28px;
	background: var(--card, #fff);
	border: 1px solid var(--line, #e6e1d7);
	border-radius: var(--r-lg, 24px);
	box-shadow: var(--shadow, none);
	color: var(--ink, #1f2420);
}

.it-danke-step strong {
	font-size: 18px;
}

.it-danke-step span:last-child {
	color: var(--muted, #5b6259);
	line-height: 1.6;
}

.it-danke-num {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
	border-radius: 50%;
	background: var(--accent, #4b6355);
	color: #fff;
	font-weight: 600;
}

.it-danke-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.it-danke-phone {
	margin: 0;
	color: var(--muted, #5b6259);
}

.it-danke-phone a {
	color: var(--ink, #1f2420);
	font-weight: 600;
}

.it-danke .it-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--r-pill, 999px);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.it-danke .it-btn--accent {
	background: var(--accent, #4b6355);
	color: #fff;
}

.it-danke .it-btn--ghost {
	background: var(--card, #fff);
	border: 1px solid var(--line, #e6e1d7);
	color: var(--ink, #1f2420);
}

/* =========================================================================
 * Spamschutz "Ich bin kein Roboter" (seit 1.8.0)
 * ========================================================================= */

.it-spam-check {
	display: grid;
	gap: 6px;
}

.it-spam-check altcha-widget {
	--altcha-max-width: 100%;
	--altcha-border-radius: var(--r-ui, 14px);
	--altcha-border-width: 1px;
	--altcha-border-color: var(--line, #e6e1d7);
	--altcha-color-base: #fff;
	--altcha-color-base-content: var(--ink, #1f2420);
	--altcha-color-primary: var(--accent, #4b6355);
	--altcha-color-primary-content: #fff;
	--altcha-checkbox-border-radius: var(--r-ui, 6px);
	--altcha-shadow: none;
	display: block;
	max-width: 360px;
}

.it-spam-check.has-error altcha-widget {
	--altcha-border-color: #b3261e;
}

.it-spam-check .it-form-msg {
	font-size: 13px;
	color: #b3261e;
}

/* =========================================================================
 * Immobilienbewertung (seit 1.9.0)
 * ========================================================================= */

.it-bw,
.it-bw-card,
.it-bw-embed {
	--bw-accent: var(--accent, #4b6355);
	--bw-line: var(--line, #e6e1d7);
	--bw-muted: var(--muted, #5b6259);
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

.it-bw,
.it-bw-card {
	box-sizing: border-box;
	padding: clamp(22px, 4vw, 44px);
	border: 1px solid var(--bw-line);
	border-radius: var(--r-ui, 28px);
	background: #fff;
	box-shadow: var(--shadow-card, 0 24px 60px -32px rgba(20, 24, 20, 0.28));
}

.it-bw .it-form {
	gap: 22px;
}

.it-bw-step[hidden],
.it-bw-fields [hidden],
.it-bw-back[hidden],
.it-bw-next[hidden] {
	display: none !important;
}

.it-bw .it-form:not(.is-js) .it-bw-head,
.it-bw .it-form:not(.is-js) .it-bw-nav,
.it-bw .it-form.is-js:not(.is-last) .it-form-foot,
.it-bw .it-form.is-js:not(.is-last) .it-spam-check {
	display: none;
}

/* Bis das Script läuft, nur den ersten Schritt zeigen. */
.it-bw .it-form.is-js .it-bw-step:not(.is-active):not(:first-of-type) {
	display: none;
}

.it-bw-head {
	display: grid;
	gap: 10px;
}

.it-bw-progress {
	height: 6px;
	border-radius: var(--r-pill, 99px);
	background: color-mix(in srgb, var(--bw-accent) 12%, #f1efea);
	overflow: hidden;
}

.it-bw-progress span {
	display: block;
	width: 10%;
	height: 100%;
	border-radius: inherit;
	background: var(--bw-accent);
	transition: width 0.35s ease;
}

.it-bw-count {
	margin: 0;
	font-size: 13px;
	color: var(--bw-muted);
}

.it-bw-step {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	animation: it-bw-in 0.3s ease;
}

@keyframes it-bw-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.it-bw-step {
		animation: none;
	}
	.it-bw-progress span {
		transition: none;
	}
}

.it-bw-title {
	display: block;
	width: 100%;
	margin: 0 0 6px;
	padding: 0;
	font-size: clamp(21px, 2.6vw, 27px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	outline: none;
}

.it-bw-hint {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--bw-muted);
}

.it-bw-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin-top: 18px;
}

@media (min-width: 640px) {
	.it-bw-fields {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.it-bw-group,
	.it-bw-input.is-text {
		grid-column: 1 / -1;
	}
	.it-bw-input.is-third {
		grid-column: span 1;
	}
	.it-bw-input.is-twothird {
		grid-column: span 2;
	}
}

.it-bw-label {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
}

.it-bw-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.it-bw-tiles.is-small,
.it-bw-tiles.is-multi {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
}

.it-bw-tile {
	position: relative;
	display: block;
	cursor: pointer;
}

.it-bw-tile input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.it-bw-tile-in {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 120px;
	height: 100%;
	box-sizing: border-box;
	padding: 20px 14px;
	border: 1.5px solid var(--bw-line);
	border-radius: var(--r-ui, 18px);
	background: #fff;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.it-bw-tiles:not(.has-icons) .it-bw-tile-in {
	flex-direction: row;
	justify-content: flex-start;
	min-height: 54px;
	padding: 14px 44px 14px 16px;
	border-radius: var(--r-ui, 14px);
	text-align: left;
}

.it-bw-tile:hover .it-bw-tile-in {
	border-color: color-mix(in srgb, var(--bw-accent) 45%, var(--bw-line));
	transform: translateY(-1px);
}

.it-bw-tile input:focus-visible + .it-bw-tile-in {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bw-accent) 30%, transparent);
}

.it-bw-tile input:checked + .it-bw-tile-in {
	border-color: var(--bw-accent);
	background: color-mix(in srgb, var(--bw-accent) 7%, #fff);
}

.it-bw-tile-icon {
	display: flex;
	color: var(--bw-accent);
}

.it-bw-tile-icon svg {
	width: 46px;
	height: 46px;
}

.it-bw-tile-text {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.it-bw-tile-check {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bw-accent);
	color: #fff;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.it-bw-tiles:not(.has-icons) .it-bw-tile-check {
	top: 50%;
	right: 14px;
	margin-top: -11px;
}

.it-bw-tile input:checked + .it-bw-tile-in .it-bw-tile-check {
	opacity: 1;
	transform: none;
}

.it-bw-group.has-error .it-bw-tile-in {
	border-color: #e3a29c;
}

.it-bw-group .it-form-msg {
	display: block;
	margin-top: 8px;
}

.it-bw-unit-wrap {
	position: relative;
	display: block;
}

.it-bw-unit {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	font-size: 15px;
	color: var(--bw-muted);
	pointer-events: none;
}

.it-bw-input input[type="number"] {
	padding-right: 48px;
	-moz-appearance: textfield;
}

.it-bw-input input[type="number"]::-webkit-outer-spin-button,
.it-bw-input input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.it-bw-nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.it-bw-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 4px;
	border: 0;
	background: none;
	color: var(--bw-muted);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.it-bw-back:hover,
.it-bw-back:focus-visible {
	color: var(--fm-ink, #1f2420);
}

.it-bw-nav .it-bw-next {
	margin-left: auto;
	min-width: 140px;
}

.it-bw .it-form-foot .it-form-submit {
	min-width: 240px;
}

.it-bw [data-step="kontakt"] .it-form-grid {
	margin-top: 18px;
}

/* Externe Tools */
.it-bw-embed {
	max-width: 980px;
}

.it-bw-frame {
	display: block;
	width: 100%;
	border: 0;
	border-radius: var(--r-ui, 20px);
	background: #fff;
}

.it-bw-card {
	display: grid;
	justify-items: center;
	gap: 14px;
	text-align: center;
}

.it-bw-card h3 {
	margin: 0;
	font-size: clamp(21px, 2.4vw, 26px);
	font-weight: 600;
}

.it-bw-card p {
	margin: 0;
	max-width: 520px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--bw-muted);
}

.it-bw-card p a {
	color: var(--bw-accent);
	text-decoration: underline;
}

.it-bw-gate-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--bw-accent) 10%, #fff);
	color: var(--bw-accent);
}

.it-bw-card .it-form-submit {
	margin-top: 6px;
	text-decoration: none;
}

.it-bw-admin-note {
	max-width: 780px;
	margin: 0 auto 16px;
	padding: 12px 16px;
	border-radius: var(--r-ui, 14px);
	background: #fff8e1;
	color: #6b4e00;
	font-size: 14px;
}

@media (min-width: 640px) {
	.it-bw-fields .it-bw-input.is-number {
		grid-column: span 1;
	}
	.it-bw-tiles.is-small {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	}
}

@media (max-width: 639px) {
	.it-bw-tiles.has-icons.is-n3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}
	.it-bw-tiles.has-icons.is-n4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.it-bw-tiles.has-icons .it-bw-tile-in {
		min-height: 104px;
		padding: 16px 8px;
		gap: 8px;
	}
	.it-bw-tiles.has-icons .it-bw-tile-icon svg {
		width: 38px;
		height: 38px;
	}
	.it-bw-tiles.has-icons .it-bw-tile-text {
		font-size: 14px;
	}
}

/* Seit 1.9.1: Links in Einwilligungen klar als Link erkennbar. */
.it-form-consent a,
.it-rv-consent a,
.it-bw-card p a {
	color: var(--accent, #4b6355);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Seit 1.9.1: lange Wörter (z. B. "Renovierungsbedürftig") nicht über die Kachel hinaus. */
.it-bw-tile-text {
	min-width: 0;
	overflow-wrap: break-word;
	hyphens: auto;
}

@media (min-width: 640px) {
	.it-bw-tiles.is-small {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

@media (max-width: 639px) {
	.it-bw-tiles.is-small {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
	.it-bw-tiles.is-small .it-bw-tile-in {
		min-height: 58px;
		padding: 12px 34px 12px 12px;
	}
	.it-bw-tiles.is-small .it-bw-tile-text {
		font-size: 14px;
	}
	.it-bw-tiles.is-small .it-bw-tile-check {
		right: 10px;
	}
}

/* -------------------------------------------------------------------------
 * Seit 1.10.0: Suchanfrage (nutzt die Bewertungs-Stile .it-bw*)
 * ---------------------------------------------------------------------- */

/* Icon-Kacheln mit Mehrfachauswahl so breit wie bei Einfachauswahl. */
.it-bw-tiles.has-icons.is-multi {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

@media (min-width: 640px) {
	.it-bw-tiles.has-icons.is-n4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.it-bw-fields.is-cols2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Von/bis nebeneinander, auch auf dem Handy. */
@media (max-width: 639px) {
	.it-bw-fields.is-cols2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}
	.it-bw-fields.is-cols2 .it-bw-input.is-number label {
		font-size: 14px;
	}
	.it-bw-tiles.has-icons.is-multi.is-n4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

.it-bw-field-hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted, #6b7280);
}

.it-bw-fields .it-bw-tile[hidden] {
	display: none !important;
}
.it-bw-fields.is-cols2 { align-items: start; }

/* Teamfoto auf der Seite "Über uns" (site/teamfoto.php): Text links, Foto
   rechts. Rundung und Abstände kommen aus dem Design. */
.it-teamfoto {
	display: grid;
	gap: var(--gap, 16px);
	align-items: stretch;
}

.it-teamfoto-text > * {
	width: auto;
	max-width: none;
	height: 100%;
	margin: 0;
	box-sizing: border-box;
}

.it-teamfoto-bild {
	margin: 0;
	min-height: 260px;
	overflow: hidden;
	border-radius: var(--r-lg, 0);
}

.it-teamfoto-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.it-teamfoto--solo .it-teamfoto-bild {
	max-height: 560px;
}

@media (min-width: 900px) {
	.it-teamfoto:not(.it-teamfoto--solo) {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}
}

/* Hero im Editor (seit 1.17.4): der Hinweis oben rechts ist ein Knopf, der
   die Mediathek öffnet. Das gewählte Bild wird das Titelbild der Seite. */
.immotpl-hero-bildknopf {
	border: 0;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.4;
	z-index: 3;
}
.immotpl-hero-bildknopf:hover,
.immotpl-hero-bildknopf:focus-visible {
	background: #fff;
	color: #141414;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Im Editor (seit 1.17.5): mehrstufige Formulare zeigen wie auf der Website
   nur den ersten Schritt. Ohne das standen alle Schritte untereinander. */
.editor-styles-wrapper .it-bw .it-form .it-bw-step:not(:first-of-type),
.editor-styles-wrapper .it-bw .it-form .it-form-foot,
.editor-styles-wrapper .it-bw .it-form .it-spam-check {
	display: none;
}
.editor-styles-wrapper .it-bw .it-form::after {
	content: "Vorschau: erster Schritt. Auf der Website klickt sich der Besucher Schritt für Schritt durch das Formular.";
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--bg, #f4f4f2);
	color: var(--muted, #666);
	font-size: 13px;
	line-height: 1.5;
}

/* Abstand oben je Baustein (seit 1.18.0, siehe blocks/abstand.php).
   "Standard" setzt keine Klasse. Abschnitte (.home-section) haben ihren
   Abstand als Innenabstand, alle anderen als Außenabstand. */
.it-abstand-keiner {
	margin-top: 0 !important;
}
.it-abstand-keiner.home-section,
.it-abstand-keiner > .home-section:first-child {
	padding-top: 0 !important;
}
.it-abstand-klein.home-section,
.it-abstand-klein > .home-section:first-child {
	margin-top: 0 !important;
	padding-top: calc(var(--abschnitt-oben, 88px) * 0.4) !important;
}
.it-abstand-klein:not(.home-section) {
	margin-top: calc(var(--abschnitt-oben, 88px) * 0.4) !important;
}
/* Im Editor liegt die Klasse am Rahmen des Bausteins, der Abschnitt steckt
   eine oder zwei Ebenen tiefer. */
.editor-styles-wrapper .is-root-container > :is(.it-abstand-keiner, .it-abstand-klein),
.editor-styles-wrapper .is-root-container > :is(.it-abstand-keiner, .it-abstand-klein) > :first-child,
.editor-styles-wrapper .is-root-container > :is(.it-abstand-keiner, .it-abstand-klein) > :first-child > :first-child {
	margin-top: 0 !important;
}
.editor-styles-wrapper .is-root-container > .it-abstand-keiner > .home-section,
.editor-styles-wrapper .is-root-container > .it-abstand-keiner > * > .home-section {
	padding-top: 0 !important;
}
.editor-styles-wrapper .is-root-container > .it-abstand-klein > .home-section,
.editor-styles-wrapper .is-root-container > .it-abstand-klein > * > .home-section {
	padding-top: calc(var(--abschnitt-oben, 88px) * 0.4) !important;
}
.editor-styles-wrapper .is-root-container > .it-abstand-klein:not(:has(.home-section)) {
	margin-top: calc(var(--abschnitt-oben, 88px) * 0.4) !important;
}

/* Im Editor (seit 1.18.0): Links, Buttons und Formularfelder in der Vorschau
   unserer Bausteine sind nicht anklickbar. Ein Klick wählt den Baustein aus,
   statt von der Seite wegzuführen oder ein Formular abzusenden. Texte, die
   sich direkt in der Vorschau bearbeiten lassen, bleiben bedienbar. */
.editor-styles-wrapper [data-type^="immotpl/"] a:not([contenteditable="true"]):not([contenteditable="true"] a),
.editor-styles-wrapper [data-type^="immotpl/"] form :is(button, input, select, textarea, label) {
	pointer-events: none;
}

/* Vertrag widerrufen (seit 1.18.0, inc/widerruf.php): Hinweis unter dem
   Formular und der Abschnitt im Footer. Seit 1.18.1 dezenter: feine Linie
   als Rahmen, der Link ohne Rahmen mit einem runden Pfeil. */
.it-widerruf-ssl {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--muted, #6b7068);
}
.it-widerruf-hinweis {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	box-sizing: border-box;
	width: calc(100% - 2 * var(--gutter, 24px));
	max-width: var(--wrap, 1200px);
	margin: 32px auto 28px;
	padding: 16px 22px;
	border: 1px solid rgba(128, 128, 128, 0.35);
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: var(--r-md, 12px);
	font-size: 14px;
	line-height: 1.4;
}
.it-widerruf-hinweis-text {
	opacity: 0.75;
}
.it-widerruf-hinweis-knopf,
.site-footer .it-widerruf-hinweis-knopf {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.it-widerruf-pfeil {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(128, 128, 128, 0.22);
	background: color-mix(in srgb, currentColor 14%, transparent);
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.it-widerruf-hinweis-knopf:hover .it-widerruf-pfeil,
.it-widerruf-hinweis-knopf:focus-visible .it-widerruf-pfeil {
	transform: translateX(4px);
	background: rgba(128, 128, 128, 0.4);
	background: color-mix(in srgb, currentColor 26%, transparent);
}

/* Seit 1.20.0: Hinweis über dem Button (Vertrag widerrufen) */
.it-form-hinweis {
	margin: 4px 0 0;
	font-size: 0.9rem;
	line-height: 1.55;
	opacity: 0.8;
}
.it-form-hinweis a {
	color: inherit;
	text-decoration: underline;
}

/* Seit 1.22.0: Klick-Hinweise für externe Inhalte (Karte, Rundgang, Videos).
 * Vorher als Inline-CSS in inc/expose-features.php. */
.it-extern {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, currentColor 5%, transparent);
	border-radius: inherit;
	overflow: hidden;
}
.it-extern.ist-geladen { display: block; background: none; }
.it-extern-inhalt {
	max-width: 460px;
	padding: 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.it-extern-inhalt p { margin: 0; font-size: 14px; line-height: 1.55; opacity: 0.8; }
.it-extern-inhalt a { color: inherit; text-decoration: underline; }
.vr-embed.it-extern { min-height: var(--vr-min, 420px); }
.it-einbettung.it-extern { min-height: 320px; border-radius: var(--radius, 12px); margin-block: 1.2em; }
.it-einbettung.ist-geladen iframe { max-width: 100%; }
.it-extern-immer {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13.5px;
	color: inherit;
	opacity: 0.75;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.it-extern-immer:hover { opacity: 1; }

/* Seit 1.31.0: Team-Baustein mit genau einer Person, Karte und Überschrift mittig. */
.wp-block-immotpl-team-grid.team-einzeln > h2 { text-align: center; max-width: none; margin-left: auto; margin-right: auto; }
.wp-block-immotpl-team-grid.team-einzeln .team-grid { display: flex; justify-content: center; }
.wp-block-immotpl-team-grid.team-einzeln .team-grid > * { width: 100%; max-width: 440px; }

/* Seit 1.33.0: Logo bleibt auf jedem Hintergrund lesbar (inc/logo.php). */
/* Helles Logo auf hellem Kopfbereich: weiche dunkle Fläche knapp dahinter. */
body.it-logo-hell .site-logo,
body.it-logo-hell .mh-logo,
body.it-logo-hell .sh-logo {
  position: relative;
  isolation: isolate;
}
/* Bento schneidet lange Firmennamen im Kopf ab. Bei einem Logo-Bild würde das die weiche Kante kappen. */
body.it-logo-hell .site-logo {
  overflow: visible;
}
body.it-logo-hell .site-logo::before,
body.it-logo-hell .mh-logo::before,
body.it-logo-hell .sh-logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px -6px;
  border-radius: 14px;
  background: rgba(22, 26, 24, 0.62);
  filter: blur(6px);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
/* Studio: Über dem Foto ist ein helles Logo ohnehin lesbar. */
.js body.it-logo-hell:has(.site-main > .it-hero-grid:first-child) .sh:not(.is-solid):not(.is-open) .sh-logo::before {
  opacity: 0;
}
/* Logo mit eigenem Hintergrund: keine Fläche, nur leicht gerundete Ecken. */
body.it-logo-voll .sh-logo--flaeche::before {
  display: none;
}
body.it-logo-voll .site-logo img,
body.it-logo-voll .mh-logo img,
body.it-logo-voll .sh-logo img {
  border-radius: 4px;
}

/* Seit 1.34.1: Die Karte (Leaflet) bringt intern hohe Ebenen mit (bis 1000)
   und schob sich damit über Kopfbereich und Abschnitts-Navigation. Eine
   eigene Ebene hält alles innerhalb der Karte. */
.immotpl-osm-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* Seit 1.34.1: Die Filterleiste der Immobilien klebte direkt am Bild im
   Kopfbereich. Kleiner Abstand, in allen Designs. */
.it-hero-grid + .filter-bar,
.wp-block-immotpl-hero + .filter-bar {
  margin-top: clamp(20px, 2.6vw, 36px);
}

/* Seit 1.35.0: Schnellkontakt am rechten Seitenrand (inc/schnellkontakt.php). */
.it-schnell {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-50%);
}
.it-schnell a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 74px;
  padding: 14px 6px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink, #1f2422);
  font-family: var(--font-text, inherit);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(20, 24, 22, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
}
.it-schnell a:first-child { border-top-left-radius: 10px; }
.it-schnell a:last-child { border-bottom-left-radius: 10px; }
.it-schnell a:hover,
.it-schnell a:focus-visible {
  background: var(--accent, #1f2422);
  color: #fff;
}
.it-schnell svg { display: block; }
/* Schmale Bildschirme und Handy: nur die Symbole. */
@media (max-width: 1279px) {
  .it-schnell a { width: 46px; padding: 11px 0; }
  .it-schnell span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media print {
  .it-schnell { display: none; }
}
/* Modern: Die eigenen Reiter am Rand weichen dem Schnellkontakt. */
body.it-schnell-an .m-tabs { display: none; }

/* Seit 1.35.1: Die Bildergalerie liegt über allem. Vorher blieben das feste
   Menü unten (Bento), die Abschnitts-Navigation und der Schnellkontakt
   darüber sichtbar. Solange sie offen ist, sind diese Elemente ausgeblendet. */
.lightbox {
  z-index: 100000;
}
body.lightbox-open .it-dock,
body.lightbox-open .bx-tabs,
body.lightbox-open .it-schnell,
body.lightbox-open .m-tabs {
  visibility: hidden;
}
