/* ==========================================================================
   Seite: Team – nur auf dieser Seite geladen (Freiheitsstufe 2)
   Redesign 11/2026 im Stil der Startseite („Clean Dark“, Issue #3).
   Abschnitte: components/custom/team-*.php · Präfix .tm-
   Grundlage sind die Startseiten-Bausteine (Hero, Bento-Karten, Team-Raster)
   aus homepage.css – per @import, damit beide Seiten gleich bleiben.
   ?v= hochzählen, wenn sich homepage.css ändert (Cache).
   ========================================================================== */

@import url("homepage.css?v=3");

html { scroll-behavior: smooth; }

.seite-team [id] { scroll-margin-top: 96px; }

/* ==========================================================================
   1 · HERO – Titel, Sprung-Pillen, Gesamtteamfoto
   ========================================================================== */

.tm-hero {
	min-height: 0;
	padding-block: clamp(120px, 12vw, 180px) clamp(72px, 8vw, 120px);
}

.tm-hero .wbd-hero__titel { font-size: clamp(56px, 10vw, 160px); }

.tm-hero__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 880px;
	margin: 40px auto 0;
}

.tm-hero__nav .wbd-pille {
	min-height: 44px;
	box-sizing: border-box;
	text-decoration: none;
	transition: border-color var(--uebergang), color var(--uebergang);
}

.tm-hero__nav .wbd-pille:hover {
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--farbe-text);
}

.tm-hero__nav .tm-hero__pille--akzent {
	border-color: rgba(var(--farbe-akzent-rgb), 0.5);
	color: var(--farbe-text);
}

.tm-hero__bild {
	min-height: clamp(340px, 46vw, 660px);
	margin-top: clamp(56px, 6vw, 88px);
	border-radius: var(--radius-l);
}

.tm-hero__bild img { object-position: center 30%; }

/* ==========================================================================
   2 · MANAGING DIRECTORS – Foto groß, dezente orange Kante
   ========================================================================== */

.tm-gf { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

.tm-gf .wbd-bild {
	min-height: clamp(340px, 40vw, 600px);
	border-radius: var(--radius-l);
	border-color: rgba(var(--farbe-akzent-rgb), 0.35);
	box-shadow: 0 0 0 8px rgba(var(--farbe-akzent-rgb), 0.06);
}

.tm-gf .wbd-bild img { object-position: center 30%; }

.tm-gf__namen {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--farbe-linie);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.tm-gf__namen span {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 400;
	color: var(--farbe-text-gedaempft);
}

/* ==========================================================================
   3 · TEAMS – Bildkarten im Zweier-Raster
   ========================================================================== */

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

.tm-teams .wbd-bento__karte .wbd-bild {
	flex: none;
	min-height: 0;
	aspect-ratio: 3 / 2;
}

.tm-teams .wbd-bento__karte .wbd-bild img { object-position: center 30%; }

.tm-teams .wbd-bento__text { padding: clamp(22px, 2.4vw, 32px); }
.tm-teams .wbd-bento__titel { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }

.tm-teams .wbd-bento__beschreibung {
	max-width: 480px;
	margin-top: 10px;
	font-size: 15.5px;
	line-height: 1.55;
}

/* ==========================================================================
   4 · BEWERBEN (#apply) – zentriert, Licht von unten
   ========================================================================== */

.tm-bewerben { background: var(--farbe-tiefe); }
.tm-bewerben .wbd-hero__licht { top: auto; bottom: -60%; }

.tm-bewerben .wbd-kopf {
	position: relative;
	z-index: 1;
	margin-bottom: 0;
}

.tm-bewerben .button-gruppe {
	justify-content: center;
	margin-top: 40px;
}

/* ==========================================================================
   Responsiv
   ========================================================================== */

@media (max-width: 1023px) {
	.tm-gf { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 719px) {
	.tm-teams { grid-template-columns: minmax(0, 1fr); }
	.tm-hero__nav { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
