/* TEYA Immobilien – Website (Portal-Stil: Suche, Karte, Detailseite) */

.ti {
	--p: var(--ti-primary, #0f2747);
	--a: var(--ti-accent, #1f6feb);
	--line: #e3e8ef;
	--line2: #cfd6e1;
	--soft: #f3f5f9;
	--muted: #5d6b82;
	--ink: #1b2331;
	--fav: #e0245e;
	--wa: #13824a;
	--radius: 14px;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.55;
}
.ti *, .ti *::before, .ti *::after { box-sizing: border-box; }
.ti img { max-width: 100%; height: auto; }
.ti svg { flex: 0 0 auto; }
.ti a { color: inherit; }
.ti .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Theme-Stile für Buttons neutralisieren */
/* „html body“ erhöht die Gewichtung, damit Elementor-Website-Einstellungen (Buttons) nicht durchschlagen */
html body .ti button {
	font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; border-radius: 0;
	text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; width: auto; line-height: inherit;
	text-decoration: none; cursor: pointer;
}
html body .ti, html body .ti-lb, html body .ti-mbar { text-transform: none; }
.ti button:focus-visible, .ti summary:focus-visible, .ti a:focus-visible { outline: 3px solid color-mix(in srgb, var(--a) 45%, #fff); outline-offset: 2px; }

.ti .ti-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 20px; border: 1px solid transparent; border-radius: 12px;
	font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.ti .ti-btn-primary, .ti .ti-btn-primary:visited { background: var(--a); color: #fff; }
.ti .ti-btn-primary:hover, .ti .ti-btn-primary:focus { background: color-mix(in srgb, var(--a) 86%, #000); color: #fff; border-color: transparent; }
.ti .ti-btn-ghost, .ti .ti-btn-ghost:visited { background: #fff; color: var(--p); border-color: var(--line2); }
.ti .ti-btn-ghost:hover, .ti .ti-btn-ghost:focus { background: var(--soft); color: var(--p); border-color: #b9c3d2; }
.ti .ti-btn-wa, .ti .ti-btn-wa:visited { background: var(--wa); color: #fff; }
.ti .ti-btn-wa:hover, .ti .ti-btn-wa:focus { background: #0e6a3c; color: #fff; }
.ti .ti-link { color: var(--a); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
/* Hover/Fokus fest setzen – sonst färben manche Themes (z. B. Hello Elementor) alle Buttons um */
.ti .ti-link:hover, .ti .ti-link:focus, .ti .ti-more:hover, .ti .ti-more:focus { background: none; color: var(--a); }
.ti .ti-sl-btn:hover, .ti .ti-sl-btn:focus { background: #fff; color: var(--ink); }
.ti .ti-fav:hover, .ti .ti-fav:focus { background: var(--soft); color: var(--ink); }
.ti .ti-act:hover, .ti .ti-act:focus { background: var(--soft); color: var(--ink); }
.ti .ti-maptoggle:hover, .ti .ti-maptoggle:focus { background: var(--soft); color: var(--p); }
.ti .ti-fav[aria-pressed="true"]:hover, .ti .ti-fav[aria-pressed="true"]:focus { color: var(--fav); }
.ti .ti-act[aria-pressed="true"]:hover, .ti .ti-act[aria-pressed="true"]:focus { color: #a3123f; background: #fff0f4; }

/* Formularelemente */
.ti input[type="text"], .ti input[type="search"], .ti input[type="email"], .ti input[type="tel"], .ti select, .ti textarea {
	width: 100%; min-height: 46px; margin: 0; padding: 10px 14px;
	font: inherit; font-size: 15px; color: var(--ink); background-color: #fff;
	border: 1px solid var(--line2); border-radius: 10px; box-shadow: none; outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.ti input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.ti select {
	-webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.ti textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.ti input:focus, .ti select:focus, .ti textarea:focus { border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 18%, transparent); }

/* Badges */
.ti-badge {
	display: inline-block; padding: 4px 10px; border-radius: 6px; background: #fff; color: var(--p);
	font-size: 12.5px; font-weight: 700; line-height: 1.35; box-shadow: 0 1px 4px rgba(15, 23, 42, .18);
}
.ti-badge-new { background: var(--a); color: #fff; }
.ti-badge-top { background: #fdb022; color: #3d2600; }
.ti-badge-status { background: #f59e0b; color: #fff; }
.is-verkauft .ti-badge-status { background: var(--p); }

/* Energieklassen */
.ti-cls-0 { background: #0b8f45; color: #fff; } .ti-cls-1 { background: #2f9e4f; color: #fff; } .ti-cls-2 { background: #7cbf3b; color: var(--ink); }
.ti-cls-3 { background: #b9d531; color: var(--ink); } .ti-cls-4 { background: #f2d22e; color: var(--ink); } .ti-cls-5 { background: #f7b52c; color: var(--ink); }
.ti-cls-6 { background: #f08a24; color: var(--ink); } .ti-cls-7 { background: #e0502a; color: #fff; } .ti-cls-8 { background: #c62828; color: #fff; }

/* =====================================================================
   Übersicht
   ===================================================================== */
.ti-list { container-type: inline-size; container-name: tilist; isolation: isolate; } /* eigene Ebene: Punkte und Herz scheinen nie durch andere Abschnitte */

.ti-search { margin: 0; }
.ti-search-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.ti-seg { display: inline-flex; padding: 4px; background: var(--soft); border-radius: 999px; }
.ti-seg label { position: relative; margin: 0; cursor: pointer; }
.ti-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ti-seg span { display: block; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; line-height: 1.2; color: var(--muted); transition: background .15s, color .15s; }
.ti-seg label:hover span { color: var(--p); }
.ti-seg input:checked + span { background: #fff; color: var(--p); box-shadow: 0 1px 4px rgba(15, 23, 42, .14); }
.ti-seg input:focus-visible + span { outline: 2px solid var(--a); }

.ti-q { position: relative; display: flex; align-items: center; flex: 1 1 260px; min-width: 220px; margin: 0; }
.ti-q > svg { position: absolute; left: 17px; color: var(--muted); pointer-events: none; }
.ti .ti-q input { min-height: 50px; padding-left: 46px; padding-right: 112px; border-radius: 999px; }
.ti .ti-q-go {
	position: absolute; top: 5px; right: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px;
	border-radius: 999px; background: var(--a); color: #fff; font-size: 14.5px; font-weight: 600; transition: background-color .15s;
}
.ti .ti-q-go:hover, .ti .ti-q-go:focus { background: color-mix(in srgb, var(--a) 86%, #000); color: #fff; }

.ti-pop { position: relative; }
.ti-pop > summary { list-style: none; }
.ti-pop > summary::-webkit-details-marker { display: none; }
.ti-pill {
	display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px 0 18px;
	border: 1px solid var(--line2); border-radius: 999px; background: #fff;
	font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--ink); cursor: pointer; white-space: nowrap; user-select: none;
	transition: border-color .15s, background-color .15s;
}
.ti-pill:hover { border-color: #98a6ba; }
.ti-pill svg { color: var(--muted); transition: transform .15s; }
.ti-pill.is-set { border-color: var(--p); background: color-mix(in srgb, var(--a) 7%, #fff); color: var(--p); font-weight: 600; }
.ti-pop[open] > .ti-pill { border-color: var(--p); box-shadow: 0 0 0 1px var(--p); }
.ti-pop[open] > .ti-pill > svg:last-child { transform: rotate(180deg); }
.ti-pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--p); color: #fff; font-size: 12px; font-weight: 700; }

.ti-pop-panel {
	position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 330px; padding: 18px;
	background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
}
.ti-pop.is-right .ti-pop-panel { left: auto; right: 0; }
.ti-pop-wide .ti-pop-panel { width: 520px; }
.ti-pop-title { display: block; float: none; font-family: inherit; width: auto; margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 700; color: var(--p); border: 0; }
.ti-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ti-range label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ti-unit { position: relative; display: block; }
.ti .ti-unit input { padding-right: 40px; }
.ti-unit em { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--muted); pointer-events: none; }
.ti-pop-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ti-pop-actions .ti-btn { padding: 11px 18px; }
.ti-fs { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.ti-fs:last-of-type { margin-bottom: 0; }

.ti-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.ti-chip input { position: absolute; opacity: 0; pointer-events: none; }
label.ti-chip > span, a.ti-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
	border: 1px solid var(--line2); border-radius: 999px; background: #fff;
	font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--ink); text-decoration: none; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
label.ti-chip:hover > span, a.ti-chip:hover { border-color: #98a6ba; }
label.ti-chip input:checked + span { background: var(--p); border-color: var(--p); color: #fff; }
label.ti-chip input:focus-visible + span { outline: 2px solid var(--a); outline-offset: 2px; }
a.ti-chip-fav svg:first-child { color: var(--fav); }
a.ti-chip-fav.is-on { background: #fff0f4; border-color: #f4a3bb; color: #a3123f; }
a.ti-chip-fav.is-on svg:first-child { fill: currentColor; }
a.ti-chip-fav[aria-disabled="true"] { opacity: .6; cursor: default; }
.ti-fav-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--fav); color: #fff; font-size: 11.5px; font-weight: 700; }
.ti-fav-count[hidden] { display: none; }

.ti-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.ti-results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 18px; }
.ti .ti-results-title { margin: 0; padding: 0; font-family: inherit; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; }
.ti-results-title strong { color: var(--p); font-weight: 700; }
.ti-results-title span { color: var(--muted); font-weight: 400; }
.ti-reset { font-size: 14px; font-weight: 600; color: var(--a) !important; }
.ti-sort { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: 14px; color: var(--muted); }
.ti .ti-sort select { width: auto; min-height: 40px; padding: 6px 36px 6px 14px; border-radius: 999px; font-size: 14px; }
.ti .ti-maptoggle {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--line2); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--p);
}
.ti-maptoggle > span { display: inline-flex; align-items: center; gap: 8px; }
.ti-mt-show { display: none !important; }
.ti-list:not(.is-map-visible) .ti-mt-hide { display: none !important; }
.ti-list:not(.is-map-visible) .ti-mt-show { display: inline-flex !important; }

/* Ergebnisse + Karte */
.ti-results { display: flex; flex-direction: column; gap: 20px; }
.ti-results-list { min-width: 0; }
.ti-results-map { display: none; }
.ti-list.has-map.is-map-visible .ti-results-map { display: block; order: -1; height: 62vh; min-height: 340px; }
@container tilist (min-width: 900px) {
	.ti-list.has-map.is-map-visible .ti-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 42%); gap: 24px; align-items: start; }
	.ti-list.has-map.is-map-visible .ti-results-map { order: 0; position: sticky; top: 16px; height: calc(100vh - 32px); max-height: 860px; min-height: 480px; }
}
.admin-bar .ti-list .ti-results-map { top: 48px; }

.ti-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px 22px; }

/* Karte (Objekt) */
.ti-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ti-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--soft); transition: box-shadow .2s; }
.ti-slider { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.ti-slider::-webkit-scrollbar { display: none; }
.ti-slide { display: block; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.ti-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ti .ti-sl-btn {
	position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px;
	border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 8px rgba(15, 23, 42, .22);
	opacity: 0; transition: opacity .15s, background-color .15s;
}
.ti-sl-prev { left: 10px; }
.ti-sl-next { right: 10px; }
.ti-card-media:hover .ti-sl-btn, .ti-card-media:focus-within .ti-sl-btn { opacity: 1; }
.ti-card-media .ti-sl-btn[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .ti .ti-sl-btn { display: none; } }
.ti-dots { position: absolute; z-index: 2; left: 50%; bottom: 10px; display: flex; gap: 6px; transform: translateX(-50%); pointer-events: none; }
.ti-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(0, 0, 0, .35); transition: background-color .2s, transform .2s; }
.ti-dots span.is-active { background: #fff; transform: scale(1.2); }
.ti-card-badges { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ti-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #b5c0d0; background: linear-gradient(135deg, #eef2f8, #e2e8f2); }
.ti-card.is-verkauft .ti-slide img { filter: grayscale(.6); }
.ti-card.is-hl .ti-card-media { box-shadow: 0 0 0 3px var(--a); }

.ti-card-body { position: relative; padding: 12px 2px 0; }
.ti-card-head { display: flex; align-items: flex-start; gap: 8px; }
.ti .ti-card-title { flex: 1; min-width: 0; margin: 0; padding: 0; font-family: inherit; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; }
.ti-card-title a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: inherit !important; text-decoration: none !important; }
.ti-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ti-card:hover .ti-card-title { color: var(--a); }
.ti .ti-fav { position: relative; z-index: 2; display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; margin: -6px -6px 0 0; border-radius: 50%; color: var(--ink); transition: background-color .15s, color .15s, transform .15s; }
.ti .ti-fav[aria-pressed="true"] { color: var(--fav); }
.ti-fav[aria-pressed="true"] svg { fill: currentColor; }
.ti-fav.is-pop { animation: ti-pop .35s ease; }
@keyframes ti-pop { 50% { transform: scale(1.25); } }
.ti-card-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 2px; font-size: 15px; color: var(--ink); }
.ti-card-price { font-size: 16px; font-weight: 700; color: var(--ink); }
.ti-card-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.ti-eclass {
	display: inline-flex; align-items: center; height: 22px; padding: 0 13px 0 8px; border-radius: 3px 0 0 3px;
	font-size: 12.5px; font-weight: 700; line-height: 1;
	clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}
.ti-card-loc { margin-top: 3px; overflow: hidden; font-size: 14px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }

.ti-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.ti-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--p); text-decoration: none; font-weight: 600;
}
.ti-pagination .page-numbers:hover { border-color: var(--a); color: var(--a); }
.ti-pagination .page-numbers.current { background: var(--p); border-color: var(--p); color: #fff; }
.ti-pagination .dots { border: 0; background: none; }

.ti-empty { padding: 48px 24px; text-align: center; background: var(--soft); border-radius: var(--radius); color: var(--muted); }
.ti-empty svg { color: #a9b5c7; }
.ti-empty p { margin: 14px auto 0; max-width: 520px; }
.ti-empty strong { color: var(--p); font-size: 18px; }
.ti-empty-contact { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.ti-empty-contact a { color: var(--a); font-weight: 600; text-decoration: none; }

/* Suchleiste schmal (Handy / schmale Spalte) */
@container tilist (max-width: 720px) {
	.ti-seg { flex: 1 1 100%; }
	.ti-seg label { flex: 1; text-align: center; }
	.ti-q { flex-basis: 100%; }
	.ti-pop { position: static; }
	.ti-pop-panel, .ti-pop-wide .ti-pop-panel { left: 0; right: 0; width: auto; }
	.ti-pill { min-height: 44px; padding: 0 13px 0 15px; font-size: 14.5px; }
	.ti-quick { flex-wrap: nowrap; overflow-x: auto; margin-right: -2px; padding-bottom: 4px; scrollbar-width: none; }
	.ti-quick::-webkit-scrollbar { display: none; }
	.ti-results-title { flex: 1 1 100%; font-size: 18px; }
	.ti-sort { margin-left: 0; }
	.ti-sort > span, .ti-mt-long { display: none; }
	.ti .ti-maptoggle { margin-left: auto; padding: 0 14px; }
	.ti-list.is-map-visible .ti-maptoggle { background: var(--p); border-color: var(--p); color: #fff; }
	.ti-cards { grid-template-columns: 1fr; }
}

/* =====================================================================
   Karte (OpenStreetMap)
   ===================================================================== */
.ti-map {
	position: relative; width: 100%; height: 100%; min-height: 280px; overflow: hidden; border-radius: 16px;
	background-color: #eef1f5;
	background-image: linear-gradient(#e1e6ed 1px, transparent 1px), linear-gradient(90deg, #e1e6ed 1px, transparent 1px);
	background-size: 44px 44px;
	border: 1px solid var(--line);
	isolation: isolate;
}
.ti-map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.ti-map-consent-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--p); box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.ti-map-consent p { max-width: 330px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ti-map-consent p strong { font-size: 16px; color: var(--p); }
.ti-map-consent p a { color: var(--a) !important; }
.ti-map-remember { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.ti-map-remember input { width: 15px; height: 15px; margin: 0; accent-color: var(--a); }
.ti-map.is-loading .ti-map-consent { opacity: .5; pointer-events: none; }
.ti-map-single { height: 380px; margin-top: 4px; }
.ti-map-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* Google Maps */
.ti-map .gm-style { font-family: inherit !important; }
.ti-gpin { position: absolute; width: 0; height: 0; cursor: pointer; }
.ti-map .gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 14px; }
.ti-map .gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; }
.ti-map .gm-style .gm-style-iw-chr { position: absolute; top: 4px; right: 4px; z-index: 2; }
.ti-map .gm-style .gm-style-iw-chr button { background: rgba(255, 255, 255, .92) !important; border-radius: 50%; width: 32px !important; height: 32px !important; }
.ti-map .gm-style .gm-style-iw-chr button span { margin: 4px !important; }
.ti-map .gm-style .ti-mpop { width: 250px; }
.ti-map-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.ti-map .leaflet-container, .ti-map.leaflet-container { font: inherit; font-size: 13px; background: #eef1f5; }
.ti-map .leaflet-control-attribution { font-size: 11px; }
.ti-map .leaflet-control-attribution a { color: #0b5cad; }
.ti-pin-wrap { width: 0 !important; height: 0 !important; margin: 0 !important; background: none; border: 0; }
.ti-pin {
	position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
	padding: 5px 9px; border-radius: 999px; background: #fff; color: var(--ink);
	font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer;
	border: 1px solid rgba(15, 23, 42, .12); box-shadow: 0 2px 8px rgba(15, 23, 42, .28);
	transition: background-color .15s, color .15s, transform .15s;
}
.ti-pin:hover, .ti-pin.is-hl { background: var(--p); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.ti-pin-home {
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%);
	background: var(--a); color: #fff; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .35);
}
.ti-pin-home:hover { transform: translate(-50%, -50%); background: var(--a); }
.ti-map .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); }
.ti-map .leaflet-popup-content { width: 250px !important; margin: 0; font-size: 14px; line-height: 1.45; }
.ti-map .leaflet-popup-close-button { z-index: 2; width: 28px !important; height: 28px !important; margin: 6px; border-radius: 50%; background: rgba(255, 255, 255, .92) !important; color: var(--ink) !important; font: 20px/26px Arial, sans-serif !important; text-align: center; }
.ti-mpop { display: block; color: var(--ink) !important; text-decoration: none !important; }
.ti-mpop img { display: block; width: 100%; height: 140px; object-fit: cover; }
.ti-mpop span { display: block; padding: 10px 12px 12px; }
.ti-mpop strong { display: block; font-size: 15.5px; }
.ti-mpop em { display: block; font-style: normal; color: var(--muted); font-size: 13.5px; }
.ti-mpop b { display: block; margin-top: 3px; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--a); }

/* =====================================================================
   Detailseite
   ===================================================================== */
.ti-page-inner { max-width: 1240px; margin: 0 auto; padding: 24px 20px 72px; }

.ti-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ti-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--p) !important; text-decoration: none !important; }
.ti-back:hover { color: var(--a) !important; }
.ti-actions { display: flex; gap: 8px; }
.ti .ti-act {
	display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px;
	border: 1px solid var(--line2); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--ink);
	transition: background-color .15s, border-color .15s, color .15s;
}
.ti .ti-act[aria-pressed="true"] { color: #a3123f; border-color: #f4a3bb; background: #fff0f4; }
.ti-act[aria-pressed="true"] svg { fill: currentColor; color: var(--fav); }

/* Galerie */
.ti-gallery { position: relative; overflow: hidden; border-radius: 18px; background: var(--soft); }
.ti-gal-track { display: grid; gap: 6px; height: min(62vh, 520px); min-height: 320px; }
.ti-gallery-1 .ti-gal-track { grid-template-columns: 1fr; }
.ti-gallery-2 .ti-gal-track { grid-template-columns: 2fr 1fr; }
.ti-gallery-3 .ti-gal-track { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.ti-gallery-3 .ti-gal-item-0 { grid-row: span 2; }
.ti .ti-gal-item { display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden; cursor: zoom-in; background: var(--soft); }
.ti .ti-gal-item:nth-child(n+4) { display: none; }
.ti .ti-gal-item:hover, .ti .ti-gal-item:focus { background: var(--soft); color: inherit; }
.ti .ti-gal-item:focus-visible { outline: 3px solid var(--a); outline-offset: -3px; }
.ti-gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.ti-gal-item:hover img { transform: scale(1.02); filter: brightness(1.04); }
.ti-gal-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; pointer-events: none; }
.ti-gal-tools { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ti .ti-gal-btn {
	display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
	background: #fff; color: var(--ink) !important; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .2);
}
.ti .ti-gal-btn:hover, .ti .ti-gal-btn:focus { background: #fff; color: var(--a) !important; }
.ti-gal-count { display: none; }

/* Inhalt + Kontakt */
.ti-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 30px; align-items: start; }
.ti-main { min-width: 0; }
.ti-aside { position: sticky; top: 24px; }
.admin-bar .ti-aside { top: 56px; }

.ti-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a); }
.ti-kicker-nr { font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.ti .ti-title { margin: 8px 0 0; padding: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; font-weight: 700; color: var(--p); letter-spacing: -.01em; text-transform: none; }
.ti-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.ti-loc svg { color: var(--a); }
.ti-loc a { margin-left: 4px; color: var(--a) !important; font-weight: 600; font-size: 15px; text-underline-offset: 3px; }

.ti-hero-facts { display: flex; flex-wrap: wrap; gap: 14px 0; margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ti-hf { display: flex; flex-direction: column; justify-content: center; padding: 0 28px; border-left: 1px solid var(--line); }
.ti-hf:first-child { padding-left: 0; border-left: 0; }
.ti-hf strong { font-size: 26px; line-height: 1.15; font-weight: 700; color: var(--p); white-space: nowrap; }
.ti-hf strong small { font-size: 14px; font-weight: 500; color: var(--muted); }
.ti-hf span { margin-top: 3px; font-size: 14px; color: var(--muted); }

.ti-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ti-tags li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 13px 6px 10px; border-radius: 999px; background: var(--soft); font-size: 14px; line-height: 1.3; }
.ti-tags svg { color: #12864a; }

.ti-sec { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.ti .ti-h2 { margin: 0 0 14px; padding: 0; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--p); letter-spacing: 0; text-transform: none; }
.ti-dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin: 0; }
.ti-dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid #edf0f5; }
.ti-dl dt { margin: 0; font-weight: 400; color: var(--muted); }
.ti-dl dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

.ti-finance {
	display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; border-radius: 16px;
	background: color-mix(in srgb, var(--a) 6%, #fff); border: 1px solid color-mix(in srgb, var(--a) 22%, #fff);
}
.ti-finance-icon { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--a); }
.ti-finance > div { flex: 1; min-width: 0; }
.ti-finance strong { color: var(--p); font-size: 16.5px; }
.ti-finance p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: #3d4a5f; }
.ti-finance .ti-btn { flex: 0 0 auto; }

.ti-text p { margin: 0 0 14px; max-width: 74ch; hyphens: auto; }
.ti-text p:last-child { margin-bottom: 0; }
.ti-collapse.is-collapsible:not(.is-open) .ti-collapse-inner { max-height: 12.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.ti .ti-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--a); font-weight: 600; font-size: 15px; }
.ti-more svg { transition: transform .15s; }
.ti-collapse.is-open + .ti-more svg { transform: rotate(180deg); }

.ti-lage-addr { display: flex; align-items: center; gap: 6px; margin: -4px 0 14px; color: var(--ink); font-weight: 500; }
.ti-lage-addr svg { color: var(--a); }
#ti-lage .ti-text { margin-top: 18px; }

.ti-scale { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; max-width: 560px; margin: 22px 0 4px; }
.ti-scale span { display: grid; place-items: center; height: 30px; border-radius: 6px; font-weight: 700; font-size: 13px; opacity: .42; }
.ti-scale span.is-active { opacity: 1; transform: scaleY(1.22); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.ti-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ti .ti-plan { display: block; padding: 12px; background: var(--soft); border-radius: 14px; cursor: zoom-in; border: 1px solid var(--line); }
.ti .ti-plan:hover, .ti .ti-plan:focus { background: #fff; border-color: var(--line2); }
.ti-plan img { display: block; width: 100%; height: 240px; object-fit: contain; }
.ti-tour a { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; padding: 12px 18px; border-radius: 12px; background: var(--soft); color: var(--p) !important; font-weight: 600; text-decoration: none; }
.ti-tour a:hover { background: #e9eef6; }

/* Kontaktbox */
.ti-contact { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(15, 23, 42, .08); scroll-margin-top: 90px; }
.ti-contact-person { display: flex; align-items: center; gap: 14px; }
.ti-contact-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.ti-contact-initials { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; background: var(--p); color: #fff; font-size: 22px; font-weight: 700; }
.ti-contact-person > div { display: flex; flex-direction: column; min-width: 0; }
.ti-contact-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ti-contact-person strong { font-size: 17px; color: var(--p); }
.ti-contact-person span:last-child { font-size: 14px; color: var(--muted); }
.ti-contact-actions { display: grid; gap: 8px; margin-top: 18px; }
.ti-contact-actions.is-two { grid-template-columns: 1fr 1fr; }
.ti-contact-actions .ti-btn { width: 100%; padding: 12px 14px; }
.ti-contact-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; font-size: 13px; color: var(--muted); }
.ti-contact-or::before, .ti-contact-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.ti-form-inquiry { display: grid; gap: 12px; }
.ti-in { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.ti-in span { font-size: 13px; font-weight: 600; color: #344054; }
.ti-consent { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.ti-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--a); }
.ti-consent a { color: var(--a) !important; }
.ti-form-inquiry .ti-btn { width: 100%; margin-top: 4px; }
.ti-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ti-alert { margin-bottom: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; }
.ti-alert-ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.ti-alert-err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.ti-form-inquiry textarea.is-flash { animation: ti-flash 1.2s ease; }
@keyframes ti-flash { 0%, 60% { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 25%, transparent); } }

.ti-similar { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }

/* Referenzen */
.ti-refs { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.ti-refs-head { margin-bottom: 20px; }
.ti-refs-head .ti-h2 { margin-bottom: 4px; }
.ti-refs-head p { margin: 0; color: var(--muted); }
.ti-card-price.is-sold { color: #067647; }
.ti-sold-banner {
	display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding: 18px 20px; border-radius: 16px;
	background: #ecfdf3; border: 1px solid #a6f4c5;
}
.ti-sold-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: #067647; color: #fff; }
.ti-sold-banner > div { flex: 1; min-width: 0; }
.ti-sold-banner strong { color: #05603a; font-size: 17px; }
.ti-sold-banner p { margin: 2px 0 0; font-size: 14.5px; color: #24543c; }
.ti-sold-banner .ti-btn { flex: 0 0 auto; }
.ti-hf-sold strong { color: #067647; }
@media (max-width: 680px) {
	.ti-sold-banner { flex-wrap: wrap; }
	.ti-sold-banner .ti-btn { width: 100%; }
}

/* Handy: Kontaktleiste unten */
.ti-mbar { display: none; }
.ti-toast {
	position: fixed; z-index: 1000000; left: 50%; bottom: 96px; transform: translateX(-50%);
	padding: 10px 16px; border-radius: 10px; background: #1b2331; color: #fff; font-size: 14px; font-weight: 500;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .3);
}
.ti-toast[hidden] { display: none; }

/* Lightbox */
.ti-lb { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; background: rgba(8, 12, 20, .94); color: #fff; }
.ti-lb[hidden] { display: none; }
.ti-lb-stage { display: grid; place-items: center; max-width: 92vw; max-height: 86vh; margin: 0; }
.ti-lb-stage img { width: auto; height: auto; max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; user-select: none; }
.ti .ti-lb-close, .ti .ti-lb-prev, .ti .ti-lb-next {
	position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .15s;
}
.ti .ti-lb-close:hover, .ti .ti-lb-prev:hover, .ti .ti-lb-next:hover,
.ti .ti-lb-close:focus, .ti .ti-lb-prev:focus, .ti .ti-lb-next:focus { background: rgba(255, 255, 255, .24); color: #fff; }
.ti .ti-lb-close { top: 18px; right: 18px; }
.ti .ti-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.ti .ti-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.ti-lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 14px; opacity: .8; }
.ti-lb.is-single .ti-lb-prev, .ti-lb.is-single .ti-lb-next, .ti-lb.is-single .ti-lb-count { display: none; }
body.ti-lb-open { overflow: hidden; }

/* Responsive Detailseite ------------------------------------------------- */
@media (max-width: 1024px) {
	.ti-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}
@media (max-width: 900px) {
	.ti-layout { grid-template-columns: 1fr; }
	.ti-aside { position: static; }
	.ti-single { padding-bottom: 80px; }
	.ti.ti-mbar {
		position: fixed; z-index: 99990; left: 0; right: 0; bottom: 0; display: flex; gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff;
		border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
	}
	.ti-mbar .ti-btn { flex: 1; min-width: 0; padding: 12px 8px; font-size: 14.5px; }
}
@media (max-width: 680px) {
	.ti-gallery { border-radius: 14px; }
	.ti-gal-track { display: flex; height: 290px; min-height: 0; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.ti-gal-track::-webkit-scrollbar { display: none; }
	.ti .ti-gal-item, .ti .ti-gal-item:nth-child(n+4) { display: block; flex: 0 0 100%; scroll-snap-align: start; }
	.ti-gal-tools { left: 12px; bottom: 12px; gap: 6px; }
	.ti .ti-gal-btn { padding: 7px 11px; font-size: 13px; }
	.ti-gal-tools .ti-gal-btn:not(:first-child) { display: none; }
	.ti-gal-count { display: block; position: absolute; right: 12px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 13px; font-weight: 600; }
	.ti-act span { display: none; }
	.ti .ti-act { width: 42px; padding: 0; justify-content: center; }
	.ti-hero-facts { padding: 14px 0; }
	.ti-hf { flex: 1 1 auto; padding: 0 14px; }
	.ti-hf-price { flex-basis: 100%; padding: 0 0 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
	.ti-hf-price + .ti-hf { padding-left: 0; border-left: 0; }
	.ti-hf strong { font-size: 20px; }
	.ti-hf-price strong { font-size: 25px; }
	.ti-dl { grid-template-columns: 1fr; }
	.ti-finance { flex-wrap: wrap; }
	.ti-finance .ti-btn { width: 100%; }
	.ti-map-single { height: 300px; }
	.ti-cards { grid-template-columns: 1fr; }
	.ti .ti-lb-prev, .ti .ti-lb-next { width: 42px; height: 42px; }
	.ti .ti-lb-prev { left: 8px; }
	.ti .ti-lb-next { right: 8px; }
}
