/* =========================================================================
   MODULDREI: Stylesheet der Personenseite (Teamseite)
   =========================================================================
   Wird nur auf Beitraegen mit dieser Vorlage geladen (siehe inc/m3-templates.php).
   Alle Regeln haengen an der Klasse .m3-team am body-Element, damit nichts
   ausserhalb der Vorlage beeinflusst wird.

   Aufbau und Werte stammen aus dem abgestimmten Entwurf
   https://kunden.masdemas.de/modul3-team-vorlage/ Die Farben kommen aus der
   Theme-Palette und nicht als feste Hex-Werte. Die Hex-Werte dahinter sind nur
   der Rueckfall, falls eine Variable fehlt.

   Schriften werden hier nicht geladen. Exo und Roboto bringt das Theme mit.
   ========================================================================= */

.m3-team {
	--m3-pink: var(--global-palette1, #d13e6f);
	--m3-dunkel: var(--global-palette3, #23394a);
	--m3-blau: var(--global-palette4, #497593);
	--m3-teal: var(--global-palette6, #8fd3d1);
	--m3-hell: var(--global-palette8, #dceeef);
	--m3-weiss: var(--global-palette9, #ffffff);

	--m3-schrift-titel: "Exo", "Segoe UI", Arial, sans-serif;
	--m3-schrift-text: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

	--m3-raster: 1200px;
	--m3-raster-innen: 40px;
}

/* -------------------------------------------------------------------------
   Grundgeruest
   ------------------------------------------------------------------------- */

.m3-team .m3-beitrag {
	font-family: var(--m3-schrift-text);
	font-size: 18px;
	line-height: 1.6;
	color: var(--m3-dunkel);
	background: var(--m3-weiss);
	overflow-x: hidden;
}

.m3-team .m3-beitrag img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Nur der obere Abstand wird zurueckgesetzt. Den unteren bestimmt jede
   Ueberschrift selbst ueber ihre Klasse. Stuende hier margin:0, gaebe es keinen
   Weg mehr, ihn per Klasse zu setzen. */
.m3-team .m3-beitrag h1,
.m3-team .m3-beitrag h2,
.m3-team .m3-beitrag h3 {
	font-family: var(--m3-schrift-titel);
	margin-top: 0;
}

.m3-team .m3-beitrag p {
	margin: 0 0 22px;
}

.m3-team .m3-beitrag p:last-child {
	margin-bottom: 0;
}

.m3-team .section {
	width: 100%;
	padding: 64px 0;
}

.m3-team .section__inner {
	max-width: var(--m3-raster);
	margin: 0 auto;
	padding: 0 var(--m3-raster-innen);
}

.m3-team .section--hell {
	background: var(--m3-hell);
}

.m3-team .section--blau {
	background: var(--m3-blau);
	color: var(--m3-weiss);
}

.m3-team .section--schmal {
	padding: 48px 0;
}

/* Nur fuer Screenreader: ergaenzt kurze Linktexte um das Ziel. */
.m3-team .nur-screenreader {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Die Farbe steht ausdruecklich an jeder Ueberschrift. Das Theme setzt fuer
   h1 bis h3 eine eigene Farbe, und eine geerbte Farbe verliert immer gegen eine
   direkt gesetzte. */
.m3-team .h-sektion {
	font-size: 38px;
	line-height: 1.15;
	font-weight: 900;
	text-transform: uppercase;
	margin: 0 0 20px;
	color: var(--m3-dunkel);
}

.m3-team .section--blau .h-sektion {
	color: var(--m3-weiss);
}

.m3-team .lesen {
	max-width: 760px;
}

.m3-team .lesen a {
	color: var(--m3-blau);
}

/* Buttons */
.m3-team .btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--m3-schrift-text);
	font-size: 17px;
	line-height: 1.6;
	padding: 10px 24px;
	border-radius: 3px;
	text-decoration: none;
	background: var(--m3-blau);
	color: var(--m3-weiss);
	border: 0;
	transition: background .2s ease;
}

.m3-team .btn:hover,
.m3-team .btn:focus {
	background: var(--m3-dunkel);
	color: var(--m3-weiss);
}

.m3-team .btn--pink {
	background: var(--m3-pink);
}

.m3-team .btn--pink:hover,
.m3-team .btn--pink:focus {
	background: var(--m3-dunkel);
}

/* -------------------------------------------------------------------------
   Abschnitt 1: Personenkopf
   ------------------------------------------------------------------------- */

.m3-team .person {
	background: var(--m3-dunkel);
	color: var(--m3-weiss);
	padding: 64px 0;
}

.m3-team .person__inner {
	max-width: var(--m3-raster);
	margin: 0 auto;
	padding: 0 var(--m3-raster-innen);
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 56px;
	align-items: start;
}

/* Das Portrait wird auf Hochformat beschnitten, damit alle Personenseiten
   gleich aussehen, auch wenn ein Bild im Querformat hochgeladen wurde. */
/* Ohne Portrait nimmt der Text die volle Breite, statt dass links eine leere
   Spalte steht. Kommt vor, solange ein Bild fehlt. */
.m3-team .person__inner--ohne-bild {
	grid-template-columns: 1fr;
}

.m3-team .person__bild img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 20%;
}

.m3-team .person__pfad {
	font-size: 16px;
	margin: 0 0 18px;
	color: var(--m3-weiss);
}

.m3-team .person__pfad a {
	color: var(--m3-weiss);
	text-decoration: none;
}

.m3-team .person__pfad a:hover {
	text-decoration: underline;
}

.m3-team .person__name {
	font-size: clamp(32px, 3.4vw, 52px);
	line-height: 1.1;
	font-weight: 900;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: var(--m3-weiss);
}

.m3-team .person__funktion {
	font-family: var(--m3-schrift-titel);
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 0 0 18px;
	color: var(--m3-teal);
}

.m3-team .person__rollen {
	margin: 0 0 28px;
	color: var(--m3-weiss);
}

.m3-team .trenner {
	width: 120px;
	height: 6px;
	background: var(--m3-teal);
	border: 0;
	margin: 0 0 26px;
}

/* Die drei Kontaktwege stehen untereinander. Nebeneinander rutschten sie je
   nach Laenge der Adresse unterschiedlich weit ein und wirkten unruhig. */
.m3-team .kontaktwege {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
}

.m3-team .kontaktwege li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.m3-team .kontaktwege svg {
	width: 22px;
	height: 22px;
	fill: var(--m3-teal);
	flex: none;
}

.m3-team .kontaktwege a {
	color: var(--m3-weiss);
	text-decoration: underline;
}

.m3-team .kontaktwege a:hover {
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Abschnitt 2: Kurztext
   ------------------------------------------------------------------------- */

.m3-team .lead {
	font-size: 22px;
	line-height: 1.55;
	margin: 0;
	max-width: 860px;
	color: var(--m3-dunkel);
}

/* -------------------------------------------------------------------------
   Abschnitt 4: Schwerpunkte
   ------------------------------------------------------------------------- */

/* Untereinander statt nebeneinander: bei wenigen Stichworten wirkte eine
   dreispaltige Reihe auseinandergerissen und die Flaeche leer. */
.m3-team .schwerpunkte {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.m3-team .schwerpunkte li {
	position: relative;
	padding-left: 36px;
	line-height: 1.5;
}

.m3-team .schwerpunkte svg {
	position: absolute;
	left: 0;
	top: 4px;
	width: 20px;
	height: 20px;
	fill: var(--m3-teal);
}

/* -------------------------------------------------------------------------
   Abschnitt 5: Beitraege dieser Person
   ------------------------------------------------------------------------- */

.m3-team .grid-beitraege {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.m3-team .beitragskarte {
	background: var(--m3-weiss);
	display: flex;
	flex-direction: column;
}

.m3-team .beitragskarte__bild img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.m3-team .beitragskarte__inhalt {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.m3-team .beitragskarte__kategorie {
	display: inline-block;
	align-self: flex-start;
	background: var(--m3-pink);
	color: var(--m3-weiss);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 5px 12px;
	border-radius: 3px;
}

.m3-team .beitragskarte__titel {
	font-size: 22px;
	line-height: 1.25;
	font-weight: 900;
	text-transform: uppercase;
	margin: 0;
	color: var(--m3-dunkel);
}

.m3-team .beitragskarte__meta {
	font-size: 15px;
	color: var(--m3-blau);
	margin: 0;
}

.m3-team .beitragskarte .btn {
	align-self: flex-start;
	margin-top: auto;
}

/* -------------------------------------------------------------------------
   Abschnitt 6 und 7: Kontakt-Band, Rueckweg
   ------------------------------------------------------------------------- */

.m3-team .cta {
	text-align: center;
	margin: 0;
}

.m3-team .cta__titel {
	font-size: 28px;
	line-height: 1.25;
	font-weight: 900;
	margin: 0 0 12px;
	color: var(--m3-weiss);
}

.m3-team .cta__text {
	margin: 0 0 22px;
	color: var(--m3-weiss);
}

.m3-team .zurueck {
	text-align: center;
}

/* -------------------------------------------------------------------------
   Tablet
   ------------------------------------------------------------------------- */

@media (max-width: 980px) {

	.m3-team .section,
	.m3-team .person {
		padding: 48px 0;
	}

	.m3-team .h-sektion {
		font-size: 30px;
	}

	.m3-team .person__inner {
		grid-template-columns: 300px 1fr;
		gap: 40px;
	}
}

/* -------------------------------------------------------------------------
   Handy
   ------------------------------------------------------------------------- */

@media (max-width: 700px) {

	.m3-team {
		--m3-raster-innen: 20px;
	}

	.m3-team .section,
	.m3-team .person {
		padding: 40px 0;
	}

	.m3-team .person__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.m3-team .person__bild {
		max-width: 280px;
	}

	.m3-team .h-sektion {
		font-size: 26px;
	}

	.m3-team .lead {
		font-size: 19px;
	}

	.m3-team .grid-beitraege {
		grid-template-columns: 1fr;
	}

	.m3-team .cta__titel {
		font-size: 24px;
	}
}
