/**
 * Frontend-Styles fuer AutoContent.
 * Block "Aehnliche Beitraege" (Shortcode [w24mf_ac_related]).
 */

.w24mf-ac-related {
	margin: 40px 0;
}

.w24mf-ac-related__title {
	font-size: 1.6em;
	line-height: 1.25;
	margin: 0 0 24px;
	font-weight: 600;
}

.w24mf-ac-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.w24mf-ac-related__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.w24mf-ac-related__card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
	transform: translateY(-2px);
	border-color: #d0d5da;
}

.w24mf-ac-related__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f2f4f6;
}

.w24mf-ac-related__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.w24mf-ac-related__card:hover .w24mf-ac-related__img {
	transform: scale(1.04);
}

.w24mf-ac-related__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px;
}

.w24mf-ac-related__name {
	font-size: 1.15em;
	line-height: 1.3;
	margin: 0 0 12px;
	font-weight: 600;
}

.w24mf-ac-related__name a {
	color: inherit;
	text-decoration: none;
}

.w24mf-ac-related__name a:hover {
	text-decoration: underline;
}

.w24mf-ac-related__excerpt {
	font-size: .95em;
	line-height: 1.55;
	color: #4a5568;
	margin: 0 0 20px;
}

.w24mf-ac-related__more {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 20px;
	border: 1px solid #2496ef;
	border-radius: 6px;
	color: #2496ef;
	background: transparent;
	font-size: .95em;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.w24mf-ac-related__more:hover,
.w24mf-ac-related__more:focus {
	background: #2496ef;
	color: #fff;
}

@media (max-width: 900px) {
	.w24mf-ac-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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