/* ============================================================
   Notdienst Apotheken – Widget Styles
   Bewusst neutral gehalten, um sich gut ins Impreza-Theme
   einzufügen. Farben über CSS-Variablen leicht anpassbar.
   ============================================================ */

.nda-widget {
	--nda-color-primary: #b3122f;
	--nda-color-text: #2c2c2c;
	--nda-color-muted: #6b6b6b;
	--nda-color-border: #e4e4e4;
	--nda-color-bg-card: #ffffff;
	--nda-color-bg-error: #fdecec;

	font-family: inherit;
	color: var(--nda-color-text);
	max-width: 100%;
}

.nda-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: end;
	margin-bottom: 24px;
	padding: 16px;
	background: #f7f7f7;
	border-radius: 8px;
}

.nda-filter-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nda-filter-form__field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--nda-color-muted);
}

.nda-filter-form__field input[type="datetime-local"] {
	padding: 8px 10px;
	border: 1px solid var(--nda-color-border);
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
}

.nda-filter-form__submit {
	padding: 10px 24px;
	background: var(--nda-color-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.nda-filter-form__submit:hover {
	opacity: 0.9;
}

.nda-filter-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.nda-status {
	min-height: 1.2em;
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--nda-color-muted);
}

.nda-status.is-loading::before {
	content: "Lade Notdienst-Apotheken …";
}

.nda-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.nda-card {
	border: 1px solid var(--nda-color-border);
	border-radius: 10px;
	padding: 16px 18px;
	background: var(--nda-color-bg-card);
}

.nda-card__name {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--nda-color-text);
}

.nda-card__address {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--nda-color-text);
}

.nda-card__phone {
	margin: 0 0 8px;
	font-size: 14px;
}

.nda-card__phone a {
	color: var(--nda-color-primary);
	text-decoration: none;
}

.nda-card__phone a:hover {
	text-decoration: underline;
}

.nda-card__time {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nda-color-primary);
}

.nda-card__distance {
	margin: 0;
	font-size: 12px;
	color: var(--nda-color-muted);
}

.nda-empty,
.nda-error {
	padding: 16px;
	border-radius: 8px;
	font-size: 14px;
}

.nda-empty {
	background: #f7f7f7;
	color: var(--nda-color-muted);
}

.nda-error {
	background: var(--nda-color-bg-error);
	color: #a32020;
}

@media (max-width: 480px) {
	.nda-filter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.nda-filter-form__submit {
		width: 100%;
	}
}
