/* =========================================================
   RATGEBER - KATEGORIEN AUF DER STARTSEITE
   ========================================================= */

.ratgeber-category-section {
	width: 100%;
	margin: 40px 0 60px;
}

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

.ratgeber-category-card {
	display: block;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ratgeber-category-card:hover {
	transform: translateY(-3px);
	border-color: #d1d5db;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ratgeber-category-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f4f6;
}

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

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

.ratgeber-category-card-placeholder {
	width: 100%;
	height: 100%;
	background: #f3f4f6;
}

.ratgeber-category-card-content {
	padding: 17px 18px 18px;
}

.ratgeber-category-card-title {
	display: block;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	color: #1f2937;
}

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

/* =========================================================
   RATGEBER - PRODUKTEMPFEHLUNGEN
   Bild > Hauptkategorie > Unterkategorien
   ========================================================= */

.ratgeber-product-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 25px 0 55px;
}

.ratgeber-product-category-card {
	display: block;
	overflow: hidden;
	background: #f5f6f6;
	border: 0;
	border-radius: 0;
}

.ratgeber-product-category-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eee;
}

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

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

.ratgeber-product-category-content {
	display: block;
	position: static;
	padding: 20px 22px 23px;
	background: #f5f6f6;
}

.ratgeber-product-category-title {
	display: block;
	position: static;
	margin: 0 0 12px;
	padding: 0;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
}

.ratgeber-product-category-title a {
	display: block;
	color: #202020;
	text-decoration: none !important;
}

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

.ratgeber-product-category-list {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ratgeber-product-category-list li {
	display: block;
	position: static;
	margin: 0 0 6px;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
}

.ratgeber-product-category-list li::before,
.ratgeber-product-category-list li::after {
	content: none !important;
	display: none !important;
}

.ratgeber-product-category-list li:last-child {
	margin-bottom: 0;
}

.ratgeber-product-category-list a {
	color: #555;
	text-decoration: none !important;
}

.ratgeber-product-category-list a:hover {
	color: var(--ast-global-color-0);
	text-decoration: underline !important;
}

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

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

@media (max-width: 768px) {
	.ratgeber-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 600px) {
	.ratgeber-product-category-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.ratgeber-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ratgeber-category-card-content {
		padding: 12px;
	}

	.ratgeber-category-card-title {
		font-size: 15px;
	}
}
