#ergebnis:has(pc-categorie) {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	min-height: unset;
}

pc-categorie {
	display: inline-block;
	width: calc(25% - 18px);
	min-width: 350px;
	position: relative;
	aspect-ratio: 16 / 9;
	/* Automatisches 16:9-VerhÃƒÆ’Ã‚Â¤ltnis */
	/* background-color: lightgray; */
	/* Beispielhintergrund */
	/* overflow: hidden; */
	cursor: pointer;
}

pc-categorie .rd-course-category {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

pc-categorie .prev_cat_video {
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	z-index: 1;
	display: block;
	opacity: 0;
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0) 55%, rgb(0 0 0) 100%);
	-webkit-mask-composite: destination-in;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0) 55%, rgba(0, 0, 0, 1) 100%);
	mask-composite: intersect;
	transition:all 0.5s linear;
}
pc-categorie .prev_cat_video > div{
	opacity: 0;
	transform: all 0.5s linear;
}
pc-categorie .prev_cat_video *{
	background-color: transparent;
}
pc-categorie .prev_cat_video > div.playing{
	opacity: 1;
}
pc-categorie:hover .prev_cat_video {
	opacity: 1;
}

pc-categorie .prev_cat_counter {
	display: none;
}

pc-categorie:hover .prev_cat_counter {
	display: block;
	color: var(--BW-White, #fff);
	font-size: 24px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

pc-categorie .rd-course-category-inside {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
}

pc-categorie:hover .rd-course-category-inside {
	transform: scale(120%);
	z-index: 100;
	border-radius: 8px;
	border: 4px solid var(--BW-White, #fff);
	background: linear-gradient(211deg, rgba(43, 58, 71, 0) 58.17%, #2b3a47 91.76%), url(<path-to-image>) lightgray 50% / cover no-repeat,
		url(<path-to-image>) lightgray 50% / cover no-repeat, url(<path-to-image>) lightgray 50% / cover no-repeat, #fff;
	box-shadow: 0px 4px 60px 0px rgba(0, 0, 0, 0.25);
}

pc-categorie .prev_cat_img {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 0;
	background-size: cover;
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0) 65%, rgb(0 0 0) 100%);
	-webkit-mask-composite: destination-in;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0) 70%, rgba(0, 0, 0, 1) 100%);
	mask-composite: intersect;
	transition: all 0.5s linear;
}

pc-categorie:has(.prev_cat_video > div.playing):hover .prev_cat_img {
	opacity: 0;
}

pc-categorie .prev_cat_link {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	/* background-color: #F00; */
}

pc-categorie .prev_cat_text {
	position: absolute;
	z-index: 20;
	bottom: 40px;
	left: 24px;
}

pc-categorie .prev_cat_text .c-titel {
	color: var(--BW-White, #fff);
	font-size: var(--rd-fontsize-10);
	font-style: normal;
	font-weight: var(--rd-fontweights-open-sans-0);
	line-height: normal;
	text-shadow: 0px 4px 60px rgb(0 0 0 / 70%);
}

pc-categorie .prev_cat_color_overlay {
	position: absolute;
	z-index: 0;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
}

pc-categorie:hover .c-titel {
	font-size: var(--rd-fontsize-11);
}

@media screen and (max-width: 1800px) {
	pc-categorie .prev_cat_text .c-titel {
		font-size: var(--rd-fontsize-9);
	}

	pc-categorie:hover .c-titel {
		font-size: var(--rd-fontsize-9);
	}
}

@media screen and (max-width: 800px) {
	#ergebnis:has(pc-categorie) {
		justify-content: center;
	}

	pc-categorie {
		min-width: 95%;
	}

	pc-categorie:hover .rd-course-category-inside {
		transform: unset;
		box-shadow: unset;
	}

	pc-categorie .prev_cat_counter {
		display: block !important;
		color: var(--BW-White, #fff);
		font-style: normal;
		font-weight: 400;
		line-height: normal;
		font-size: var(--rd-fontsize-5);
	}

	pc-categorie .prev_cat_text .c-titel {
		font-size: var(--rd-fontsize-8);
	}

	pc-categorie .prev_cat_counter,
	pc-categorie:hover .prev_cat_counter {
		font-size: var(--rd-fontsize-5);
	}

	pc-categorie:hover .prev_cat_video {
		opacity: 1;
	}

	pc-categorie:has(.prev_cat_video):hover .prev_cat_img {
		opacity: 0;
	}

	pc-categorie:hover .rd-course-category-inside {
		border: unset;
	}
}

@media screen and (max-width: 450px) {
	pc-categorie .prev_cat_text .c-titel {
		font-size: var(--rd-fontsize-7);
	}

	pc-categorie .prev_cat_counter {
		font-size: var(--rd-fontsize-5);
	}

	pc-categorie:hover .prev_cat_counter {
		font-size: var(--rd-fontsize-5);
	}
}

@media screen and (max-width: 350px) {
	pc-categorie .prev_cat_text .c-titel {
		font-size: var(--rd-fontsize-6);
	}

	pc-categorie .prev_cat_counter {
		font-size: var(--rd-fontsize-4);
	}

	pc-categorie:hover .prev_cat_counter {
		font-size: var(--rd-fontsize-4);
	}
}
