/* ============================================================
   Wohnungs-Detailseite — CSS
   Präfix: wd-
   Eingebunden nur auf single-wohnung
   ============================================================ */

/* ── Seiten-Wrapper ────────────────────────────────────────── */
.wd-page {
	max-width: 1160px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	font-family: inherit;
	box-sizing: border-box;
}

/* ── Zurück-Link ───────────────────────────────────────────── */
.wd-zurueck-wrap {
	margin-bottom: 28px;
}

.wd-zurueck {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: #4a5568;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.wd-zurueck:hover {
	color: #1a3c5e;
	text-decoration: none;
}

.wd-zurueck svg {
	flex-shrink: 0;
}

/* ── Haupt-Layout (2 Spalten) ──────────────────────────────── */
.wd-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

/* ── Galerie (linke Spalte) ────────────────────────────────── */
.wd-hauptbild-wrap {
	border-radius: 14px;
	overflow: hidden;
	background: #e8eaed;
	aspect-ratio: 4 / 3;
	margin-bottom: 12px;
}

.wd-hauptbild {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

.wd-kein-foto {
	aspect-ratio: 4 / 3;
	background: #dde0e8;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a94a6;
	font-size: 0.9rem;
}

.wd-thumbnails {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.wd-thumb {
	width: 100px;
	height: 80px;
	border-radius: 7px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: #e8eaed;
	transition: border-color 0.18s ease, opacity 0.18s ease;
	flex-shrink: 0;
}

.wd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wd-thumb:hover {
	border-color: #9aafc4;
	opacity: 0.9;
}

.wd-thumb--aktiv {
	border-color: #1a3c5e;
}

/* ── Daten-Spalte (rechts) ─────────────────────────────────── */
.wd-titel {
	font-size: clamp(1.5rem, 2.5vw, 2.1rem);
	font-weight: 800;
	color: #1a1a2e;
	margin: 0 0 8px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.wd-adresse {
	font-size: 0.9rem;
	color: #6b7280;
	margin: 0 0 24px;
}

.wd-adresse-link {
	color: #6b7280;
	text-decoration: none;
	border-bottom: 1px solid #d1d5db;
	transition: color 0.2s, border-color 0.2s;
	display: inline-flex;
	align-items: center;
}

.wd-adresse-link:hover {
	color: #1a3c5e;
	border-color: #1a3c5e;
	text-decoration: none;
}

/* ── Daten-Box ─────────────────────────────────────────────── */
.wd-daten-box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 28px;
}

.wd-daten-feld {
	background: #ffffff;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wd-daten-label {
	font-size: 0.75rem;
	color: #9aa3b0;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wd-daten-wert {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.2;
}

/* ── Ausstattung ───────────────────────────────────────────── */
.wd-ausstattung {
	margin-bottom: 28px;
}

.wd-abschnitt-titel {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 12px;
}

.wd-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wd-badge {
	display: inline-block;
	background: #f0f4f8;
	border: 1px solid #dde3ea;
	color: #3a4a5c;
	font-size: 0.8rem;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 100px;
	white-space: nowrap;
}

/* ── Beschreibung ──────────────────────────────────────────── */
.wd-beschreibung {
	margin-bottom: 24px;
}

.wd-beschreibung-text {
	font-size: 0.9rem;
	color: #4a5568;
	line-height: 1.7;
}

.wd-beschreibung-text p {
	margin: 0 0 12px;
}

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
	.wd-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 480px) {
	.wd-page {
		padding: 20px 14px 40px;
	}

	.wd-daten-box {
		grid-template-columns: 1fr;
	}

	.wd-thumb {
		width: 64px;
		height: 48px;
	}
}
