/* Blog-Übersicht: Featured und Artikelraster */

.ls-blog-content {
	--ls-blog-surface: var(--ls-color-paper);
	--ls-blog-card: rgb(255 253 250 / 94%);
	--ls-blog-ink: var(--ls-color-ink);
	--ls-blog-muted: var(--ls-color-text-muted);
	--ls-blog-plum: var(--ls-color-primary);
	--ls-blog-pink: var(--ls-color-accent);
	--ls-blog-orange: var(--ls-color-secondary);
	--ls-blog-blush: #fbe4e8;
	--ls-blog-border: rgb(91 36 80 / 9%);
	background:
		radial-gradient(ellipse 28rem 25rem at -8% 14%, rgb(227 78 134 / 6.5%), transparent 72%),
		radial-gradient(ellipse 30rem 24rem at 105% 64%, rgb(241 96 30 / 5%), transparent 72%),
		var(--ls-blog-surface);
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(5rem, 10vw, 8rem);
}

.ls-featured-section {
	margin-bottom: clamp(4.5rem, 9vw, 7.5rem);
}

.ls-featured-post {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--ls-blog-border);
	border-radius: 1.25rem;
	background: var(--ls-blog-card);
	box-shadow: 0 1.2rem 3.4rem rgb(66 31 54 / 7.5%);
}

.ls-featured-post__media {
	position: relative;
	display: block;
	overflow: hidden;
	min-width: 0;
	aspect-ratio: 4 / 3;
	background: #f4e7df;
}

.ls-featured-post__media::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: auto auto 0 0;
	width: min(78%, 17.5rem);
	height: min(48%, 11.5rem);
	background:
		radial-gradient(
			ellipse 90% 85% at 18% 88%,
			rgb(252 248 241 / 94%) 0%,
			rgb(252 248 241 / 78%) 38%,
			rgb(252 248 241 / 28%) 62%,
			transparent 78%
		);
	pointer-events: none;
}

.ls-featured-post__image,
.ls-featured-post__placeholder {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}

.ls-featured-post:hover .ls-featured-post__image {
	transform: scale(1.025);
}

.ls-featured-post__placeholder {
	display: block;
	background:
		radial-gradient(circle at 28% 34%, rgb(241 96 30 / 20%), transparent 24%),
		linear-gradient(135deg, #f7dfd8, #eee0eb);
}

.ls-featured-post__note {
	position: absolute;
	z-index: 2;
	bottom: 1.15rem;
	left: 1.1rem;
	display: none;
	max-width: 12.5rem;
	padding: 0.55rem 0.7rem 0.45rem;
	border-radius: 0.85rem;
	background: rgb(252 248 241 / 72%);
	box-shadow: 0 0.35rem 1.1rem rgb(43 22 38 / 8%);
	color: var(--ls-blog-plum);
	font-family: var(--ls-font-script);
	font-size: 1.65rem;
	line-height: 1;
	text-shadow: 0 1px 0 rgb(255 255 241 / 55%);
	rotate: -7deg;
}

.ls-featured-post__note svg {
	width: 1.15rem;
	height: 1.15rem;
	margin-left: 0.35rem;
	vertical-align: -0.1em;
}

.ls-featured-post__content {
	display: grid;
	align-content: center;
	justify-items: start;
	padding: clamp(1.5rem, 6vw, 3.25rem);
}

.ls-featured-post__eyebrow,
.ls-blog-grid-header__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--ls-blog-pink);
	font-family: var(--ls-font-body);
	font-size: 0.72rem;
	font-weight: var(--ls-weight-semibold);
	letter-spacing: 0.17em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ls-post-badge,
.ls-post-card__badge {
	border-radius: 999px;
	background: var(--ls-blog-blush);
	color: var(--ls-blog-plum);
	font-family: var(--ls-font-body);
	font-size: 0.76rem;
	font-weight: var(--ls-weight-medium);
	line-height: 1;
	padding: 0.55rem 0.8rem;
	text-decoration: none;
}

.ls-post-badge:hover {
	background: #f8d6df;
	color: var(--ls-blog-pink);
}

.ls-post-badge:focus-visible {
	outline: 3px solid rgb(227 78 134 / 32%);
	outline-offset: 3px;
}

.ls-featured-post__title {
	margin: 1rem 0 0;
	font-family: var(--ls-font-display);
	font-size: clamp(2rem, 8vw, 3.4rem);
	font-weight: var(--ls-weight-medium);
	letter-spacing: -0.035em;
	line-height: 1.02;
	text-wrap: balance;
}

.ls-featured-post__title a,
.ls-post-card__title a {
	color: var(--ls-blog-ink);
	text-decoration: none;
}

.ls-featured-post__title a:hover,
.ls-post-card__title a:hover {
	color: var(--ls-blog-plum);
}

.ls-featured-post__title a:focus-visible,
.ls-post-card__title a:focus-visible,
.ls-post-card__link:focus-visible,
.ls-featured-post__button:focus-visible {
	border-radius: 0.25rem;
	outline: 3px solid rgb(227 78 134 / 34%);
	outline-offset: 4px;
}

.ls-featured-post__excerpt {
	max-width: 38rem;
	margin: 1rem 0 0;
	color: var(--ls-blog-muted);
	font-family: var(--ls-font-body);
	font-size: 1rem;
	line-height: 1.62;
}

.ls-post-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--ls-blog-muted);
	font-family: var(--ls-font-body);
	font-size: 0.78rem;
}

.ls-featured-post .ls-post-reading-time {
	margin: 1.1rem 0 0;
}

.ls-post-reading-time svg {
	width: 1.05rem;
	height: 1.05rem;
	flex-shrink: 0;
}

.ls-featured-post__button {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	min-height: 3rem;
	margin-top: 1.5rem;
	padding: 0.78rem 1.45rem;
	border-radius: 999px;
	background: linear-gradient(100deg, var(--ls-blog-pink), var(--ls-blog-orange));
	box-shadow: 0 0.65rem 1.45rem rgb(227 78 134 / 18%);
	color: var(--ls-color-white);
	font-family: var(--ls-font-body);
	font-size: 0.96rem;
	font-weight: var(--ls-weight-medium);
	text-decoration: none;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.ls-featured-post__button:hover {
	box-shadow: 0 0.9rem 1.8rem rgb(227 78 134 / 26%);
	transform: translateY(-2px);
}

.ls-blog-grid-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.ls-blog-grid-header__title {
	margin: 0;
	color: var(--ls-blog-ink);
	font-family: var(--ls-font-display);
	font-size: clamp(2.6rem, 9vw, 4.5rem);
	font-weight: var(--ls-weight-medium);
	letter-spacing: -0.04em;
	line-height: 0.98;
}

.ls-blog-grid-header__note {
	display: none;
	margin: 0 1rem 0 0;
	color: var(--ls-blog-plum);
	font-family: var(--ls-font-script);
	font-size: 1.85rem;
	line-height: 1.02;
	text-align: center;
	rotate: -6deg;
}

.ls-blog-results-status {
	margin: -0.75rem 0 1.4rem;
	color: var(--ls-blog-muted);
	font-family: var(--ls-font-body);
	font-size: 0.9rem;
}

.ls-blog-results-status:empty {
	display: none;
}

.ls-post-grid {
	display: grid;
	gap: 1.25rem;
}

.ls-post-grid[aria-busy="true"] {
	opacity: 0.55;
	pointer-events: none;
}

.ls-post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ls-blog-border);
	border-radius: 1rem;
	background: var(--ls-blog-card);
	box-shadow: 0 0.8rem 2.2rem rgb(66 31 54 / 4.5%);
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.ls-post-card:hover {
	box-shadow: 0 1.15rem 2.7rem rgb(66 31 54 / 8.5%);
	transform: translateY(-3px);
}

.ls-post-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f3e7df;
}

.ls-post-card__image,
.ls-post-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}

.ls-post-card:hover .ls-post-card__image {
	transform: scale(1.035);
}

.ls-post-card__placeholder {
	display: block;
	background:
		radial-gradient(circle at 75% 26%, rgb(227 78 134 / 16%), transparent 26%),
		linear-gradient(145deg, #f4ded7, #eee1e9);
}

.ls-post-card__badge {
	position: absolute;
	z-index: 1;
	bottom: 0.85rem;
	left: 1.1rem;
}

.ls-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.1rem 1.1rem 1.15rem;
}

.ls-post-card__title {
	margin: 0;
	font-family: var(--ls-font-display);
	font-size: clamp(1.4rem, 6vw, 1.8rem);
	font-weight: var(--ls-weight-medium);
	letter-spacing: -0.025em;
	line-height: 1.08;
	text-wrap: balance;
}

.ls-post-card__excerpt {
	display: -webkit-box;
	margin: 0.75rem 0 0;
	overflow: hidden;
	color: var(--ls-blog-muted);
	font-family: var(--ls-font-body);
	font-size: 0.9rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ls-post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1.2rem;
}

.ls-post-card__link {
	color: var(--ls-blog-pink);
	font-family: var(--ls-font-body);
	font-size: 0.85rem;
	font-weight: var(--ls-weight-semibold);
	text-decoration: none;
	white-space: nowrap;
}

.ls-post-card__link:hover {
	color: var(--ls-blog-orange);
}

.ls-blog-empty {
	grid-column: 1 / -1;
	padding: clamp(2rem, 8vw, 4rem);
	border: 1px solid var(--ls-blog-border);
	border-radius: 1.1rem;
	background: rgb(255 253 250 / 78%);
	text-align: center;
}

.ls-blog-empty h3 {
	margin: 0;
	color: var(--ls-blog-ink);
	font-family: var(--ls-font-display);
	font-size: clamp(1.8rem, 7vw, 2.8rem);
	font-weight: var(--ls-weight-medium);
}

.ls-blog-empty p {
	color: var(--ls-blog-muted);
	font-family: var(--ls-font-body);
	line-height: 1.6;
}

.ls-blog-empty a {
	color: var(--ls-blog-pink);
	font-family: var(--ls-font-body);
	font-weight: var(--ls-weight-semibold);
	text-underline-offset: 0.2em;
}

.ls-blog-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 2.5rem;
}

.ls-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.65rem 0.9rem;
	border: 1px solid rgb(91 36 80 / 24%);
	border-radius: 999px;
	color: var(--ls-blog-plum);
	font-family: var(--ls-font-body);
	font-size: 0.85rem;
	text-decoration: none;
}

.ls-blog-pagination .page-numbers.current {
	border-color: var(--ls-blog-pink);
	background: var(--ls-blog-pink);
	color: var(--ls-color-white);
}

.ls-blog-pagination a:hover {
	border-color: var(--ls-blog-pink);
	color: var(--ls-blog-pink);
}

.ls-blog-pagination a:focus-visible {
	outline: 3px solid rgb(227 78 134 / 32%);
	outline-offset: 3px;
}

@media (min-width: 40rem) {
	.ls-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 48rem) {
	.ls-featured-post {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}

	.ls-featured-post__media {
		aspect-ratio: auto;
		min-height: 29rem;
	}

	.ls-featured-post__note {
		display: block;
	}

	.ls-blog-grid-header__note {
		display: block;
	}
}

@media (min-width: 64rem) {
	.ls-post-grid {
		gap: 1.4rem;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ls-featured-post__media {
		min-height: 31rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ls-featured-post__image,
	.ls-featured-post__button,
	.ls-post-card,
	.ls-post-card__image {
		transition: none;
	}
}
