/* Piazza Slideshow – Darstellung im Artikel */
.pss {
	--pss-accent: #5b2a86;
	--pss-ratio: 3/2;
	--pss-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	position: relative;
	margin: 2.2em 0;
	padding: 0;
	background: #fff;
	color: #1f1f1f;
	border-top: 4px solid var(--pss-accent);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .08);
	overflow: hidden;
	line-height: 1.5;
}

/* Kopf */
.pss-head { padding: 18px 24px 14px; }
.pss-kicker {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pss-accent);
}
.pss-title {
	display: block;
	margin-top: 4px;
	font-family: var(--pss-serif);
	font-size: 1.45em;
	font-weight: 600;
	line-height: 1.25;
	color: var(--pss-accent);
}

/* Bühne */
.pss-stage { position: relative; container-type: inline-size; }
.pss-track { display: grid; }
.pss-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .45s ease, visibility 0s linear .45s;
}
.pss-slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; }

.pss-frame {
	position: relative;
	aspect-ratio: var(--pss-ratio);
	overflow: hidden;
	background: #1b1b1b;
}
.pss-frame::before {
	content: "";
	position: absolute;
	inset: -40px;
	background: var(--pss-bg) center / cover no-repeat;
	filter: blur(28px) brightness(.55) saturate(1.1);
}
.pss .pss-frame img.pss-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
	box-shadow: none;
}
.pss .pss-credit {
	position: absolute;
	right: 10px;
	bottom: 10px;
	max-width: calc(100% - 20px);
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .58);
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: .02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	backdrop-filter: blur(4px);
}

/* Bildunterschrift */
.pss-caption { padding: 14px 24px 2px; font-size: .95em; color: #333; }
.pss-caption::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: .32em; background: var(--pss-accent); }

/* Pfeile */
.pss-nav {
	position: absolute;
	top: 40%;
	top: calc(100cqw / (var(--pss-ratio)) / 2);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.pss-prev { left: 14px; }
.pss-next { right: 14px; }
.pss-nav svg { width: 22px; height: 22px; fill: none; stroke: var(--pss-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pss-nav:hover { background: var(--pss-accent); transform: scale(1.06); }
.pss-nav:hover svg { stroke: #fff; }

/* Leiste unten */
.pss-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px 18px; }
.pss-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.pss-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d4d4d4;
	cursor: pointer;
	transition: width .25s, background .25s;
}
.pss-dot:hover { background: #9a9a9a; }
.pss-dot.is-active { width: 24px; background: var(--pss-accent); }
.pss-counter { margin-left: auto; font-size: .85em; color: #6b6b6b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pss-counter b { color: var(--pss-accent); font-family: var(--pss-serif); font-size: 1.15em; }
.pss.has-many .pss-dots { display: none; }

/* Fokus */
.pss button:focus-visible { outline: 3px solid var(--pss-accent); outline-offset: 2px; }

/* Ohne JavaScript: alle Bilder untereinander */
.pss:not(.is-ready) .pss-track { display: block; }
.pss:not(.is-ready) .pss-slide { opacity: 1; visibility: visible; margin-bottom: 12px; }
.pss:not(.is-ready) .pss-nav,
.pss:not(.is-ready) .pss-bar { display: none; }

@media (max-width: 600px) {
	.pss { border-radius: 10px; }
	.pss-head { padding: 14px 16px 10px; }
	.pss-title { font-size: 1.25em; }
	.pss-caption { padding: 12px 16px 2px; }
	.pss-bar { padding: 8px 16px 14px; }
	.pss-nav { width: 36px; height: 36px; margin-top: -18px; }
	.pss-prev { left: 8px; }
	.pss-next { right: 8px; }
	.pss-nav svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.pss-slide, .pss-slide.is-active, .pss-dot, .pss-nav { transition: none; }
}
