/* Freizeittipps – Filter, Karte, Kacheln */
.wrft {
	--wrft-blau: #364b75;
	--wrft-blau-dunkel: #26375a;
	--wrft-text: #4a4e57;
	--wrft-kachel: #f2e1d0;
	--wrft-rand: #d8c2aa;
	--wrft-rot: #d12b2b;
	color: var(--wrft-text);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 24px;
}
.wrft *, .wrft *::before, .wrft *::after { box-sizing: border-box; }

/* Filter */
.wrft-filter {
	background: #fff;
	border: 1px solid var(--wrft-rand);
	padding: 14px 16px;
	margin-bottom: 14px;
}
.wrft-filter-titel {
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-bottom: 10px;
	color: var(--wrft-text);
}
.wrft-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wrft .wrft-chip {
	appearance: none;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	margin: 0;
	padding: 8px 14px;
	min-height: 36px;
	border: 1px solid var(--wrft-blau);
	border-radius: 999px;
	background: #fff;
	color: var(--wrft-blau);
	cursor: pointer;
	transition: background .15s, color .15s;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
}
.wrft .wrft-chip:hover { background: #eef1f7; }
.wrft .wrft-chip.is-aktiv { background: var(--wrft-blau); color: #fff; }
.wrft .wrft-chip:focus-visible { outline: 2px solid var(--wrft-blau); outline-offset: 2px; }
.wrft-anzahl { opacity: .75; }

/* Karte */
.wrft-karte {
	height: var(--wrft-hoehe, 420px);
	border: 1px solid var(--wrft-rand);
	margin-bottom: 18px;
	background: #e9e4dc;
	z-index: 1;
}
.wrft-karte.is-vollbild {
	position: fixed !important;
	inset: 0;
	height: 100% !important;
	width: 100% !important;
	margin: 0;
	z-index: 100000;
	border: 0;
}
body.wrft-vollbild-offen { overflow: hidden; }
.wrft-pin-wrap { background: none; border: 0; }
.wrft-pin {
	position: relative;
	display: block;
	width: 26px;
	height: 26px;
	margin: 2px 0 0 2px;
	background: var(--wrft-rot);
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: -1px 2px 5px rgba(0,0,0,.35);
	transition: transform .15s, background .15s;
}
.wrft-pin::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	left: 6px;
	top: 6px;
	background: #fff;
	border-radius: 50%;
}
.wrft-pin-wrap.is-aktiv { z-index: 1000 !important; }
.wrft-pin-wrap.is-aktiv .wrft-pin { background: var(--wrft-blau); transform: rotate(-45deg) scale(1.25); }
.wrft-vollbild-knopf {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 34px !important;
	background: #fff;
	color: #333;
	cursor: pointer;
	border: 0;
	padding: 0;
}
.wrft-vollbild-knopf svg { width: 18px; height: 18px; }
.wrft .leaflet-popup-content { margin: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--wrft-text); }
.wrft-popup strong { display: block; font-size: 15px; margin-bottom: 2px; }
.wrft-popup span { display: block; }
.wrft-popup .wrft-popup-kat { font-size: 13px; opacity: .8; margin-bottom: 4px; }
.wrft-popup a { display: inline-block; margin-top: 6px; color: var(--wrft-blau); font-weight: 600; }
.wrft .leaflet-control-attribution { font-size: 11px; }

/* Kacheln */
.wrft-raster {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.wrft-kachel {
	display: flex;
	flex-direction: column;
	background: var(--wrft-kachel);
	border: 1px solid var(--wrft-rand);
	padding: 14px 16px 16px;
	transition: box-shadow .15s, border-color .15s;
	min-width: 0;
}
.wrft-kachel[hidden] { display: none; }
.wrft-kachel.is-aktiv { border-color: var(--wrft-blau); box-shadow: 0 0 0 2px var(--wrft-blau) inset; }
.wrft .wrft-titel {
	font-family: inherit;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--wrft-text) !important;
	margin: 0 0 4px;
	padding: 0;
	overflow-wrap: break-word;
	hyphens: auto;
	text-transform: none;
	letter-spacing: 0;
}
.wrft-kat { font-size: 14px; opacity: .85; margin-bottom: 10px; }
.wrft .wrft-infos { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; }
.wrft .wrft-infos li { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; padding: 0; }
.wrft .wrft-infos li::before { display: none; content: none; }
.wrft-infos svg { flex: 0 0 16px; margin-top: 3px; color: var(--wrft-text); }
.wrft .wrft-infos a { color: #212934; text-decoration: none; overflow-wrap: anywhere; }
.wrft .wrft-infos a:hover { text-decoration: underline; }
.wrft-aktionen { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wrft .wrft-btn {
	display: inline-block;
	background: var(--wrft-blau);
	border: 1px solid var(--wrft-blau);
	color: #fff !important;
	font-size: 14px;
	line-height: 1.3;
	padding: 6px 12px;
	border-radius: 3px;
	text-decoration: none;
}
.wrft .wrft-btn:hover { background: var(--wrft-blau-dunkel); border-color: var(--wrft-blau-dunkel); }
.wrft .wrft-zeigen {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font: inherit;
	font-size: 13px;
	background: none;
	border: 0;
	padding: 4px 0;
	margin: 0;
	color: var(--wrft-blau);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	box-shadow: none;
	min-height: 0;
	text-transform: none;
	letter-spacing: 0;
}
.wrft-zeigen svg { width: 14px; height: 14px; }
.wrft-leer { padding: 16px; background: var(--wrft-kachel); }

@media (max-width: 1100px) {
	.wrft-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
	.wrft-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.wrft-karte { height: min(var(--wrft-hoehe, 420px), 340px); }
	.wrft-filter { padding: 12px; }
	.wrft .wrft-chip { font-size: 13px; padding: 7px 11px; min-height: 34px; }
}
@media (max-width: 560px) {
	.wrft-raster { grid-template-columns: 1fr; }
	.wrft .wrft-titel { font-size: 18px; }
	.wrft-filter { padding: 10px 12px 12px; }
	.wrft-filter-titel { font-size: 13px; margin-bottom: 8px; }
	.wrft-chips { gap: 6px; }
	.wrft .wrft-chip { font-size: 13px; padding: 5px 10px; min-height: 30px; }
}
