/* Theme Part M35 - Kontakt (Figma "Ansprechpartner" 167:1116)
   At 1920: info column 575 wide, form 649 wide from x 837 (56.3%), like the
   text column of m2/m33. The form itself is styled project-wide in
   project.css ("Formulare", classes btw_form_*); here only layout and card. */

section.m35_kontakt .m35_kontakt_main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

section.m35_kontakt .m35_info {
	flex: 0 0 38.7%;
	min-width: 0;
}

/* Never narrower than four tabs of about 155px ("Mannschaftsfrage" in one line) */
section.m35_kontakt .m35_formular_container {
	flex: 0 0 max(43.67%, 649px);
	min-width: 0;
	/* Figma: "*Pflichtfelder" starts 2px below the subtitle */
	margin-top: 2px;
}

/* ---- Title and text (as m2) ---- */
section.m35_kontakt .m35_untertitel_container,
section.m35_kontakt .m35_titel_container {
	margin: 0;
}

section.m35_kontakt .m35_untertitel {
	max-width: none;
	margin: 0 0 2px;
}

/* Figma: "Direkt zur / richtigen Person" */
section.m35_kontakt .m35_titel {
	max-width: 7.2em;
	margin: 0;
}

section.m35_kontakt .m35_text_container {
	max-width: 482px;
	margin-top: 20px;
}

section.m35_kontakt .m35_text_container p {
	max-width: none;
	margin: 0;
	color: #57708F;
}

/* ---- Forms: one per tab, on top of each other ---- */
section.m35_kontakt .m35_formulare {
	display: flex;
	align-items: flex-start;
}

section.m35_kontakt .m35_formular_panel {
	flex: 0 0 100%;
	min-width: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility 0s .3s;
}

section.m35_kontakt .m35_formular_panel + .m35_formular_panel {
	margin-left: -100%;
}

section.m35_kontakt .m35_formular_panel.is_active {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s;
}

/* ---- Cards: stacked, the box takes the height of the shown one ---- */
section.m35_kontakt .m35_karten {
	display: flex;
	align-items: flex-start;
	margin-top: 36px;
	overflow: hidden;
}

section.m35_kontakt .m35_karten.m35_animiert {
	transition: height .4s ease;
}

section.m35_kontakt .m35_karte {
	flex: 0 0 100%;
	min-width: 0;
	padding: 37px 0 7px;
	background-color: #1D4D8E;
	--font_color: #FFFFFF;
	--h_color: #FFFFFF;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility 0s .3s;
}

section.m35_kontakt .m35_karte + .m35_karte {
	margin-left: -100%;
}

section.m35_kontakt .m35_karte.is_active {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s;
}

section.m35_kontakt .m35_karte_kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 20px;
	padding: 0 50px;
}

section.m35_kontakt .m35_karte_titel {
	margin: 0;
	font-family: var(--h_font_family, var(--font_family));
	font-weight: 900;
	font-size: 2.5rem;            /* 40px */
	line-height: 30px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	font-variation-settings: "slnt" -7;
}

/* Figma: white at 50% */
section.m35_kontakt .m35_karte_info {
	max-width: none;
	margin: 0;
	--font_color: rgba(255, 255, 255, .5);
}

/* Persons in two columns with white hairlines between them */
section.m35_kontakt .m35_personen {
	display: flex;
	flex-wrap: wrap;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

section.m35_kontakt .m35_person {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 0 0 50%;
	min-width: 0;
	margin: 0;
	padding: 21px 20px 19px 47px;
}

section.m35_kontakt .m35_person::before {
	content: none;
}

section.m35_kontakt .m35_person:nth-child(even) {
	padding-left: 45px;
}

section.m35_kontakt .m35_person:nth-child(even)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: rgba(255, 255, 255, .3);
}

/* Figma: the vertical line starts 24px into the first row and runs to the card's bottom */
section.m35_kontakt .m35_person:nth-child(2)::before {
	top: 24px;
}

section.m35_kontakt .m35_person:nth-child(even):last-child::before {
	bottom: -7px;
}

section.m35_kontakt .m35_person:nth-child(n+3) {
	border-top: 1px solid rgba(255, 255, 255, .3);
}

/* Odd count: the last person takes the whole row, so its line runs across */
section.m35_kontakt .m35_person:nth-child(odd):last-child {
	flex-basis: 100%;
}

section.m35_kontakt .m35_person_bild_container {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 50%;
}

section.m35_kontakt .m35_person_bild {
	display: block;
	width: 100%;
	height: 100%;
}

section.m35_kontakt .m35_person_initialen {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, .15);
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* Figma: the name sits 2px below the middle of the portrait */
section.m35_kontakt .m35_person_name_container {
	min-width: 0;
	margin-top: 4px;
}

section.m35_kontakt .m35_person_name {
	display: block;
	overflow-wrap: anywhere;
}

/* ---- Display "Kontaktliste": white cards, portrait beside title, names and mail (prototype "Kontakt") ---- */
section.m35_kontakt .m35_kontaktliste {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 575px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

section.m35_kontakt .m35_kontakt_karte {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 0;
	padding: 24px 26px;
	background-color: #FFFFFF;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

section.m35_kontakt .m35_kontakt_karte::before {
	content: none;
}

@media (hover: hover) {
	section.m35_kontakt .m35_kontakt_karte:hover {
		transform: translateX(4px);
	}
}

section.m35_kontakt .m35_kontakt_bild_container {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 50%;
	background-color: #123157;
	--font_color: #FFFFFF;
}

section.m35_kontakt .m35_kontakt_bild {
	display: block;
	width: 100%;
	height: 100%;
}

section.m35_kontakt .m35_kontakt_bild_container .m35_person_initialen {
	background-color: transparent;
}

section.m35_kontakt .m35_kontakt_text_container {
	flex: 1 1 auto;
	min-width: 0;
}

section.m35_kontakt .m35_kontakt_titel {
	margin: 0;
	font-family: var(--font_family);
	font-weight: 700;
	font-size: 1rem;
	line-height: 24px;
	letter-spacing: 0;
	text-transform: none;
	font-variation-settings: normal;
	--h_color: var(--btw_navy);
	--font_color: var(--btw_navy);
}

section.m35_kontakt .m35_kontakt_zusatz {
	max-width: none;
	margin: 0;
	font-size: 0.875rem;
	line-height: 20px;
	--font_color: #57708F;
}

section.m35_kontakt .m35_kontakt_link_container {
	max-width: none;
	margin: 6px 0 0;
	font-size: 0.875rem;
	line-height: 20px;
	font-weight: 700;
	overflow-wrap: anywhere;
	--font_color: var(--btw_blue);
}

section.m35_kontakt .m35_kontakt_link {
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .2s;
}

@media (hover: hover) {
	section.m35_kontakt .m35_kontakt_link_container:hover {
		--font_color: var(--btw_red);
	}
}

section.m35_kontakt .m35_kontakt_link:focus-visible {
	outline: 2px solid var(--btw_blue);
	outline-offset: 2px;
}

/* ---- Mailto note below the form after "Abschicken" (m35_kontakt.js) ---- */
section.m35_kontakt .btw_mailto_hinweis {
	margin-top: 24px;
	padding: 18px 22px;
	border-left: 4px solid var(--btw_blue, #1D4D8E);
	background: #FFFFFF;
	--font_color: var(--btw_navy, #122945);
}

section.m35_kontakt .btw_mailto_hinweis p {
	max-width: none;
	margin: 0 0 8px;
	font-size: 0.9375rem;         /* 15px */
	line-height: 24px;
}

section.m35_kontakt .btw_mailto_hinweis a {
	font-weight: 700;
	text-decoration: underline;
	overflow-wrap: anywhere;
}

section.m35_kontakt .btw_mailto_kopieren {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--font_family);
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 24px;
	text-decoration: underline;
	cursor: pointer;
	--font_color: var(--btw_blue, #1D4D8E);
	color: var(--font_color);
}

section.m35_kontakt .btw_mailto_hinweis:focus-visible,
section.m35_kontakt .btw_mailto_kopieren:focus-visible {
	outline: 2px solid var(--btw_navy, #122945);
	outline-offset: 2px;
}

/* ---- Without forms: card on the right (prototype "Herren 1": pcard 575
   wide from x 1054), buttons below the text ---- */
section.m35_kontakt .m35_links_container {
	margin-top: 32px;
}

section.m35_kontakt.m35_karte_rechts .m35_info {
	flex: 1 1 auto;
	padding-right: 40px;
}

section.m35_kontakt .m35_karten_spalte {
	flex: 0 0 43.67%;
	min-width: 0;
}

section.m35_kontakt .m35_karten_spalte .m35_karten {
	max-width: 575px;
	margin-top: 0;
}

section.m35_kontakt .m35_person_stelle {
	display: block;
	font-size: 0.8125rem;         /* 13px */
	line-height: 20px;
	--font_color: rgba(255, 255, 255, .55);
}

/* ---- Breakpoints ---- */
@media all and (max-width: 1399px) {
	section.m35_kontakt .m35_info {
		flex-basis: 38%;
	}
}

/* Stacked: text and card above the form */
@media all and (max-width: 1199px) {
	section.m35_kontakt .m35_kontakt_main {
		flex-direction: column;
		align-items: stretch;
	}
	section.m35_kontakt .m35_info,
	section.m35_kontakt .m35_formular_container {
		flex: 0 0 auto;
	}
	section.m35_kontakt .m35_karten {
		max-width: 575px;
	}
	section.m35_kontakt .m35_formular_container {
		margin-top: 56px;
	}
}

@media all and (max-width: 575px) {
	section.m35_kontakt .m35_karte {
		padding: 28px 0 0;
	}
	section.m35_kontakt .m35_karte_kopf {
		padding: 0 20px;
	}
	section.m35_kontakt .m35_karte_titel {
		font-size: 2rem;
	}
	section.m35_kontakt .m35_personen {
		margin-top: 12px;
	}
	/* One person per row */
	section.m35_kontakt .m35_person,
	section.m35_kontakt .m35_person:nth-child(even) {
		flex-basis: 100%;
		padding: 16px 20px;
	}
	section.m35_kontakt .m35_person:nth-child(even)::before {
		content: none;
	}
	section.m35_kontakt .m35_person:nth-child(n+2) {
		border-top: 1px solid rgba(255, 255, 255, .3);
	}
	section.m35_kontakt .m35_formular_container {
		margin-top: 40px;
	}
	section.m35_kontakt .m35_kontakt_karte {
		gap: 14px;
		padding: 20px;
	}
}

/* Too narrow for portrait and text side by side */
@media all and (max-width: 320px) {
	section.m35_kontakt .m35_kontakt_karte {
		flex-direction: column;
	}
}

/* Card on the right: stacked like the forms */
@media all and (max-width: 1199px) {
	section.m35_kontakt.m35_karte_rechts .m35_info {
		padding-right: 0;
	}
	section.m35_kontakt .m35_karten_spalte {
		flex: 0 0 auto;
		margin-top: 48px;
	}
}

@media all and (max-width: 575px) {
	section.m35_kontakt .m35_karten_spalte {
		margin-top: 40px;
	}
}
