/* ============================================================
   landfair/freie-wohnungen — Frontend CSS
   Präfix: fw-
   ============================================================ */

/* ── Wrapper & Header ──────────────────────────────────────── */
.fw-wrap {
	--fw-akzent: #1a3c5e;
	--fw-preisfarbe: #1a3c5e;
	--fw-spalten: 3;
	--fw-radius: 12px;
	--fw-schatten: 0 2px 8px rgba(0, 0, 0, 0.08);
	--fw-schatten-hover: 0 8px 28px rgba(0, 0, 0, 0.14);

	background: #f4f5f7;
	padding: 48px 32px 56px;
	font-family: inherit;
	box-sizing: border-box;
}

.fw-header {
	margin-bottom: 36px;
}

.fw-ueberschrift {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	color: #1a1a2e;
	margin: 0 0 12px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.fw-einleitung {
	font-size: 0.975rem;
	color: #5a6478;
	margin: 0;
	max-width: 520px;
	line-height: 1.6;
}

/* ── Grid ──────────────────────────────────────────────────── */
.fw-grid {
	display: grid;
	grid-template-columns: repeat( var(--fw-spalten), 1fr );
	gap: 24px;
}

/* ── Karte ─────────────────────────────────────────────────── */
.fw-karte {
	background: #ffffff;
	border-radius: var(--fw-radius);
	box-shadow: var(--fw-schatten);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.fw-karte:hover {
	box-shadow: var(--fw-schatten-hover);
	transform: translateY(-3px);
}

/* ── Bild ──────────────────────────────────────────────────── */
.fw-bild-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8eaed;
	flex-shrink: 0;
}

.fw-bild-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.fw-karte:hover .fw-bild-wrap img {
	transform: scale(1.04);
}

.fw-bild-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #d8dde6;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a94a6;
	font-size: 0.85rem;
}

/* ── Karten-Body ───────────────────────────────────────────── */
.fw-karte-body {
	padding: 20px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0;
}

.fw-karte-titel {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 4px;
	line-height: 1.35;
}

.fw-karte-adresse {
	font-size: 0.82rem;
	color: #7a8394;
	margin: 0 0 14px;
}

.fw-adresse-link {
	color: #7a8394;
	text-decoration: none;
	border-bottom: 1px solid #c5cad4;
	transition: color 0.2s, border-color 0.2s;
}

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

/* ── Preis ─────────────────────────────────────────────────── */
.fw-preis-zeile {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 10px;
}

.fw-preis {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--fw-preisfarbe);
	line-height: 1;
}

.fw-preis-label {
	font-size: 0.75rem;
	color: #9aa3b0;
	font-weight: 400;
}

/* ── Meta-Zeile ────────────────────────────────────────────── */
.fw-meta-zeile {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	color: #5a6478;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.fw-meta-dot {
	color: #c5cad4;
	font-size: 0.7rem;
}

/* ── Button ────────────────────────────────────────────────── */
.fw-button-wrap {
	margin-top: auto;
}

.fw-button {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--fw-akzent);
	color: #ffffff;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: calc( var(--fw-radius) * 0.5 );
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	box-sizing: border-box;
	letter-spacing: 0.01em;
}

.fw-button:hover,
.fw-button:focus {
	opacity: 0.88;
	color: #ffffff;
	text-decoration: none;
}

/* ── Leerzustand ───────────────────────────────────────────── */
.fw-leer {
	text-align: center;
	padding: 48px 24px;
	color: #7a8394;
	font-size: 0.95rem;
	background: #ffffff;
	border-radius: var(--fw-radius);
	grid-column: 1 / -1;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.fw-grid {
		grid-template-columns: repeat( min( var(--fw-spalten), 2 ), 1fr );
	}
}

@media (max-width: 640px) {
	.fw-wrap {
		padding: 32px 16px 40px;
	}

	.fw-grid {
		grid-template-columns: 1fr;
	}

	.fw-preis {
		font-size: 1.25rem;
	}
}
