/* Max Blank Händlersuche */
.mbh {
	--mbh-red: #ab182e;
	--mbh-red-dark: #8a1225;
	--mbh-sand: #efebe8;
	--mbh-sand-dark: #e4e0dc;
	--mbh-ink: #1a1a1a;
	--mbh-line: #d9d4cf;
	--mbh-muted: #4a4a4a;
	container-type: inline-size;
	color: var(--mbh-ink);
	font-family: inherit;
	margin: 0 0 48px;
}
.mbh *, .mbh *::before, .mbh *::after { box-sizing: border-box; }
.mbh [hidden] { display: none !important; }

/* Suche */
.mbh-search {
	background: var(--mbh-sand);
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.mbh .mbh-title {
	margin: 0;
	font-size: 34px;
	line-height: 1.15;
	font-weight: 600;
	border: 0;
	padding: 0;
}
.mbh .mbh-title::after { display: none; }
.mbh-lead { margin: 0; font-size: 17px; line-height: 1.45; color: #333; }
.mbh-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0; }
.mbh-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin: 0; }
.mbh-field--q { flex: 1 1 260px; }
.mbh-field--land { flex: 0 1 190px; }
.mbh-field--radius { flex: 0 1 130px; }
.mbh-field input,
.mbh-field select {
	height: 52px;
	width: 100%;
	border: 1px solid var(--mbh-ink);
	border-radius: 0;
	background: #fff;
	padding: 0 14px;
	font: inherit;
	font-size: 17px;
	font-weight: 400;
	color: var(--mbh-ink);
	margin: 0;
}
.mbh-field input:focus,
.mbh-field select:focus { outline: 2px solid var(--mbh-red); outline-offset: 1px; }
.mbh-geo {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 4px 0;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--mbh-red);
	cursor: pointer;
}
.mbh-geo:hover { color: var(--mbh-red-dark); }

/* Buttons */
.mbh .mbh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--mbh-ink);
	border-radius: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s;
}
.mbh .mbh-btn--primary { background: var(--mbh-red); border-color: var(--mbh-red); color: #fff; }
.mbh .mbh-btn--primary:hover { background: var(--mbh-red-dark); border-color: var(--mbh-red-dark); color: #fff; }
.mbh .mbh-btn--outline { background: #fff; color: var(--mbh-ink); }
.mbh .mbh-btn--outline:hover { background: var(--mbh-ink); color: #fff; }
.mbh .mbh-btn--dark { background: var(--mbh-ink); border-color: var(--mbh-ink); color: #fff; }
.mbh .mbh-btn--dark:hover { background: #000; color: #fff; }
.mbh .mbh-btn--block { width: 100%; min-height: 52px; }
.mbh .mbh-btn:disabled { opacity: .6; cursor: wait; }
.mbh-submit { height: 52px; padding: 0 30px !important; font-size: 17px !important; }

/* Tabs (schmal) */
.mbh-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid var(--mbh-ink);
	margin-top: 16px;
}
.mbh-tabs button {
	min-height: 44px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--mbh-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.mbh-tabs button[aria-selected="true"] { background: var(--mbh-ink); color: #fff; }

/* Ergebnisbereich */
.mbh-body { margin-top: 20px; display: flex; flex-direction: column; gap: 24px; }
.mbh-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mbh-hint { margin: 0; font-size: 16px; color: var(--mbh-muted); }
.mbh-listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mbh-listhead strong { font-size: 18px; }
.mbh-listhead span { font-size: 13px; color: var(--mbh-muted); }
.mbh-cards { display: flex; flex-direction: column; gap: 12px; }
.mbh.is-loading .mbh-cards { opacity: .5; }
.mbh-more { align-self: stretch; min-height: 50px !important; }
.mbh-message { background: var(--mbh-sand); padding: 14px 18px; font-size: 15px; }
.mbh-message p { margin: 0; }

/* Händlerkarte */
.mbh-card {
	border: 1px solid var(--mbh-line);
	border-top: 3px solid var(--mbh-red);
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fff;
}
.mbh-card__top { display: flex; gap: 14px; align-items: flex-start; }
.mbh-card__nr {
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--mbh-red); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.mbh-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mbh .mbh-card__name { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; border: 0; padding: 0; }
.mbh .mbh-card__name::after { display: none; }
.mbh-card__line { margin: 0; font-size: 14px; line-height: 1.45; color: #444; overflow-wrap: anywhere; }
.mbh-card__contact a { color: #444; text-decoration: none; }
.mbh-card__contact a:hover { color: var(--mbh-red); text-decoration: underline; }
.mbh-sep { margin: 0 8px; }
.mbh-card__dist { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; }
.mbh-card__dist strong { font-size: 18px; white-space: nowrap; }
.mbh-card__dist span { font-size: 12px; color: var(--mbh-muted); white-space: nowrap; }
.mbh-card__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 44px; }
.mbh-card__actions .mbh-btn { flex: 0 0 auto; min-width: 128px; }

/* Kein Treffer */
.mbh-empty {
	border: 1px solid var(--mbh-line);
	border-top: 3px solid var(--mbh-red);
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.mbh .mbh-empty h2 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; border: 0; padding: 0; }
.mbh .mbh-empty h2::after { display: none; }
.mbh-empty p { margin: 0; font-size: 16px; line-height: 1.5; color: #333; }
.mbh-empty__contact { border-top: 1px solid var(--mbh-line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.mbh-empty__contact strong { font-size: 18px; }
.mbh-empty__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mbh-empty__btns .mbh-btn { min-height: 52px; }

/* Karte */
.mbh-map {
	background: var(--mbh-sand-dark);
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.mbh-consent {
	background: #fff;
	padding: 26px 30px;
	margin: 24px;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}
.mbh-consent strong { font-size: 19px; }
.mbh-consent p { margin: 0; font-size: 14px; line-height: 1.5; color: #333; }
.mbh-consent a { font-size: 13px; color: var(--mbh-red); }
.mbh-mapcanvas { position: absolute; inset: 0; }

/* Schmal (Handy, schmale Spalte): Liste/Karte umschaltbar */
.mbh[data-mbh-view="liste"] .mbh-map { display: none; }
.mbh[data-mbh-view="karte"] .mbh-list { display: none; }
.mbh[data-mbh-view="karte"] .mbh-map { min-height: 70vh; }

@container (max-width: 640px) {
	.mbh-search { padding: 20px 16px; }
	.mbh .mbh-title { font-size: 26px; }
	.mbh-lead { font-size: 15px; }
	.mbh-field--q, .mbh-field--land, .mbh-field--radius { flex: 1 1 100%; }
	.mbh-submit { width: 100%; }
	.mbh-card { padding: 14px; }
	.mbh-card__nr { display: none; }
	.mbh-card__actions { padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mbh-card__actions .mbh-btn { min-width: 0; }
	.mbh-card__actions .mbh-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.mbh-sep { display: block; height: 0; overflow: hidden; margin: 0; }
	.mbh-empty { padding: 20px 16px; }
	.mbh .mbh-empty h2 { font-size: 20px; }
	.mbh-empty__btns { grid-template-columns: 1fr; }
}

/* Breit: Liste und Karte nebeneinander, keine Tabs */
@container (min-width: 960px) {
	.mbh-tabs { display: none !important; }
	.mbh-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
	.mbh[data-mbh-view] .mbh-list,
	.mbh[data-mbh-view] .mbh-map { display: flex; }
	.mbh-map { position: sticky; top: 100px; min-height: 560px; }
	.mbh[data-mbh-view="karte"] .mbh-map { min-height: 560px; }
}

/* Popup in der Karte */
.mbh-pop { font-family: inherit; color: var(--mbh-ink, #1a1a1a); display: flex; flex-direction: column; gap: 6px; padding: 2px 2px 4px; max-width: 320px; }
.mbh-pop__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mbh-pop__name { font-size: 16px; line-height: 1.25; font-weight: 700; }
.mbh-pop__dist { font-size: 14px; font-weight: 700; white-space: nowrap; }
.mbh-pop__line { margin: 0; font-size: 13px; line-height: 1.45; color: #444; overflow-wrap: anywhere; }
.mbh-pop__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.mbh .mbh-pop .mbh-btn { min-height: 38px; padding: 0 10px; font-size: 13px; min-width: 0; }
.mbh .mbh-pop .mbh-btn svg { width: 14px; height: 14px; }
.mbh-pop__actions .mbh-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }