/* Team-Modul: Format 4:5, 5 Spalten, Standortfilter
   Separat eingebunden (functions.php), damit dist/ nicht neu gebaut werden muss.
-----------------------------------------------*/

.image--ratio-hoch45{
	padding-bottom: 125%;
}

@media (min-width: 1600px){
	.col--fifth{
		flex: 0 0 20%;
		max-width: 20%;
	}
	.col--fifth .member__content__text{
		padding: 20px;
	}
	.col--fifth .member__link-wrapper{
		left: 20px;
		right: 60px;
		width: auto;
	}
	.col--fifth .member__kompetenzen-link{
		margin-right: 20px;
	}
}

.team-standort-filter{
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 40px;
	font-size: 16px;
	line-height: 1.5rem;
}

.team-standort-filter__item{
	display: inline-flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

/* reserviert die Breite des fetten Zustands, damit nichts springt */
.team-standort-filter__item::after{
	content: attr(data-label);
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: 700;
}

.team-standort-filter__item:focus-visible{
	outline: 2px solid #7c2348;
	outline-offset: 2px;
}

.team-standort-filter__item.is-active{
	font-weight: 700;
}

.team-standort-filter__item{
	transition: opacity .2s ease;
}

.team-standort-filter__item:not(.is-active):hover{
	opacity: .6;
}

.team-standort-filter__indicator{
	position: absolute;
	top: 0;
	left: 0;
	height: 1px;
	background: currentColor;
	pointer-events: none;
}

.team-standort-filter__indicator.is-ready{
	transition: transform .35s cubic-bezier(.22, .61, .36, 1), width .35s cubic-bezier(.22, .61, .36, 1);
}

/* nur Überblendung, keine Bewegung (wirkt sonst unruhig) */
.has-standort-filter .team-wrapper > .col--padder{
	transition: opacity .38s ease;
}

.has-standort-filter .team-wrapper > .col--padder.is-standort-leaving{
	opacity: 0;
	transition-duration: .16s;
	transition-delay: 0s;
}

.has-standort-filter .team-wrapper > .col--padder.is-standort-entering{
	opacity: 0;
	transition: none;
}

.col--padder.is-standort-hidden,
.content-wrapper.is-standort-hidden{
	display: none !important;
}

@media (prefers-reduced-motion: reduce){
	.team-standort-filter__indicator.is-ready,
	.has-standort-filter .team-wrapper > .col--padder{
		transition: none;
	}
}
