/*
 * WJH Netzwerk: gleiche Bausteine wie die Eventseiten (Child-Theme, .wjh-ev):
 * Text links, blauer Kasten rechts (mobil oben), Labels türkis in Großbuchstaben,
 * Listen mit türkisen Quadraten, Überschriften Chivo in Blau, Fließtext Bitter.
 * Keine runden Formen außer dem Button-Radius des Themes (4px).
 */

/* Personenseite ------------------------------------------------------- */
.wjh-nw-person {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 60px;
	align-items: start;
	margin: 0 0 40px;
}
.wjh-nw-person__haupt > :first-child { margin-top: 0; }

.wjh-nw-abschnitt { margin: 0 0 32px; }
.wjh-nw-person h2 {
	margin: 32px 0 12px;
	font-family: Chivo, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	color: #003594;
}
.wjh-nw-abschnitt h2 { margin-top: 0; }
.wjh-nw-person__text p { margin: 0 0 16px; }

.wjh-nw-liste {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2 220px;
	column-gap: 32px;
}
.wjh-nw-liste li {
	position: relative;
	margin: 0 0 8px;
	padding: 0 0 0 24px;
	break-inside: avoid;
}
.wjh-nw-liste li::before {
	content: "";
	position: absolute;
	top: .55em;
	left: 0;
	width: 8px;
	height: 8px;
	background: #47d7ac;
}

.wjh-nw-person__zurueck { margin: 40px 0 0; font-family: Chivo, sans-serif; font-weight: 700; }
.wjh-nw-person__zurueck a { color: #003594; }
.wjh-nw-person__zurueck a::before { content: "← "; }

/* Steckbrief (rechts) */
.wjh-nw-steckbrief {
	position: sticky;
	top: 120px;
	padding: 30px;
	background: #003594;
	color: #fff;
	font-family: Chivo, sans-serif;
}
.wjh-nw-steckbrief__foto {
	display: block;
	width: 160px;
	height: 160px;
	margin: 0 auto 20px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center; /* Köpfe nicht anschneiden */
}
.wjh-nw-steckbrief__rolle {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.4;
	text-align: center;
}
.wjh-nw-steckbrief__rolle strong { font-size: 18px; }
.wjh-nw-steckbrief__rolle a { color: #fff; }
.wjh-nw-steckbrief .wjh-nw-status { display: block; margin: 0 0 24px; text-align: center; }

.wjh-nw-steckbrief__aktion {
	display: block;
	margin-top: 8px;
	padding: 12px 22px;
	border: 2px solid #fff;
	border-radius: 4px;
	background: #fff;
	color: #003594;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}
.wjh-nw-steckbrief__aktion:hover,
.wjh-nw-steckbrief__aktion:focus-visible { background: transparent; color: #fff; }

/* Faktenliste: im Steckbrief und als eigener Kasten (Organisation, Projekt) */
.wjh-nw-fakten { margin: 0 0 24px; }
.wjh-nw-fakten > div { padding: 0 0 14px; }
.wjh-nw-fakten dt {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #47d7ac;
}
.wjh-nw-fakten dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.wjh-nw-fakten a { color: inherit; text-decoration: underline; }
.wjh-nw-fakten a:hover,
.wjh-nw-fakten a:focus-visible { color: #47d7ac; }

.wjh-nw-steckbrief .wjh-nw-fakten { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 20px; }
.wjh-nw-steckbrief .wjh-nw-fakten:last-child { margin-bottom: 0; }

/* Eigenständiger Kasten (Organisation, Projekt) */
.wjh-nw-fakten--kasten {
	display: grid;
	gap: 0 32px;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	padding: 30px 30px 16px;
	background: #003594;
	color: #fff;
	font-family: Chivo, sans-serif;
}

/* Status-Etikett */
.wjh-nw-status {
	display: inline-block;
	margin: 0;
	padding: 6px 10px;
	font-family: Chivo, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.wjh-nw-status--frei { background: #47d7ac; color: #003594; }
.wjh-nw-status--belegt { background: #a2aaad; color: #fff; }

/* Listen und Karten (Shortcode, Organisation, Projekt) ---------------- */
.wjh-nw-bezug { margin: 40px 0 0; }
.wjh-nw-bezug h2 { color: #003594; }

/* Zentriert umbrechend wie die zentrierten Gruppentitel des Themes; eine unvollständige Reihe steht mittig. */
.wjh-nw-karten {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wjh-nw-karte { flex: 0 0 200px; margin: 0; padding: 0; }
.wjh-nw-karte::before { content: none; }
.wjh-nw-karte a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	color: inherit;
	text-align: center;
	text-decoration: none;
}
.wjh-nw-karte__bild {
	width: 160px;
	height: 160px;
	margin-bottom: 8px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
}
.wjh-nw-karte__name { font-family: Chivo, sans-serif; font-weight: 700; color: #003594; }
.wjh-nw-karte a:hover .wjh-nw-karte__name,
.wjh-nw-karte a:focus-visible .wjh-nw-karte__name { text-decoration: underline; }
.wjh-nw-karte a:focus-visible { outline: 3px solid #47d7ac; outline-offset: 4px; }
.wjh-nw-karte__zeile { font-size: 14px; }

/* Mobil: Steckbrief zuerst, wie auf den Eventseiten */
@media (max-width: 900px) {
	.wjh-nw-person { grid-template-columns: 1fr; gap: 40px; }
	.wjh-nw-steckbrief { position: static; order: -1; padding: 24px; }
}
@media (max-width: 600px) {
	.wjh-nw-liste { columns: 1; }
	.wjh-nw-karten { gap: 24px 16px; }
	.wjh-nw-karte { flex-basis: calc(50% - 8px); }
	.wjh-nw-karte__bild { width: 120px; height: 120px; }
}

/* Organisationen (Shortcode) */
.wjh-nw-orgs {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}
.wjh-nw-org { margin: 0; padding: 24px; border-top: 4px solid #47d7ac; background: #f4f6fa; }
.wjh-nw-org::before { content: none; }
.wjh-nw-org__logo { display: block; max-width: 160px; max-height: 64px; width: auto; height: auto; margin: 0 0 16px; }
.wjh-nw-org__name { margin: 0 0 8px; font-family: Chivo, sans-serif; font-size: 20px; }
.wjh-nw-org__name a { color: #003594; text-decoration: none; }
.wjh-nw-org__name a:hover, .wjh-nw-org__name a:focus-visible { text-decoration: underline; }
.wjh-nw-org p { margin: 0; font-size: 16px; }

/* Platzhalter ohne Foto: Initialen im Kreis, wie die Mentorenfotos */
.wjh-nw-initialen {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #47d7ac;
	color: #003594;
	font-family: Chivo, sans-serif;
	font-size: 48px;
	font-weight: 900;
	line-height: 1;
}
.wjh-nw-karte__bild.wjh-nw-initialen { flex: 0 0 auto; }
@media (max-width: 600px) { .wjh-nw-karte__bild.wjh-nw-initialen { font-size: 36px; } }

/* Mentorenübersicht: Filterleiste links, Karten rechts; Chips wie im Veranstaltungsfilter */
.wjh-nw-mentoren {
	margin-top: 32px !important;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	margin: 0 0 56px;
	font-family: Chivo, sans-serif;
}
.wjh-nw-mentoren [hidden] { display: none !important; }

.wjh-nw-filter { position: sticky; top: 120px; }
.wjh-nw-filter summary {
	display: none;
	padding: 10px 16px;
	border: 2px solid #003594;
	color: #003594;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.wjh-nw-filter summary::-webkit-details-marker { display: none; }
.wjh-nw-filter__titel {
	display: block;
	margin: 24px 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #003594;
}
.wjh-nw-filter__inhalt > :first-child { margin-top: 0; }
.wjh-nw-filter__suche {
	width: 100%;
	padding: 8px 12px;
	border: 2px solid #003594;
	border-radius: 0;
	font: inherit;
	font-size: 15px;
}
.wjh-nw-filter__suche:focus-visible { outline: 3px solid #47d7ac; outline-offset: 1px; }
.wjh-nw-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wjh-nw-chip {
	padding: 6px 12px;
	border: 2px solid #003594;
	border-radius: 0;
	background: #fff;
	color: #003594;
	font-family: Chivo, sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.wjh-nw-chip span { font-weight: 400; opacity: .7; }
.wjh-nw-chip.is-aktiv { background: #003594; color: #fff; }
.wjh-nw-chip:focus-visible { outline: 3px solid #47d7ac; outline-offset: 2px; }

.wjh-nw-mentoren__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 4px solid #47d7ac;
}
.wjh-nw-mentoren__zahl { margin: 0; font-size: 20px; font-weight: 900; text-transform: uppercase; color: #003594; }
.wjh-nw-mentoren__reset { padding: 0; border: 0; background: none; color: #003594; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.wjh-nw-mentoren__leer { font-weight: 700; }

.wjh-nw-mkarten {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wjh-nw-mkarte { margin: 0; padding: 0; }
.wjh-nw-mentoren *, .wjh-nw-mentoren *::before { box-sizing: border-box; }
.wjh-nw-mkarte::before { content: none; }
.wjh-nw-mkarte a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 24px 16px 18px;
	border: 2px solid #dfe4ee;
	background: #fff;
	color: inherit;
	text-align: center;
	text-decoration: none;
	transition: border-color .15s ease;
}
.wjh-nw-mkarte a:hover { border-color: #003594; }
.wjh-nw-mkarte__bild { width: 140px; height: 140px; margin-bottom: 6px; border-radius: 50%; object-fit: cover; object-position: top center; }
.wjh-nw-mkarte__name { font-size: 17px; font-weight: 700; color: #003594; }
.wjh-nw-mkarte a:hover .wjh-nw-mkarte__name,
.wjh-nw-mkarte a:focus-visible .wjh-nw-mkarte__name { text-decoration: underline; }
.wjh-nw-mkarte a:focus-visible { outline: 3px solid #47d7ac; outline-offset: 2px; }
.wjh-nw-mkarte__zeile { font-size: 14px; line-height: 1.35; }
.wjh-nw-mkarte__themen { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 2px; }
.wjh-nw-mkarte__themen span {
	padding: 2px 6px;
	border: 1px solid #003594;
	color: #003594;
	font-size: 12px;
	font-weight: 700;
}
.wjh-nw-mkarte .wjh-nw-ampel { margin-top: auto; padding-top: 12px; border-top: 1px solid #dfe4ee; width: 100%; justify-content: center; }

/* Ampel: grüner Punkt verfügbar, grauer Punkt ausgebucht */
.wjh-nw-ampel {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: Chivo, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #1d1d1b;
}
.wjh-nw-ampel::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2e9e5b;
}
.wjh-nw-ampel--belegt { color: #6b7378; }
.wjh-nw-ampel--belegt::before { background: #a2aaad; }

@media (max-width: 900px) {
	.wjh-nw-mentoren { grid-template-columns: 1fr; gap: 24px; }
	.wjh-nw-filter { position: static; }
	.wjh-nw-filter summary { display: inline-block; }
	.wjh-nw-filter[open] summary { margin-bottom: 16px; background: #003594; color: #fff; }
}
@media (max-width: 600px) {
	.wjh-nw-mkarten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.wjh-nw-mkarte a { padding: 16px 10px 14px; }
	.wjh-nw-mkarte__bild { width: 110px; height: 110px; }
}

/* Ampel im blauen Steckbrief */
.wjh-nw-steckbrief__mentor { margin: 0 0 24px; text-align: center; font-weight: 700; }
.wjh-nw-steckbrief .wjh-nw-ampel { color: #fff; }
.wjh-nw-steckbrief .wjh-nw-ampel::before { background: #47d7ac; }
.wjh-nw-steckbrief .wjh-nw-ampel--belegt { color: #d6dadc; }
.wjh-nw-steckbrief .wjh-nw-ampel--belegt::before { background: #a2aaad; }
.wjh-nw-mkarte__themen span { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 600px) { .wjh-nw-mkarte__themen span { font-size: 11px; padding: 2px 4px; } }

/* Profil ändern */
.wjh-nw-profil { max-width: 640px; display: grid; gap: 8px; }
.wjh-nw-profil fieldset { border: 2px solid #dfe4ee; margin: 16px 0 0; padding: 16px 20px 20px; display: grid; gap: 8px; }
.wjh-nw-profil legend { font-weight: 700; color: #003594; padding: 0 6px; }
.wjh-nw-profil label { font-weight: 600; }
.wjh-nw-profil input[type="email"], .wjh-nw-profil input[type="text"], .wjh-nw-profil input[type="url"], .wjh-nw-profil textarea {
	width: 100%; box-sizing: border-box; border: 2px solid #003594; border-radius: 0; padding: 10px 12px; font: inherit; margin-bottom: 8px;
}
.wjh-nw-profil input:focus-visible, .wjh-nw-profil textarea:focus-visible, .wjh-nw-knopf:focus-visible { outline: 3px solid #47d7ac; outline-offset: 1px; }
.wjh-nw-profil .wjh-nw-profil__check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.wjh-nw-profil__check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #003594; }
.wjh-nw-profil__info { font-size: 14px; color: #555; margin: 0; }
.wjh-nw-profil__falle { position: absolute; left: -9999px; }
.wjh-nw-profil__hinweis { border-left: 6px solid #47d7ac; background: #e6ebf4; padding: 14px 18px; max-width: 640px; }
.wjh-nw-knopf { justify-self: start; margin-top: 16px; background: #003594; color: #fff; border: 2px solid #003594; border-radius: 4px; padding: 12px 24px; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.wjh-nw-knopf:hover { background: #fff; color: #003594; }

/* [wjh_veranstaltungen] */
.wjh-nw-events { list-style: none; margin: 24px auto 0; padding: 0; max-width: 760px; display: grid; gap: 12px; }
.wjh-nw-event { margin: 0; padding: 0; }
.wjh-nw-event::before { content: none; }
.wjh-nw-event a { display: flex; align-items: center; gap: 20px; padding: 14px 18px; border: 2px solid #dfe4ee; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s ease; }
.wjh-nw-event a:hover { border-color: #003594; }
.wjh-nw-event a:focus-visible { outline: 3px solid #47d7ac; outline-offset: 2px; }
.wjh-nw-event__tag { flex: 0 0 64px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #003594; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.wjh-nw-event__tag strong { font-family: Chivo, sans-serif; font-size: 26px; line-height: 1; }
.wjh-nw-event__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wjh-nw-event__titel { font-family: Chivo, sans-serif; font-weight: 700; color: #003594; font-size: 1.125rem; }
.wjh-nw-event__meta { font-size: 14px; color: #333; }
.wjh-nw-events__leer { text-align: center; }

/* [wjh_rueckblicke] */
.wjh-nw-rueckblicke__jahre { justify-content: center; margin-bottom: 28px; }
.wjh-nw-rb-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.wjh-nw-rb { margin: 0; padding: 0; }
.wjh-nw-rb::before { content: none; }
.wjh-nw-rb[hidden] { display: none !important; }
.wjh-nw-rb a { display: flex; flex-direction: column; height: 100%; background: #e6ebf4; color: inherit; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.wjh-nw-rb a:hover { box-shadow: 0 10px 28px rgba(0, 53, 148, .14); transform: translateY(-3px); }
.wjh-nw-rb a:focus-visible { outline: 3px solid #47d7ac; outline-offset: 3px; }
/* Rückblicke bewusst flacher als Eventbilder (3:2), damit Events im Vordergrund stehen */
.wjh-nw-rb__bild { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 30%; border-bottom: 5px solid #47d7ac; }
.wjh-nw-rb__bild--leer { background: #003594; }
.wjh-nw-rb__text { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1 1 auto; }
.wjh-nw-rb__datum { font-size: 13px; font-weight: 700; color: #47d7ac; text-transform: uppercase; letter-spacing: .04em; }
.wjh-nw-rb__titel { font-family: Chivo, sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: #003594; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.wjh-nw-rb__auszug { font-size: 15px; line-height: 1.55; }
.wjh-nw-rb__mehr { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; }
.wjh-nw-rb__mehr::after { content: " \203A"; color: #f8a102; }
.wjh-nw-rueckblicke__mehr { display: flex; justify-content: center; margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { .wjh-nw-rb a { transition: none; } .wjh-nw-rb a:hover { transform: none; } }

/* Rückblick-Karte: kleines Bild der Veranstaltung als Wiedererkennung */
.wjh-nw-rb__medien { position: relative; display: block; }

