/*
 * KPZ Wissen — Gestaltung der Artikel-, Dokument- und Übersichtsseiten.
 *
 * Farben kommen aus dem Child-Theme (--kpz-blau usw.), jeweils mit
 * Ersatzwert. Fehlt das Child-Theme, sieht alles trotzdem ordentlich aus.
 */

/* --------------------------------------------------------------------------
   Neve: Autor, Datum und Blättern zum nächsten Beitrag passen nicht zu
   Nachschlage-Inhalten. Das Prüfdatum steht stattdessen in der Kopfzeile.
   -------------------------------------------------------------------------- */

.single-kpz_wissen .nv-meta-list,
.single-kpz_dokument .nv-meta-list,
.single-kpz_wissen .nv-post-navigation,
.single-kpz_dokument .nv-post-navigation {
	display: none;
}

/* --------------------------------------------------------------------------
   Seitenkopf im Stil der übrigen Seiten (Child-Theme, .kpz-hero):
   linksbündig, kleine Dachzeile in Blau, große Überschrift.
   -------------------------------------------------------------------------- */

.single-kpz_wissen .nv-title-meta-wrap,
.single-kpz_dokument .nv-title-meta-wrap {
	text-align: start;
}

/* Neve setzt 60 px über und unter den Kopf; die übrigen Seiten haben oben
   bis zu 44 px, und das Prüfdatum gehört dicht unter die Überschrift.
   Drei Selektorteile: Neve nutzt .nv-single-post-wrap > div:first-child. */
.single-kpz_wissen .nv-single-post-wrap > .entry-header,
.single-kpz_dokument .nv-single-post-wrap > .entry-header {
	margin-block: clamp(28px, 4vw, 44px) 18px;
}

.single-kpz_wissen .entry-title,
.single-kpz_dokument .entry-title {
	margin-bottom: 0;
}

.single-kpz_wissen .nv-title-meta-wrap::before,
.single-kpz_dokument .nv-title-meta-wrap::before,
.tax-kpz_thema .nv-index-posts > h1::before {
	display: block;
	margin-bottom: 10px;
	font-family: 'Archivo', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--kpz-blau, #26668B);
}

.single-kpz_wissen .nv-title-meta-wrap::before {
	content: "Wissen";
}

.single-kpz_dokument .nv-title-meta-wrap::before {
	content: "Dokument";
}

.tax-kpz_thema .nv-index-posts > h1::before {
	content: "Wissen · Thema";
}

.single-kpz_wissen .entry-title,
.single-kpz_dokument .entry-title,
.tax-kpz_thema .nv-index-posts > h1 {
	font-size: clamp(29px, 4.6vw, 44px);
	line-height: 1.12;
	text-align: start;
}

/*
 * Themenseite: Neve gibt die Überschrift nur für Vorleseprogramme aus. Hier
 * wird sie sichtbar gemacht, statt eine zweite H1 einzufügen. Die
 * Ausblende-Regel von Neve arbeitet mit !important, daher auch hier.
 */
.tax-kpz_thema .nv-index-posts > h1.screen-reader-text {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0 0 32px;
	padding: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
	word-wrap: normal;
}

/* Veröffentlichungsdatum sagt bei Nachschlage-Inhalten nichts aus. */
.tax-kpz_thema .nv-meta-list {
	display: none;
}

/* Zwischenüberschriften wie auf den übrigen Seiten. */
.single-kpz_wissen .nv-content-wrap > h2,
.single-kpz_dokument .nv-content-wrap > h2 {
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.25;
	margin-block: 36px 12px;
}

.single-kpz_wissen .nv-content-wrap > .kpz-wissen-kopf + h2 {
	margin-block-start: 0;
}

/* --------------------------------------------------------------------------
   Kopfzeile: Art · Herausgeber · Stand · Prüfdatum · Thema
   -------------------------------------------------------------------------- */

.kpz-wissen-kopf {
	font-size: 14px;
	line-height: 1.5;
	color: #5b6166;
	margin: 0 0 28px;
}

.kpz-wissen-kopf > span + span::before {
	content: "·";
	margin: 0 0.55em;
	color: #9aa1a6;
}

.kpz-wissen-kopf a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Dokumentlisten
   -------------------------------------------------------------------------- */

.kpz-wissen-dokumente,
.kpz-wissen-download,
.kpz-wissen-verwendet {
	margin-top: 44px;
}

.kpz-wissen-dokumente h2,
.kpz-wissen-download h2,
.kpz-wissen-verwendet h2 {
	font-size: clamp(20px, 2.6vw, 24px);
	margin: 0 0 12px;
}

.kpz-dok-liste {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--kpz-linie, #d7dcdf);
}

.kpz-dok {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--kpz-linie, #d7dcdf);
}

.kpz-dok-titel {
	flex: 1 1 240px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Pfeil für Verweise auf fremde Seiten. Die zweite Angabe nimmt ihn für
   Vorleseprogramme heraus; Browser, die sie nicht kennen, behalten die erste. */
.kpz-dok-extern::after {
	content: " ↗";
	content: " ↗" / "";
}

.kpz-dok-angaben {
	flex-basis: 100%;
	font-size: 14px;
	color: #5b6166;
}

.kpz-dok-dateien {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kpz-dok-datei {
	display: inline-block;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--kpz-blau, #26668B);
	border: 1px solid var(--kpz-blau, #26668B);
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
}

.kpz-dok-datei:hover,
.kpz-dok-datei:focus {
	background: var(--kpz-blau, #26668B);
	color: #fff;
}

/* Mehrere Dateien (Formularsatz): untereinander, mit Dateinamen. */
.kpz-dok-dateien--liste {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.kpz-dok-datei--benannt {
	white-space: normal;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 15px;
}

.kpz-dok-dateiformat {
	font-weight: 400;
	white-space: nowrap;
	opacity: 0.8;
}

.kpz-wissen-verwendet ul {
	margin: 0;
	padding-left: 1.2em;
}

/* --------------------------------------------------------------------------
   Knopf „Zur Quelle" auf Verweisseiten
   -------------------------------------------------------------------------- */

.kpz-wissen-knopf {
	display: inline-block;
	padding: 13px 20px;
	font-size: 16px;
	font-weight: 600;
	color: #07231a;
	background: var(--kpz-gruen, #00A859);
	border-radius: 8px;
	text-decoration: none;
}

.kpz-wissen-knopf::after {
	content: " ↗";
	content: " ↗" / "";
}

.kpz-wissen-knopf:hover,
.kpz-wissen-knopf:focus {
	filter: brightness(1.08);
	color: #07231a;
}

/* --------------------------------------------------------------------------
   Hinweis am Ende jedes Artikels
   -------------------------------------------------------------------------- */

.kpz-wissen-hinweis {
	margin-top: 44px;
	padding: 18px 20px;
	font-size: 15px;
	line-height: 1.5;
	background: var(--kpz-flaeche, #f4f5f7);
	border-left: 4px solid var(--kpz-blau, #26668B);
	border-radius: 0 8px 8px 0;
}

.kpz-wissen-hinweis p {
	margin: 0;
}

.kpz-wissen-hinweis a {
	font-weight: 600;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Übersicht /wissen/
   -------------------------------------------------------------------------- */

.kpz-wissen-suche {
	margin: 0 0 36px;
}

.kpz-wissen-suche label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.kpz-wissen-suchzeile {
	display: flex;
	gap: 8px;
}

.kpz-wissen-suchzeile input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	font-size: 17px;
	border: 1px solid #9aa1a6;
	border-radius: 8px;
}

.kpz-wissen-suchzeile button {
	flex: none;
	padding: 12px 22px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--kpz-blau, #26668B);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.kpz-wissen-suchzeile button:hover,
.kpz-wissen-suchzeile button:focus {
	filter: brightness(1.1);
}

.kpz-wissen-kacheln {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kpz-kachel {
	margin: 0;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--kpz-linie, #d7dcdf);
	border-radius: 10px;
}

.kpz-kachel h2 {
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 2px;
}

.kpz-kachel h2 a {
	color: inherit;
	text-decoration: none;
}

.kpz-kachel h2 a:hover,
.kpz-kachel h2 a:focus {
	color: var(--kpz-blau, #26668B);
	text-decoration: underline;
}

.kpz-kachel-zahl {
	font-size: 13px;
	color: #5b6166;
	margin: 0 0 12px;
}

.kpz-kachel ul {
	margin: 0;
	padding-left: 1.1em;
}

.kpz-kachel li {
	margin: 0 0 7px;
}

.kpz-kachel li:last-child {
	margin-bottom: 0;
}

.kpz-wissen-leer {
	padding: 18px 20px;
	background: var(--kpz-flaeche, #f4f5f7);
	border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Schmale Bildschirme
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.kpz-wissen-suchzeile {
		flex-wrap: wrap;
	}

	.kpz-wissen-suchzeile button {
		width: 100%;
	}

	.kpz-wissen-hinweis {
		padding: 16px;
	}
}
