/* =========================================================
   RATGEBER - KATEGORIEARCHIVE
   ========================================================= */

.ratgeber-category-page {
	padding: 42px 0 65px;
}

.ratgeber-category-main {
	width: 100%;
}

.ratgeber-breadcrumb {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.5;
	color: #777;
}

.ratgeber-breadcrumb a {
	color: #666;
	text-decoration: none !important;
}

.ratgeber-breadcrumb a:hover {
	color: var(--ast-global-color-0);
}

.ratgeber-breadcrumb-separator {
	display: inline-block;
	margin: 0 8px;
	color: #aaa;
}

.ratgeber-breadcrumb-current {
	color: #444;
}

.ratgeber-category-header {
	max-width: 900px;
	margin-bottom: 42px;
}

.ratgeber-category-header h1 {
	margin: 0 0 18px;
}

.ratgeber-category-description {
	font-size: 17px;
	line-height: 1.7;
	color: #444;
}

.ratgeber-category-description > *:last-child {
	margin-bottom: 0;
}

.ratgeber-subcategory-section {
	margin: 0 0 55px;
}

.ratgeber-subcategory-section h2 {
	margin: 0 0 24px;
}

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

.ratgeber-subcategory-card {
	display: block;
	background: #f5f6f6;
	text-decoration: none !important;
	color: #222;
	overflow: hidden;
}

.ratgeber-subcategory-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eceeee;
}

.ratgeber-subcategory-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.ratgeber-subcategory-card:hover .ratgeber-subcategory-image img {
	transform: scale(1.025);
}

.ratgeber-subcategory-title {
	padding: 15px 17px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #222;
}

.ratgeber-subcategory-card:hover .ratgeber-subcategory-title {
	color: var(--ast-global-color-0);
}

.ratgeber-category-posts {
	margin-top: 10px;
}

.ratgeber-category-posts > h2 {
	margin: 0 0 25px;
}

.ratgeber-category-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 26px;
}

.ratgeber-category-post-card {
	background: #fff;
}

.ratgeber-category-post-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f2f2f2;
}

.ratgeber-category-post-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.ratgeber-category-post-card:hover .ratgeber-category-post-image img {
	transform: scale(1.025);
}

.ratgeber-category-post-content {
	padding-top: 13px;
}

.ratgeber-category-post-title {
	margin: 0 0 7px;
	padding: 0;
	font-size: 19px;
	line-height: 1.4;
	font-weight: 700;
}

.ratgeber-category-post-title a {
	color: #222;
	text-decoration: none !important;
}

.ratgeber-category-post-title a:hover {
	color: var(--ast-global-color-0);
}

.ratgeber-category-post-date {
	font-size: 13px;
	line-height: 1.4;
	color: #777;
}

.ratgeber-pagination {
	margin-top: 45px;
}

.ratgeber-pagination .nav-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
}

.ratgeber-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #f5f6f6;
	color: #333;
	text-decoration: none !important;
}

.ratgeber-pagination .page-numbers.current {
	background: var(--ast-global-color-0);
	color: #fff;
}

.ratgeber-pagination a.page-numbers:hover {
	background: #e9eaea;
	color: #222;
}

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

	.ratgeber-category-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.ratgeber-category-page {
		padding: 28px 0 45px;
	}

	.ratgeber-subcategory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.ratgeber-subcategory-title {
		padding: 12px 13px;
		font-size: 15px;
	}

	.ratgeber-category-post-grid {
		grid-template-columns: 1fr;
		gap: 27px;
	}

	.ratgeber-category-description {
		font-size: 16px;
	}
}

@media (max-width: 420px) {
	.ratgeber-subcategory-grid {
		grid-template-columns: 1fr 1fr;
	}
}
