/* Arzt Verzeichnis – Frontend-Styles */

.arzt-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.arzt-filter-field {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
}

.arzt-filter-field input[type="search"],
.arzt-filter-field select {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-size: 1rem;
	background: #fff;
}

/* Select2 an die restlichen Filterfelder angleichen. */
.arzt-filter-field .select2-container {
	width: 100% !important;
}

.arzt-filter-field .select2-container--default .select2-selection--single {
	height: auto;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #fff;
}

.arzt-filter-field .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 1.4;
	font-size: 1rem;
	color: #1c1c1c;
}

.arzt-filter-field .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	top: 0;
	right: 0.5rem;
}

.arzt-filter-field .select2-container--default.select2-container--open .select2-selection--single,
.arzt-filter-field .select2-container--default .select2-selection--single:focus {
	border-color: #b1122e;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: #b1122e;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	padding: 0.5rem;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
}

.arzt-active-filters__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
}

.arzt-active-filter {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #f0f0f0;
	border: 1px solid #d5d5d5;
	border-radius: 999px;
	padding: 0.35rem 0.9rem;
	font-size: 0.9rem;
	line-height: 1.4;
	cursor: pointer;
	color: #1c1c1c;
}

.arzt-active-filter:hover {
	background: #e2e2e2;
}

.arzt-active-filter span {
	font-weight: 700;
}

.arzt-flex-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.arzt-card {
	flex: 1 1 calc(33.333% - 1.25rem);
	min-width: 260px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.arzt-card:hover,
.arzt-card:focus {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.arzt-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.arzt-card__fachrichtung {
	color: #b1122e;
	font-size: 0.9rem;
}

.arzt-card__title {
	font-weight: 700;
	font-size: 1.05rem;
	color: #1c1c1c;
}

.arzt-card__arrow {
	color: #b1122e;
	font-size: 1.25rem;
	flex-shrink: 0;
}

.arzt-no-results {
	padding: 1rem 0;
}

[aria-busy="true"] {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.arzt-grid-wrapper {
	position: relative;
	min-height: 4rem;
}

.arzt-grid-wrapper[aria-busy="true"]::after {
	content: "";
	position: absolute;
	top: 2rem;
	left: 50%;
	width: 2.5rem;
	height: 2.5rem;
	margin-left: -1.25rem;
	border: 3px solid rgba(177, 18, 46, 0.2);
	border-top-color: #b1122e;
	border-radius: 50%;
	animation: arzt-spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.arzt-grid-wrapper[aria-busy="true"]::after {
		animation-duration: 1.5s;
	}
}

/* Live-Suche-Widget (z. B. Startseite) */
.arzt-live-search__form {
	display: flex;
	align-items: center;
	gap: 0.75rem 0;
	    flex-wrap: wrap;
}

.arzt-live-search__label {
	flex: 0 0 auto;
	color:var(--awb-color5);
	width: 100%;
	font-weight: 700;
}


/* Eigener Positionierungskontext nur für das Eingabefeld: das Popup soll exakt
   dessen Breite/Position übernehmen, nicht die des Labels oder des Buttons. */
.arzt-live-search__input-wrap {
	position: relative;
	flex: 1 1 auto;
}

.arzt-live-search__input-wrap input[type="search"] {
	width: 100%;
	padding: 0 1rem;
	border: 1px solid rgba(0, 0, 0, 0.3);
	border-right-width: 0px!important;
	border-radius: 8px 0px 0px 8px;
	font-size:1.125rem;
	background: #fff;
	height: 42px;
	transition: border-color 0.4s ease-in-out;
}
.arzt-live-search__input-wrap input[type="search"]:focus{
	border-color:var(--awb-color5);
}
.arzt-live-search__input-wrap input[type="search"]::placeholder {
  	opacity: 0.4!important;
	font-style: italic;
	font-size: 1.125rem;
}
.arzt-live-search__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	border: none;
	background: #b1122e;
	color: #fff;
	border-radius: 0px 8px 8px 0px;
	cursor: pointer;
	height:42px;
	transition: background 0.3s ease-in-out;
}

.arzt-live-search__submit:hover,
.arzt-live-search__submit:focus {
	background: var(--awb-color6);
}
.arzt-live-search__submit svg{
	transition: transform 0.3s ease-in-out;
}
.arzt-live-search__submit:hover svg{
	transform: scale(1.1);
}
.arzt-live-search__submit-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: arzt-spin 0.7s linear infinite;
}

.arzt-live-search__submit.is-loading .arzt-live-search__submit-icon {
	display: none;
}

.arzt-live-search__submit.is-loading .arzt-live-search__submit-spinner {
	display: block;
}
.arzt-live-search__results[aria-busy="true"] {
	transition: opacity 0.2s ease-in-out;
	border: 1px solid rgba(255,255,255,0);
	opacity: 0;
}
.arzt-live-search__results {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	right: -52px;
	z-index: 100;
	background: #fff;
	border: 1px solid var(--awb-color5);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 320px;
	overflow-y: auto;
	transition: opacity 0.2s ease-in-out;
}

.arzt-live-search__results[hidden] {
	display: none !important;
}

.arzt-live-search__results[aria-busy="true"] ul{
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.arzt-live-search__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.arzt-live-search__item{
	border-bottom: 1px solid var(--awb-color3);
}
.arzt-live-search__item:last-child{
	border-bottom: 0px solid var(--awb-color3);
}
.arzt-live-search__item a {
	display: flex;
	flex-direction: column;
	gap: 0rem;
	padding: 0.6rem 1rem;
	text-decoration: none;
	color: inherit;
	position: relative;
}
.arzt-live-search__item a::after {
	font-family: 'med' !important;
	content: "\e90b";
	position: absolute;
	right: 25px;
    top: 50%;
    transform: translateY(-50%);
	font-size: 0.85rem;
	transition: all 0.3s ease-in-out;
	opacity: 0;
	color:var(--awb-color5);
}
.arzt-live-search__item a:hover::after {
	right: 15px;
	opacity: 1;
}
.arzt-live-search__item a:hover,
.arzt-live-search__item a:focus {
	background: #f7f7f7;
}

.arzt-live-search__item-fach {
	color: #b1122e;
	font-size: 0.9rem;
}

.arzt-live-search__item-title {
	font-weight: 700;
	font-size: 1.08rem;
	color: #1c1c1c;
}

.arzt-live-search__empty {
	margin: 0;
	padding: 6px 1rem;
	background: var(--awb-color5);
	color: #fff!important;
	margin-bottom: 0!important;
}

.arzt-live-search__error {
	color: #b1122e;
	font-weight: 600;
}

@media (max-width: 782px) {
	.arzt-card {
		flex: 1 1 100%;
	}
}
@media screen and (max-width: 640px) {
	.arzt-live-search__input-wrap input[type="search"]::placeholder {
		font-size: 1rem;
	}
	.arzt-live-search__input-wrap input[type="search"] {
		font-size:1rem;
	}
}