/*
 * SCL News Grid — Stylesheet
 * Fonts kommen vom Theme. Hintergründe erbt das Plugin vom Theme-Kontext.
 * Alle Klassen sind mit „scl-" präfixiert.
 */

/* ─── Tokens ───────────────────────────────────────────── */
.scl-news {
	--scl-forest:     #1a1a1a;
	--scl-terracotta: #E8521A;
	--scl-muted:      #7a7568;
}

/* ─── Section wrapper ──────────────────────────────────── */
.scl-news {
	padding: 7rem 0;
}

.scl-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 4rem;
}

/* ─── Section header ───────────────────────────────────── */
.scl-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 4rem;
	gap: 2rem;
}

.scl-section-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0.75rem;
}

.scl-section-eyebrow-line {
	width: 32px;
	height: 1px;
	background: var(--scl-terracotta);
	flex-shrink: 0;
}

.scl-section-eyebrow span {
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--scl-terracotta);
}

.scl-section-title {
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 300;
	color: var(--scl-forest);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0;
}

.scl-section-title em {
	font-style: italic;
	font-weight: 600;
}

.scl-section-link {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--scl-forest);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	flex-shrink: 0;
	opacity: 0.6;
	transition: opacity 0.2s, gap 0.2s;
}

.scl-section-link:hover {
	opacity: 1;
	gap: 12px;
}

/* ─── News Grid ────────────────────────────────────────── */
.scl-news-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 1px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.07);
}

/* ─── News Card ────────────────────────────────────────── */
.scl-news-card {
	padding: 2.25rem;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: background 0.25s ease;
	position: relative;
	overflow: hidden;
	border-right: 1px solid rgba(0,0,0,0.07);
	border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* Alle direkten Kinder über dem Bild-Pseudo-Element halten */
.scl-news-card > * {
	position: relative;
	z-index: 1;
}

.scl-news-card:hover {
	background: rgba(0,0,0,0.025);
}

/* ─── Thumbnail-Hover ──────────────────────────────────── */
.scl-news-card.scl-has-thumb::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.70) 100%),
		var(--scl-thumb);
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 0;
}

.scl-news-card.scl-has-thumb:hover {
	background: transparent;
}

.scl-news-card.scl-has-thumb:hover::before {
	opacity: 1;
}

.scl-news-card.scl-has-thumb:hover .scl-news-title {
	color: #ffffff;
}

.scl-news-card.scl-has-thumb:hover .scl-news-excerpt {
	color: rgba(255,255,255,0.75);
}

.scl-news-card.scl-has-thumb:hover .scl-news-date {
	color: rgba(255,255,255,0.55);
	border-top-color: rgba(255,255,255,0.15);
}

.scl-news-card.scl-featured {
	grid-row: span 2;
}

/* ─── Category label ───────────────────────────────────── */
.scl-news-cat {
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--scl-terracotta);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.scl-news-cat::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--scl-terracotta);
	flex-shrink: 0;
}

/* ─── Title ────────────────────────────────────────────── */
.scl-news-title {
	line-height: 1.25;
	color: var(--scl-forest);
	flex-grow: 1;
	margin: 0 0 0.75rem;
}

.scl-news-card.scl-featured .scl-news-title {
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.scl-news-card:not(.scl-featured) .scl-news-title {
	font-size: 1.1rem;
	font-weight: 400;
}

/* ─── Excerpt (nur featured) ───────────────────────────── */
.scl-news-excerpt {
	font-size: 0.85rem;
	line-height: 1.7;
	color: var(--scl-muted);
	margin: 0 0 1.25rem;
}

/* ─── Date line ────────────────────────────────────────── */
.scl-news-date {
	font-size: 0.68rem;
	color: var(--scl-muted);
	letter-spacing: 0.06em;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0,0,0,0.07);
}

/* ─── Scroll-Reveal ────────────────────────────────────── */
.scl-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}

.scl-reveal.scl-visible {
	opacity: 1;
	transform: translateY(0);
}

.scl-reveal-delay-1 { transition-delay: 0.1s; }
.scl-reveal-delay-2 { transition-delay: 0.2s; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
	.scl-container {
		padding: 0 2rem;
	}

	.scl-news-grid {
		grid-template-columns: 1fr 1fr;
	}

	.scl-news-card.scl-featured {
		grid-column: span 2;
		grid-row: span 1;
	}
}

@media (max-width: 640px) {
	.scl-news {
		padding: 5rem 0;
	}

	.scl-container {
		padding: 0 1.5rem;
	}

	.scl-section-header {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 2.5rem;
	}

	.scl-news-grid {
		grid-template-columns: 1fr;
	}

	.scl-news-card.scl-featured {
		grid-column: span 1;
	}
}
