/* Angebotsfinder – Frontend-Styles
   Farben zentral über die Variablen anpassbar. */

.lhaf {
	--lhaf-blau: #0073C0;
	--lhaf-blau-dunkel: #00568f;
	--lhaf-blau-hell: #EAF4FB;
	--lhaf-dunkel: #1a2733;
	--lhaf-grau: #5a6772;
	--lhaf-grau-hell: #f5f7f9;
	--lhaf-border: #e1e6ea;
	--lhaf-radius: 6px;

	max-width: 1140px;
	margin: 0 auto;
	color: var(--lhaf-dunkel);
}

.lhaf *, .lhaf *::before, .lhaf *::after { box-sizing: border-box; }

/* Header */
.lhaf-header { margin-bottom: 36px; max-width: 640px; }

.lhaf-overline {
	display: block;
	width: 60px;
	height: 4px;
	background: var(--lhaf-blau);
	margin-bottom: 20px;
}

.lhaf-header h2 {
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 300;
	line-height: 1.2;
	margin: 0 0 14px;
}

.lhaf-header h2 strong { font-weight: 700; }
.lhaf-header p { color: var(--lhaf-grau); font-size: 17px; margin: 0; }

/* Filter */
.lhaf-filtergroup { margin-bottom: 22px; }

.lhaf-filterlabel {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8a949d;
	margin: 0 0 10px;
}

.lhaf-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.lhaf-chip {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	padding: 10px 18px;
	background: var(--lhaf-grau-hell);
	color: var(--lhaf-dunkel);
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.lhaf-chip:hover { background: var(--lhaf-blau-hell); color: var(--lhaf-dunkel); }

.lhaf-chip:focus-visible {
	outline: 3px solid var(--lhaf-blau);
	outline-offset: 2px;
}

.lhaf-chip[aria-pressed="true"] {
	background: var(--lhaf-blau);
	color: #fff;
}

/* Ergebniszeile */
.lhaf-resultbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 28px 0 20px;
	padding-top: 20px;
	border-top: 1px solid var(--lhaf-border);
	flex-wrap: wrap;
}

.lhaf-count { font-size: 15px; color: var(--lhaf-grau); margin: 0; }
.lhaf-count strong { color: var(--lhaf-dunkel); }

.lhaf-reset {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--lhaf-blau);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 0;
}

.lhaf-reset:focus-visible { outline: 3px solid var(--lhaf-blau); outline-offset: 2px; }

/* Karten */
.lhaf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.lhaf-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--lhaf-border);
	border-radius: var(--lhaf-radius);
	padding: 26px 26px 22px;
	transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.lhaf-card:hover {
	border-color: var(--lhaf-blau);
	box-shadow: 0 8px 24px rgba(0, 86, 143, .10);
	transform: translateY(-2px);
}

.lhaf-card.lhaf-hidden { display: none; }

.lhaf-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.lhaf-tag {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 3px;
	background: var(--lhaf-blau-hell);
	color: var(--lhaf-blau-dunkel);
}

.lhaf-tag--thema { background: var(--lhaf-grau-hell); color: var(--lhaf-grau); }

.lhaf-card h3 {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
}

.lhaf-card p {
	font-size: 15px;
	color: var(--lhaf-grau);
	flex-grow: 1;
	margin: 0 0 18px;
}

.lhaf-card a {
	font-size: 15px;
	font-weight: 700;
	color: var(--lhaf-blau);
	text-decoration: none;
	align-self: flex-start;
	border-bottom: 2px solid transparent;
	transition: border-color .15s ease;
}

.lhaf-card a:hover,
.lhaf-card a:focus-visible { border-color: var(--lhaf-blau); color: var(--lhaf-blau); }
.lhaf-card a:focus-visible { outline: 3px solid var(--lhaf-blau); outline-offset: 3px; }
.lhaf-card a::after { content: " \2192"; }

/* Leerer Zustand */
.lhaf-empty {
	display: none;
	text-align: center;
	padding: 60px 20px;
	background: var(--lhaf-grau-hell);
	border-radius: var(--lhaf-radius);
	color: var(--lhaf-grau);
}

.lhaf-empty.lhaf-visible { display: block; }

.lhaf-empty strong {
	color: var(--lhaf-dunkel);
	display: block;
	font-size: 18px;
	margin-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
	.lhaf-chip, .lhaf-card, .lhaf-card a { transition: none; }
	.lhaf-card:hover { transform: none; }
}
