/*
 * Ärzte-Verzeichnis
 *
 * Layout reagiert per Container Queries auf die tatsächlich verfügbare Breite
 * (Elementor-Spalten sind unterschiedlich breit), nicht auf die Fensterbreite.
 * Selektoren sind bewusst etwas spezifischer (.aev-wrap …), damit Theme- und
 * Elementor-Kit-Styles für button, input, h3/h4 usw. nicht durchschlagen.
 */

.aev-root {
	--aev-primary: var(--e-global-color-primary, #002d72);
	--aev-secondary: var(--e-global-color-accent, #002d72);
	--aev-bg: #ffffff;
	--aev-karte-bg: #ffffff;
	--aev-rand: #dfe7ed;
	--aev-rand-aussen: #e4ebf0;
	--aev-rand-stark: #d3d8e0;
	--aev-text: var(--e-global-color-text, #1c1c1c);
	--aev-text-mute: #5f6672;
	--aev-primary-hell: color-mix(in srgb, var(--aev-primary) 6%, white);
	--aev-hellblau: #eef4fb;
	--aev-hellblau-rand: #d5e2f2;
	--aev-hellblau-hover: #e2ecf8;
	--aev-radius: 14px;
	--aev-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--aev-kopf: 100px; /* Höhe des fixierten Seitenkopfs, wird per JS gemessen */
}

.aev-wrap {
	container: aev-wrap / inline-size;
	background: var(--aev-bg);
	color: var(--aev-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	padding: clamp(1rem, 3vw, 2.5rem);
	border: 1px solid var(--aev-rand-aussen);
	border-radius: 16px;
	box-sizing: border-box;
}

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

.aev-wrap p,
.aev-wrap ul,
.aev-wrap dl,
.aev-wrap dd,
.aev-wrap h2,
.aev-wrap h3,
.aev-wrap h4 {
	margin: 0;
	padding: 0;
}

.aev-wrap ul {
	list-style: none;
}

.aev-wrap [hidden] {
	display: none !important;
}

/* Theme-/Kit-Button-Styles neutralisieren */
.aev-wrap button {
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	min-height: 0;
	padding: 0;
	text-align: inherit;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

/* Elementors Link-Hover setzt die Schrift neu. Die höhere Spezifität hält
   Schrift und Größe der Bedienelemente in allen Zuständen konstant. */
.aev-root .aev-wrap :is(.aev-btn, .aev-chip, .aev-weitere-aerzte, .aev-cta-button) {
	font-family: inherit;
	transform: none;
	scale: none;
	transition: none;
	animation: none;
	touch-action: manipulation;
}

.aev-root .aev-wrap .aev-btn {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
}

.aev-root .aev-wrap .aev-cta-button {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.5;
}

.aev-wrap button:focus-visible,
.aev-wrap a:focus-visible,
.aev-wrap input:focus-visible,
.aev-root button.aev-zum-filter:focus-visible {
	outline: 2px solid var(--aev-primary);
	outline-offset: 2px;
}

.aev-root .aev-icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

/* Sprungziele nicht unter dem fixierten Seitenkopf verstecken */
.aev-toolbar,
.aev-content,
.aev-fachgebiet-gruppe,
.aev-karte {
	scroll-margin-top: calc(var(--aev-kopf) + 1rem);
}

/* Nur für Screenreader */
.aev-wrap .aev-status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Hero ---------- */

.aev-wrap .aev-hero {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem 2rem;
	margin-bottom: 1.75rem;
}

.aev-hero-text {
	flex: 1 1 22rem;
	max-width: 40rem;
}

.aev-wrap .aev-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--aev-secondary);
	margin-bottom: 0.4rem;
}

.aev-wrap .aev-titel {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
	line-height: 1.2;
	color: var(--aev-primary);
	margin-bottom: 0.5rem;
	text-wrap: balance;
}

.aev-wrap .aev-untertitel {
	color: var(--aev-text-mute);
	text-wrap: pretty;
}

.aev-wrap .aev-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 7rem));
	gap: 1rem;
}

.aev-feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.45rem;
}

.aev-feature-icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--aev-karte-bg);
	border: 1px solid var(--aev-rand);
	color: var(--aev-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

.aev-feature-label {
	font-size: 0.78rem;
	line-height: 1.3;
	color: var(--aev-text-mute);
}

/* ---------- Toolbar: Suche + Fachgebiete ---------- */

.aev-toolbar {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	margin-bottom: 1.75rem;
}

.aev-suche {
	position: relative;
	max-width: 30rem;
}

.aev-suche-icon {
	position: absolute;
	left: 0.95rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--aev-text-mute);
	font-size: 1.05rem;
	pointer-events: none;
}

.aev-wrap input.aev-suche-input {
	display: block;
	width: 100%;
	height: 2.9rem;
	margin: 0;
	padding: 0 2.75rem 0 2.75rem;
	font: inherit;
	font-size: 1rem; /* ≥16px verhindert Auto-Zoom auf iOS */
	color: var(--aev-text);
	background: var(--aev-karte-bg);
	border: 1px solid var(--aev-rand-stark);
	border-radius: 999px;
	box-shadow: none;
	appearance: none;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.aev-wrap input.aev-suche-input::placeholder {
	color: #8a909b;
}

.aev-wrap input.aev-suche-input:focus {
	outline: none;
	border-color: var(--aev-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--aev-primary) 15%, transparent);
}

.aev-wrap input.aev-suche-input::-webkit-search-cancel-button {
	display: none;
}

.aev-wrap button.aev-suche-leeren {
	position: absolute;
	right: 0.45rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--aev-text-mute);
}

.aev-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.aev-wrap .aev-fachauswahl {
	display: none;
	min-width: 0;
	margin: 0;
}

.aev-fachauswahl-label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.aev-fachauswahl-feld {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 3rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--aev-rand-stark);
	border-radius: 12px;
	background: var(--aev-karte-bg);
	color: var(--aev-primary);
}

/* Das native Auswahlmenü bleibt bedienbar; die sichtbare Beschriftung darf
   mehrzeilig werden, damit auch lange Fachgebiete vollständig lesbar sind. */
.aev-wrap select.aev-fachauswahl-select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-width: 0;
	margin: 0;
	font: inherit;
	font-size: 1rem;
	background: var(--aev-karte-bg);
	color: var(--aev-text);
	opacity: 0;
	cursor: pointer;
}

.aev-fachauswahl-feld:has(select:focus-visible) {
	outline: 2px solid var(--aev-primary);
	outline-offset: 2px;
}

.aev-fachauswahl-text {
	flex: 1;
	min-width: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
	pointer-events: none;
}

.aev-fachauswahl-pfeil {
	pointer-events: none;
}

.aev-wrap button.aev-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.85rem 0.4rem 0.5rem;
	background: var(--aev-hellblau);
	border: 1px solid var(--aev-hellblau-rand);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--aev-text);
	white-space: nowrap;
}

.aev-wrap button.aev-chip[data-filter="alle"] {
	padding-left: 0.95rem;
}

.aev-chip-icon {
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	/* Weißer Grund hebt das Symbol vom hellblauen Chip ab */
	background: #fff;
	color: color-mix(in srgb, var(--aev-farbe, var(--aev-primary)) 85%, black);
}

.aev-chip em {
	font-style: normal;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--aev-text-mute);
	font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
	.aev-wrap button.aev-chip:hover {
		background: var(--aev-hellblau-hover);
		border-color: var(--aev-hellblau-rand);
		color: var(--aev-text);
	}
}

.aev-wrap button.aev-chip.is-active {
	background: var(--aev-primary);
	border-color: var(--aev-primary);
	color: #fff;
}

.aev-chip.is-active .aev-chip-icon {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.aev-chip.is-active em {
	color: rgba(255, 255, 255, 0.75);
}

/* Alle Fachgebiete ohne seitliches Wischen erreichen. */
@container aev-wrap (max-width: 639px) {
	.aev-chips {
		display: none;
	}

	.aev-wrap .aev-fachauswahl {
		display: block;
	}

	.aev-suche {
		max-width: none;
	}
}

/* ---------- Gruppen ---------- */

/* Abstand per gap statt Geschwister-Margin: ausgeblendete Gruppen erzeugen so
   keinen Versatz, jede gefilterte Überschrift steht an derselben Stelle */
.aev-content {
	display: flex;
	flex-direction: column;
	gap: 2.25rem;
}

.aev-wrap .aev-fachgebiet-titel {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--aev-primary);
	margin-bottom: 0.9rem;
}

.aev-fachgebiet-name {
	min-width: 0;
	overflow-wrap: anywhere;
}

.aev-fachgebiet-icon {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	background: color-mix(in srgb, var(--aev-farbe, var(--aev-primary)) 13%, white);
	color: color-mix(in srgb, var(--aev-farbe, var(--aev-primary)) 85%, black);
}

.aev-fachgebiet-anzahl {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--aev-text-mute);
	background: var(--aev-karte-bg);
	border: 1px solid var(--aev-rand);
	border-radius: 999px;
	padding: 0.05rem 0.5rem;
	font-variant-numeric: tabular-nums;
}

.aev-karten-liste {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 1rem;
}

@container aev-wrap (min-width: 760px) {
	.aev-karten-liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Nur die ersten N Karten – außer alles anzeigen, Filter oder Suche ist aktiv */
.aev-wrap .aev-karte-versteckt {
	display: none;
}

.aev-wrap.is-alle-sichtbar .aev-karte-versteckt,
.aev-wrap.is-gefiltert .aev-karte-versteckt,
.aev-wrap.is-suche .aev-karte-versteckt {
	display: grid;
}

.aev-wrap .aev-karte.aev-kein-treffer {
	display: none;
}

.aev-wrap.is-gefiltert .aev-weitere-aerzte,
.aev-wrap.is-suche .aev-weitere-aerzte {
	display: none;
}

/* Gruppen ohne sichtbare Karte ausblenden */
.aev-wrap:not(.is-alle-sichtbar):not(.is-gefiltert):not(.is-suche) .aev-fachgebiet-gruppe:not(:has(.aev-karte:not(.aev-karte-versteckt))) {
	display: none;
}

/* ---------- Karte ---------- */

/* Jede Karte besitzt eigene Zeilen. Deren Höhen werden auf Desktop pro
   sichtbarem Kartenpaar abgeglichen, auch nach Filtern und „Alle anzeigen“. */
.aev-karte {
	display: grid;
	min-width: 0;
	grid-template-rows: auto auto auto auto auto;
	row-gap: 0;
	margin-bottom: 1rem;
	background: var(--aev-karte-bg);
	border: 2px solid var(--aev-primary);
	border-radius: var(--aev-radius);
	box-shadow: 0 1px 2px rgba(0, 20, 60, 0.04);
	transition: border-color 150ms ease, box-shadow 200ms ease;
}

.aev-karte:has(.aev-details:not([hidden])) {
	box-shadow: 0 6px 20px rgba(0, 20, 60, 0.07);
}

.aev-karte-haupt {
	display: contents;
}

.aev-wrap .aev-karte-haupt > * {
	min-width: 0;
	margin-inline: 1.2rem;
	align-self: start;
}

.aev-karte-kopf {
	padding-top: 1.15rem;
}

/* Feste Zeilen, damit fehlende Tags/Heute-Zeilen nichts verrutschen lassen */
.aev-karte-kopf     { grid-row: 1; }
.aev-karte-haupt > .aev-tags     { grid-row: 2; }
.aev-karte-haupt > .aev-heute    { grid-row: 3; }
.aev-karte-haupt > .aev-aktionen { grid-row: 4; }
.aev-details        { grid-row: 5; }

.aev-karte-haupt > .aev-tags,
.aev-karte-haupt > .aev-heute {
	margin-top: 0.85rem;
}

/* Fehlen Tags oder Heute-Zeile, bleibt die Zeile leer – die Nachbarkarte bestimmt die Höhe */
.aev-wrap .aev-karte-haupt > .aev-aktionen {
	align-self: start;
	margin-top: 0;
	padding-top: 1.25rem;
	padding-bottom: 1.1rem;
}

/* Die Details vergrößern nur ihre eigene Karte; die Kopfzeilen bleiben bündig. */
@container aev-wrap (min-width: 760px) {
	.aev-karte {
		grid-template-rows: var(--aev-kartenzeilen, auto auto auto auto auto);
		align-self: start;
	}
}

.aev-karte-kopf {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.aev-avatar {
	flex: 0 0 3rem;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	overflow: hidden;
}

.aev-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aev-avatar-initialen {
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--aev-farbe, var(--aev-primary)) 13%, white);
	color: color-mix(in srgb, var(--aev-farbe, var(--aev-primary)) 80%, black);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

.aev-kopf-info {
	min-width: 0;
	padding-top: 0.05rem;
	overflow-wrap: anywhere;
}

.aev-wrap .aev-name {
	font-size: 1.05rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--aev-text);
	text-wrap: balance;
}

.aev-wrap .aev-fach {
	margin-top: 0.1rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: color-mix(in srgb, var(--aev-farbe, var(--aev-primary)) 75%, black);
}

.aev-wrap .aev-praxis-zeile {
	margin-top: 0.15rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--aev-text-mute);
}

.aev-ort {
	white-space: normal;
}

/* Schwerpunkte als Tags */
.aev-wrap .aev-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.aev-tag {
	max-width: 100%;
	overflow-wrap: anywhere;
	font-size: 0.8rem;
	line-height: 1.3;
	padding: 0.25rem 0.6rem;
	border-radius: 6px;
	background: var(--aev-hellblau);
	color: #3a404a;
}

.aev-tag-mehr {
	background: transparent;
	color: var(--aev-text-mute);
	padding-inline: 0.3rem;
	font-weight: 600;
}

/* Heute-Zeile */
.aev-wrap .aev-heute {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--aev-text);
}

.aev-heute .aev-icon {
	color: var(--aev-secondary);
	margin-top: 0.15em;
}

.aev-heute strong {
	font-weight: 600;
}

.aev-heute > span {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.4rem;
	min-width: 0;
}

.aev-heute .aev-zeitfenster {
	max-width: 100%;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}

.aev-heute.ist-frei {
	color: var(--aev-text-mute);
}

/* Aktionen */
.aev-aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: flex-start;
	gap: 0.5rem;
}

.aev-wrap .aev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	align-self: start;
	min-width: 0;
	height: auto;
	min-height: 2.75rem;
	max-width: 100%;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--aev-rand-stark);
	border-radius: 999px;
	background: var(--aev-karte-bg);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--aev-primary);
	text-decoration: none;
	white-space: normal;
}

.aev-btn > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.aev-wrap .aev-btn-primaer {
	background: var(--aev-primary);
	border-color: var(--aev-primary);
	color: #fff;
	font-variant-numeric: tabular-nums;
}

/* Telefon und Website teilen sich die Zeile; „Details“ rutscht bei wenig Platz rechtsbündig darunter */
.aev-wrap .aev-aktionen > .aev-btn:not(.aev-btn-ghost) {
	flex: 1 1 7.5rem;
}

.aev-wrap .aev-aktionen > .aev-btn-primaer:not(.aev-btn-ghost) {
	flex-grow: 1.6;
}

.aev-wrap .aev-aktionen > .aev-btn-ghost {
	flex: 0 0 auto;
	order: 1;
}

/* Ohne Website hält ein unsichtbarer Platzhalter deren Platz frei, damit der Telefonknopf in allen Karten gleich breit ist */
.aev-wrap .aev-aktionen:has(> .aev-btn-primaer):not(:has(> .aev-btn-website))::after {
	content: "";
	flex: 1 1 7.5rem;
}

.aev-wrap .aev-btn-ghost {
	border-color: transparent;
	margin-left: auto;
	padding-inline: 0.4rem;
	font-weight: 500;
}

.aev-root .aev-wrap .aev-details-toggle {
	font-size: 0.8125rem;
	font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
	.aev-wrap .aev-btn:hover {
		background: var(--aev-primary-hell);
		border-color: var(--aev-rand-stark);
		color: var(--aev-primary);
	}

	.aev-wrap .aev-btn-primaer:hover {
		background: color-mix(in srgb, var(--aev-primary) 88%, black);
		border-color: color-mix(in srgb, var(--aev-primary) 88%, black);
		color: #fff;
	}

	.aev-wrap .aev-btn-ghost:hover {
		border-color: transparent;
	}
}

.aev-chevron {
	transition: transform 200ms var(--aev-ease);
}

[aria-expanded="true"] > .aev-chevron {
	transform: rotate(180deg);
}

/* Einspaltige Karten benötigen keinen Abgleich mit einer Nachbarkarte. */
@container aev-wrap (max-width: 759px) {
	.aev-karte,
	.aev-wrap.is-alle-sichtbar .aev-karte-versteckt:not(.aev-kein-treffer),
	.aev-wrap.is-gefiltert .aev-karte-versteckt:not(.aev-kein-treffer),
	.aev-wrap.is-suche .aev-karte-versteckt:not(.aev-kein-treffer) {
		display: flex;
		flex-direction: column;
	}

	.aev-wrap .aev-karte-haupt > .aev-aktionen {
		align-self: stretch;
	}

	.aev-wrap .aev-aktionen > .aev-btn {
		padding-inline: 0.5rem;
	}

	.aev-wrap .aev-karte-haupt > * {
		margin-inline: 1rem;
	}

	.aev-avatar {
		flex-basis: 2.5rem;
		width: 2.5rem;
		height: 2.5rem;
	}

	.aev-karte-kopf {
		gap: 0.65rem;
	}

	.aev-details {
		padding-inline: 1rem;
	}
}

/* ---------- Details ---------- */

.aev-details {
	container: aev-details / inline-size;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.1rem 1.2rem 1.25rem;
	border-top: 1px solid var(--aev-rand);
	transition: opacity 200ms var(--aev-ease), transform 200ms var(--aev-ease);
}

@starting-style {
	.aev-details {
		opacity: 0;
		transform: translateY(-4px);
	}
}

.aev-details-raster {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

@container aev-details (min-width: 440px) {
	.aev-details-raster {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}
}

.aev-wrap .aev-block-titel {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--aev-text-mute);
	margin-bottom: 0.55rem;
}

/* Sprechzeiten */
.aev-wrap .aev-zeiten {
	display: grid;
	gap: 0.15rem;
	font-size: 0.875rem;
	line-height: 1.4;
}

.aev-zeiten-zeile {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	gap: 0.5rem;
	padding: 0.2rem 0.4rem;
	border-radius: 6px;
}

.aev-zeiten-zeile.ist-heute {
	background: color-mix(in srgb, var(--aev-secondary) 12%, white);
}

.aev-zeiten-zeile.ist-heute dt {
	color: var(--aev-text);
}

.aev-zeiten dt {
	font-weight: 600;
	color: var(--aev-text-mute);
}

.aev-zeiten dd span {
	display: block;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

/* Kontakt */
.aev-wrap .aev-kontakt {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.45;
}

.aev-kontakt li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	min-width: 0;
}

.aev-kontakt li > span,
.aev-kontakt li > a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.aev-kontakt .aev-icon {
	color: var(--aev-text-mute);
	margin-top: 0.2em;
}

.aev-wrap .aev-kontakt a {
	font: inherit;
	color: var(--aev-primary);
	text-decoration: none;
}

.aev-wrap .aev-kontakt a:hover {
	text-decoration: underline;
}

.aev-wrap .aev-kontakt a.aev-route {
	display: inline-block;
	margin-top: 0.2rem;
	font-weight: 600;
}

.aev-wrap .aev-fliesstext p:not(.aev-block-titel) {
	font-size: 0.875rem;
	line-height: 1.55;
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.aev-wrap .aev-fliesstext p + p {
	margin-top: 0.6rem;
}

.aev-hinweis-box {
	background: var(--aev-primary-hell);
	border-radius: 10px;
	padding: 0.9rem 1rem;
}

/* ---------- Leerer Zustand ---------- */

.aev-leer {
	text-align: center;
	padding: 2.5rem 1rem;
	background: var(--aev-karte-bg);
	border: 1px dashed var(--aev-rand-stark);
	border-radius: var(--aev-radius);
}

.aev-wrap .aev-leer-titel {
	font-weight: 700;
	color: var(--aev-primary);
}

.aev-wrap .aev-leer-text {
	margin: 0.25rem 0 1rem;
	font-size: 0.9rem;
	color: var(--aev-text-mute);
}

/* ---------- Alle anzeigen ---------- */

.aev-wrap button.aev-weitere-aerzte {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 2.75rem;
	margin-top: -0.75rem; /* zusammen mit dem gap: 1.5rem */
	padding: 0.9rem 1rem;
	background: var(--aev-karte-bg);
	border: 1px solid var(--aev-rand-stark);
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--aev-primary);
}

@media (hover: hover) and (pointer: fine) {
	.aev-wrap button.aev-weitere-aerzte:hover {
		background: var(--aev-primary-hell);
		color: var(--aev-primary);
	}
}

/* ---------- CTA ---------- */

.aev-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-top: 2.5rem;
	padding: 1.5rem 1.75rem;
	background: var(--aev-primary);
	color: #fff;
	border-radius: var(--aev-radius);
}

.aev-cta-text-wrap {
	flex: 1 1 20rem;
	max-width: 42rem;
}

.aev-wrap .aev-cta-titel {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.aev-wrap .aev-cta-text {
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.85;
}

.aev-wrap a.aev-cta-button {
	display: inline-block;
	/* Auf dunkelblauem Grund: hellblauer Knopf statt des früheren Türkis */
	background: var(--aev-hellblau);
	color: var(--aev-primary);
	text-decoration: none;
	padding: 0.7rem 1.2rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	min-height: 2.75rem;
}

.aev-wrap a.aev-cta-button:hover {
	background: #fff;
	color: var(--aev-primary);
}

/* ---------- Zurück zu Suche & Filter ---------- */

.aev-root button.aev-zum-filter {
	appearance: none;
	border: 0;
	margin: 0;
	font-family: inherit;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	touch-action: manipulation;
	position: fixed;
	left: 50%;
	bottom: max(1.25rem, env(safe-area-inset-bottom));
	z-index: 50;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.1rem;
	background: var(--aev-primary);
	color: #fff;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 20, 60, 0.22);
	opacity: 0;
	transform: translate(-50%, 0.75rem);
	pointer-events: none;
	transition: opacity 200ms var(--aev-ease);
}

.aev-root button.aev-zum-filter.ist-sichtbar {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

/* ---------- Schmal: Hero kompakter ---------- */

@container aev-wrap (max-width: 520px) {
	.aev-wrap .aev-features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	.aev-feature-icon {
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1.05rem;
	}

	.aev-cta {
		padding: 1.25rem;
	}
}

/* ---------- Reduzierte Bewegung: Positionsänderungen weg, Überblendungen bleiben ---------- */

@media (prefers-reduced-motion: reduce) {
	.aev-details,
	.aev-chevron {
		transition: opacity 200ms ease;
	}

	@starting-style {
		.aev-details {
			transform: none;
		}
	}

	.aev-root button.aev-zum-filter,
	.aev-root button.aev-zum-filter.ist-sichtbar {
		transform: translate(-50%, 0);
		transition: opacity 200ms ease;
	}
}
