/* Schnellsuche – Auslöser im Kopfbereich und modaler Suchdialog */
.tr-schnellsuche {
	--ss-akzent: var(--wp--preset--color--akzent, #b3141b);
	--ss-linie: var(--wp--preset--color--linie, #d9d5d0);
	--ss-leise: var(--wp--preset--color--text-leise, #5e5853);
	--ss-text: var(--wp--preset--color--text, #231f20);
}

.tr-schnellsuche__ausloeser {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--wp--custom--zielgroesse, 44px);
	min-width: var(--wp--custom--zielgroesse, 44px);
	padding: 0.375rem 0.75rem;
	font: inherit;
	font-weight: 600;
	color: var(--ss-text);
	text-decoration: none;
	background: transparent;
	border: var(--wp--custom--linie--fein, 1px) solid var(--wp--preset--color--linie-stark, #8c8580);
	border-radius: var(--wp--custom--radius--klein, 2px);
	cursor: pointer;
}

.tr-schnellsuche__ausloeser[hidden] {
	display: none;
}

.tr-schnellsuche__ausloeser:hover {
	border-color: var(--ss-text);
	color: var(--ss-akzent);
}

.tr-schnellsuche__ausloeser:focus-visible,
.tr-schnellsuche__schliessen:focus-visible,
.tr-schnellsuche__dialog a:focus-visible {
	outline: 3px solid var(--ss-akzent);
	outline-offset: 2px;
}

.tr-schnellsuche__symbol {
	flex: none;
}

.tr-schnellsuche__taste {
	padding: 0 0.375rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.8125rem;
	color: var(--ss-leise);
	border: var(--wp--custom--linie--fein, 1px) solid var(--ss-linie);
	border-radius: var(--wp--custom--radius--klein, 2px);
}

@media (max-width: 40rem) {
	.tr-schnellsuche__beschriftung,
	.tr-schnellsuche__taste {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

.tr-schnellsuche__dialog {
	width: min(44rem, calc(100vw - 2rem));
	max-height: min(40rem, calc(100dvh - 4rem));
	margin: 4rem auto auto;
	padding: var(--wp--preset--spacing--40, 1.5rem);
	color: var(--ss-text);
	background: var(--wp--preset--color--flaeche, #fff);
	border: var(--wp--custom--linie--fein, 1px) solid var(--ss-text);
	border-block-start: 4px solid var(--ss-akzent);
	border-radius: var(--wp--custom--radius--klein, 2px);
	box-shadow: 0 12px 32px rgb(35 31 32 / 0.18);
	overflow: auto;
}

.tr-schnellsuche__dialog::backdrop {
	background: rgb(35 31 32 / 0.6);
}

.tr-schnellsuche__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: var(--wp--preset--spacing--30, 1rem);
}

.tr-schnellsuche__titel {
	margin: 0;
	font-size: var(--wp--preset--font-size--mittel, 1.25rem);
}

.tr-schnellsuche__schliessen {
	min-width: var(--wp--custom--zielgroesse, 44px);
	min-height: var(--wp--custom--zielgroesse, 44px);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--ss-text);
	background: transparent;
	border: var(--wp--custom--linie--fein, 1px) solid var(--ss-linie);
	border-radius: var(--wp--custom--radius--klein, 2px);
	cursor: pointer;
}

.tr-schnellsuche__formular {
	display: grid;
	gap: 0.375rem;
}

.tr-schnellsuche__label {
	font-weight: 600;
}

.tr-schnellsuche__feld {
	min-height: var(--wp--custom--zielgroesse, 44px);
	padding: 0.5rem 0.75rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--mittel, 1.125rem);
	color: var(--ss-text);
	border: var(--wp--custom--linie--kraeftig, 2px) solid var(--ss-text);
	border-radius: var(--wp--custom--radius--klein, 2px);
}

.tr-schnellsuche__feld:focus-visible {
	outline: 3px solid var(--ss-akzent);
	outline-offset: 2px;
}

.tr-schnellsuche__status {
	min-height: 1.5em;
	margin: 0.75rem 0 0.25rem;
	font-size: var(--wp--preset--font-size--klein, 0.875rem);
	color: var(--ss-leise);
}

.tr-schnellsuche__ergebnisse {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tr-schnellsuche__ergebnisse:not(:empty) {
	border-block-start: var(--wp--custom--linie--fein, 1px) solid var(--ss-linie);
}

.tr-schnellsuche__treffer {
	display: grid;
	gap: 0.125rem;
	padding: 0.625rem 0.5rem;
	color: var(--ss-text);
	text-decoration: none;
	border-block-end: var(--wp--custom--linie--fein, 1px) solid var(--ss-linie);
	border-inline-start: 3px solid transparent;
}

.tr-schnellsuche__treffer:hover,
.tr-schnellsuche__treffer:focus-visible {
	background: var(--wp--preset--color--flaeche-alt, #f4f3f1);
	border-inline-start-color: var(--ss-akzent);
}

.tr-schnellsuche__treffer:focus-visible {
	outline-offset: -3px;
}

.tr-schnellsuche__treffertitel {
	font-weight: 600;
}

.tr-schnellsuche__eltern {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ss-leise);
}

.tr-schnellsuche__beschreibung {
	font-size: var(--wp--preset--font-size--klein, 0.875rem);
	color: var(--ss-leise);
}

.tr-schnellsuche__dialog mark {
	color: inherit;
	background: var(--wp--preset--color--pruefen-flaeche, #fff3d1);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--pruefen, #8a5a00);
}

.tr-schnellsuche__shops {
	margin-block-start: var(--wp--preset--spacing--40, 1.5rem);
	padding-block-start: var(--wp--preset--spacing--30, 1rem);
	font-size: var(--wp--preset--font-size--klein, 0.9375rem);
	border-block-start: var(--wp--custom--linie--kraeftig, 2px) solid var(--ss-text);
}

.tr-schnellsuche__shops p {
	margin: 0 0 0.5rem;
}

.tr-schnellsuche__hinweis {
	font-weight: 600;
}

.tr-schnellsuche__shopliste {
	display: grid;
	gap: 0.25rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.tr-schnellsuche__shopliste a,
.tr-schnellsuche__anfrage {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	min-height: 2rem;
	padding-block: 0.25rem;
	font-weight: 600;
	color: var(--ss-akzent);
	text-underline-offset: 0.2em;
}

.tr-schnellsuche__domain {
	font-weight: 400;
	font-size: 0.8125rem;
	color: var(--ss-leise);
}

@media (prefers-reduced-motion: no-preference) {
	.tr-schnellsuche__dialog[open] {
		animation: tr-schnellsuche-ein var(--wp--custom--bewegung--dauer, 180ms) var(--wp--custom--bewegung--kurve, ease);
	}
}

@keyframes tr-schnellsuche-ein {
	from {
		opacity: 0;
		transform: translateY(-0.5rem);
	}
}
