/* ============================================================
   Händlersuche Widget
   ============================================================ */

.sany-haendlersuche {
	position: relative;
}

/* ----------------------------------------------------------
   Search bar
   ---------------------------------------------------------- */

.sany-haendlersuche__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.sany-haendlersuche__input {
	width: 100%;
	padding: .75rem 3rem .75rem 1rem;
	border: 1px solid #ccc;
	border-radius: .25rem;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.sany-haendlersuche__input:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* ----------------------------------------------------------
   Spinner
   ---------------------------------------------------------- */

.sany-haendlersuche__spinner {
	position: absolute;
	right: 12px;
	width: 18px;
	height: 18px;
	border: 2px solid #ccc;
	border-top-color: #0073aa;
	border-radius: 50%;
	display: none;
}

.sany-haendlersuche__spinner--visible {
	display: block;
	animation: sany-spin 0.7s linear infinite;
}

@keyframes sany-spin {
	to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------
   Results container — same max-width as the widget input
   ---------------------------------------------------------- */

.sany-haendlersuche__ergebnisse[hidden] {
	display: none;
}

/* ----------------------------------------------------------
   Status messages
   ---------------------------------------------------------- */

.sany-haendlersuche__meldung {
	margin: 0;
	padding: 12px 0;
	color: #555;
}

.sany-haendlersuche__fehler {
	color: #a00;
}

/* ----------------------------------------------------------
   Cards
   ---------------------------------------------------------- */

.sany-haendlersuche__karten {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sany-haendlersuche__karte {
	display: flex;
	gap: 16px;
	padding: 24px 0;
	border-radius: 0;
	align-items: flex-start;
	box-sizing: border-box;
}
.sany-haendlersuche__karte:not(:last-child) {
	border-bottom: 2px solid #0001;
}

/* Logo */

.sany-haendlersuche__logo-wrap {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sany-haendlersuche__logo {
	max-width: 56px;
	max-height: 56px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Card body */

.sany-haendlersuche__karte-inhalt {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

/* Dealer name */

.sany-haendlersuche__name {
	font-weight: 600;
	font-size: 1.5rem;
	color: inherit;
	text-decoration: none;
	word-break: break-word;
	line-height: 1.2;
	margin-bottom: 6px;
}

a.sany-haendlersuche__name:hover {
	text-decoration: underline;
}

/* Contact name */
/* Address */

.sany-haendlersuche__kontaktname,
.sany-haendlersuche__adresse {
	font-style: normal;
	opacity: .75;
	line-height: 1.7;
	margin: 0;
}

/* Contact links (phone / email) */

.sany-haendlersuche__kontakt {
	display: block;
	text-decoration: none;
	word-break: break-all;
	line-height: 1.7;
}

.sany-haendlersuche__kontakt:hover {
	text-decoration: underline;
}
