/* ================================================================
   Ibelsa Team
   Ausgabe für CPT ibelsa_team
   ================================================================ */

.ib-team-output {
	position: relative;
	overflow: hidden;
}

.ib-team-output__head {
	margin-bottom: clamp(48px, 6vw, 78px);
}



.ib-team-group:last-child {
	margin-bottom: 0;
}

/* ================================================================
   Team-Gruppen
   Kategorien horizontal, kein 90-Grad-Genickbruch
   ================================================================ */

.ib-team-output {
	background: #fff;
	position: relative;
	overflow: hidden;
}

.ib-team-output__head {
	margin-bottom: clamp(48px, 6vw, 72px);
}

.ib-team-group {
	margin-bottom: clamp(68px, 8vw, 112px);
	scroll-margin-top: 120px;
}

.ib-team-group:last-child {
	margin-bottom: 0;
}

.ib-team-group__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(24px, 3vw, 38px);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ib-c-border);
}

.ib-team-group__head .ib-eyebrow {
	margin: 0;
	color: var(--ib-c-teal);
	flex: 0 0 auto;
}

.ib-team-group__head h2 {
	margin: 0;
	color: var(--ib-c-night);
	font-size: clamp(30px, 3.8vw, 50px);
	line-height: .96;
	letter-spacing: -0.045em;
	font-weight: 800 !important;
	text-transform: lowercase;
	text-align: right;
}



.ib-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: clamp(24px, 3vw, 34px);
}

.ib-team-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--ib-r-xl);
	background: #fff;
	border: 1px solid var(--ib-c-border);
	box-shadow: var(--ib-shadow-xs);
	transform-origin: top center;
	transition:
		transform var(--ib-trans),
		box-shadow var(--ib-trans),
		border-color var(--ib-trans);
}

.ib-team-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ib-shadow-lg);
	border-color: rgba(255, 45, 176, .22);
}

.ib-team-card__image {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--ib-grey-bg);
	border-radius: var(--ib-r-xl) var(--ib-r-xl) 0 0;
}

.ib-team-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition:
		transform var(--ib-trans-slow),
		filter var(--ib-trans-slow);
}

.ib-team-card:hover .ib-team-card__image img {
	transform: scale(1.045);
	filter: saturate(1.05);
}

.ib-team-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 80% 20%, rgba(255, 45, 176, .18), transparent 36%),
		radial-gradient(circle at 20% 80%, rgba(43, 169, 199, .18), transparent 38%),
		var(--ib-c-night);
	color: #fff;
}

.ib-team-card__placeholder span {
	font-size: 54px;
	font-weight: 800;
	letter-spacing: -0.05em;
}

.ib-team-card__namebar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 16px 18px 15px;
	background: rgba(255, 255, 255, .84);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	text-align: center;
}

.ib-team-card__namebar h3 {
	margin: 0;
	color: var(--ib-c-night);
	font-size: clamp(20px, 1.7vw, 26px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: var(--ib-ls-snug);
	text-transform: lowercase;
}

.ib-team-card__namebar span {
	display: block;
	margin-top: 5px;
	color: rgba(28, 24, 37, .56);
	font-size: var(--ib-text-xs);
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: lowercase;
}

.ib-team-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
	background: #fff;
}

.ib-team-card__excerpt {
	margin: 0 0 18px;
	color: var(--ib-c-muted);
	font-size: var(--ib-text-sm);
	line-height: 1.55;
}

.ib-team-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.ib-team-contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 13px;
	border-radius: 11px;
	color: #fff;
	font-size: var(--ib-text-xs);
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition:
		transform var(--ib-trans),
		filter var(--ib-trans),
		box-shadow var(--ib-trans);
}

.ib-team-contact:hover {
	color: #fff;
	transform: translateY(-1px);
	filter: brightness(.96) saturate(1.05);
	box-shadow: var(--ib-shadow-sm);
}

.ib-team-contact:focus-visible {
	outline: 3px solid rgba(255, 45, 176, .28);
	outline-offset: 4px;
}

.ib-team-contact--meet {
	background: var(--ib-c-teal);
}

.ib-team-contact--phone {
	background: var(--ib-c-pink);
}

.ib-team-contact--email {
	background: rgba(28, 24, 37, .68);
}

.ib-team-empty {
	padding: clamp(32px, 5vw, 56px);
	text-align: center;
	color: var(--ib-c-muted);
	background: #fff;
	border: 1px dashed var(--ib-c-border);
	border-radius: var(--ib-r-2xl);
	font-size: var(--ib-text-base);
	font-weight: 600;
}


/* Reveal Animation */

.ib-team-card {
	will-change: transform, opacity, clip-path;
}

.ib-team-card.is-reveal-ready {
	opacity: 0;
	transform: translateY(18px) scaleY(.92);
	clip-path: inset(0 0 22% 0 round var(--ib-r-xl));
}

.ib-team-card.is-revealed {
	opacity: 1;
	transform: translateY(0) scaleY(1);
	clip-path: inset(0 0 0 0 round var(--ib-r-xl));
	transition:
		opacity .42s var(--ib-ease),
		transform .48s var(--ib-ease),
		clip-path .52s var(--ib-ease),
		box-shadow var(--ib-trans),
		border-color var(--ib-trans);
	transition-delay: var(--ib-team-reveal-delay, 0ms);
}


/* Responsive */



@media (max-width: 760px) {
	.ib-team-grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}

	.ib-team-output__head {
		text-align: left;
	}

	.ib-team-output__head h2,
	.ib-team-output__head .ib-subline {
		margin-inline: 0;
	}
}

@media (max-width: 520px) {
	.ib-team-grid {
		grid-template-columns: 1fr;
	}

	.ib-team-card__body {
		padding: 18px;
	}

	.ib-team-card__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ib-team-contact {
		width: 100%;
	}
}

.ib-team-jumpnav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: clamp(24px, 3vw, 36px);
}

.ib-team-jumpnav .ib-btn {
	min-height: 42px;
	padding-inline: 18px;
	font-size: var(--ib-text-xs);
	text-transform: lowercase;
}

.ib-team-group__head {
	scroll-margin-top: 120px;
}
.ib-team-jumpnav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: clamp(24px, 3vw, 36px);
}

.ib-team-jumpnav .ib-btn {
	min-height: 42px;
	padding-inline: 18px;
	font-size: var(--ib-text-xs);
	text-transform: lowercase;
}

.ib-team-group__head {
	scroll-margin-top: 120px;
}

.ib-team-output__head__padding100 {
	padding-bottom: 100px;
}

/*
@media (prefers-reduced-motion: reduce) {
	.ib-team-card,
	.ib-team-card.is-reveal-ready,
	.ib-team-card.is-revealed,
	.ib-team-card__image img {
		opacity: 1;
		transform: none;
		clip-path: none;
		transition: none;
	}
}*/


/* ================================================================
   Ibelsa Team — Grid V2
   Neuer, vollständig isolierter Namespace für das kompakte 6er-Grid
   Shortcode: [ibelsa_team_gridv2]
   ================================================================ */

.ib-team-gridv2 {
	position: relative;
	background: #fff;
}

.ib-team-gridv2__head {
	margin-bottom: clamp(32px, 4vw, 56px);
}

.ib-team-gridv2__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.ib-team-gridv2__filter {
	min-height: 42px;
	padding-inline: 18px;
	font-size: var(--ib-text-xs);
	text-transform: lowercase;
	cursor: pointer;
}

.ib-team-gridv2__filter.is-active {
	color: #fff !important;
	background: var(--ib-c-night) !important;
	border-color: var(--ib-c-night) !important;
}

.ib-team-gridv2__items {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(10px, 1.1vw, 16px);
}

.ib-team-gridv2__card {
	position: relative;
	min-width: 0;
	border-radius: 4px;
	overflow: hidden;
	background: var(--ib-c-night);
	transition:
		opacity .35s var(--ib-ease),
		transform .35s var(--ib-ease),
		filter .35s var(--ib-ease);
}

.ib-team-gridv2__image {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--ib-grey-bg);
}

.ib-team-gridv2__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition:
		transform .55s var(--ib-ease),
		filter .35s var(--ib-ease),
		opacity .35s var(--ib-ease);
}

.ib-team-gridv2__card:hover .ib-team-gridv2__image img {
	transform: scale(1.035);
}

.ib-team-gridv2__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(
			to bottom,
			rgba(28, 24, 37, 0) 35%,
			rgba(28, 24, 37, .18) 52%,
			rgba(28, 24, 37, .92) 100%
		);
	transition: background .35s var(--ib-ease);
}

.ib-team-gridv2__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: clamp(12px, 1.3vw, 18px);
	color: #fff;
	pointer-events: none;
}

.ib-team-gridv2__name {
	margin: 0;
	color: #fff;
	font-size: clamp(18px, 1.45vw, 27px);
	font-weight: 800 !important;
	line-height: 1.02;
	letter-spacing: -.035em;
	text-transform: none;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.ib-team-gridv2__role {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, .94);
	font-size: clamp(11px, .75vw, 14px);
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.ib-team-gridv2__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 80% 20%, rgba(255, 45, 176, .3), transparent 36%),
		radial-gradient(circle at 20% 80%, rgba(43, 169, 199, .28), transparent 38%),
		var(--ib-c-night);
	color: #fff;
}

.ib-team-gridv2__placeholder span {
	font-size: clamp(36px, 4vw, 64px);
	font-weight: 800;
	letter-spacing: -.06em;
}

.ib-team-gridv2__card.is-dimmed {
	opacity: .72;
	filter: grayscale(1);
}

.ib-team-gridv2__card.is-dimmed .ib-team-gridv2__image img {
	filter: grayscale(1);
}

.ib-team-gridv2__card.is-dimmed .ib-team-gridv2__overlay {
	background: rgba(28, 24, 37, .28);
}

.ib-team-gridv2__card.is-dimmed .ib-team-gridv2__content {
	opacity: .72;
}

.ib-team-gridv2__card.is-highlighted {
	transform: translateY(-2px);
}

.ib-team-gridv2__empty {
	padding: clamp(32px, 5vw, 56px);
	text-align: center;
	color: var(--ib-c-muted);
	background: #fff;
	border: 1px dashed var(--ib-c-border);
	border-radius: var(--ib-r-2xl);
	font-size: var(--ib-text-base);
	font-weight: 600;
}

@media (max-width: 1480px) {
	.ib-team-gridv2__items {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 1180px) {
	.ib-team-gridv2__items {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ib-team-gridv2__items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ib-team-gridv2__name {
		font-size: clamp(19px, 2.8vw, 26px);
	}

	.ib-team-gridv2__role {
		font-size: 12px;
	}
}

@media (max-width: 640px) {
	.ib-team-gridv2__filters {
		justify-content: flex-start;
	}

	.ib-team-gridv2__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ib-team-gridv2__content {
		padding: 12px;
	}

	.ib-team-gridv2__name {
		font-size: clamp(17px, 5vw, 23px);
	}
}

@media (max-width: 390px) {
	.ib-team-gridv2__items {
		grid-template-columns: 1fr;
	}
}



/* ================================================================
   Team Grid V2 – Desktop-/Mobile-Filter sauber trennen
   ================================================================ */

/*
 * Grundzustand Desktop:
 * Buttons sichtbar, Select verborgen.
 */
.ib-team-gridv2 .ib-team-gridv2__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: clamp(30px, 4vw, 48px);
}

.ib-team-gridv2 .ib-team-gridv2__mobile-filter {
	display: none;
}


/* ================================================================
   Grid V2 – schickes Mobile-Select
   ================================================================ */

.ib-team-gridv2__mobile-filter {
	width: min(100%, 460px);
	margin: 0 auto 36px;
	text-align: center;
}

.ib-team-gridv2__mobile-filter label {
	display: block;
	margin-bottom: 10px;
	color: var(--ib-c-night);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.ib-team-gridv2__select-wrap {
	position: relative;
	width: 100%;
}

.ib-team-gridv2__select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 10px;
	height: 10px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.ib-team-gridv2__select {
	display: block;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 0 52px 0 20px;
	border: 2px solid var(--ib-c-night);
	border-radius: 16px;
	background: var(--ib-c-night);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	transition:
		border-color var(--ib-trans),
		background-color var(--ib-trans),
		box-shadow var(--ib-trans);
}

.ib-team-gridv2__select:hover {
	background: #292333;
}

.ib-team-gridv2__select:focus {
	outline: none;
	border-color: var(--ib-c-pink);
	box-shadow: 0 0 0 4px rgba(255, 45, 176, .18);
}

.ib-team-gridv2__select option {
	background: #fff;
	color: var(--ib-c-night);
}

.ib-team-gridv2__active-label {
	margin: 12px 0 0;
	color: var(--ib-c-muted);
	font-size: 15px;
	line-height: 1.35;
	text-align: center;
}

.ib-team-gridv2__active-label span {
	font-weight: 400;
}

.ib-team-gridv2__active-label strong {
	color: var(--ib-c-night);
	font-weight: 700;
}


/* ================================================================
   Mobile/Touch
   ================================================================ */

@media (max-width: 900px), (hover: none) and (pointer: coarse) {

	/*
	 * Wichtig: höhere Spezifität und !important, damit keine alte
	 * allgemeine Flex-Regel beide Navigationen gleichzeitig zeigt.
	 */
	.ib-team-gridv2 .ib-team-gridv2__filters {
		display: none !important;
	}

	.ib-team-gridv2 .ib-team-gridv2__mobile-filter {
		display: block !important;
	}

	/*
	 * Auf Mobil werden unpassende Karten vollständig entfernt.
	 * Das Grid zieht sofort neu zusammen.
	 */
	.ib-team-gridv2__card.is-dimmed {
		display: none;
	}

	.ib-team-gridv2__card.is-highlighted {
		opacity: 1;
		filter: none;
	}
}


/* Sehr kleine Displays */

@media (max-width: 520px) {
	.ib-team-gridv2__mobile-filter {
		margin-bottom: 28px;
	}

	.ib-team-gridv2__select {
		min-height: 54px;
		font-size: 17px;
	}
}


.ib-team-gridv2,
.ib-team-gridv2 * {
	text-transform: lowercase !important;
}
.ib-team-gridv2__select,
.ib-team-gridv2__select option {
	text-transform: lowercase !important;
}
/* ================================================================
   Team Grid V2 – Support-Kontaktmenü
   ================================================================ */

.ib-team-gridv2__contact {
	position: absolute;
	top: clamp(10px, 1vw, 14px);
	right: clamp(10px, 1vw, 14px);
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.ib-team-gridv2__contact-toggle {
	display: grid;
	place-items: center;
	width: clamp(38px, 3vw, 46px);
	height: clamp(38px, 3vw, 46px);
	padding: 8px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 8px 24px rgba(28, 24, 37, .18);
	cursor: pointer;
	transition:
		transform .22s var(--ib-ease),
		background-color .22s var(--ib-ease),
		box-shadow .22s var(--ib-ease);
}

.ib-team-gridv2__contact-toggle:hover,
.ib-team-gridv2__contact-toggle[aria-expanded="true"] {
	transform: scale(1.06);
	background: #fff;
	box-shadow: 0 10px 28px rgba(28, 24, 37, .25);
}

.ib-team-gridv2__contact-toggle:focus-visible {
	outline: 3px solid var(--ib-c-yellow);
	outline-offset: 3px;
}

.ib-team-gridv2__contact-toggle svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: var(--ib-c-pink);
}

.ib-team-gridv2__contact-menu {
	display: grid;
	justify-items: end;
	gap: 6px;
	min-width: max-content;
}

.ib-team-gridv2__contact-menu[hidden] {
	display: none;
}

.ib-team-gridv2__contact-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: var(--ib-c-night);
	color: #fff !important;
	font-size: clamp(11px, .72vw, 13px);
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 7px 18px rgba(28, 24, 37, .22);
	animation: ib-team-contact-in .2s var(--ib-ease) both;
}

.ib-team-gridv2__contact-link:nth-child(2) {
	animation-delay: .035s;
}

.ib-team-gridv2__contact-link:nth-child(3) {
	animation-delay: .07s;
}

.ib-team-gridv2__contact-link:hover {
	background: var(--ib-c-pink);
	color: #fff !important;
}

.ib-team-gridv2__contact-link:focus-visible {
	outline: 3px solid var(--ib-c-yellow);
	outline-offset: 2px;
}

@keyframes ib-team-contact-in {
	from {
		opacity: 0;
		transform: translateY(-5px) scale(.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 640px) {
	.ib-team-gridv2__contact {
		top: 8px;
		right: 8px;
	}

	.ib-team-gridv2__contact-toggle {
		width: 38px;
		height: 38px;
		padding: 7px;
	}

	.ib-team-gridv2__contact-link {
		min-height: 32px;
		padding-inline: 10px;
		font-size: 11px;
	}
}