:root {
	--jph-olive: #59664a;
	--jph-olive-dark: #3f4937;
	--jph-sand: #f4efe5;
	--jph-sand-deep: #e8deca;
	--jph-gold: #b5985a;
	--jph-ink: #233027;
	--jph-muted: #6f766f;
	--jph-white: #ffffff;
	--jph-line: rgba(63, 73, 55, 0.16);
	--jph-shadow: 0 18px 45px rgba(39, 47, 39, 0.11);
}

.jph-search {
	width: min(100%, 1240px);
	margin: 0 auto;
	padding: clamp(34px, 5vw, 74px) clamp(18px, 3vw, 34px);
	color: var(--jph-ink);
	font-family: "Lora", Georgia, serif;
	scroll-margin-top: 30px;
}

.jph-search * {
	box-sizing: border-box;
}

.jph-search__intro {
	max-width: 760px;
	margin-bottom: 28px;
}

.jph-search__eyebrow {
	margin: 0 0 9px;
	color: var(--jph-gold);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.jph-search__intro h2 {
	margin: 0 0 10px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.08;
	font-weight: 600;
}

.jph-search__intro > p:last-child {
	margin: 0;
	color: var(--jph-muted);
	font-size: 1rem;
	line-height: 1.7;
}

.jph-search__form {
	display: grid;
	grid-template-columns: 1.6fr 1.05fr repeat(4, minmax(120px, 0.72fr));
	gap: 14px;
	align-items: end;
	padding: clamp(18px, 3vw, 30px);
	border: 1px solid var(--jph-line);
	border-radius: 22px;
	background:
		linear-gradient(145deg, rgba(255,255,255,0.92), rgba(244,239,229,0.92));
	box-shadow: var(--jph-shadow);
}

.jph-field {
	min-width: 0;
}

.jph-field label,
.jph-sort span {
	display: block;
	margin: 0 0 7px;
	color: var(--jph-olive-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.jph-field input,
.jph-field select,
.jph-sort select {
	width: 100%;
	min-height: 47px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid rgba(63, 73, 55, 0.22);
	border-radius: 10px;
	background: var(--jph-white);
	color: var(--jph-ink);
	font: inherit;
	font-size: 0.88rem;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.jph-field input:focus,
.jph-field select:focus,
.jph-sort select:focus {
	border-color: var(--jph-gold);
	box-shadow: 0 0 0 3px rgba(181, 152, 90, 0.16);
}

.jph-search__actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 4px;
}

.jph-btn {
	min-height: 47px;
	padding: 0 21px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}

.jph-btn:hover {
	transform: translateY(-1px);
}

.jph-btn--primary {
	background: var(--jph-olive);
	color: var(--jph-white);
}

.jph-btn--primary:hover {
	background: var(--jph-olive-dark);
}

.jph-btn--ghost {
	border-color: rgba(63, 73, 55, 0.25);
	background: transparent;
	color: var(--jph-olive-dark);
}

.jph-search__toolbar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin: 34px 0 20px;
}

.jph-result-count {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	font-weight: 600;
}

.jph-sort {
	width: min(240px, 100%);
}

.jph-search__status {
	min-height: 22px;
	margin-bottom: 8px;
	color: var(--jph-muted);
	font-size: 0.88rem;
}

.jph-results-wrap {
	position: relative;
	transition: opacity .2s ease;
}

.jph-search.is-loading .jph-results-wrap {
	opacity: 0.42;
	pointer-events: none;
}

.jph-property-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.jph-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--jph-line);
	border-radius: 18px;
	background: var(--jph-white);
	box-shadow: 0 13px 35px rgba(35, 48, 39, 0.09);
	transition: transform .25s ease, box-shadow .25s ease;
}

.jph-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 48px rgba(35, 48, 39, 0.14);
}

.jph-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--jph-sand-deep);
}

.jph-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.jph-card:hover .jph-card__media img {
	transform: scale(1.035);
}

.jph-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(181,152,90,.25), transparent 45%),
		linear-gradient(145deg, var(--jph-sand), var(--jph-sand-deep));
}

.jph-card__price {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 9px 13px;
	border: 1px solid rgba(255,255,255,.55);
	border-radius: 999px;
	background: rgba(63, 73, 55, 0.92);
	color: var(--jph-white);
	font-family: "Lora", Georgia, serif;
	font-size: 0.91rem;
	font-weight: 700;
	backdrop-filter: blur(7px);
}

.jph-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 21px;
}

.jph-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	color: var(--jph-gold);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
}

.jph-card svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	fill: currentColor;
}

.jph-card__title {
	margin: 0 0 6px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.25;
	font-weight: 600;
}

.jph-card__title a {
	color: var(--jph-ink);
	text-decoration: none;
}

.jph-card__reference {
	margin: 0 0 16px;
	color: var(--jph-muted);
	font-size: 0.74rem;
}

.jph-card__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
	margin-bottom: 16px;
}

.jph-card__facts span {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 66px;
	padding: 8px 5px;
	border-radius: 10px;
	background: var(--jph-sand);
	color: var(--jph-olive-dark);
	text-align: center;
	font-size: 0.66rem;
	line-height: 1.25;
}

.jph-card__facts strong {
	display: inline-block;
	margin-top: 3px;
	font-size: 0.84rem;
}

.jph-card__excerpt {
	margin: 0 0 18px;
	color: var(--jph-muted);
	font-size: 0.8rem;
	line-height: 1.65;
}

.jph-card__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid var(--jph-line);
	color: var(--jph-olive-dark);
	font-size: 0.83rem;
	font-weight: 700;
	text-decoration: none;
}

.jph-card__button span {
	color: var(--jph-gold);
	font-size: 1.1rem;
	transition: transform .2s ease;
}

.jph-card__button:hover span {
	transform: translateX(4px);
}

.jph-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 34px;
}

.jph-pagination button {
	min-width: 40px;
	min-height: 40px;
	padding: 7px 12px;
	border: 1px solid var(--jph-line);
	border-radius: 9px;
	background: var(--jph-white);
	color: var(--jph-olive-dark);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.jph-pagination button:hover,
.jph-pagination button[aria-current="page"] {
	border-color: var(--jph-olive);
	background: var(--jph-olive);
	color: var(--jph-white);
}

.jph-pagination button:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.jph-empty {
	padding: 60px 25px;
	border: 1px dashed var(--jph-line);
	border-radius: 18px;
	background: var(--jph-sand);
	text-align: center;
}

.jph-empty h3 {
	margin: 0 0 9px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.55rem;
}

.jph-empty p {
	margin: 0;
	color: var(--jph-muted);
}

@media (max-width: 1080px) {
	.jph-search__form {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jph-field--search {
		grid-column: span 2;
	}

	.jph-property-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.jph-search {
		padding-inline: 14px;
	}

	.jph-search__form {
		grid-template-columns: 1fr 1fr;
		padding: 17px;
		border-radius: 16px;
	}

	.jph-field--search,
	.jph-search__actions {
		grid-column: 1 / -1;
	}

	.jph-search__actions .jph-btn {
		flex: 1 1 100%;
	}

	.jph-search__toolbar {
		align-items: stretch;
		flex-direction: column;
		margin-top: 26px;
	}

	.jph-sort {
		width: 100%;
	}

	.jph-property-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.jph-card__body {
		padding: 18px;
	}
}

@media (max-width: 430px) {
	.jph-search__form {
		grid-template-columns: 1fr;
	}

	.jph-field--search {
		grid-column: auto;
	}

	.jph-card__facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Externe Habihub-Galerie: große Hauptaufnahme mit Thumbnail-Leiste */
.jph-showcase-gallery {
	position: relative;
	width: 100% !important;
	box-sizing: border-box !important;
}

.jph-showcase-gallery__stage {
	position: relative;
	width: 100%;
}

.jph-showcase-gallery button {
	font: inherit;
}

.jph-showcase-gallery__main,
.jph-showcase-gallery__thumb {
	position: relative;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	background: #ecebe7 !important;
	cursor: zoom-in;
}

.jph-showcase-gallery__main {
	aspect-ratio: 16 / 9 !important;
	border-radius: 18px !important;
}

.jph-showcase-gallery__main img,
.jph-showcase-gallery__thumb img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	transition: transform .35s ease, opacity .2s ease;
}

.jph-showcase-gallery__main:hover img,
.jph-showcase-gallery__thumb:hover img {
	transform: scale(1.018);
}

.jph-showcase-gallery__count {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 13px;
	border-radius: 9px;
	background: rgba(202, 56, 144, .94);
	color: #fff;
	font-family: "Lora", Georgia, serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
	backdrop-filter: blur(6px);
}

.jph-showcase-gallery__count svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.jph-showcase-gallery__thumbs {
	display: grid !important;
	grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
	gap: 8px !important;
	margin-top: 9px !important;
}

.jph-showcase-gallery__thumb {
	aspect-ratio: 1 / 1 !important;
	border-radius: 13px !important;
}

.jph-showcase-gallery__thumb.has-more::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(17, 21, 18, .38);
}

.jph-showcase-gallery__more {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	font-family: "Lora", Georgia, serif;
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 700;
	line-height: 1;
	text-shadow: 0 2px 9px rgba(0, 0, 0, .45);
}

.jph-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(12, 16, 13, .94);
}

.jph-gallery-lightbox.is-open {
	display: flex;
}

.jph-gallery-lightbox__image {
	display: block;
	max-width: min(1400px, calc(100vw - 120px));
	max-height: calc(100vh - 90px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.jph-gallery-lightbox__close,
.jph-gallery-lightbox__prev,
.jph-gallery-lightbox__next {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.jph-gallery-lightbox__close {
	top: 18px;
	right: 18px;
}

.jph-gallery-lightbox__prev {
	left: 18px;
}

.jph-gallery-lightbox__next {
	right: 18px;
}

.jph-gallery-lightbox__count {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-family: "Lora", Georgia, serif;
	font-size: 14px;
}

body.jph-gallery-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.jph-showcase-gallery {
		padding-inline: 18px !important;
	}

	.jph-showcase-gallery__main {
		aspect-ratio: 4 / 3 !important;
		border-radius: 16px !important;
	}

	.jph-showcase-gallery__count {
		left: 10px;
		bottom: 10px;
		padding: 8px 11px;
		font-size: 13px;
	}

	.jph-showcase-gallery__thumbs {
		grid-template-columns: none !important;
		grid-auto-flow: column !important;
		grid-auto-columns: minmax(82px, 24vw) !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		padding: 0 0 5px !important;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
	}

	.jph-showcase-gallery__thumb {
		border-radius: 11px !important;
		scroll-snap-align: start;
	}

	.jph-gallery-lightbox {
		padding: 12px;
	}

	.jph-gallery-lightbox__image {
		max-width: calc(100vw - 24px);
		max-height: calc(100vh - 110px);
		border-radius: 10px;
	}

	.jph-gallery-lightbox__prev,
	.jph-gallery-lightbox__next {
		top: auto;
		bottom: 18px;
	}

	.jph-gallery-lightbox__count {
		bottom: 30px;
	}
}

/* Immobilienkopf im Stil der Habihub-Projektansicht */
.jph-property-overview,
.jph-property-overview * {
	box-sizing: border-box;
}

.jph-property-overview {
	display: grid;
	grid-template-columns: minmax(0, 2.45fr) minmax(310px, .82fr);
	gap: 24px;
	width: min(1500px, calc(100vw - 48px));
	max-width: none;
	margin: 0;
	padding: 18px 0;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	font-family: "Lora", Georgia, serif;
	color: var(--jph-ink);
}

.jph-property-overview__media {
	min-width: 0;
}

.jph-property-overview .jph-showcase-gallery__main {
	aspect-ratio: 16 / 9 !important;
	border-radius: 18px !important;
}

.jph-property-overview .jph-showcase-gallery__thumbs {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 9px;
	margin-top: 9px;
}

.jph-property-overview .jph-showcase-gallery__thumb {
	aspect-ratio: 1 / 1 !important;
	border-radius: 14px !important;
}

.jph-showcase-gallery__top-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 7px 11px;
	border-radius: 999px;
	background: rgba(255,255,255,.94);
	color: #26312a;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 5px 18px rgba(0,0,0,.12);
}

.jph-showcase-gallery__map-badge {
	position: absolute;
	left: 132px;
	bottom: 14px;
	z-index: 2;
	padding: 8px 12px;
	border-radius: 9px;
	background: #158f63;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.jph-property-overview__panel {
	align-self: stretch;
	padding: clamp(22px, 2.8vw, 34px);
	border: 1px solid rgba(63, 73, 55, .14);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(35, 48, 39, .08);
}

.jph-property-overview__location {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px;
	color: #7c847e;
	font-size: 14px;
}

.jph-property-overview__location svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.jph-property-overview__title {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 3.1vw, 3.45rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.025em;
	color: #1f2722;
}

.jph-property-overview__divider {
	height: 1px;
	margin: 25px 0 22px;
	background: rgba(63,73,55,.12);
}

.jph-property-overview__price-row {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 23px;
}

.jph-property-overview__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(181, 152, 90, .14);
	color: var(--jph-gold);
	font-size: 18px;
	font-weight: 700;
}

.jph-property-overview__label {
	display: block;
	margin-bottom: 3px;
	color: #8a918c;
	font-size: 13px;
}

.jph-property-overview__price-row strong {
	display: block;
	font-size: clamp(1.15rem, 1.7vw, 1.45rem);
	line-height: 1.2;
	color: #29332d;
}

.jph-property-overview__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
	padding-top: 18px;
	border-top: 1px solid rgba(63,73,55,.12);
}

.jph-property-overview__facts > div {
	min-width: 0;
	padding: 12px 9px;
	border-radius: 12px;
	background: #f7f4ed;
	text-align: center;
}

.jph-property-overview__facts span {
	display: flex;
	justify-content: center;
	color: var(--jph-olive);
}

.jph-property-overview__facts svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.jph-property-overview__facts small {
	display: block;
	margin: 6px 0 3px;
	color: #858c87;
	font-size: 11px;
	line-height: 1.2;
}

.jph-property-overview__facts strong {
	display: block;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
}

.jph-property-overview__reference {
	display: inline-flex;
	margin-top: 26px;
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--jph-olive);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 980px) {
	.jph-property-overview {
		grid-template-columns: 1fr;
		width: 100%;
		margin: 0 auto;
		left: auto;
		transform: none;
		padding-inline: 18px;
	}

	.jph-property-overview__panel {
		padding: 22px;
	}
}

@media (max-width: 767px) {
	.jph-property-overview {
		gap: 14px;
		padding: 14px;
	}

	.jph-property-overview .jph-showcase-gallery__main {
		border-radius: 16px !important;
	}

	.jph-property-overview .jph-showcase-gallery__thumbs {
		display: flex;
		overflow-x: auto;
		gap: 8px;
		padding-bottom: 2px;
		scrollbar-width: none;
	}

	.jph-property-overview .jph-showcase-gallery__thumbs::-webkit-scrollbar {
		display: none;
	}

	.jph-property-overview .jph-showcase-gallery__thumb {
		flex: 0 0 82px;
		width: 82px !important;
	}

	.jph-property-overview__title {
		font-size: clamp(2rem, 10vw, 2.8rem);
	}

	.jph-property-overview__facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.jph-showcase-gallery__map-badge,
.jph-showcase-gallery__map-badge:hover,
.jph-showcase-gallery__map-badge:focus {
	text-decoration: none;
}

/* v0.4.2: gleichmäßige Abstände der Showcase-Ansicht auf Mobilgeräten */
@media (max-width: 767px) {
	.jph-property-overview {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 14px !important;
		gap: 12px !important;
		overflow: hidden !important;
	}

	.jph-property-overview__media,
	.jph-property-overview__panel {
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

	/* Die allgemeine Galerie-Regel fügt mobil 18 px Innenabstand hinzu.
	   Innerhalb des Showcase übernimmt diesen Abstand bereits der äußere Container. */
	.jph-property-overview .jph-showcase-gallery {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding-inline: 0 !important;
	}

	.jph-property-overview .jph-showcase-gallery__stage,
	.jph-property-overview .jph-showcase-gallery__main {
		width: 100% !important;
		max-width: 100% !important;
	}

	.jph-property-overview .jph-showcase-gallery__thumbs {
		width: 100% !important;
		max-width: 100% !important;
		margin: 8px 0 0 !important;
		padding: 0 0 3px !important;
	}

	.jph-property-overview__panel {
		padding: 18px !important;
		border-radius: 16px !important;
	}

	.jph-property-overview__divider {
		margin: 20px 0 18px !important;
	}

	.jph-property-overview__price-row {
		margin-bottom: 18px !important;
	}

	.jph-property-overview__reference {
		margin-top: 20px !important;
	}
}


/* v0.4.3: Das Hauptbild der oberen Showcase-Ansicht ist mobil genauso hoch wie in der unteren Galerie. */
@media (max-width: 767px) {
	.jph-property-overview .jph-showcase-gallery__main {
		aspect-ratio: 4 / 3 !important;
	}
}

/* v0.5.0: Projektkarten und Projektseite */
.jph-project-card__units {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 8px 11px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	color: var(--jph-olive-dark);
	font-size: .75rem;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(0,0,0,.12);
	backdrop-filter: blur(6px);
}

.jph-project-card .jph-card__title {
	margin-bottom: 8px;
}

.jph-project-page,
.jph-project-page * {
	box-sizing: border-box;
}

.jph-project-page {
	width: min(1480px, calc(100vw - 40px));
	margin: 0 auto;
	padding: 34px 0 76px;
	font-family: "Lora", Georgia, serif;
	color: var(--jph-ink);
}

.jph-project-page__top {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(320px, .8fr);
	gap: 24px;
	align-items: start;
}

.jph-project-page__media {
	min-width: 0;
}

.jph-project-page .jph-showcase-gallery {
	padding: 0 !important;
}

.jph-project-page .jph-showcase-gallery__main {
	aspect-ratio: 16 / 9 !important;
}

.jph-project-page .jph-showcase-gallery__thumbs {
	grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.jph-project-page__summary {
	padding: 28px;
	border: 1px solid var(--jph-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--jph-shadow);
}

.jph-project-page__summary h1 {
	margin: 10px 0 18px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 3vw, 3.2rem);
	line-height: 1.06;
	font-weight: 600;
}

.jph-project-page__price {
	margin: 20px 0;
}

.jph-project-page__price span {
	display: block;
	margin-bottom: 5px;
	color: var(--jph-muted);
	font-size: .76rem;
}

.jph-project-page__price strong {
	display: block;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.55rem;
	line-height: 1.2;
}

.jph-project-page__summary-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding-top: 18px;
	border-top: 1px solid var(--jph-line);
}

.jph-project-page__summary-facts > div {
	padding: 12px 8px;
	border-radius: 12px;
	background: var(--jph-sand);
	text-align: center;
}

.jph-project-page__summary-facts small {
	display: block;
	margin-bottom: 5px;
	color: var(--jph-muted);
	font-size: .66rem;
	line-height: 1.2;
}

.jph-project-page__summary-facts strong {
	display: block;
	font-size: .9rem;
	line-height: 1.25;
}

.jph-project-page__description {
	max-width: 980px;
	margin: 60px auto 0;
	padding: 0 18px;
}

.jph-project-page__description h2,
.jph-project-units__heading h2 {
	margin: 0 0 16px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.12;
}

.jph-project-page__description > div {
	color: var(--jph-muted);
	font-size: .98rem;
	line-height: 1.8;
}

.jph-project-units {
	margin-top: 64px;
}

.jph-project-units__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.jph-project-units__heading h2 {
	margin-bottom: 0;
}

.jph-project-units__heading > span {
	padding: 9px 13px;
	border-radius: 999px;
	background: var(--jph-sand);
	color: var(--jph-olive-dark);
	font-size: .78rem;
	font-weight: 700;
	white-space: nowrap;
}

.jph-project-unit-list {
	display: grid;
	gap: 14px;
}

.jph-project-unit {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	min-height: 160px;
	overflow: hidden;
	border: 1px solid var(--jph-line);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(35,48,39,.07);
}

.jph-project-unit__image {
	display: block;
	min-height: 100%;
	background: var(--jph-sand);
}

.jph-project-unit__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	object-fit: cover;
}

.jph-project-unit__body {
	display: flex;
	flex-direction: column;
	padding: 20px 22px;
}

.jph-project-unit__title-row {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 20px;
}

.jph-project-unit__title-row h3 {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.4rem;
}

.jph-project-unit__title-row a {
	color: var(--jph-ink);
	text-decoration: none;
}

.jph-project-unit__title-row > strong {
	font-size: 1.05rem;
	white-space: nowrap;
}

.jph-project-unit__reference {
	margin: 6px 0 14px;
	color: var(--jph-muted);
	font-size: .72rem;
}

.jph-project-unit__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	color: var(--jph-olive-dark);
	font-size: .78rem;
}

.jph-project-unit__facts span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.jph-project-unit__facts svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.jph-project-unit__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: auto;
	padding-top: 16px;
}

.jph-project-unit__actions a {
	color: var(--jph-olive-dark);
	font-size: .8rem;
	font-weight: 700;
	text-decoration: none;
}

.jph-project-message {
	width: min(900px, calc(100% - 32px));
	margin: 60px auto;
	padding: 40px;
	border-radius: 18px;
	background: var(--jph-sand);
	text-align: center;
}

@media (max-width: 980px) {
	.jph-project-page__top {
		grid-template-columns: 1fr;
	}

	.jph-project-page__summary {
		padding: 22px;
	}
}

@media (max-width: 720px) {
	.jph-project-page {
		width: 100%;
		padding: 14px 14px 54px;
	}

	.jph-project-page .jph-showcase-gallery__main {
		aspect-ratio: 4 / 3 !important;
	}

	.jph-project-page .jph-showcase-gallery__thumbs {
		display: flex !important;
		overflow-x: auto !important;
		gap: 8px !important;
	}

	.jph-project-page .jph-showcase-gallery__thumb {
		flex: 0 0 82px;
	}

	.jph-project-page__summary-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jph-project-page__description {
		margin-top: 42px;
		padding: 0 4px;
	}

	.jph-project-units {
		margin-top: 46px;
	}

	.jph-project-units__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.jph-project-unit {
		grid-template-columns: 1fr;
	}

	.jph-project-unit__image,
	.jph-project-unit__image img {
		min-height: 210px;
		max-height: 260px;
	}

	.jph-project-unit__title-row {
		flex-direction: column;
		gap: 8px;
	}
}

/* v0.5.1: Die automatisch erzeugte Projektseite erhält ein eigenes Full-Width-Template.
   Dadurch greifen keine schmalen Theme-Container, Seitenränder oder großen oberen Abstände mehr. */
body.jph-project-view {
	overflow-x: hidden;
}

.jph-project-template-main {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.jph-project-template-main .jph-project-page {
	width: min(1480px, calc(100% - 40px));
	max-width: 1480px;
	margin: 0 auto;
	padding-top: 24px;
}

@media (max-width: 720px) {
	.jph-project-template-main .jph-project-page {
		width: 100%;
		padding-top: 10px;
	}
}

/* v0.5.3: Standortdetails, Karte und gemeinsame Projektmerkmale */
.jph-project-details {
	max-width: 1160px;
	margin: 58px auto 0;
	padding: 0 18px;
}

.jph-project-details__section + .jph-project-details__section {
	margin-top: 46px;
}

.jph-project-details__section h2 {
	margin: 0 0 18px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.8rem, 3vw, 2.65rem);
	line-height: 1.12;
}

.jph-project-details__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.jph-project-detail-card {
	min-width: 0;
	padding: 16px 17px;
	border: 1px solid var(--jph-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(35,48,39,.05);
}

.jph-project-detail-card small {
	display: block;
	margin-bottom: 6px;
	color: var(--jph-muted);
	font-size: .7rem;
}

.jph-project-detail-card strong {
	display: block;
	overflow-wrap: anywhere;
	font-size: .9rem;
	line-height: 1.35;
}

.jph-project-map {
	overflow: hidden;
	border: 1px solid var(--jph-line);
	border-radius: 18px;
	background: var(--jph-sand);
	box-shadow: 0 12px 30px rgba(35,48,39,.07);
}

.jph-project-map iframe {
	display: block;
	width: 100%;
	height: 390px;
	border: 0;
}

.jph-project-features-wrap {
	width: 100%;
}

.jph-project-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.jph-project-feature {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 13px;
	min-height: 78px;
	padding: 13px 15px;
	border: 1px solid rgba(89, 102, 74, .16);
	border-radius: 15px;
	background: #fff;
	color: var(--jph-ink);
	box-shadow: 0 8px 22px rgba(35, 48, 39, .045);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.jph-project-feature:hover {
	transform: translateY(-2px);
	border-color: rgba(89, 102, 74, .28);
	box-shadow: 0 12px 28px rgba(35, 48, 39, .08);
}

.jph-project-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--jph-olive);
	color: #fff;
	box-shadow: 0 7px 16px rgba(63, 73, 55, .20);
}

.jph-project-feature__icon svg {
	display: block;
	width: 23px;
	height: 23px;
}

.jph-project-feature__label {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
	line-height: 1.25;
}

.jph-project-feature__label strong {
	font-size: .84rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.jph-project-feature__label small {
	color: var(--jph-muted);
	font-size: .72rem;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.jph-project-features__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 45px;
	margin-top: 12px;
	padding: 0 16px;
	border: 1px solid rgba(89, 102, 74, .24);
	border-radius: 999px;
	background: var(--jph-sand);
	color: var(--jph-olive-dark);
	font: inherit;
	font-size: .8rem;
	font-weight: 700;
	cursor: pointer;
}

.jph-project-features__toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}

.jph-project-features-wrap.is-expanded .jph-project-features__toggle svg {
	transform: rotate(180deg);
}

@media (max-width: 900px) {
	.jph-project-details__grid,
	.jph-project-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.jph-project-details {
		margin-top: 42px;
		padding: 0 14px;
	}

	.jph-project-details__section + .jph-project-details__section {
		margin-top: 36px;
	}

	.jph-project-map iframe {
		height: 300px;
	}

	.jph-project-detail-card {
		padding: 14px;
	}

	.jph-project-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.jph-project-feature {
		min-height: 76px;
		padding: 11px;
		gap: 9px;
	}

	.jph-project-feature:nth-child(n+3) {
		display: none;
	}

	.jph-project-features-wrap.is-expanded .jph-project-feature {
		display: flex;
	}

	.jph-project-feature__icon {
		flex-basis: 39px;
		width: 39px;
		height: 39px;
		border-radius: 11px;
	}

	.jph-project-feature__icon svg {
		width: 21px;
		height: 21px;
	}

	.jph-project-feature__label strong {
		font-size: .78rem;
	}

	.jph-project-feature__label small {
		font-size: .68rem;
	}

	.jph-project-features__toggle {
		display: flex;
	}
}

@media (max-width: 370px) {
	.jph-project-features {
		grid-template-columns: 1fr;
	}

	.jph-project-feature:nth-child(2) {
		display: none;
	}

	.jph-project-features-wrap.is-expanded .jph-project-feature:nth-child(2) {
		display: flex;
	}
}

/* v0.5.7: Strukturierte Projektbeschreibung */
.jph-project-description-sections {
	display: grid;
	gap: 24px;
	margin-top: 24px;
}

.jph-project-description-section {
	padding: 0 0 22px;
	border-bottom: 1px solid var(--jph-line);
}

.jph-project-description-section:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.jph-project-description-section h3 {
	margin: 0 0 9px;
	color: var(--jph-ink);
	font-family: "Lora", Georgia, serif;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.35;
}

.jph-project-description-section__text {
	color: var(--jph-muted);
	font-size: .96rem;
	line-height: 1.78;
}

.jph-project-description-section__text p {
	margin: 0 0 12px;
}

.jph-project-description-section__text p:last-child {
	margin-bottom: 0;
}

.jph-project-description__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 45px;
	margin-top: 16px;
	padding: 0 16px;
	border: 1px solid rgba(89, 102, 74, .24);
	border-radius: 999px;
	background: var(--jph-sand);
	color: var(--jph-olive-dark);
	font: inherit;
	font-size: .82rem;
	font-weight: 700;
	cursor: pointer;
}

.jph-project-description__toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}

.jph-project-page__description.is-expanded .jph-project-description__toggle svg {
	transform: rotate(180deg);
}

@media (max-width: 720px) {
	.jph-project-description-sections {
		gap: 20px;
		margin-top: 20px;
	}

	.jph-project-description-section {
		padding-bottom: 18px;
	}

	.jph-project-description-section h3 {
		font-size: .96rem;
	}

	.jph-project-description-section__text {
		font-size: .88rem;
		line-height: 1.72;
	}

	.jph-project-description-section:nth-child(n+3) {
		display: none;
	}

	.jph-project-page__description.is-expanded .jph-project-description-section {
		display: block;
	}

	.jph-project-description__toggle {
		display: flex;
	}
}



/* v0.5.8: Umgebung und Entfernungen getrennt von der Ausstattung */
.jph-project-surroundings-section {
	padding-top: 2px;
}
.jph-project-surrounding .jph-project-feature__icon {
	background: var(--jph-olive-dark);
}

/* v0.6.0: Verfügbare Einheiten als kompakte Schlafzimmer-Akkordeons. */
.jph-unit-accordion {
	display: grid;
	gap: 16px;
}

.jph-unit-group {
	overflow: hidden;
	border: 1px solid var(--jph-line);
	border-left: 4px solid var(--jph-olive);
	border-radius: 17px;
	background: var(--jph-white);
	box-shadow: 0 12px 30px rgba(35, 48, 39, 0.08);
}

.jph-unit-group__toggle {
	display: grid;
	grid-template-columns: 44px minmax(150px, 1.25fr) minmax(95px, .65fr) minmax(120px, .85fr) minmax(170px, 1.15fr);
	gap: 16px;
	align-items: center;
	width: 100%;
	min-height: 76px;
	padding: 14px 22px;
	border: 0;
	background: #fff;
	color: var(--jph-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.jph-unit-group__toggle:hover {
	background: rgba(244, 239, 229, 0.42);
}

.jph-unit-group__toggle > strong {
	font-size: .98rem;
}

.jph-unit-group__toggle > span:not(.jph-unit-group__chevron) {
	font-size: .87rem;
	font-weight: 700;
}

.jph-unit-group__toggle > span:last-child {
	text-align: right;
}

.jph-unit-group__chevron {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--jph-sand);
	color: var(--jph-olive-dark);
	transition: transform .2s ease, background .2s ease;
}

.jph-unit-group__chevron svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.jph-unit-group.is-open .jph-unit-group__chevron {
	transform: rotate(180deg);
	background: var(--jph-olive);
	color: #fff;
}

.jph-unit-group__panel[hidden] {
	display: none !important;
}

.jph-unit-group__panel {
	border-top: 1px solid var(--jph-line);
}

.jph-unit-table {
	width: 100%;
}

.jph-unit-table__head,
.jph-unit-table__row {
	display: grid;
	grid-template-columns: 66px .68fr .68fr 1.08fr .82fr .86fr 1.06fr 168px;
	align-items: center;
	column-gap: 12px;
}

.jph-unit-table__head {
	min-height: 44px;
	padding: 0 20px;
	background: rgba(244, 239, 229, .55);
	color: var(--jph-muted);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.jph-unit-table__row {
	min-height: 72px;
	padding: 10px 20px;
	border-top: 1px solid rgba(63, 73, 55, .1);
	font-size: .82rem;
}

.jph-unit-table__head + .jph-unit-table__row {
	border-top: 0;
}

.jph-unit-table__row:hover {
	background: rgba(244, 239, 229, .28);
}

.jph-unit-table__cell {
	min-width: 0;
	line-height: 1.35;
}

.jph-unit-table__cell > small {
	display: block;
	margin-top: 3px;
	color: var(--jph-muted);
	font-size: .64rem;
	white-space: normal;
}

.jph-unit-table__cell--price strong {
	display: block;
	font-size: .9rem;
	white-space: nowrap;
}

.jph-unit-plan {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--jph-line);
	border-radius: 10px;
	background: #fff;
	color: var(--jph-olive-dark);
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}

.jph-unit-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 150px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--jph-olive);
	border-radius: 11px;
	background: #fff;
	color: var(--jph-olive-dark);
	font-size: .78rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.jph-unit-plan:hover,
.jph-unit-view:hover {
	transform: translateY(-1px);
	background: var(--jph-olive);
	color: #fff;
}

.jph-unit-view:hover {
	box-shadow: 0 8px 18px rgba(63, 73, 55, .16);
}

.jph-unit-plan svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.jph-unit-view svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.jph-unit-view__icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.jph-unit-view__label {
	display: inline-block;
}

.jph-unit-table__cell--action {
	text-align: center;
}

.jph-unit-table__dash {
	color: var(--jph-muted);
}

@media (max-width: 980px) {
	.jph-unit-group__toggle {
		grid-template-columns: 40px minmax(140px, 1.3fr) minmax(90px, .7fr) minmax(110px, .8fr) minmax(145px, 1fr);
		gap: 10px;
		padding-inline: 15px;
	}

	.jph-unit-table__head,
	.jph-unit-table__row {
		grid-template-columns: 56px .62fr .62fr 1fr .76fr .82fr 1fr 158px;
		column-gap: 8px;
		padding-inline: 14px;
	}
}

@media (max-width: 720px) {
	.jph-project-units__heading {
		gap: 12px;
	}

	.jph-unit-accordion {
		gap: 12px;
	}

	.jph-unit-group {
		border-left-width: 3px;
		border-radius: 15px;
	}

	.jph-unit-group__toggle {
		grid-template-columns: 38px minmax(0, 1fr) auto;
		gap: 10px;
		min-height: 70px;
		padding: 11px 12px;
	}

	.jph-unit-group__toggle > strong {
		font-size: .92rem;
	}

	.jph-unit-group__toggle > span:nth-of-type(2) {
		font-size: .74rem;
		text-align: right;
	}

	.jph-unit-group__toggle > span:nth-of-type(3),
	.jph-unit-group__toggle > span:nth-of-type(4) {
		grid-column: 2 / -1;
		margin-top: -5px;
		color: var(--jph-muted);
		font-size: .72rem;
		font-weight: 600;
		text-align: left;
	}

	.jph-unit-group__toggle > span:nth-of-type(4) {
		justify-self: end;
		margin-top: -24px;
		text-align: right;
	}

	.jph-unit-table__head {
		display: none;
	}

	.jph-unit-table__row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 11px 14px;
		padding: 16px;
		font-size: .8rem;
	}

	.jph-unit-table__cell {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.jph-unit-table__cell::before {
		content: attr(data-label);
		color: var(--jph-muted);
		font-size: .62rem;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
	}

	.jph-unit-table__cell--plan,
	.jph-unit-table__cell--action {
		align-items: flex-start;
	}

	.jph-unit-table__cell--price {
		align-items: flex-end;
		text-align: right;
	}

	.jph-unit-table__cell--action {
		align-items: flex-end;
	}

	.jph-unit-plan {
		width: 42px;
		height: 42px;
	}

	.jph-unit-table__cell--action {
		grid-column: 1 / -1;
		align-items: stretch;
		text-align: left;
	}

	.jph-unit-view {
		width: 100%;
		min-width: 0;
		height: 48px;
		padding-inline: 16px;
		font-size: .88rem;
	}
}

@media (max-width: 720px) {
	.jph-unit-group__chevron {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.jph-unit-group__toggle > strong {
		grid-column: 2;
		grid-row: 1;
	}

	.jph-unit-group__toggle > span:nth-of-type(2) {
		grid-column: 3;
		grid-row: 1;
	}

	.jph-unit-group__toggle > span:nth-of-type(3) {
		grid-column: 2;
		grid-row: 2;
		margin-top: 0;
	}

	.jph-unit-group__toggle > span:nth-of-type(4) {
		grid-column: 3;
		grid-row: 2;
		margin-top: 0;
		justify-self: end;
	}
}

.jph-unit-view--modal {
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.jph-unit-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(19, 25, 20, 0.72);
	backdrop-filter: blur(7px);
}

.jph-unit-modal.is-open {
	display: flex;
}

body.jph-unit-modal-open {
	overflow: hidden;
}

.jph-unit-modal__panel {
	position: relative;
	width: min(720px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: clamp(24px, 4vw, 42px);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
	color: var(--jph-ink);
}

.jph-unit-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--jph-sand);
	color: var(--jph-ink);
	font-size: 27px;
	line-height: 1;
	cursor: pointer;
}

.jph-unit-modal h2 {
	margin: 0 44px 6px 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	line-height: 1.08;
}

.jph-unit-modal__name {
	margin: 0 0 24px;
	color: var(--jph-muted);
}

.jph-unit-modal__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.jph-unit-modal__grid > div {
	padding: 15px;
	border: 1px solid var(--jph-line);
	border-radius: 14px;
	background: var(--jph-sand);
}

.jph-unit-modal__grid small,
.jph-unit-modal__grid strong {
	display: block;
}

.jph-unit-modal__grid small {
	margin-bottom: 5px;
	color: var(--jph-muted);
	font-size: .74rem;
}

.jph-unit-modal__grid strong {
	font-size: .95rem;
}

.jph-unit-modal__plan {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 22px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--jph-olive);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 700px) {
	.jph-unit-modal {
		padding: 12px;
	}

	.jph-unit-modal__panel {
		max-height: calc(100vh - 24px);
		padding: 24px 18px;
		border-radius: 18px;
	}

	.jph-unit-modal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* v0.6.3: Klare, ausschließlich wohnungsbezogene Detailansicht */
.jph-single-unit,
.jph-single-unit * {
	box-sizing: border-box;
}

.jph-single-unit {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1500px, calc(100vw - 48px));
	margin: 26px 0 14px;
	padding: clamp(24px, 3vw, 42px);
	border: 1px solid rgba(63, 73, 55, .13);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 42px rgba(35, 48, 39, .07);
	font-family: "Lora", Georgia, serif;
	color: var(--jph-ink);
}

.jph-single-unit__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 25px;
}

.jph-single-unit__eyebrow {
	margin: 0 0 7px;
	color: var(--jph-gold);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.jph-single-unit__heading h2 {
	margin: 0 0 8px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 3.2vw, 3.1rem);
	line-height: 1.05;
	color: var(--jph-ink);
}

.jph-single-unit__heading p:not(.jph-single-unit__eyebrow) {
	max-width: 820px;
	margin: 0;
	color: var(--jph-muted);
	font-size: .96rem;
	line-height: 1.65;
}

.jph-single-unit__back {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(91, 108, 75, .28);
	border-radius: 999px;
	color: var(--jph-olive-dark);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.jph-single-unit__back:hover {
	background: var(--jph-sand);
	text-decoration: none;
}

.jph-single-unit__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.jph-single-unit__fact {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
	min-height: 82px;
	padding: 14px 16px;
	border: 1px solid var(--jph-line);
	border-radius: 15px;
	background: #fbfaf7;
}

.jph-single-unit__fact-icon {
	flex: 0 0 42px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--jph-olive);
	color: #fff;
	box-shadow: 0 7px 16px rgba(80, 96, 67, .19);
}

.jph-single-unit__fact-icon svg {
	width: 21px;
	height: 21px;
	fill: currentColor;
}

.jph-single-unit__fact > div {
	min-width: 0;
}

.jph-single-unit__fact small,
.jph-single-unit__fact strong {
	display: block;
}

.jph-single-unit__fact small {
	margin-bottom: 4px;
	color: var(--jph-muted);
	font-size: .74rem;
}

.jph-single-unit__fact strong {
	font-size: .96rem;
	line-height: 1.25;
	word-break: break-word;
}

.jph-single-unit__plan-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-top: 22px;
	padding: 20px 22px;
	border-radius: 16px;
	background: var(--jph-sand);
}

.jph-single-unit__plan-row strong,
.jph-single-unit__plan-row span {
	display: block;
}

.jph-single-unit__plan-row span {
	margin-top: 4px;
	color: var(--jph-muted);
	font-size: .82rem;
}

.jph-single-unit__plan {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--jph-olive);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.jph-single-unit__plan:hover {
	color: #fff;
	text-decoration: none;
	filter: brightness(.94);
}

.jph-single-unit__plan svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

@media (max-width: 1050px) {
	.jph-single-unit__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jph-single-unit {
		left: auto;
		transform: none;
		width: calc(100% - 28px);
		margin: 10px 14px 14px;
		padding: 20px 16px;
		border-radius: 17px;
	}

	.jph-single-unit__heading {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
		margin-bottom: 20px;
	}

	.jph-single-unit__heading h2 {
		font-size: 2rem;
	}

	.jph-single-unit__back {
		align-self: flex-start;
	}

	.jph-single-unit__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.jph-single-unit__fact {
		align-items: flex-start;
		flex-direction: column;
		gap: 9px;
		min-height: 128px;
		padding: 13px;
	}

	.jph-single-unit__fact-icon {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
	}

	.jph-single-unit__plan-row {
		align-items: stretch;
		flex-direction: column;
		padding: 17px;
	}

	.jph-single-unit__plan {
		width: 100%;
	}
}

/* v0.6.4: Ausführliche Einzelwohnungsseite nach dem Habihub-Prinzip – ohne ähnliche Objekte */
.jph-single-unit--expanded {
	width: min(1180px, calc(100vw - 48px));
	padding: clamp(26px, 4vw, 52px);
}

.jph-single-unit__heading--compact {
	align-items: center;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--jph-line);
}

.jph-single-unit__heading--compact h2 {
	margin-bottom: 0;
}

.jph-unit-detail-section {
	margin-top: 34px;
}

.jph-unit-detail-section + .jph-unit-detail-section {
	padding-top: 30px;
	border-top: 1px solid var(--jph-line);
}

.jph-unit-detail-section h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.55rem, 2.2vw, 2rem);
	line-height: 1.15;
	color: var(--jph-ink);
}

.jph-unit-detail-section h3 > span {
	flex: 0 0 38px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--jph-sand);
	color: var(--jph-olive);
}

.jph-unit-detail-section h3 svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.jph-unit-detail-section h4 {
	margin: 24px 0 12px;
	font-family: "Lora", Georgia, serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--jph-ink);
}

.jph-unit-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.jph-unit-detail-card {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
	min-height: 78px;
	padding: 15px 17px;
	border: 1px solid rgba(63, 73, 55, .10);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 9px 24px rgba(35, 48, 39, .055);
}

.jph-unit-detail-card__icon {
	flex: 0 0 38px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--jph-sand);
	color: var(--jph-olive);
}

.jph-unit-detail-card__icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.jph-unit-detail-card > div {
	min-width: 0;
}

.jph-unit-detail-card small,
.jph-unit-detail-card strong {
	display: block;
}

.jph-unit-detail-card small {
	margin-bottom: 3px;
	color: var(--jph-muted);
	font-size: .72rem;
}

.jph-unit-detail-card strong {
	font-size: .96rem;
	line-height: 1.25;
	word-break: break-word;
}

.jph-unit-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.jph-unit-feature-card {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 66px;
	padding: 13px 15px;
	border: 1px solid rgba(63, 73, 55, .10);
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 9px 22px rgba(35, 48, 39, .05);
}

.jph-unit-feature-card > span {
	flex: 0 0 34px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--jph-sand);
	color: var(--jph-olive);
}

.jph-unit-feature-card svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jph-unit-feature-card strong {
	font-size: .9rem;
	line-height: 1.3;
}

.jph-unit-plan-card {
	display: block;
	width: min(320px, 100%);
	overflow: hidden;
	border: 1px solid var(--jph-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(35, 48, 39, .07);
	color: var(--jph-ink);
	text-decoration: none;
}

.jph-unit-plan-card:hover {
	transform: translateY(-2px);
	color: var(--jph-ink);
	text-decoration: none;
	box-shadow: 0 16px 34px rgba(35, 48, 39, .11);
}

.jph-unit-plan-card__preview {
	display: grid;
	place-items: center;
	height: 230px;
	overflow: hidden;
	background: #f5f2ec;
}

.jph-unit-plan-card__preview object {
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.jph-unit-plan-card__preview > svg,
.jph-unit-plan-card__preview object span svg {
	width: 58px;
	height: 58px;
	fill: var(--jph-olive);
}

.jph-unit-plan-card__body {
	display: block;
	padding: 16px 18px 18px;
}

.jph-unit-plan-card__body strong,
.jph-unit-plan-card__body small {
	display: block;
}

.jph-unit-plan-card__body small {
	margin-top: 4px;
	color: var(--jph-muted);
}

.jph-unit-documents__empty {
	margin: 0;
	padding: 18px 20px;
	border-radius: 13px;
	background: var(--jph-sand);
	color: var(--jph-muted);
}

.jph-single-unit__footer {
	display: flex;
	justify-content: flex-start;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--jph-line);
}

@media (max-width: 900px) {
	.jph-unit-detail-grid,
	.jph-unit-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jph-single-unit--expanded {
		width: calc(100% - 28px);
		padding: 21px 16px 24px;
	}

	.jph-single-unit__heading--compact {
		align-items: stretch;
	}

	.jph-unit-detail-section {
		margin-top: 27px;
	}

	.jph-unit-detail-section + .jph-unit-detail-section {
		padding-top: 24px;
	}

	.jph-unit-detail-section h3 {
		font-size: 1.55rem;
	}

	.jph-unit-detail-grid,
	.jph-unit-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.jph-unit-detail-card {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		min-height: 116px;
		padding: 12px;
	}

	.jph-unit-feature-card {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		min-height: 104px;
		padding: 12px;
	}

	.jph-unit-plan-card {
		width: 100%;
	}
}


/* v0.6.5: Ruhiger Detailkopf und kompakte Ausstattung auf Mobilgeräten */
.jph-single-unit__heading--compact {
	align-items: center;
}

.jph-single-unit__heading--compact h2 {
	margin: 0;
	font-size: clamp(1.85rem, 2.6vw, 2.45rem);
}

.jph-unit-feature-wrap {
	width: 100%;
}

.jph-unit-feature-toggle {
	margin-top: 11px;
}

@media (max-width: 767px) {
	.jph-single-unit__heading--compact {
		display: flex;
		align-items: flex-start;
		gap: 13px;
		padding-bottom: 18px;
	}

	.jph-single-unit__heading--compact .jph-single-unit__back {
		order: 1;
		min-height: 40px;
		padding: 0 15px;
		font-size: .82rem;
	}

	.jph-single-unit__heading--compact h2 {
		order: 2;
		font-size: 1.75rem;
		line-height: 1.08;
	}

	.jph-unit-feature-card:nth-child(n+5) {
		display: none;
	}

	.jph-unit-feature-wrap.is-expanded .jph-unit-feature-card {
		display: flex;
	}

	.jph-unit-feature-toggle {
		display: flex;
	}
}

/* v0.6.6: Zuverlässige Grundriss-Vorschau auf Mobilgeräten.
 * Mobile Browser und die Breakdance-Gerätevorschau rendern eingebettete PDFs
 * häufig nicht. Desktop behält die echte PDF-Vorschau; mobil erscheint eine
 * klare, anklickbare Grundrisskarte und öffnet weiterhin das Original-PDF. */
.jph-unit-plan-card__mobile-preview {
	display: none;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 7px;
	padding: 24px;
	text-align: center;
	color: var(--jph-olive);
	background:
		linear-gradient(rgba(255,255,255,.78), rgba(255,255,255,.78)),
		repeating-linear-gradient(0deg, transparent 0 23px, rgba(94,111,77,.10) 23px 24px),
		repeating-linear-gradient(90deg, transparent 0 23px, rgba(94,111,77,.10) 23px 24px),
		#f5f2ec;
}

.jph-unit-plan-card__mobile-preview strong,
.jph-unit-plan-card__mobile-preview small {
	display: block;
}

.jph-unit-plan-card__mobile-preview strong {
	font-size: 1rem;
	line-height: 1.2;
}

.jph-unit-plan-card__mobile-preview small {
	max-width: 210px;
	font-size: .78rem;
	line-height: 1.35;
	color: var(--jph-muted);
}

.jph-unit-plan-card__mobile-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 15px;
	background: var(--jph-olive);
	color: #fff;
	box-shadow: 0 10px 24px rgba(49, 67, 42, .18);
}

.jph-unit-plan-card__mobile-icon svg {
	width: 29px;
	height: 29px;
	fill: none;
	stroke: currentColor;
}

@media (max-width: 767px) {
	.jph-unit-plan-card__preview {
		height: 190px;
	}

	.jph-unit-plan-card__preview object {
		display: none;
	}

	.jph-unit-plan-card__mobile-preview {
		display: flex;
	}
}


/* v0.6.7: Editoriale Einzelwohnungsseite mit klarer Datenhierarchie */
.jph-property-overview__project-name {
	margin: 0 0 8px;
	color: var(--jph-gold);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.jph-property-overview__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 17px;
}

.jph-property-overview__badges span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 11px;
	border-radius: 999px;
	background: var(--jph-sand);
	color: var(--jph-olive-dark);
	font-size: .72rem;
	font-weight: 700;
}

.jph-single-unit--expanded {
	width: min(1500px, calc(100vw - 48px));
	padding: clamp(30px, 4vw, 56px);
	background: #fbfaf7;
}

.jph-single-unit__quicknav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--jph-line);
}

.jph-single-unit__plan-shortcut {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--jph-olive);
	color: #fff;
	font-size: .82rem;
	font-weight: 700;
	text-decoration: none;
}

.jph-single-unit__plan-shortcut:hover {
	color: #fff;
	text-decoration: none;
	filter: brightness(.95);
}

.jph-single-unit__plan-shortcut svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.jph-single-unit__heading--editorial {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin: 0;
	padding: 0 0 10px;
}

.jph-single-unit__heading--editorial h2 {
	margin: 2px 0 0;
	font-size: clamp(2rem, 3vw, 3rem);
}

.jph-single-unit__reference-line {
	margin: 8px 0 0;
	color: var(--jph-muted);
	font-size: .78rem;
}

.jph-single-unit__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.jph-single-unit__badges span {
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--jph-sand);
	color: var(--jph-olive-dark);
	font-size: .74rem;
	font-weight: 700;
}

.jph-unit-detail-section {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.jph-unit-detail-section h4 {
	margin-top: 26px;
	font-size: 1.05rem;
}

.jph-unit-detail-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jph-unit-detail-card {
	min-height: 82px;
	padding: 16px 18px;
	border-color: rgba(63, 73, 55, .09);
	box-shadow: 0 10px 26px rgba(35, 48, 39, .045);
}

.jph-unit-detail-card--highlight {
	min-height: 96px;
	border-color: rgba(181, 152, 90, .24);
	background: linear-gradient(145deg, #fff 0%, #faf7ef 100%);
}

.jph-unit-detail-card--highlight strong {
	font-size: 1.08rem;
}

.jph-unit-feature-group + .jph-unit-feature-group {
	margin-top: 28px;
}

.jph-unit-feature-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jph-unit-feature-card {
	min-height: 70px;
}

.jph-unit-plan-card--wide {
	display: grid;
	grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
	width: 100%;
	max-width: 980px;
	min-height: 260px;
}

.jph-unit-plan-card--wide .jph-unit-plan-card__preview {
	height: 100%;
	min-height: 260px;
}

.jph-unit-plan-card__content {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	padding: clamp(28px, 4vw, 48px);
}

.jph-unit-plan-card__content small,
.jph-unit-plan-card__content strong,
.jph-unit-plan-card__content > span {
	display: block;
}

.jph-unit-plan-card__content small {
	margin-bottom: 8px;
	color: var(--jph-gold);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.jph-unit-plan-card__content strong {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.55rem, 2.4vw, 2.2rem);
	line-height: 1.15;
}

.jph-unit-plan-card__content > span:not(.jph-unit-plan-card__button) {
	margin-top: 10px;
	color: var(--jph-muted);
	font-size: .9rem;
}

.jph-unit-plan-card__button {
	margin-top: 24px;
	padding: 12px 17px;
	border-radius: 999px;
	background: var(--jph-olive);
	color: #fff;
	font-size: .82rem;
	font-weight: 700;
}

@media (max-width: 1100px) {
	.jph-unit-detail-grid,
	.jph-unit-feature-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jph-property-overview__project-name {
		margin-top: 2px;
	}

	.jph-single-unit--expanded {
		width: calc(100% - 28px);
		padding: 20px 15px 24px;
	}

	.jph-single-unit__quicknav {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
		margin-bottom: 20px;
		padding-bottom: 17px;
	}

	.jph-single-unit__quicknav .jph-single-unit__back,
	.jph-single-unit__plan-shortcut {
		justify-content: center;
		width: 100%;
	}

	.jph-single-unit__heading--editorial {
		align-items: flex-start;
		flex-direction: column;
		gap: 13px;
	}

	.jph-single-unit__heading--editorial h2 {
		font-size: 1.85rem;
	}

	.jph-single-unit__badges {
		justify-content: flex-start;
	}

	.jph-unit-detail-grid,
	.jph-unit-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.jph-unit-detail-card,
	.jph-unit-feature-card {
		align-items: center;
		flex-direction: row;
		min-height: 78px;
		padding: 11px;
	}

	.jph-unit-detail-card--highlight {
		min-height: 88px;
	}

	.jph-unit-plan-card--wide {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.jph-unit-plan-card--wide .jph-unit-plan-card__preview {
		height: 205px;
		min-height: 205px;
	}

	.jph-unit-plan-card__content {
		padding: 22px 20px 24px;
	}

	.jph-unit-plan-card__button {
		width: 100%;
		text-align: center;
	}
}

/* v0.6.9: besser lesbare Schnellinformationen im mobilen Wohnungs-Showcase. */
@media (max-width: 767px) {
	.jph-property-overview__facts {
		gap: 8px !important;
	}

	.jph-property-overview__facts > div {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		min-height: 84px !important;
		padding: 10px 5px 9px !important;
		border-radius: 13px !important;
	}

	.jph-property-overview__facts svg {
		width: 22px !important;
		height: 22px !important;
	}

	.jph-property-overview__facts small {
		margin: 7px 0 4px !important;
		font-size: 12px !important;
		font-weight: 600 !important;
		line-height: 1.22 !important;
		color: #626a64 !important;
	}

	.jph-property-overview__facts strong {
		font-size: 16px !important;
		font-weight: 700 !important;
		line-height: 1.18 !important;
		color: #29332d !important;
	}
}

/* v0.7.0: gut lesbare, logisch verdichtete Mobilansicht der Einzelwohnung. */
@media (max-width: 767px) {
	/* Schnellinfos: zwei Karten oben, die Flächenkarte darunter über volle Breite. */
	.jph-property-overview__facts {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}

	.jph-property-overview__facts > div {
		min-height: 94px !important;
		padding: 13px 9px 12px !important;
		border-radius: 14px !important;
	}

	.jph-property-overview__facts > div:nth-child(3) {
		grid-column: 1 / -1 !important;
		min-height: 78px !important;
		display: grid !important;
		grid-template-columns: auto 1fr auto !important;
		align-items: center !important;
		justify-content: initial !important;
		column-gap: 12px !important;
		text-align: left !important;
	}

	.jph-property-overview__facts > div:nth-child(3) span {
		grid-row: 1 / span 2;
		justify-content: flex-start !important;
	}

	.jph-property-overview__facts > div:nth-child(3) small {
		grid-column: 2;
		margin: 0 0 2px !important;
	}

	.jph-property-overview__facts > div:nth-child(3) strong {
		grid-column: 3;
		grid-row: 1 / span 2;
		align-self: center;
	}

	.jph-property-overview__facts svg {
		width: 24px !important;
		height: 24px !important;
	}

	.jph-property-overview__facts small {
		font-size: 13px !important;
		line-height: 1.25 !important;
		color: #59625c !important;
	}

	.jph-property-overview__facts strong {
		font-size: 18px !important;
		line-height: 1.15 !important;
		white-space: normal !important;
	}

	/* Doppelte Statusinformationen unterhalb des Showcases mobil ausblenden. */
	.jph-single-unit__heading--editorial .jph-single-unit__eyebrow,
	.jph-single-unit__heading--editorial .jph-single-unit__badges {
		display: none !important;
	}

	.jph-single-unit__heading--editorial {
		gap: 0 !important;
		padding-bottom: 5px !important;
	}

	.jph-single-unit__heading--editorial h2 {
		font-size: 2rem !important;
		line-height: 1.08 !important;
	}

	/* Datenkarten für ältere Nutzer größer und kontrastreicher. */
	.jph-unit-detail-grid,
	.jph-unit-feature-grid {
		gap: 10px !important;
	}

	.jph-unit-detail-card {
		min-width: 0 !important;
		min-height: 98px !important;
		padding: 14px 12px !important;
		gap: 10px !important;
		border-radius: 14px !important;
	}

	.jph-unit-detail-card--highlight {
		min-height: 104px !important;
	}

	.jph-unit-detail-card__icon {
		flex: 0 0 40px !important;
		width: 40px !important;
		height: 40px !important;
	}

	.jph-unit-detail-card__icon svg {
		width: 22px !important;
		height: 22px !important;
	}

	.jph-unit-detail-card small {
		font-size: 12.5px !important;
		line-height: 1.25 !important;
		color: #606962 !important;
	}

	.jph-unit-detail-card strong,
	.jph-unit-detail-card--highlight strong {
		font-size: 16px !important;
		line-height: 1.22 !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
	}

	/* Eine gemeinsame, mobile Ausstattungsliste mit nur einem Öffnen-Button. */
	.jph-unit-feature-card {
		min-width: 0 !important;
		min-height: 82px !important;
		padding: 12px 10px !important;
		gap: 9px !important;
		align-items: center !important;
		flex-direction: row !important;
	}

	.jph-unit-feature-card > span {
		flex: 0 0 38px !important;
		width: 38px !important;
		height: 38px !important;
	}

	.jph-unit-feature-card strong {
		min-width: 0 !important;
		font-size: 13.5px !important;
		line-height: 1.28 !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
	}

	.jph-unit-feature-collection:not(.is-expanded) .is-jph-mobile-extra {
		display: none !important;
	}

	.jph-unit-feature-toggle--all {
		display: flex !important;
		width: 100% !important;
		min-height: 48px !important;
		margin-top: 14px !important;
		justify-content: center !important;
		font-size: 14px !important;
	}

	/* Grundriss mobil nur einmal erklären und großzügig anklickbar machen. */
	.jph-unit-plan-card--wide {
		display: block !important;
		border-radius: 15px !important;
	}

	.jph-unit-plan-card--wide .jph-unit-plan-card__preview {
		height: 128px !important;
		min-height: 128px !important;
	}

	.jph-unit-plan-card__mobile-preview {
		padding: 14px !important;
		gap: 5px !important;
	}

	.jph-unit-plan-card__mobile-preview strong,
	.jph-unit-plan-card__mobile-preview small {
		display: none !important;
	}

	.jph-unit-plan-card__mobile-icon {
		width: 54px !important;
		height: 54px !important;
	}

	.jph-unit-plan-card__content {
		padding: 18px 16px 17px !important;
	}

	.jph-unit-plan-card__content small,
	.jph-unit-plan-card__content > span:not(.jph-unit-plan-card__button) {
		display: none !important;
	}

	.jph-unit-plan-card__content strong {
		font-size: 1.35rem !important;
		line-height: 1.15 !important;
	}

	.jph-unit-plan-card__button {
		display: block !important;
		width: 100% !important;
		min-height: 48px !important;
		margin-top: 14px !important;
		padding: 14px 16px !important;
		text-align: center !important;
		font-size: 14px !important;
	}

	.jph-single-unit__footer {
		margin-top: 26px !important;
		padding-top: 20px !important;
	}

	.jph-single-unit__back--footer {
		justify-content: center !important;
		width: 100% !important;
		min-height: 48px !important;
		font-size: 14px !important;
	}
}


/* v0.7.1: Ausstattung auf Mobilgeräten einspaltig und vollständig lesbar. */
@media (max-width: 767px) {
	.jph-unit-feature-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 10px !important;
	}

	.jph-unit-feature-card {
		width: 100% !important;
		min-width: 0 !important;
		min-height: 68px !important;
		padding: 12px 14px !important;
		gap: 12px !important;
		align-items: center !important;
		flex-direction: row !important;
	}

	.jph-unit-feature-card > span {
		flex: 0 0 40px !important;
		width: 40px !important;
		height: 40px !important;
	}

	.jph-unit-feature-card strong {
		min-width: 0 !important;
		font-size: 16px !important;
		line-height: 1.3 !important;
		white-space: normal !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
	}
}


/* v0.7.2: mobile Ausstattung garantiert einspaltig; Asset-Version erhöht, damit alte CSS-Caches nicht greifen. */
@media screen and (max-width: 820px) {
	.jph-single-unit--expanded .jph-unit-feature-grid,
	.jph-single-unit--expanded .jph-unit-feature-group .jph-unit-feature-grid,
	.jph-single-unit--expanded [data-jph-features] .jph-unit-feature-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 10px !important;
		width: 100% !important;
	}

	.jph-single-unit--expanded .jph-unit-feature-card {
		display: flex !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		min-height: 68px !important;
		padding: 12px 14px !important;
		gap: 12px !important;
		align-items: center !important;
		flex-direction: row !important;
		box-sizing: border-box !important;
	}

	.jph-single-unit--expanded .jph-unit-feature-card > span {
		flex: 0 0 40px !important;
		width: 40px !important;
		height: 40px !important;
	}

	.jph-single-unit--expanded .jph-unit-feature-card strong {
		display: block !important;
		min-width: 0 !important;
		font-size: 16px !important;
		line-height: 1.3 !important;
		white-space: normal !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
	}
}

@media (max-width: 720px) {
  .jph-project-units {
    padding-inline: 0;
  }

  .jph-unit-group {
    overflow: hidden;
  }

  .jph-unit-table__row {
    gap: 12px;
    padding: 16px 14px 18px;
    font-size: .87rem;
    background: #fff;
  }

  .jph-unit-table__cell {
    justify-content: center;
    min-height: 58px;
    padding: 10px 12px;
    gap: 4px;
    border: 1px solid rgba(89, 102, 74, .08);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 20px rgba(29, 35, 25, .04);
  }

  .jph-unit-table__cell::before {
    font-size: .64rem;
    letter-spacing: .05em;
  }

  .jph-unit-table__cell--price,
  .jph-unit-table__cell--action,
  .jph-unit-table__cell--plan {
    align-items: flex-start;
    text-align: left;
  }

  .jph-unit-table__cell--action {
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 0;
  }

  .jph-unit-view {
    justify-content: center;
    height: 52px;
    padding-inline: 18px;
    border-radius: 14px;
    font-size: .95rem;
    box-shadow: 0 8px 18px rgba(63, 73, 55, .10);
  }

  .jph-unit-view__icon svg {
    width: 19px;
    height: 19px;
  }

  .jph-unit-view__label {
    font-weight: 700;
  }
}

/* Mobile readability refinement for available units */
@media (max-width: 720px) {
  .jph-project-units__heading > h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.02;
  }

  .jph-unit-group__toggle {
    grid-template-columns: 42px 1fr auto;
    padding: 14px 14px;
  }

  .jph-unit-group__toggle > strong {
    font-size: 1.06rem;
  }

  .jph-unit-table__row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .jph-unit-table__cell {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    padding: 12px 14px;
    gap: 3px;
    text-align: left;
  }

  .jph-unit-table__cell::before {
    font-size: .68rem;
  }

  .jph-unit-table__cell > strong,
  .jph-unit-table__cell > span,
  .jph-unit-table__cell > a,
  .jph-unit-table__cell {
    font-size: .98rem;
    line-height: 1.32;
  }

  .jph-unit-table__cell > small {
    font-size: .78rem;
    margin-top: 2px;
  }

  .jph-unit-table__cell--price,
  .jph-unit-table__cell--plan,
  .jph-unit-table__cell--action {
    align-items: flex-start;
    text-align: left;
  }

  .jph-unit-table__cell--action {
    margin-top: 2px;
  }

  .jph-unit-view {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    font-size: 1rem;
    gap: 10px;
  }

  .jph-unit-view__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .jph-unit-view__icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Mobile unit cards: concise, readable and action-led */
.jph-unit-mobile-card {
	display: none;
}

@media (max-width: 720px) {
	.jph-unit-table__row {
		display: block !important;
		padding: 0 !important;
		background: #fff;
	}

	.jph-unit-table__row > .jph-unit-table__cell {
		display: none !important;
	}

	.jph-unit-mobile-card {
		display: block;
		padding: 17px 15px 16px;
	}

	.jph-unit-mobile-card__top {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 14px;
		padding-bottom: 14px;
		border-bottom: 1px solid rgba(63, 73, 55, .10);
	}

	.jph-unit-mobile-card__top > div:first-child {
		min-width: 0;
	}

	.jph-unit-mobile-card__type {
		display: block;
		margin-bottom: 2px;
		color: var(--jph-gold);
		font-size: .72rem;
		font-weight: 700;
		letter-spacing: .07em;
		text-transform: uppercase;
	}

	.jph-unit-mobile-card__unit {
		display: block;
		color: var(--jph-ink);
		font-family: "Playfair Display", Georgia, serif;
		font-size: 1.35rem;
		line-height: 1.1;
	}

	.jph-unit-mobile-card__top small {
		display: block;
		margin-top: 4px;
		color: var(--jph-muted);
		font-size: .74rem;
	}

	.jph-unit-mobile-card__price {
		flex: 0 0 auto;
		text-align: right;
	}

	.jph-unit-mobile-card__price strong {
		display: block;
		color: var(--jph-ink);
		font-size: 1.14rem;
		line-height: 1.15;
		white-space: nowrap;
	}

	.jph-unit-mobile-card__price small {
		font-size: .72rem;
	}

	.jph-unit-mobile-card__facts {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin-top: 13px;
	}

	.jph-unit-mobile-card__facts > span {
		display: grid;
		grid-template-columns: 24px 1fr;
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: 6px;
		min-width: 0;
		padding: 10px 8px;
		border-radius: 11px;
		background: var(--jph-sand);
	}

	.jph-unit-mobile-card__facts svg {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 20px;
		height: 20px;
		fill: var(--jph-olive);
	}

	.jph-unit-mobile-card__facts b {
		grid-column: 2;
		grid-row: 1;
		font-size: .98rem;
		line-height: 1.1;
		white-space: nowrap;
	}

	.jph-unit-mobile-card__facts small {
		grid-column: 2;
		grid-row: 2;
		color: var(--jph-muted);
		font-size: .61rem;
		line-height: 1.1;
	}

	.jph-unit-mobile-card__actions {
		display: flex;
		gap: 9px;
		margin-top: 13px;
	}

	.jph-unit-mobile-card__actions a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		min-height: 50px;
		padding: 0 14px;
		border-radius: 12px;
		font-size: .9rem;
		font-weight: 700;
		text-decoration: none;
	}

	.jph-unit-mobile-card__actions svg {
		width: 18px;
		height: 18px;
		fill: currentColor;
	}

	.jph-unit-mobile-card__plan {
		flex: 0 0 auto;
		border: 1px solid rgba(89, 102, 74, .26);
		background: #fff;
		color: var(--jph-olive-dark);
	}

	.jph-unit-mobile-card__view {
		flex: 1 1 auto;
		border: 1px solid var(--jph-olive);
		background: var(--jph-olive);
		color: #fff;
	}
}


/* 0.7.9: Keep the mobile primary action readable against global link styles. */
@media (max-width: 720px) {
  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view,
  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view:link,
  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view:visited,
  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view:hover,
  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view:focus,
  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view:active {
    background: var(--jph-olive) !important;
    border-color: var(--jph-olive) !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view svg,
  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view svg path {
    fill: currentColor !important;
    color: #fff !important;
  }

  .jph-unit-mobile-card__actions .jph-unit-mobile-card__view {
    font-size: .96rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
  }
}

/* 0.8.1: Keep the desktop unit action white on olive hover. */
.jph-unit-view:hover,
.jph-unit-view:focus-visible {
  background: var(--jph-olive) !important;
  border-color: var(--jph-olive) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.jph-unit-view:hover .jph-unit-view__label,
.jph-unit-view:focus-visible .jph-unit-view__label,
.jph-unit-view:hover .jph-unit-view__icon,
.jph-unit-view:focus-visible .jph-unit-view__icon {
  color: #fff !important;
}

.jph-unit-view:hover svg,
.jph-unit-view:focus-visible svg,
.jph-unit-view:hover svg path,
.jph-unit-view:focus-visible svg path {
  color: #fff !important;
  fill: currentColor !important;
}

/* 0.8.2: API units without a WordPress detail post use the same clear action button and open the existing details modal. */
button.jph-unit-view,
button.jph-unit-mobile-card__view {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 720px) {
  .jph-unit-mobile-card__actions a,
  .jph-unit-mobile-card__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }
}
