/* STF Rückblick – Karten und Jahres-Buttons (Werte aus dem Startseiten-Design). */
.stf-rb,
.stf-rb-years {
	--rb-ink: var(--stf-ink, #22211f);
	--rb-muted: var(--stf-muted, #5d5a54);
	--rb-gold: var(--stf-gold, #b08d46);
	--rb-gold-dark: var(--stf-gold-dark, #8a6a24);
	--rb-heading: var(--stf-font-heading, 'Archivo'), 'Arial Black', sans-serif;
	--rb-body: var(--stf-font-body, 'Barlow'), system-ui, sans-serif;
	font-family: var(--rb-body);
}

/* Jahres-Buttons */
.stf-rb-years {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.stf-rb-years .stf-rb-year {
	margin: 0;
	padding: 9px 16px;
	border: 1px solid rgba(34, 33, 31, 0.2);
	border-radius: 0;
	background: #ffffff;
	color: #4a4843;
	font-family: var(--rb-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.stf-rb-years .stf-rb-year:hover,
.stf-rb-years .stf-rb-year:focus {
	border-color: var(--rb-gold);
	background: #ffffff;
	color: var(--rb-gold-dark);
}

.stf-rb-years .stf-rb-year[aria-pressed="true"] {
	border-color: var(--rb-ink);
	background: var(--rb-ink);
	color: #ffffff;
}

/* Karten – Container ist die Spalte, nicht der Bildschirm */
.stf-rb {
	container-type: inline-size;
	container-name: stfrb;
}


.stf-rb {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.stf-rb-card[hidden] {
	display: none;
}

.stf-rb-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	animation: stf-rb-in 0.25s ease;
}

@keyframes stf-rb-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.stf-rb-card__img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	background: #f4f1ea;
}

.stf-rb .stf-rb-card__title {
	margin: 0;
	font-family: var(--rb-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rb-ink);
}

.stf-rb-card__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--rb-muted);
}

.stf-rb-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2px;
}

.stf-rb .stf-rb-btn {
	padding: 10px 18px;
	border: 1px solid rgba(34, 33, 31, 0.2);
	color: var(--rb-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.stf-rb .stf-rb-btn:hover,
.stf-rb .stf-rb-btn:focus-visible {
	border-color: var(--rb-gold);
	color: var(--rb-gold-dark);
}

.stf-rb-years .stf-rb-year:focus-visible,
.stf-rb .stf-rb-btn:focus-visible {
	outline: 2px solid var(--rb-gold);
	outline-offset: 2px;
}

.stf-rb-empty {
	margin: 0;
}

@container stfrb (max-width: 560px) {
	.stf-rb-card {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.stf-rb-years {
		gap: 6px;
	}

	.stf-rb-years .stf-rb-year {
		padding: 7px 11px;
		font-size: 13px;
	}

	.stf-rb-card__img {
		height: 190px;
	}

	.stf-rb .stf-rb-card__title {
		font-size: 19px;
	}

	.stf-rb-card__text {
		font-size: 15px;
	}
}

/* ==========================================================================
   Diashow-Lightbox
   ========================================================================== */
.stf-rb .stf-rb-btn__count {
	font-weight: 400;
	opacity: 0.7;
}

.stf-rb button.stf-rb-btn,
.stf-rb button.stf-rb-btn:hover,
.stf-rb button.stf-rb-btn:focus {
	margin: 0;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
}

html.stf-rb-lightbox-open {
	overflow: hidden;
}

.stf-rb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: rgba(22, 21, 19, 0.96);
	color: #ffffff;
	font-family: var(--stf-font-body, 'Barlow'), system-ui, sans-serif;
	animation: stf-rb-fade 0.2s ease;
}

.stf-rb-lightbox[hidden] {
	display: none;
}

@keyframes stf-rb-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.stf-rb-lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
}

.stf-rb-lightbox .stf-rb-lightbox__title {
	margin: 0;
	font-family: var(--stf-font-heading, 'Archivo'), sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.stf-rb-lightbox__counter {
	margin-left: 12px;
	font-family: var(--stf-font-body, 'Barlow'), sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: var(--stf-gold-light, #d9b463);
	font-variant-numeric: tabular-nums;
}

/* Doppelte Klasse: schlägt die Button-Stile aus dem Elementor-Kit (.elementor-kit-403 button). */
.stf-rb-lightbox.stf-rb-lightbox button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.stf-rb-lightbox.stf-rb-lightbox button:hover,
.stf-rb-lightbox.stf-rb-lightbox button:focus {
	border-color: var(--stf-gold-light, #d9b463);
	background: rgba(217, 180, 99, 0.18);
	color: #ffffff;
}

.stf-rb-lightbox button:focus-visible {
	outline: 2px solid var(--stf-gold-light, #d9b463);
	outline-offset: 2px;
}

.stf-rb-lightbox .stf-rb-lightbox__close {
	width: 44px;
	height: 44px;
	font-size: 26px;
	line-height: 1;
}

.stf-rb-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 76px;
	touch-action: pan-y;
}

.stf-rb-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.stf-rb-lightbox__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 160px);
	max-height: calc(100dvh - 160px);
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
	transition: opacity 0.2s ease;
}

.stf-rb-lightbox__img.is-loading {
	opacity: 0.25;
}

.stf-rb-lightbox__caption {
	font-size: 14px;
	color: #c9c5bc;
	text-align: center;
}

.stf-rb-lightbox__caption:empty {
	display: none;
}

.stf-rb-lightbox .stf-rb-lightbox__prev,
.stf-rb-lightbox .stf-rb-lightbox__next {
	position: absolute;
	top: 50%;
	width: 52px;
	height: 52px;
	font-size: 30px;
	transform: translateY(-50%);
}

.stf-rb-lightbox .stf-rb-lightbox__prev {
	left: 12px;
}

.stf-rb-lightbox .stf-rb-lightbox__next {
	right: 12px;
}

.stf-rb-lightbox__thumbs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 12px 20px 16px;
	scrollbar-width: thin;
}

.stf-rb-lightbox.stf-rb-lightbox .stf-rb-lightbox__thumb {
	flex: 0 0 auto;
	padding: 0;
	width: 64px;
	height: 44px;
	border: 2px solid transparent;
	background: none;
	opacity: 0.55;
}

.stf-rb-lightbox.stf-rb-lightbox .stf-rb-lightbox__thumb:hover,
.stf-rb-lightbox.stf-rb-lightbox .stf-rb-lightbox__thumb:focus {
	background: none;
	opacity: 1;
}

.stf-rb-lightbox.stf-rb-lightbox .stf-rb-lightbox__thumb[aria-current="true"] {
	border-color: var(--stf-gold-light, #d9b463);
	opacity: 1;
}

.stf-rb-lightbox__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

@media (max-width: 767px) {
	.stf-rb-lightbox__stage {
		padding: 0 8px 60px;
	}

	.stf-rb-lightbox .stf-rb-lightbox__prev,
	.stf-rb-lightbox .stf-rb-lightbox__next {
		top: auto;
		bottom: 8px;
		width: 48px;
		height: 44px;
		transform: none;
	}

	.stf-rb-lightbox .stf-rb-lightbox__prev {
		left: calc(50% - 56px);
	}

	.stf-rb-lightbox .stf-rb-lightbox__next {
		right: calc(50% - 56px);
	}

	.stf-rb-lightbox__img {
		max-height: calc(100dvh - 200px);
	}

	.stf-rb-lightbox__thumbs {
		display: none;
	}
}
