/*
  Menschen/Geschäftsführung Content Block (vital-theme/menschen)
  Alle eigenen Selektoren bewusst unter ".menschen" verschachtelt, damit sie
  nicht mit Bootstrap- oder anderen Theme-Klassen außerhalb dieses Content
  Blocks kollidieren (gleiches Prinzip wie hero.css/rundgang.css). Das
  Foto-Vergrößern selbst (".lightbox"/"rel=lightbox[...]") ist bewusst KEIN
  eigenes CSS/JS hier - das ist die vorhandene, sitebreite TYPO3-Lightbox-
  Markup-Konvention (siehe README.md), hier wird nur das STATISCHE Aussehen
  des Vorschaubilds/der Karte gestylt.
*/

.menschen {
	--menschen-green: #567e0a;
	--menschen-ink: #1a1a1a;
	--menschen-gray: #f4f5f1;
	--menschen-muted: #5a6350;
	--menschen-light: #F8F9FA;
	--menschen-radius: 10px;

	padding: 80px 0;
}

.menschen .wrap {
	width: min(1200px, calc(100% - 64px));
	margin-inline: auto;
}

.menschen .eyebrow {
	display: block;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--menschen-green);
	margin: 0 0 18px;
}

.menschen > .wrap > h2 {
	margin: 0 0 44px;
	max-width: 32ch;
}

.menschen--grid > .wrap > h2 {
	margin-bottom: 18px;
}

.menschen-intro {
	max-width: 70ch;
	margin: 0 0 44px;
	color: var(--menschen-muted);
}

.menschen-list {
	display: grid;
	gap: 40px;
}

/* Ansicht "Team-Kacheln + Feature-Karte" ----------------------------------- */

.menschen-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.menschen-tile {
	display: grid;
	grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr);
	background: var(--menschen-light);
	border: 1px solid #ececea;
	border-radius: var(--menschen-radius);
	overflow: hidden;
}

.menschen-tile-photo {
	position: relative;
	min-height: 220px;
	background: var(--menschen-gray);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px;
	text-align: center;
}

.menschen-tile-photo.has-photo {
	padding: 0;
}

.menschen-tile-photo a {
	position: absolute;
	inset: 0;
	display: block;
}

.menschen-tile-photo a:focus-visible {
	outline: 3px solid var(--menschen-green);
	outline-offset: -3px;
}

.menschen-tile-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	cursor: zoom-in;
}

.menschen-tile-placeholder-text,
.menschen-tile-placeholder-name {
	display: block;
	color: var(--menschen-muted);
}

.menschen-tile-placeholder-name {
	font-size: 1rem;
	font-weight: 700;
}

.menschen-tile-copy {
	padding: 22px 20px;
	min-width: 0;
}

.menschen-tile-copy h3 {
	font-size: 1.35rem;
	margin: 2px 0 8px;
}

.menschen-feature {
	margin-top: 40px;
}

.menschen-role-note {
	margin: -4px 0 0;
	color: var(--menschen-muted);
}

.menschen-person {
	display: grid;
	grid-template-columns: 270px 1fr;
	gap: 44px;
	align-items: start;
	background: var(--menschen-light);
	border: 1px solid #ececea;
	border-radius: var(--menschen-radius);
	padding: 28px;
}

.menschen-photo {
	margin: 0;
}

.menschen-photo a {
	display: block;
	border-radius: 6px;
	overflow: hidden;
}

.menschen-photo a:focus-visible {
	outline: 3px solid var(--menschen-green);
	outline-offset: 3px;
}

.menschen-photo img {
	display: block;
	width: 100%;
	height: 390px;
	object-fit: cover;
	object-position: top;
	cursor: zoom-in;
}

.menschen-copy {
	min-width: 0;
	padding: 14px 10px;
}

.menschen-copy h3 {
	font-size: 2rem;
	margin: 4px 0 10px;
}

.menschen-statement {
	font-weight: 700;
	font-size: 1.0625rem;
	margin: 0 0 14px;
}

.menschen-text {
	margin: 0 0 14px;
}

.menschen-copy > .menschen-text:last-child,
.menschen-tile-copy > .menschen-text:last-child {
	margin-bottom: 0;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 850px) {
	.menschen-person {
		grid-template-columns: 210px 1fr;
		gap: 24px;
	}

	.menschen-photo img {
		height: 315px;
	}

	.menschen-tile {
		grid-template-columns: 1fr;
	}

	.menschen-tile-photo {
		height: 220px;
		min-height: 0;
	}
}

@media (max-width: 600px) {
	.menschen {
		padding: 54px 0;
	}

	.menschen > .wrap > h2 {
		margin-bottom: 28px;
	}

	.menschen-person {
		grid-template-columns: 1fr;
		padding: 20px;
	}

	.menschen-photo img {
		height: auto;
		max-height: 460px;
		object-fit: contain;
		background: var(--menschen-gray);
	}

	.menschen-copy {
		padding: 5px 0 0;
	}

	.menschen-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.menschen-feature {
		margin-top: 28px;
	}
}
