/**
 * Employees block — Figma Right_Column_People (331:5687).
 * 5-col grid, heading with bottom rule, optional square photos.
 * Names (h3): Moret Semibold, heading-md token (20px desktop).
 */

.us-employees__shell,
.us-employees {
	box-sizing: border-box;
	width: 100%;
}

.us-employees {
	display: flex;
	flex-direction: column;
	gap: var(--cabb-gap-md, 1.5rem);
}

.us-employees__heading {
	margin: 0;
	padding: 0.25rem 0 var(--cabb-gap-normal, 1rem);
	border-bottom: 2px solid var(--wp--preset--color--black, #000);
	font-family: var(--wp--preset--font-family--heading, "stolzl", sans-serif);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.125;
	color: var(--wp--preset--color--black, #000);
}

.us-employees__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem 0;
}

.us-employees__lead {
	margin: 0;
	width: 100%;
	font-family: var(--wp--preset--font-family--heading, "stolzl", sans-serif);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.375rem;
	color: var(--wp--preset--color--black, #000);
}

.us-employees__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--cabb-gap-md, 1.5rem) var(--cabb-gap-normal, 1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.us-employees__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.875rem;
	min-width: 0;
}

.us-employees__media {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	overflow: hidden;
	background: var(--wp--preset--color--offwhite, #f5f2ed);
}

.us-employees__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.us-employees h3.us-employees__name {
	margin: 0;
	width: 100%;
	font-family: var(--wp--preset--font-family--moret, "moret", serif);
	font-size: var(--wp--preset--font-size--heading-md, 1.25rem);
	font-weight: 600;
	font-style: normal;
	line-height: var(--cabb-line-height-heading-md, 1.2);
	color: var(--wp--preset--color--black, #000);
	overflow-wrap: anywhere;
}

.us-employees__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
	width: 100%;
	min-width: 0;
}

.us-employees__role {
	margin: 0;
	max-width: 100%;
	font-family: var(--wp--preset--font-family--heading, "stolzl", sans-serif);
	font-size: var(--wp--preset--font-size--caption, 0.875rem);
	font-weight: 400;
	line-height: var(--cabb-line-height-caption, 1.429);
	color: var(--wp--preset--color--black, #000);
	overflow-wrap: anywhere;
}

/* US-1064: one-line mailto/tel with ellipsis (e.g. /kontakt/ employee grid). */
.us-employees__email,
.us-employees__phone,
.us-employees__intro-email {
	margin: 0;
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--heading, "stolzl", sans-serif);
	font-size: var(--wp--preset--font-size--caption, 0.875rem);
	font-weight: 400;
	line-height: var(--cabb-line-height-caption, 1.429);
	color: var(--wp--preset--color--black, #000);
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: normal;
	text-decoration: none;
}

.us-employees__intro-email {
	font-size: 1rem;
	line-height: 1.5rem;
}

.us-employees__email:hover,
.us-employees__phone:hover,
.us-employees__intro-email:hover,
.us-employees__intro-email:focus {
	color: var(--wp--preset--color--orange, #f89626);
}

.us-employees__empty {
	margin: 0;
	padding: var(--cabb-gap-normal, 1rem) 0;
	color: var(--wp--preset--color--black, #000);
	opacity: 0.55;
	font-size: var(--wp--preset--font-size--body, 1.125rem);
}

@media (max-width: 1199px) {
	.us-employees__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1019px) {
	.us-employees__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	/* Figma mobile Frame 61: heading 32/40, names 24/24, 2-col grid. */
	.us-employees__heading {
		font-size: 2rem;
		line-height: 2.5rem;
	}

	.us-employees__grid {
		gap: 1rem;
	}
}
