/**
 * HGT Test-Index – Frontend-Styling.
 * Neutral gehalten, damit es sich ins HGT-Theme einfügt. Farben über
 * CSS-Variablen anpassbar.
 */
.hgt-ti {
	--hgt-accent: #DD3333;
	--hgt-accent-dark: #B22929;
	--hgt-star: #f5a623;
	--hgt-border: #e2e5e9;
	--hgt-muted: #6b7280;
	--hgt-bg-soft: #f6f7f9;
	--hgt-radius: 12px;
	--hgt-gap: 20px;
	color: #1f2933;
	font-size: 16px;
	max-width: 100% !important;
	box-sizing: border-box;
	overflow-x: hidden;
}
/* Volle-Breite-Ausrichtung (alignfull/alignwide) zieht den Block auf Mobil
 * sonst randlos über den ganzen Screen – Suchfeld/Filter brauchen etwas Luft
 * zum Bildschirmrand, sonst wirkt vor allem die Such-Pille überdimensioniert. */
@media ( max-width: 600px ) {
	.hgt-ti.alignfull,
	.hgt-ti.alignwide {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

.hgt-ti *,
.hgt-ti *::before,
.hgt-ti *::after {
	box-sizing: border-box;
}

.hgt-ti-heading {
	text-align: center;
	margin: 0 0 0.25em;
	font-size: clamp( 1.6rem, 3vw, 2.2rem );
}

/* Statistik-Zeile */
.hgt-ti-stats {
	text-align: center;
	color: var(--hgt-muted);
	font-size: 0.95rem;
	margin-bottom: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}
.hgt-ti-stats .hgt-ti-count {
	font-weight: 600;
	color: #1f2933;
}
.hgt-ti-stats .hgt-ti-sep {
	color: var(--hgt-border);
}

/* Steuerung */
.hgt-ti-controls {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	margin-bottom: 1rem;
}
.hgt-ti-search {
	position: relative;
	max-width: 620px;
	margin: 0 auto;
	width: 70%;
}
/* Lupe ist ein echter Submit-Button (Suche löst erst beim Abschicken aus,
 * nicht während des Tippens) – bleibt deshalb immer sichtbar/klickbar,
 * anders als vorher, wo sie bei Live-Suche der Zurücksetzen-Taste weichen musste. */
.hgt-ti-search-submit {
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY( -50% );
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hgt-muted);
	cursor: pointer;
	transition: color 0.15s ease;
}
.hgt-ti-search-submit:hover {
	color: var(--hgt-accent);
}
/* Lupe verschwindet, sobald ins Feld geklickt/getippt wird – Platz für den
 * Text, Absenden bleibt weiterhin per Enter oder Zurücksetzen-Button möglich. */
.hgt-ti-search:focus-within .hgt-ti-search-submit {
	display: none;
}
.hgt-ti-search-submit:focus-visible {
	outline: 3px solid rgba( 29, 122, 70, 0.4 );
	outline-offset: 1px;
}
.hgt-ti-search-input {
	width: 100%;
	padding: 0.8rem 4.6rem 0.8rem 1.1rem;
	border: 1px solid var(--hgt-border);
	border-radius: 999px;
	font-size: 1rem;
	line-height: 1.4;
	background: #fff;
	color: #1f2933;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.hgt-ti-search-input::placeholder {
	color: var(--hgt-muted);
	opacity: 1;
}
.hgt-ti-search-input:focus {
	outline: none;
	border-color: var(--hgt-accent);
	box-shadow: 0 0 0 3px rgba( 29, 122, 70, 0.15 );
}
/* Kurzzeitige Sperre nach einer Suche (Missbrauchsschutz, 2 Sekunden) –
 * rot statt der sonst üblichen grünen Akzentfarbe, damit der "Warten"-
 * Zustand eindeutig von einem normalen aktiven/fokussierten Feld zu
 * unterscheiden ist. */
.hgt-ti-search-input.is-locked {
	background: #fdf3f3;
	border-color: #d98b8b;
	color: #7a2323;
	cursor: wait;
}
.hgt-ti-search-input.is-locked:focus {
	border-color: #c23b3b;
	box-shadow: 0 0 0 3px rgba( 194, 59, 59, 0.15 );
}
/* Native Browser-Kreuze abschalten – wir haben einen eigenen Button. */
.hgt-ti-search-input::-webkit-search-cancel-button,
.hgt-ti-search-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

/* Eigener Zurücksetzen-Button – sitzt links neben dem Such-Button, beide
 * können gleichzeitig sichtbar sein (anders als bei der früheren Live-Suche,
 * wo sich Lupe und Kreuz denselben Platz teilten). */
.hgt-ti-search-clear {
	position: absolute;
	right: 2.5rem;
	top: 50%;
	transform: translateY( -50% );
	display: none;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hgt-muted);
	cursor: pointer;
}
.hgt-ti-search-clear.is-visible {
	display: inline-flex;
}
.hgt-ti-search-clear:hover {
	background: var(--hgt-bg-soft);
	color: #1f2933;
}
.hgt-ti-search-clear:focus-visible {
	outline: 3px solid rgba( 29, 122, 70, 0.4 );
	outline-offset: 1px;
}
/* Ohne JavaScript gibt es nichts zurückzusetzen. */
.hgt-ti:not( .is-js ) .hgt-ti-search-clear {
	display: none;
}

/* Toolbar: Filter links, Ansichts-Werkzeuge rechts */
.hgt-ti-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: flex-end;
	justify-content: center;
}
.hgt-ti-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}
.hgt-ti-viewtools {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	margin-left: auto;
}
@media ( max-width: 640px ) {
	.hgt-ti-viewtools { margin-left: 0; width: 100%; justify-content: center; }
}

@media ( max-width: 600px ) {
	.hgt-ti-search {
		width: 70%;
		margin: 0;
		margin-left: 0.25rem;
	}
}

@media ( max-width: 480px ) {
	.hgt-ti-toolbar,
	.hgt-ti-filters {
		flex-direction: column;
		align-items: stretch;
	}
	.hgt-ti-field {
		width: 100%;
	}
	.hgt-ti-select {
		width: 100%;
		min-width: 0;
		font-size: 1rem;
	}
	/* Runde Lupe/Kreuz-Buttons brauchen auf schmalen Screens weniger Platz,
	 * sonst bleibt für den Placeholder-Text kaum noch Raum. Auch insgesamt
	 * flacher, sonst wirkt die Pille auf einem schmalen Screen überdimensioniert. */
	.hgt-ti-search-input {
		padding: 0.6rem 3.6rem 0.6rem 0.9rem;
	}
	.hgt-ti-search-submit {
		right: 0.25rem;
		width: 1.9rem;
		height: 1.9rem;
	}
	.hgt-ti-search-clear {
		right: 1.95rem;
		width: 1.7rem;
		height: 1.7rem;
	}
}

/* A–Z-Gruppieren-Umschalter */
.hgt-ti-grouptoggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	height: 2.5rem;
	padding: 0 0.85rem;
	border: 1px solid var(--hgt-border);
	background: #fff;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1f2933;
	cursor: pointer;
	white-space: nowrap;
}
.hgt-ti-grouptoggle:hover { border-color: var(--hgt-accent); color: var(--hgt-accent); }
.hgt-ti-grouptoggle.is-active {
	background: var(--hgt-accent);
	border-color: var(--hgt-accent);
	color: #fff;
}
.hgt-ti-grouptoggle.is-hidden { display: none; }

/* Ansichtsumschalter (segmentiert) */
.hgt-ti-viewswitch {
	display: inline-flex;
	border: 1px solid var(--hgt-border);
	border-radius: 8px;
	overflow: hidden;
	height: 2.5rem;
}
.hgt-ti-viewbtn {
	width: 2.6rem;
	border: 0;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.hgt-ti-viewbtn svg {
	fill: currentColor;
	display: block;
}
.hgt-ti-viewbtn + .hgt-ti-viewbtn { border-left: 1px solid var(--hgt-border); }
.hgt-ti-viewbtn:hover { color: var(--hgt-accent); }
.hgt-ti-viewbtn.is-active { background: var(--hgt-accent); color: #fff; }
.hgt-ti-viewbtn:focus-visible { outline: 3px solid rgba( 29, 122, 70, 0.4 ); outline-offset: -3px; }
.hgt-ti-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.8rem;
	color: var(--hgt-muted);
}
.hgt-ti-field-label {
	padding-left: 0.5rem;
}
.hgt-ti-select {
	padding: 0.55rem 2rem 0.55rem 0.85rem;
	border: 1px solid var(--hgt-border);
	border-radius: 8px;
	background: #fff;
	font-size: 0.95rem;
	color: #1f2933;
	min-width: 170px;
	cursor: pointer;
}
.hgt-ti-select:focus {
	outline: none;
	border-color: var(--hgt-accent);
	box-shadow: 0 0 0 3px rgba( 29, 122, 70, 0.15 );
}

/* Link-Buttons (A–Z, Ansicht, Gruppieren) sind <a> – wie Buttons darstellen */
.hgt-ti-az-btn,
.hgt-ti-viewbtn,
.hgt-ti-grouptoggle {
	text-decoration: none;
}
.hgt-ti-az-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* No-JS-Absenden-Button: nur zeigen, wenn KEIN JavaScript aktiv ist */
.hgt-ti-submit {
	align-self: flex-end;
	height: 2.5rem;
	padding: 0 1.1rem;
	border: 1px solid var(--hgt-accent);
	background: var(--hgt-accent);
	color: #fff;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
}
.hgt-ti.is-js .hgt-ti-submit {
	display: none;
}

/* ---------------------------------------------------------------------- *
 * Register-Ansicht (kompakte Nachschlage-Liste)
 * „Kategorie: Testtitel" links, Ausgabe rechts – gruppiert unter A, B, C …
 * ---------------------------------------------------------------------- */
.hgt-ti-idx {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hgt-ti-idx-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1.5rem;
	padding: 0.42rem 0.25rem;
	border-bottom: 1px solid #f0f2f4;
	line-height: 1.45;
}
.hgt-ti-idx-row:last-child {
	border-bottom: 0;
}
.hgt-ti-idx-row:hover {
	background: var(--hgt-bg-soft);
}
.hgt-ti-idx-main {
	flex: 1 1 22rem;
	min-width: 0;
}
.hgt-ti-idx-cat {
	color: #1f2933;
}
.hgt-ti-idx-link {
	color: var(--hgt-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.hgt-ti-idx-link:hover,
.hgt-ti-idx-link:focus-visible {
	color: var(--hgt-accent-dark);
}
.hgt-ti-idx-issue {
	flex: 0 0 auto;
	color: var(--hgt-accent);
	font-size: 0.92rem;
	white-space: nowrap;
}

/* Im Register sind die Buchstaben-Überschriften die Orientierung. */
.hgt-ti-layout-index .hgt-ti-group-head {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 1.6rem 0 0.35rem;
	padding-bottom: 0.2rem;
	border-bottom: 2px solid var(--hgt-accent);
	display: inline-block;
	min-width: 2.2rem;
}
.hgt-ti-layout-index .hgt-ti-group:first-child .hgt-ti-group-head {
	margin-top: 0;
}

@media ( max-width: 560px ) {
	.hgt-ti-idx-row {
		gap: 0.1rem;
	}
	.hgt-ti-idx-issue {
		font-size: 0.85rem;
		color: var(--hgt-muted);
	}
}
@media ( max-width: 380px ) {
	.hgt-ti-idx-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.1rem;
	}
	.hgt-ti-idx-main {
		flex-basis: 100%;
	}
}

/* Teaser über dem Register (optional) */
.hgt-ti-teaser {
	border: 1px solid var(--hgt-border);
	border-radius: var(--hgt-radius);
	overflow: hidden;
	margin-bottom: 1.75rem;
	background: #fff;
}
.hgt-ti-teaser-head {
	background: var(--hgt-bg-soft);
	padding: 0.9rem 1.15rem;
	border-bottom: 1px solid var(--hgt-border);
}
.hgt-ti-teaser-kicker {
	display: block;
	font-size: 0.82rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--hgt-muted);
	margin-bottom: 0.15rem;
}
.hgt-ti-teaser-title {
	margin: 0;
	font-size: clamp( 1.05rem, 2vw, 1.35rem );
	line-height: 1.3;
}
.hgt-ti-teaser-title a {
	color: #1f2933;
	text-decoration: none;
}
.hgt-ti-teaser-title a:hover,
.hgt-ti-teaser-title a:focus-visible {
	color: var(--hgt-accent);
	text-decoration: underline;
}
.hgt-ti-teaser-body {
	display: flex;
	gap: 1.15rem;
	padding: 1.15rem;
	align-items: flex-start;
}
.hgt-ti-teaser-media {
	flex: 0 0 clamp( 120px, 22%, 190px );
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--hgt-bg-soft);
}
.hgt-ti-teaser-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.hgt-ti-teaser-text {
	margin: 0;
	flex: 1 1 auto;
	line-height: 1.55;
}
.hgt-ti-teaser-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 1.15rem;
	border-top: 1px solid var(--hgt-border);
}
.hgt-ti-teaser-issue {
	color: var(--hgt-muted);
	font-size: 0.9rem;
}
.hgt-ti-teaser-cta {
	margin-left: auto;
	color: var(--hgt-accent);
	font-weight: 600;
	text-decoration: none;
}
.hgt-ti-teaser-cta:hover,
.hgt-ti-teaser-cta:focus-visible {
	text-decoration: underline;
}
@media ( max-width: 560px ) {
	.hgt-ti-teaser-body {
		flex-direction: column;
	}
	.hgt-ti-teaser-media {
		flex-basis: auto;
		width: 100%;
	}
}

/* Fehlerhinweis (REST nicht erreichbar) */
.hgt-ti-error {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid #d98b8b;
	border-left-width: 4px;
	border-radius: 6px;
	background: #fdf3f3;
	color: #7a2323;
	font-size: 0.95rem;
}

/* A–Z-Navigation */
.hgt-ti-az {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
	margin: 1.25rem 0 1.5rem;
}
.hgt-ti-az-btn {
	min-width: 2.1rem;
	height: 2.1rem;
	padding: 0 0.35rem;
	border: 1px solid var(--hgt-border);
	background: #fff;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #1f2933;
	cursor: pointer;
	transition: all 0.12s ease;
	line-height: 1;
}
.hgt-ti-az-btn:hover:not( .is-disabled ):not( :disabled ) {
	border-color: var(--hgt-accent);
	color: var(--hgt-accent);
}
.hgt-ti-az-btn.is-active {
	background: var(--hgt-accent);
	border-color: var(--hgt-accent);
	color: #fff;
}
.hgt-ti-az-btn.is-disabled,
.hgt-ti-az-btn:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}
.hgt-ti-az-btn:focus-visible {
	outline: 3px solid rgba( 29, 122, 70, 0.4 );
	outline-offset: 2px;
}

/* Karten-Grid */
.hgt-ti-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--hgt-gap);
	grid-template-columns: repeat( 2, 1fr );
}
@media ( max-width: 599px ) {
	.hgt-ti-grid {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}
}
@media ( min-width: 600px ) {
	.hgt-ti-grid { grid-template-columns: repeat( 3, 1fr ); }
}
@media ( min-width: 900px ) {
	.hgt-ti-cols-2 .hgt-ti-grid { grid-template-columns: repeat( 2, 1fr ); }
	.hgt-ti-cols-3 .hgt-ti-grid { grid-template-columns: repeat( 3, 1fr ); }
	.hgt-ti-cols-4 .hgt-ti-grid { grid-template-columns: repeat( 4, 1fr ); }
	.hgt-ti-cols-5 .hgt-ti-grid { grid-template-columns: repeat( 5, 1fr ); }
	.hgt-ti-cols-6 .hgt-ti-grid { grid-template-columns: repeat( 6, 1fr ); }
}

.hgt-ti-card {
	background: #fff;
	border: 1px solid var(--hgt-border);
	border-radius: var(--hgt-radius);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	display: flex;
}
.hgt-ti-card:hover {
	transform: translateY( -3px );
	box-shadow: 0 10px 28px rgba( 15, 23, 42, 0.12 );
	border-color: #d2d6db;
}
.hgt-ti-card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	width: 100%;
}
.hgt-ti-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--hgt-bg-soft);
	overflow: hidden;
}
.hgt-ti-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hgt-ti-card-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient( 135deg, #eef1f4 25%, #e6eaee 25%, #e6eaee 50%, #eef1f4 50%, #eef1f4 75%, #e6eaee 75% );
	background-size: 18px 18px;
}
.hgt-ti-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--hgt-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0.25rem 0.55rem;
	border-radius: 6px;
	z-index: 2;
}
.hgt-ti-card-body {
	padding: 0.9rem 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}
.hgt-ti-card-title {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.3;
	font-weight: 600;
}
.hgt-ti-card-meta {
	margin: 0;
	font-size: 0.85rem;
	color: var(--hgt-muted);
}
.hgt-ti-card-cta {
	margin-top: auto;
	color: var(--hgt-accent);
	font-weight: 600;
	font-size: 0.9rem;
}
.hgt-ti-card:hover .hgt-ti-card-cta {
	color: var(--hgt-accent-dark);
}

/* Sterne */
.hgt-ti-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	font-size: 0.95rem;
	line-height: 1;
}
.hgt-ti-star {
	color: #d5d9df;
}
.hgt-ti-star.is-full {
	color: var(--hgt-star);
}
.hgt-ti-star.is-half {
	position: relative;
	color: #d5d9df;
}
.hgt-ti-star.is-half::before {
	content: '★';
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	overflow: hidden;
	color: var(--hgt-star);
}
.hgt-ti-rating-num {
	margin-left: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1f2933;
}

/* Zustände */
.hgt-ti-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--hgt-muted);
	background: var(--hgt-bg-soft);
	border-radius: var(--hgt-radius);
}
.hgt-ti.is-loading .hgt-ti-results {
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

/* Paginierung */
.hgt-ti-more {
	margin-top: 1.75rem;
	min-height: 1px;
}
.hgt-ti-page-summary {
	text-align: center;
	color: var(--hgt-muted);
	font-size: 0.88rem;
	margin: 0 0 0.75rem;
}
.hgt-ti-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}
.hgt-ti-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem;
	border: 1px solid var(--hgt-border);
	border-radius: 8px;
	background: #fff;
	color: #1f2933;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.12s ease;
	justify-content: center;
}
.hgt-ti-page-btn svg {
	flex: 0 0 auto;
}
.hgt-ti-page-prev,
.hgt-ti-page-next {
	color: var(--hgt-muted);
	font-weight: 500;
	padding: 0 0.9rem;
}
.hgt-ti-page-btn:hover:not( .is-disabled ) {
	border-color: var(--hgt-accent);
	color: var(--hgt-accent);
}
.hgt-ti-page-btn.is-active {
	background: var(--hgt-accent);
	border-color: var(--hgt-accent);
	color: #fff;
	cursor: default;
}
.hgt-ti-page-btn.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}
.hgt-ti-page-btn:focus-visible {
	outline: 3px solid rgba( 29, 122, 70, 0.4 );
	outline-offset: 2px;
}
.hgt-ti-page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
}
.hgt-ti-page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	color: var(--hgt-muted);
}
@media ( max-width: 480px ) {
	.hgt-ti-page-prev span,
	.hgt-ti-page-next span {
		display: none;
	}
	.hgt-ti-page-prev,
	.hgt-ti-page-next {
		padding: 0;
	}
}

.hgt-ti-noscript {
	text-align: center;
	color: var(--hgt-muted);
	font-size: 0.85rem;
}

/* Screenreader-only (falls Theme es nicht mitbringt) */
.hgt-ti .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------- *
 * Listenansicht
 * --------------------------------------------------------------------- */
.hgt-ti-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--hgt-border);
	border-radius: var(--hgt-radius);
	overflow: hidden;
	background: #fff;
}
.hgt-ti-row + .hgt-ti-row {
	border-top: 1px solid var(--hgt-border);
}
.hgt-ti-row-link {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.7rem 0.9rem;
	text-decoration: none;
	color: inherit;
	transition: background 0.12s ease;
}
.hgt-ti-row-link:hover { background: var(--hgt-bg-soft); }
.hgt-ti-row-media {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--hgt-bg-soft);
}
.hgt-ti-row-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgt-ti-row-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #eef1f4 25%, #e6eaee 25%, #e6eaee 50%, #eef1f4 50%, #eef1f4 75%, #e6eaee 75% );
	background-size: 14px 14px;
}
.hgt-ti-row-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.hgt-ti-row-title {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hgt-ti-row-meta { font-size: 0.85rem; color: var(--hgt-muted); }
.hgt-ti-row-aside {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.hgt-ti-badge-inline {
	position: static;
	background: var(--hgt-accent);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
}
.hgt-ti-row-cta { color: var(--hgt-accent); font-weight: 700; font-size: 1.05rem; }
@media ( max-width: 520px ) {
	.hgt-ti-row-title { white-space: normal; }
	.hgt-ti-row-aside .hgt-ti-badge-inline { display: none; }
	.hgt-ti-row-media { width: 52px; height: 52px; }
}
@media ( max-width: 380px ) {
	.hgt-ti-row-link { padding: 0.6rem 0.7rem; gap: 0.6rem; }
	.hgt-ti-row-media { width: 44px; height: 44px; }
	.hgt-ti-row-title { font-size: 0.92rem; }
	.hgt-ti-row-aside { gap: 0.5rem; }
	.hgt-ti-row-cta { font-size: 0.95rem; }
}

/* --------------------------------------------------------------------- *
 * Buchstaben-Gruppierung
 * --------------------------------------------------------------------- */
.hgt-ti-groups {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}
.hgt-ti-group {
	scroll-margin-top: 1rem;
}
.hgt-ti-group-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.9rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--hgt-accent);
	line-height: 1;
}
.hgt-ti-group-head span {
	flex: 0 0 auto;
}
.hgt-ti-group-head::after {
	content: '';
	flex: 1 1 auto;
	height: 2px;
	background: var(--hgt-border);
	border-radius: 2px;
}

@media ( prefers-reduced-motion: reduce ) {
	.hgt-ti-card,
	.hgt-ti-az-btn,
	.hgt-ti-page-btn,
	.hgt-ti-row-link {
		transition: none;
	}
}
