/* =========================================================================
 * „Einkaufen & Dienstleistungen“ (ua-orte 0.59.0) —
 * templates/parts/einkaufen-seite.php und die gefilterte Ansicht in
 * templates/taxonomy-branche.php (beide `.ua-bereichsseite.ua-ek`).
 *
 * Geladen auf /branche/einkaufen/ mit und ohne Filter
 * (ua_orte_einkaufen_assets()). Chip-Zeile (`ua-ent-chips`) und A–Z-Balken
 * (`ua-ent-az…`) kommen aus ua-orte-entdecken.css, das hier mitlädt — hier
 * steht nur, was abweicht oder neu ist. Die Fotokarten der Gruppen sind die
 * Brücken-Art `fotos` (ua-orte-bruecke.css).
 *
 * Gestaltungsregeln: Radius 10, kein Schatten, Playfair nur in h1/h2 und
 * Kartentiteln, Typostufen aus ua-massstab.css, Grenze 600 px, keine neue
 * Farbe. Farben über var() aus ua-farben.css mit Rückfall; palettenlos nur
 * Weiß #fff (Grund des Suchfelds) — Farbrunde.
 *
 * „Kennst du schon {Name}?“ (`ua-kds-gesicht…`, parts/kds-gesicht.php)
 * steht HIER, weil es nur diese Seite trägt. Bekommt eine zweite Seite ein
 * Gesicht, wandern die Regeln nach ua-orte.css zu `.ua-kds`.
 * ====================================================================== */

/* `hidden` muss gewinnen (0.59.1): ua-orte-einkaufen.js blendet Karten,
   Zustandszeilen und das Raster über das Attribut aus — Karte und Raster
   setzen selbst `display`, und eine Autorenregel schlägt sonst das
   Attribut. */
.ua-ek [hidden] {
	display: none !important;
}

/* --- Kopf ------------------------------------------------------------------ */

.ua-ek .ua-bereichsseite__titel.ua-bereichsseite__titel {
	font-size: var(--ua-t-h1, 2.6rem);
	line-height: 1.15;
}

.ua-ek .ua-ek-kopf__satz {
	font-size: var(--ua-t-fliess, 17px);
	opacity: 1;
	color: var(--ua-text-weich, #3d4753);
}

/* Chips: Tippfläche 44 px (Auftrag 2.3), Zahl leiser. Die Wischzeile am
   Handy und der Umbruch am Desktop kommen aus .ua-ent-chips. */
.ua-ek .ua-ek-chip {
	--ua-btn-hoehe: 44px;
	--ua-btn-polster-x: 14px;
	--ua-btn-groesse: var(--ua-t-klein, 15px);
	font-weight: 600;
	white-space: nowrap;
}

.ua-ek-chip__zahl {
	font-weight: 400;
}

/* --- Suche: unter den Chips, eigene Zeile, Desktop höchstens 320 px ------- */

.ua-ek-suche {
	position: relative;
	max-width: 320px;
	margin: 12px 0 0;
}

.ua-ek-suche__lupe {
	position: absolute;
	top: 50%;
	left: 14px;
	color: var(--ua-navy, #184058);
	transform: translateY(-50%);
	pointer-events: none;
}

/* Doppelte Klasse gegen die Feldregeln von Kadence. Schrift 17 px —
   unter 16 px zoomt iOS beim Antippen in die Seite. */
.ua-ek .ua-ek-suche__feld.ua-ek-suche__feld {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 14px 8px 44px;
	border: 1px solid var(--ua-sand, #d9cdb8);
	border-radius: var(--ua-radius, 10px);
	background: #fff;
	box-shadow: none;
	color: var(--ua-navy, #184058);
	font-family: var(--ua-sans, "Source Sans 3", system-ui, sans-serif);
	font-size: var(--ua-t-fliess, 17px);
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
}

.ua-ek .ua-ek-suche__feld.ua-ek-suche__feld:focus {
	border-color: var(--ua-navy, #184058);
	outline: 2px solid var(--ua-navy, #184058);
	outline-offset: 1px;
}

@media (max-width: 599.98px) {
	.ua-ek-suche {
		max-width: none;
	}
}

/* --- „Kennst du schon {Name}?“ — Foto links, Text rechts, kein Kasten ------ */

.ua-kds-gesicht {
	margin: 28px 0 0;
}

.ua-kds-gesicht__karte {
	display: flex;
	align-items: center;
	gap: 24px;
}

.ua-kds-gesicht__bild {
	display: block;
	flex: 0 0 340px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--ua-radius, 10px);
	background: var(--ua-warm, #ede6d8);
}

.ua-kds-gesicht__bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ua-kds-gesicht__text {
	flex: 1 1 auto;
	min-width: 0;
}

/* Kicker in Amber-Schrift — Amber selbst trägt auf hellem Grund keine Schrift. */
.ua-kds-gesicht__kicker {
	margin: 0 0 6px;
	color: var(--ua-amber-schrift, #8a5c08);
	font-size: var(--ua-t-kicker, 12px);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ua-ek .ua-kds-gesicht__titel.ua-kds-gesicht__titel {
	margin: 0 0 8px;
	color: var(--ua-navy, #184058);
	font-family: var(--ua-serif, "Playfair Display", Georgia, serif);
	font-size: var(--ua-t-zwischenkopf, 28px);
	font-weight: 700;
	line-height: 1.2;
}

.ua-kds-gesicht__titel a {
	color: inherit;
	text-decoration: none;
}

.ua-kds-gesicht__titel a:hover,
.ua-kds-gesicht__titel a:focus-visible {
	text-decoration: underline;
}

.ua-kds-gesicht__claim {
	margin: 0 0 12px;
	color: var(--ua-text-weich, #3d4753);
	font-size: var(--ua-t-fliess, 17px);
	line-height: 1.5;
}

.ua-kds-gesicht__fuss {
	margin: 0;
}

.ua-ek .ua-kds-gesicht__link.ua-kds-gesicht__link {
	color: var(--ua-navy, #184058);
	font-size: var(--ua-t-klein, 15px);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Platzhalter in Endgröße (die Seite liegt im Cache, der Ort kommt per
   Skript): Bild wie oben, daneben bzw. darunter die Höhe des Textblocks. */
.ua-kds-gesicht__karte--platzhalter .ua-kds-gesicht__text {
	min-height: 120px;
}

@media (max-width: 599.98px) {
	.ua-kds-gesicht {
		margin-top: 20px;
	}

	.ua-kds-gesicht__karte {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.ua-kds-gesicht__bild {
		flex: none;
		width: 100%;
		aspect-ratio: 16 / 10;
	}

	.ua-kds-gesicht__karte--platzhalter .ua-kds-gesicht__text {
		min-height: 150px;
	}
}

/* --- Gruppen: Fotokarten im Kasten (Brücken-Art `fotos`) ----------------- */

.ua-ek .ua-bruecke.ua-ek-gruppe {
	margin: 32px 0 0;
	scroll-margin-top: calc(var(--ua-kopf-hoehe, 80px) + 24px);
}

.ua-ek .ua-ek-gruppe .ua-bruecke__titel.ua-bruecke__titel {
	font-size: var(--ua-t-bandtitel, 22px);
}

/* --- Stand-Zeile der gefilterten Ansicht und „nichts gefunden“ ----------- */

.ua-ek .ua-ek-stand {
	scroll-margin-top: calc(var(--ua-kopf-hoehe, 80px) + 24px);
	margin-top: 20px;
	font-size: var(--ua-t-klein, 15px);
}

.ua-ek-nichts {
	margin: 8px 0 0;
	color: var(--ua-navy, #184058);
	font-size: var(--ua-t-fliess, 17px);
	font-weight: 600;
}

/* --- Alle von A bis Z ------------------------------------------------------ */

.ua-ek .ua-ek-az {
	margin: 32px 0 0;
}

.ua-ek-az__liste {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	columns: 3;
	column-gap: 32px;
}

.ua-ek-az__eintrag {
	margin: 0;
	border-bottom: 1px solid var(--ua-sand, #d9cdb8);
	break-inside: avoid;
}

.ua-ek .ua-ek-az__link.ua-ek-az__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 8px;
	min-height: 44px;
	padding: 10px 0;
	box-sizing: border-box;
	color: var(--ua-navy, #184058);
	text-decoration: none;
}

/* Doppelte Klasse unter .ua-ek (0.59.1): Am Handy maß die Abnahme 17 px
   statt 15 — die Schriftgröße steht deshalb mit derselben Gewichtung wie
   der Link, nicht als nackte Klasse. */
.ua-ek .ua-ek-az__name.ua-ek-az__name {
	font-size: var(--ua-t-fliess, 17px);
	font-weight: 600;
	line-height: 1.3;
}

.ua-ek .ua-ek-az__art.ua-ek-az__art {
	color: var(--ua-text-weich, #3d4753);
	font-size: var(--ua-t-klein, 15px);
	line-height: 1.3;
}

.ua-ek-az__link:hover .ua-ek-az__name,
.ua-ek-az__link:focus-visible .ua-ek-az__name {
	text-decoration: underline;
}

/* Zwischen Handy und Desktop zwei Spalten — drei mit Ortsart daneben
   brächen dort jede Zeile um. */
@media (min-width: 600px) and (max-width: 899.98px) {
	.ua-ek-az__liste {
		columns: 2;
	}
}

/* Handy: zwei Spalten, nur der Name. */
@media (max-width: 599.98px) {
	.ua-ek-az__liste {
		columns: 2;
		column-gap: 16px;
	}

	/* Zeile mindestens 44 px, bei einem umbrechenden Namen knapp darüber
	   (zwei Zeilen à 1,25 + 2 × 6 px ≈ 50 px statt 59). */
	.ua-ek .ua-ek-az__link.ua-ek-az__link {
		align-items: center;
		padding: 6px 0;
		font-size: var(--ua-t-klein, 15px);
	}

	.ua-ek .ua-ek-az__name.ua-ek-az__name {
		font-size: var(--ua-t-klein, 15px);
		line-height: 1.25;
	}

	.ua-ek .ua-ek-az__art.ua-ek-az__art {
		display: none;
	}
}
