/**
 * Schiri Team – Frontend Styles
 */

.schiri-team-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.schiri-team-section__title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	color: #0a1a2e;
}

.schiri-team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.schiri-team-section--page .schiri-team-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.schiri-team-section--page .schiri-team-card {
	padding: 2.25rem 2rem 2.5rem;
}

.schiri-team-section--page .schiri-team-card__photo {
	width: 168px;
	height: 168px;
	margin-bottom: 1.5rem;
	border-width: 4px;
}

.schiri-team-section--page .schiri-team-section__title {
	font-size: 2rem;
}

.schiri-team-section--page .schiri-team-card__name {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.schiri-team-section--page .schiri-team-card__roles,
.schiri-team-section--page .schiri-team-card__role {
	font-size: 1.05rem;
	margin-bottom: 1.25rem;
}

.schiri-team-section--page .schiri-team-card__roles {
	gap: 0.35rem;
	margin-bottom: 0;
}

.schiri-team-section--page .schiri-team-card__actions {
	padding-top: 1rem;
}

/* Leistungskader – Raster auf Unterseite */
.schiri-kader-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	align-items: start;
}

.schiri-team-section--kader.schiri-team-section--page .schiri-team-card--kader-page {
	height: auto;
}

.schiri-team-section--kader.schiri-team-section--page .schiri-team-card__photo--portrait {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	max-height: none;
	background: #f1f5f9;
}

.schiri-team-section--kader.schiri-team-section--page .schiri-team-card__photo--portrait .schiri-team-card__image,
.schiri-team-section--kader.schiri-team-section--page .schiri-team-card__photo--portrait img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center 18%;
}

.schiri-team-section--kader.schiri-team-section--page .schiri-team-card__name {
	font-size: 1.65rem;
	padding: 1.35rem 1.75rem 0.4rem;
	line-height: 1.25;
}

.schiri-team-section--kader.schiri-team-section--page .schiri-team-card__leagues {
	padding: 0 1.75rem 1.65rem;
	gap: 0.85rem;
	flex: 0 0 auto;
}

.schiri-team-section--kader.schiri-team-section--page .schiri-team-card__league {
	font-size: 1.2rem;
	line-height: 1.45;
	color: #1e293b;
}

.schiri-team-section--kader.schiri-team-section--page .schiri-team-card__league-label {
	font-size: 0.95rem;
	color: #64748b;
	margin-bottom: 0.2rem;
}

.schiri-team-card {
	background: #fff;
	border-radius: 12px;
	padding: 1.75rem 1.5rem;
	text-align: center;
	box-shadow: 0 4px 24px rgba(10, 26, 46, 0.08);
	border: 1px solid #e2e8f0;
	transition: box-shadow 0.2s, transform 0.2s;
}

.schiri-team-card:hover {
	box-shadow: 0 12px 40px rgba(10, 26, 46, 0.12);
	transform: translateY(-2px);
}

.schiri-team-card__photo {
	margin: 0 auto 1.25rem;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #f1f5f9;
}

.schiri-team-card__photo--portrait {
	width: 100%;
	height: 280px;
	margin: 0;
	border-radius: 12px 12px 0 0;
	border: none;
	position: relative;
	overflow: hidden;
	background: #e2e8f0;
	flex-shrink: 0;
}

.schiri-team-card--kader {
	padding: 0 0 1.5rem;
	overflow: hidden;
	text-align: left;
	display: flex;
	flex-direction: column;
}

.schiri-team-card--kader:not(.schiri-team-card--kader-page) {
	height: 100%;
}

.schiri-team-card__image,
.schiri-team-card__photo img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.schiri-team-card__photo--portrait .schiri-team-card__image,
.schiri-team-card__photo--portrait img {
	position: absolute;
	inset: 0;
	object-position: center 12%;
}

.schiri-team-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0a1a2e, #1d4ed8);
	color: rgba(255,255,255,0.5);
}

.schiri-team-card__placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
}

.schiri-team-card__name {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0a1a2e;
}

.schiri-team-card--kader .schiri-team-card__name {
	padding: 1.25rem 1.5rem 0.5rem;
}

.schiri-team-card__role,
.schiri-team-card__roles,
.schiri-team-card__league {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #475569;
}

.schiri-team-card__roles {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	width: 100%;
}

.schiri-team-card__roles li {
	line-height: 1.4;
}

.schiri-team-card__leagues {
	padding: 0 1.5rem 0;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.schiri-team-card__league {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	font-size: 0.9rem;
	color: #475569;
	line-height: 1.35;
}

.schiri-team-card__league-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
}

.schiri-team-card--contact {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.schiri-team-card__actions {
	margin-top: auto;
	padding-top: 1.25rem;
}

.schiri-team-card__contact-btn {
	justify-content: center;
	width: 100%;
	max-width: 9.5rem;
	margin: 0 auto;
	padding: 0.55rem 1.1rem;
	font-size: 0.85rem;
	text-decoration: none;
}

.schiri-team-card__contact-btn:hover {
	color: #fff;
	text-decoration: none;
}

.schiri-team-section--page .schiri-team-card__contact-btn {
	max-width: 10rem;
}

/* Carousel */
.schiri-kader-carousel {
	position: relative;
	padding: 0 3rem;
}

.schiri-kader-carousel__viewport {
	overflow: hidden;
}

.schiri-kader-carousel__track {
	display: flex;
	gap: 1.25rem;
	transition: transform 0.4s ease;
}

.schiri-kader-carousel__track .schiri-team-card--kader {
	flex: 0 0 calc(20% - 1rem);
	min-width: 200px;
}

.schiri-kader-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #0a1a2e;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(10, 26, 46, 0.1);
	transition: background 0.2s, color 0.2s;
}

.schiri-kader-carousel__nav:hover {
	background: #d62828;
	color: #fff;
	border-color: #d62828;
}

.schiri-kader-carousel__nav--prev { left: 0; }
.schiri-kader-carousel__nav--next { right: 0; }

.schiri-kader-carousel__nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.schiri-kader-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.schiri-kader-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #cbd5e1;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, transform 0.2s;
}

.schiri-kader-carousel__dot.is-active {
	background: #d62828;
	transform: scale(1.25);
}

@media (max-width: 1024px) {
	.schiri-team-grid,
	.schiri-team-section--page .schiri-team-grid { grid-template-columns: repeat(2, 1fr); }
	.schiri-kader-grid,
	.schiri-team-section--kader.schiri-team-section--page .schiri-kader-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.75rem;
	}
	.schiri-kader-carousel__track .schiri-team-card--kader {
		flex: 0 0 calc(33.333% - 0.85rem);
	}
}

@media (max-width: 768px) {
	.schiri-team-grid,
	.schiri-team-section--page .schiri-team-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.schiri-team-section--page .schiri-team-card {
		padding: 1.75rem 1.25rem 2rem;
		min-width: 0;
	}

	.schiri-team-section--page .schiri-team-card__photo {
		width: min(140px, 42vw);
		height: min(140px, 42vw);
		margin-bottom: 1.15rem;
	}

	.schiri-team-section--page .schiri-team-section__title {
		font-size: 1.5rem;
	}

	.schiri-team-section--page .schiri-team-card__name {
		font-size: 1.15rem;
		overflow-wrap: anywhere;
	}

	.schiri-team-section--page .schiri-team-card__roles,
	.schiri-team-section--page .schiri-team-card__role {
		font-size: 0.95rem;
	}

	.schiri-kader-grid,
	.schiri-team-section--kader.schiri-team-section--page .schiri-kader-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
	.schiri-kader-carousel { padding: 0 2.5rem; }
	.schiri-kader-carousel__track .schiri-team-card--kader {
		flex: 0 0 calc(50% - 0.65rem);
		min-width: 160px;
	}
}

@media (max-width: 540px) {
	.schiri-kader-grid,
	.schiri-team-section--kader.schiri-team-section--page .schiri-kader-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 480px) {
	.schiri-kader-carousel__track .schiri-team-card--kader {
		flex: 0 0 100%;
	}
}
