/*
 * Über uns — Team. Follows the system colour scheme, same as ueber-uns-intro.css (see the
 * comment there) — full-bleed background on the section itself, content constrained via
 * `.nn-au-team > *` instead of a max-width on the section, so the background can span edge
 * to edge in both themes. Photo is a pure-CSS flip card: on hover the inner wrapper rotates
 * 180deg around the Y axis, swapping which face (front/back) is visible — no JS. Both faces
 * are square and object-fit:cover, so front/back line up exactly regardless of the two
 * source photos' own aspect ratios.
 *
 * Große Screens (ab ca. 1900px, z. B. 2560x1440): alle clamp()-Obergrenzen sowie die
 * Container-/Textbreiten wurden analog zu cro.css angehoben (Container 1200px→1500px,
 * Bio-Text 62ch→75ch, Foto-Rahmen moderat vergrößert usw.), der vw/vh-Koeffizient blieb
 * dabei jeweils unverändert, damit die Sektion über den bisherigen Plateau-Punkt hinaus
 * weiterwächst statt auf sehr breiten Screens frühzeitig einzufrieren; der Flip-Hover-
 * Mechanismus selbst (Größenverhältnis Vorder- / Rückseite, Rotation) bleibt unverändert.
 *
 * Zweite Anhebung (Angleichung an cro.css & Co., die mit .wrap 2200px breiter laufen):
 * Container 1500px→2200px, alle übrigen clamp()-Obergrenzen (inkl. der Foto-Rahmen-Größen)
 * um denselben Faktor (~1.467) angehoben — Koeffizient und Minimum unverändert. Der
 * 75ch-Cap auf den Bio-Absätzen ist eine Textbreiten-Grenze, keine Viewport-Fill-Grenze,
 * und blieb bewusst unverändert.
 */
.nn-au-team,
.nn-au-team *,
.nn-au-team *::before,
.nn-au-team *::after {
	box-sizing: border-box;
}

.nn-au-team {
	--bg: #ffffff;
	--ink-on-paper: #12211a;
	--ink-on-paper-muted: #5c6d64;
	--line-light: #dfe8e2;
	--paper-2: #ffffff;
	--jade: #288760;
	--jade-dark: #1a5140;

	background: var(--bg);
	padding: clamp(3rem, 9vh, 11.35rem) clamp(1.5rem, 5vw, 7.7rem);
	color: var(--ink-on-paper);
}
.nn-au-team > * {
	max-width: 2200px;
	margin-left: auto;
	margin-right: auto;
}

/* light is the unconditional default above, dark is the only guarded/explicit variant —
   see the "Light/Dark-Konvention" comment in nav.css. true dark-green (#1a5140) would
   barely read against this section's near-black dark background — jade-mid stands in so
   the LinkedIn link stays legibly green without just becoming illegible dark-on-dark. */
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .nn-au-team {
		--bg: #0b0c0c;
		--ink-on-paper: #e7e9ec;
		--ink-on-paper-muted: #b0b5bf;
		--line-light: #22362c;
		--paper-2: #14201a;
		--jade: #288760;
		--jade-dark: #5ca87c;
	}
	/* the flip card's soft drop shadow (tuned for a light card on a light bg) barely reads
	   against a dark background — a plain border stands in for it there instead */
	html:not([data-theme="light"]) .nn-au-flip-face {
		box-shadow: none;
		border: 1px solid var(--line-light);
	}
	html:not([data-theme="light"]) .nn-au-value-tile {
		box-shadow: none;
	}
}
html[data-theme="dark"] .nn-au-team {
	--bg: #0b0c0c;
	--ink-on-paper: #e7e9ec;
	--ink-on-paper-muted: #b0b5bf;
	--line-light: #22362c;
	--paper-2: #14201a;
	--jade: #288760;
	--jade-dark: #5ca87c;
}
html[data-theme="dark"] .nn-au-flip-face {
	box-shadow: none;
	border: 1px solid var(--line-light);
}
html[data-theme="dark"] .nn-au-value-tile {
	box-shadow: none;
}

.nn-au-team .nn-kicker {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--jade);
	/* margin-top/bottom only — a shorthand "margin" here would reset the left/right:auto
	   centering set by `.nn-au-team > *` (same bug/fix as ueber-uns-intro.css) */
	margin-top: 0;
	margin-bottom: 0.75rem;
}
.nn-au-team-h2 {
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.02;
	font-size: clamp(2rem, 4.5vw, 5.7rem);
	color: var(--ink-on-paper);
	margin-top: 0;
	margin-bottom: clamp(2.5rem, 6vh, 7.6rem);
}

.nn-au-person-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 2.25vw, 2.5rem);
}
.nn-au-person {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(1rem, 2vh, 1.75rem);
}

/* the flip card: perspective on the outer element, the actual rotation on the inner one —
   standard split so backface-visibility:hidden on the faces works as expected */
.nn-au-flip {
	width: 100%;
	max-width: clamp(220px, 24vw, 440px);
	aspect-ratio: 1 / 1;
	perspective: 1200px;
}
.nn-au-flip-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
	transform-style: preserve-3d;
}
.nn-au-flip:hover .nn-au-flip-inner {
	transform: rotateY(180deg);
}
.nn-au-flip-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 14px 30px rgba(18, 33, 26, 0.12);
	background: var(--paper-2);
}
.nn-au-flip-face--back {
	transform: rotateY(180deg);
}
.nn-au-flip-face img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Patrick's two real photos — cropped square, biased to keep his face/shoulders framed.
   --front (team-patrick-2.jpg, black polo) is the taller/portrait-shaped source, needs a
   top-biased crop or his head gets cut off; --back (team-patrick-1.jpg, white shirt) is the
   wider/landscape-shaped source, centered works fine. */
.nn-au-flip-face--front img {
	object-position: center 15%;
}
.nn-au-flip-face--back img {
	object-position: center 50%;
}
/* Stefan's and Peter's photos are both the wider/landscape-shaped kind (unlike Patrick's
   front) — a plain centred crop already frames them well on both, so this only needs to
   override the Patrick-tuned --front default above, not the --back one (already
   center/50% there). */
.nn-au-person--stefan .nn-au-flip-face--front img,
.nn-au-person--peter .nn-au-flip-face--front img {
	object-position: center 50%;
}
.nn-au-flip-face--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px dashed var(--line-light);
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.8rem;
	color: var(--ink-on-paper-muted);
	text-align: center;
}

.nn-au-person-body {
	min-width: 0;
	width: 100%;
	max-width: clamp(220px, 24vw, 440px);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: center;
}
.nn-au-person-name {
	font-weight: 900;
	letter-spacing: -0.01em;
	font-size: clamp(1.1rem, 1.6vw, 1.9rem);
	color: var(--ink-on-paper);
	margin: 0 0 0.75rem;
}
.nn-au-person-body p:not(.nn-au-person-linkedin) {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--ink-on-paper-muted);
	text-align: justify;
	text-align-last: left;
	hyphens: auto;
	margin: 0 0 1rem;
}
.nn-au-person-linkedin {
	margin: 0.5rem 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}
.nn-au-person-linkedin a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	color: var(--jade-dark);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.nn-au-person-linkedin a:hover,
.nn-au-person-linkedin a:focus-visible {
	color: var(--jade);
	border-color: var(--jade);
}
.nn-au-person-sep {
	/* auf Wunsch: LinkedIn-Link und E-Mail stehen jetzt untereinander statt in einer Zeile
	   (.nn-au-person-linkedin, s.o.) — der Trenner zwischen beiden ist damit überflüssig. */
	display: none;
}
.nn-au-linkedin-icon {
	width: 0.9rem;
	height: 0.9rem;
	display: block;
}

.nn-au-values-head {
	margin-top: clamp(3rem, 7vh, 8.6rem);
	padding-top: clamp(2.5rem, 6vh, 6.65rem);
	border-top: 1px solid var(--line-light);
	margin-bottom: clamp(1.75rem, 4vh, 4.75rem);
}
.nn-au-values-h2 {
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.05;
	font-size: clamp(1.75rem, 3.8vw, 4.75rem);
	color: var(--ink-on-paper);
	margin: 0;
}

.nn-au-values {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1rem, 2.5vw, 2.85rem);
}
.nn-au-value-tile {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: clamp(1.5rem, 3vw, 3.8rem) clamp(1.25rem, 2.5vw, 2.85rem);
	border: 1px solid var(--line-light);
	border-radius: 10px;
	background: var(--paper-2);
	box-shadow: 0 10px 24px rgba(18, 33, 26, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nn-au-value-tile:hover {
	transform: translateY(-3px);
	border-color: var(--jade);
}
.nn-au-value-num {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--jade);
	letter-spacing: 0.05em;
}
.nn-au-value-desc {
	font-size: 0.85rem;
	line-height: 1.5;
	font-weight: 400;
	color: var(--ink-on-paper-muted);
	margin-top: 0.15rem;
}
.nn-au-value-label {
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.2;
	font-size: clamp(1.05rem, 1.6vw, 2.35rem);
	color: var(--ink-on-paper);
}

@media (max-width: 900px) {
	.nn-au-person-list {
		grid-template-columns: 1fr;
		gap: clamp(2.5rem, 6vh, 4rem);
	}
	/* War clamp(160px,45vw,240px) — ein Wert aus der Zeit vor der einspaltigen
	   Mobile-Ansicht (45vw ergibt bei zwei Spalten nebeneinander Sinn, deckelte
	   das Foto hier aber weit unter der tatsächlich verfügbaren Zeilenbreite).
	   Jetzt: nutzt die volle Spaltenbreite (100%, die bereits das Section-
	   Padding von .nn-au-team berücksichtigt), mit 420px als Obergrenze für
	   breitere Tablet-Breiten kurz vor diesem Breakpoint. */
	.nn-au-flip {
		max-width: min(420px, 100%);
	}
	.nn-au-person-body {
		max-width: min(420px, 100%);
	}
}

@media (max-width: 700px) {
	.nn-au-values {
		grid-template-columns: repeat(2, 1fr);
	}
}
