.tg-wrap,
.tg-wrap * {
	font-family: inherit;
	box-sizing: border-box;
}

.tg-wrap {
	width: 100%;
}

.tg-toolbar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.tg-toolbar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.tg-field-label {
	display: block;
	margin-bottom: 8px;
	font: inherit;
	color: inherit;
	font-weight: 600;
}

.tg-filter-select-wrap,
.tg-search-wrap {
	flex: 1 1 260px;
	max-width: 420px;
}

.tg-landkreis-select,
.tg-sort-select,
.tg-search-input,
.tg-load-more {
	font: inherit;
	line-height: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.tg-landkreis-select,
.tg-sort-select,
.tg-search-input {
	width: 100%;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	padding: 12px 42px 12px 14px;
}

.tg-landkreis-select,
.tg-sort-select {
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position:
		calc(100% - 18px) calc(50% - 3px),
		calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.tg-search-input {
	padding-right: 14px;
}

.tg-sort {
	flex: 0 0 auto;
	min-width: 240px;
}

.tg-landkreis-select:hover,
.tg-sort-select:hover,
.tg-search-input:hover,
.tg-landkreis-select:focus,
.tg-sort-select:focus,
.tg-search-input:focus,
.tg-load-more:focus {
	border-color: #999;
	outline: none;
}

.tg-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.tg-card {
	width: 100%;
}

.tg-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e8e8e8;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-card-link:hover,
.tg-card-link:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	outline: none;
}

.tg-card-image {
	aspect-ratio: 4 / 3;
	background: #f2f2f2;
	overflow: hidden;
}

.tg-card-image img,
.tg-card-image-placeholder {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.tg-card-content {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tg-card-line {
	font-family: inherit;
	line-height: 1.4;
	color: inherit;
	word-break: break-word;
}

.tg-card-line-1 {
	font-weight: 600;
}

.tg-card-line-2 {
	opacity: 0.85;
}

.tg-card-line-3 {
	opacity: 0.9;
}

.tg-actions {
	margin-top: 24px;
	text-align: center;
}

.tg-load-more {
	display: inline-block;
	padding: 12px 18px;
	background: #111;
	color: #fff;
	border: 1px solid #111;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.tg-load-more:hover {
	opacity: 0.92;
}

.tg-status {
	margin-top: 20px;
	min-height: 24px;
	font: inherit;
	color: inherit;
}

.tg-empty {
	grid-column: 1 / -1;
	padding: 24px;
	border: 1px dashed #d9d9d9;
	text-align: center;
	font: inherit;
}

.tg-sentinel {
	width: 100%;
	height: 1px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1200px) {
	.tg-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.tg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tg-toolbar-row {
		flex-direction: column;
		align-items: stretch;
	}

	.tg-sort,
	.tg-filter-select-wrap,
	.tg-search-wrap {
		max-width: none;
		min-width: 0;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.tg-grid {
		grid-template-columns: 1fr;
	}
}