/* ── Neuigkeiten (BWNET-14451) ────────────────
 * Eigene Datei statt style.css: Cloudflare cacht *.css am Edge, eine neue URL
 * kommt ohne veralteten Stand an. Farben und Abstaende aus den Variablen von
 * style.css. */

/* Eingebettet im Supportcenter der Software (js/neuigkeiten.js): nur Inhalt */
html.eingebettet .site-header,
html.eingebettet .site-footer,
html.eingebettet .breadcrumb,
html.eingebettet .news-newsletter,
html.eingebettet .cta-section {
	display: none;
}

html.eingebettet .site-main {
	padding: 0 16px 24px;
}

/* Kopf der Uebersicht */
.news-intro {
	max-width: var(--max-width);
	margin: 28px auto 0;
}

.news-intro h1 {
	font-size: 32px;
	line-height: 1.25;
	margin-bottom: 8px;
}

.news-intro p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text-muted);
	max-width: 640px;
}

/* Karten */
.news-grid {
	max-width: var(--max-width);
	margin: 24px auto 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.news-card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	scroll-margin-top: 24px;
	transition: transform 0.2s, box-shadow 0.2s;
}

a.news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.news-card:target {
	outline: 3px solid var(--color-primary);
	outline-offset: 2px;
}

.news-bild {
	aspect-ratio: 16 / 9;
	width: 100%;
	object-fit: cover;
	object-position: left top;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.news-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 24px 24px;
}

.news-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 12px;
}

.news-label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary);
}

.news-datum {
	color: var(--color-text-muted);
}

.news-card h2,
.news-card h3 {
	font-size: 18px;
	line-height: 1.35;
	margin-bottom: 8px;
}

.news-card p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-text-muted);
	flex: 1;
}

.news-card .card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-primary);
	transition: gap 0.2s;
}

a.news-card:hover .card-link {
	gap: 10px;
}

/* Grosses Thema: volle Breite, Bild links */
.news-card--gross {
	grid-column: 1 / -1;
	flex-direction: row;
}

.news-card--gross .news-bild {
	width: 58%;
	aspect-ratio: auto;
	min-height: 300px;
	border-bottom: none;
	border-right: 1px solid var(--color-border);
}

.news-card--gross .news-text {
	padding: 32px;
	justify-content: center;
}

.news-card--gross h2 {
	font-size: 24px;
}

.news-card--gross p {
	font-size: 15px;
	flex: 0;
}

@media (max-width: 768px) {
	.news-card--gross {
		flex-direction: column;
	}

	.news-card--gross .news-bild {
		width: 100%;
		aspect-ratio: 16 / 9;
		min-height: 0;
		border-right: none;
		border-bottom: 1px solid var(--color-border);
	}

	.news-intro h1 {
		font-size: 26px;
	}
}

/* Newsletter-Hinweis unter den Karten */
.news-newsletter {
	max-width: var(--max-width);
	margin: 32px auto 0;
	padding: 20px 24px;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 15px;
}

/* mmi1.de kennt .cta-btn-primary nicht; Werte wie in website/css/style.css (BWNET-14466) */
.news-newsletter .cta-btn-primary {
	background: var(--color-primary);
	color: var(--color-white);
}

.news-newsletter .cta-btn-primary:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Themenseite */
.news-artikel .news-meta {
	margin-bottom: 12px;
}

.news-artikel img {
	width: 100%;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	margin: 8px 0 24px;
}

.news-zurueck {
	display: inline-block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
}

/* Vorschau auf der Startseite */
.news-teaser {
	margin: 40px 0 0;
}

.news-teaser-inner {
	max-width: var(--max-width);
	margin: 0 auto;
}

.news-teaser-inner > .section-kicker,
.news-teaser-inner > h2 {
	text-align: center;
}

.news-teaser-inner > h2 {
	font-size: 28px;
	line-height: 1.25;
	margin-bottom: 4px;
}

.news-teaser .news-grid {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-teaser-alle {
	text-align: center;
	margin-top: 20px;
}

.news-teaser-alle a {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-primary);
}
