/*
 * SP Startseite – Block „Hall of Fame“ (sp-startseite/ehrenmitglieder) und Popup. Tokens aus spst-basis.css.
 * Referenz: docs/prototyp-team.html (#seite=ehren, #seite=ehren&popup=2).
 * 2 Spalten, 1 Spalte ab 860 px Blockbreite abwärts. Handy (< 700): Foto und Kopf nebeneinander,
 * Teaser und Button darunter über die volle Breite.
 */

.spst-ehren__liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@container spst-block (max-width: 860px) {
	.spst-ehren__liste { grid-template-columns: minmax(0, 1fr); }
}

.spst-ehre {
	position: relative;
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	align-items: start;
	column-gap: 22px;
	margin: 0;
	padding: 20px;
	background: var(--spst-panel);
	border: var(--spst-rand-dezent);
	border-radius: var(--spst-radius-panel);
	transition: border-color .3s ease;
}
.spst-ehre__bild {
	grid-column: 1;
	grid-row: 1 / span 3;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #101129;
	border: 5px solid var(--spst-rahmen);
	border-radius: var(--spst-radius-kiste);
	box-shadow: var(--spst-schein);
}
.spst-ehre__img,
.spst-dialog__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 20%;
	transition: transform .8s ease;
}
.spst-ehre__kopf { grid-column: 2; }
.spst-ehre__kicker { margin: 2px 0 6px; }
.spst-ehre__name {
	margin: 0 0 10px;
	font-size: 1.7rem;
}
.spst-ehre__text {
	grid-column: 2;
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.38;
	color: #dfe7f5;
}
.spst .spst-ehre__mehr {
	grid-column: 2;
	justify-self: start;
	margin-top: 14px;
	padding: .55em 1.4em;
	font-size: 1rem;
}
.spst .spst-ehre__mehr[hidden] { display: none; }
.spst-ehren a:focus-visible,
.spst-dialog .spst-dialog__zu:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.spst-ehren__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Mit mehr Inhalt oder langem Teaser (vom JS gesetzt): 4 Zeilen, ganzes Panel klickbar */
.spst-ehre.ist-mehr { cursor: pointer; }
.spst-ehre.ist-gekuerzt .spst-ehre__text {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.spst-ehre.ist-mehr:hover,
.spst-ehre.ist-mehr:focus-within { border-color: rgba(120, 175, 255, .8); }
@media (hover: hover) {
	.spst-ehre.ist-mehr:hover .spst-ehre__img { transform: scale(1.04); }
}

@container spst-block (max-width: 699px) {
	.spst-ehren__liste { gap: 16px; }
	.spst-ehre {
		grid-template-columns: 84px minmax(0, 1fr);
		grid-template-rows: auto;
		column-gap: 14px;
		padding: 14px;
	}
	.spst-ehre__bild {
		grid-row: 1;
		border-width: 4px;
		border-radius: 12px;
	}
	.spst-ehre__kopf { align-self: center; }
	.spst-ehre__name { margin: 0; font-size: 1.3rem; }
	.spst-ehre__text {
		grid-column: 1 / -1;
		margin-top: 12px;
		font-size: 1.02rem;
	}
	.spst .spst-ehre__mehr {
		grid-column: 1 / -1;
		margin-top: 12px;
	}
}

.spst-ehren__ablage[hidden] { display: none !important; }

/* ---------- Popup ----------
   Fixes Overlay an <body> (kein showModal, damit Lightboxen darüber liegen können), wie die große Ansicht
   der Club-Karte. z-index unter üblichen Lightboxen (WP-Core 100000, Galerie-Plugins meist ab 9999). */
html.spst-sperre { overflow: hidden; }

.spst.spst-dialog {
	position: fixed;
	inset: 0;
	z-index: 9000;
	padding: 32px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: rgba(0, 0, 0, .65);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .25s ease;
}
.spst.spst-dialog[hidden] { display: none; }
.spst.spst-dialog.ist-offen { opacity: 1; }

.spst-dialog__box {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 28px;
	background: rgba(10, 12, 30, .86);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 2px solid rgba(74, 144, 226, .6);
	border-radius: var(--spst-radius-panel);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .4), 0 0 18px rgba(42, 125, 225, .45);
	transform: translateY(12px);
	transition: transform .25s ease;
}
.spst-dialog.ist-offen .spst-dialog__box { transform: none; }

.spst-dialog__inhalt {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	align-items: start;
	gap: 28px;
}
.spst-dialog__bild {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #101129;
	border: 7px solid var(--spst-rahmen);
	border-radius: var(--spst-radius-rahmen);
	box-shadow: var(--spst-schein);
}
.spst-dialog__kicker {
	margin: 4px 0 8px;
	font-size: .85rem;
}
.spst-dialog__name {
	margin: 0 50px 16px 0;
	font-size: 2.4rem;
}
.spst-dialog__inhalt-text {
	font-size: 1.3rem;
	line-height: 1.45;
	color: #e6edf8;
}
.spst-dialog__inhalt-text p {
	margin: 0 0 .8em;
	font-style: italic;
	letter-spacing: .025em;
}
.spst-dialog__inhalt-text img { max-width: 100%; height: auto; }
.spst-dialog__inhalt-text > :last-child { margin-bottom: 0; }

.spst .spst-dialog__zu {
	position: absolute;
	z-index: 2;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
}

/* Handy: bildschirmfüllend, Foto oben, Inhalt darunter */
@media (max-width: 639px) {
	.spst.spst-dialog { padding: 0; }
	.spst-dialog__box {
		min-height: 100%;
		padding: 20px 16px 28px;
		background: rgba(10, 12, 30, .97);
		border-width: 0;
		border-radius: 0;
	}
	.spst-dialog__inhalt {
		grid-template-columns: minmax(0, 1fr);
		align-content: start;
		gap: 16px;
	}
	.spst-dialog__bild {
		width: 150px;
		border-width: 5px;
		border-radius: var(--spst-radius-kiste);
	}
	.spst-dialog__name { font-size: 1.9rem; }
	.spst-dialog__inhalt-text { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
	.spst.spst-dialog,
	.spst-dialog__box { transition: none; transform: none; }
	.spst-ehre.ist-mehr:hover .spst-ehre__img { transform: none; }
}

.spst-team-hinweis {
	padding: 12px 16px;
	border: 1px dashed currentColor;
	border-radius: 8px;
	font-style: italic;
}
