/*
 * EYEDEA – Ratgeber: Artikel und Übersicht (Block 3.4d).
 * Nur Anordnung. Bausteine (Kopf, Filmkachel, Listenzeile, Aufklappliste, Buttons) und die
 * Block-Stile im Artikeltext (Nummeriert groß, Tipp, Zitat, Aufzählung) stehen in bausteine.css.
 */

/* ===================== Kopf ===================== */

.ratgeber-artikel .brotkrumen { padding-top: 16px; }
.ratgeber-artikel .brotkrumen a {
	font-size: var(--wp--preset--font-size--klein);
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}

.ratgeber-artikel .kopf-baustein { margin: 24px 0 0; }
.ratgeber-uebersicht .kopf-baustein { margin: 32px 0 0; }

.kopf-zeile-oben {
	margin: 0 0 16px;
	color: var(--c-grau);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ratgeber-thema { color: var(--c-rot); }

/* ===================== Passende Filme (3 Spalten, Handy 1) – C6a: am Ende, nach „Weitere Artikel“ ===================== */

.ratgeber-filme { margin-top: 96px; }
.ratgeber-filme > .label { margin-bottom: 24px; }

.ratgeber-filme-raster {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--raster);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ratgeber-filme-satz {
	margin: 12px 0 0;
	color: var(--c-grau);
	font-size: var(--wp--preset--font-size--klein);
}

@media (max-width: 860px) {
	.ratgeber-filme-raster { grid-template-columns: minmax(0, 1fr); }
}

/* ===================== Inhaltsverzeichnis + Textspalte 720 px ===================== */

.ratgeber-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 720px);
	gap: 80px;
	justify-content: start;
	margin-top: 72px;
}

/* Ohne Inhaltsverzeichnis: Textspalte in der zweiten Spalte (gleiche Linie wie mit) */
.ratgeber-layout > .ratgeber-text:only-child { grid-column: 2; }

.ratgeber-toc {
	position: sticky;
	top: calc(var(--kopf-hoehe) + 20px);
	align-self: start;
}

.ratgeber-toc ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
}

.ratgeber-toc a {
	color: var(--c-grau);
	text-decoration: none;
	transition: color var(--uebergang);
}

.ratgeber-toc a:focus-visible { color: var(--c-rot); }
@media (hover: hover) and (pointer: fine) {
	.ratgeber-toc a:hover { color: var(--c-rot);
	}
}

@media (max-width: 999px) {
	.ratgeber-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 56px; }
	.ratgeber-toc { display: none; }
	.ratgeber-layout > .ratgeber-text:only-child { grid-column: auto; }
}

/* Artikeltext */
.ratgeber-text {
	color: var(--c-grau-hell);
	font-size: 18px;
	line-height: 1.75;
}

.ratgeber-text p { margin: 0 0 24px; }

/* C10 (F13): lange Wörter in Zwischenüberschriften („Siebzehntausendfünfhundert!“) trennen bzw. umbrechen, sonst läuft die Seite am Handy über (433 px) */
.ratgeber-text :is(h2, h3) { overflow-wrap: normal; -webkit-hyphens: none; hyphens: none; } /* C14 (A1): keine Silbentrennung */
.ratgeber-text h2 {
	margin: 56px 0 20px;
	color: var(--c-text);
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.2;
	scroll-margin-top: calc(var(--kopf-hoehe) + 24px);
}

.ratgeber-text ul.wp-block-list { margin: 0 0 24px; padding-left: 22px; }
.ratgeber-text ul.wp-block-list li { margin-bottom: 8px; }
.ratgeber-text strong { color: var(--c-text); }

/* Kasten „Kurz gesagt“ */
.ratgeber-kurz {
	margin: 0 0 40px;
	padding: 28px 32px;
	background: var(--c-flaeche);
}

.ratgeber-kurz .label { margin: 0; }
.ratgeber-kurz p:not(.label) { margin: 12px 0 0; color: var(--c-text); line-height: 1.65; }

@media (max-width: 639px) {
	.ratgeber-kurz { padding: 24px; }
	.ratgeber-text { font-size: 17px; }
}

/* Häufige Fragen */
.ratgeber-faq .aufklapp > summary { color: var(--c-text); font-size: 17px; }
.ratgeber-faq .aufklapp > summary:focus-visible { color: var(--c-rot); }
@media (hover: hover) and (pointer: fine) {
	.ratgeber-faq .aufklapp > summary:hover { color: var(--c-rot);
	}
}
.ratgeber-faq .aufklapp > p { margin: 0; font-size: 17px; }

/* ===================== Listen: Übersicht und Weitere Artikel ===================== */

.ratgeber-liste {
	margin: 72px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-linie);
}

.ratgeber-liste .listenzeile { padding: 34px 0; }
.ratgeber-liste .listenzeile-titel { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; }
.ratgeber-liste .listenzeile-thema { min-width: 180px; text-align: right; }

.ratgeber-weitere { margin-top: 96px; }
.ratgeber-weitere .label { margin-bottom: 24px; }
.ratgeber-liste--klein { margin-top: 0; }
.ratgeber-liste--klein .listenzeile { padding: 26px 0; }
.ratgeber-liste--klein .listenzeile-titel { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.2; }

@media (max-width: 639px) {
	.ratgeber-liste .listenzeile { padding: 26px 0; }
	.ratgeber-liste .listenzeile-thema { min-width: 0; text-align: left; }
}

/* ===================== Abschluss ===================== */

.ratgeber-abschluss { padding-top: 0; }

.ratgeber-abschluss-innen {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-top: 96px;
	padding: 80px 0 96px;
	border-top: 1px solid var(--c-linie);
}

.ratgeber-abschluss h2 { margin: 0; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; }

.ratgeber-abschluss .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

/* C14 (F1): „Passende Filme“ nur am Handy ausblenden (alle Ratgeber-Artikel); Tablet und Desktop unverändert */
@media (max-width: 699px) {
	.ratgeber-filme { display: none; }
}
