/*
Theme Name: See the Big Picture
Theme URI: https://see-the-big-picture.com/
Author: See the Big Picture
Description: Block-Theme für See the Big Picture. Schwarz-weißes Gerüst, die Farbe kommt aus den Werken. Benötigt das Plugin STBP Core.
Version: 0.9.4
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stbp
*/

/* ---------- Akzentfarbe aus dem Werk (gesetzt von STBP Core im <head>) ---------- */
body {
	--wp--preset--color--accent: var(--stbp-accent, #000);
	--wp--preset--color--accent-tint: color-mix(in srgb, var(--stbp-accent-raw, #8c8c8c) 16%, #fff);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv11", "ss01";
}

::selection {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

:where(h1, h2, h3) {
	text-wrap: balance;
}

:where(p) {
	text-wrap: pretty;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main {
	flex: 1;
}

/* ---------- Kopfzeile ---------- */
.stbp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

.admin-bar .stbp-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.stbp-header.is-scrolled {
	border-bottom-color: var(--wp--preset--color--line);
}

.stbp-header__inner {
	min-height: var(--wp--custom--header-height);
	gap: 1.5rem;
}

.stbp-logo {
	display: inline-flex;
	color: inherit;
	line-height: 0;
}

.stbp-logo svg {
	height: 3.25rem;
	width: auto;
}

.stbp-logo:hover {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 600px) {
	.stbp-logo svg {
		height: 2.25rem;
	}
}

/* Menü */
.stbp-menu {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-left: auto;
	font-family: var(--wp--preset--font-family--raleway);
	font-weight: 500;
}

.stbp-menu__list,
.stbp-menu__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stbp-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
}

.stbp-menu__list a {
	color: inherit;
	text-decoration: none;
	padding: 0.35rem 0;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size 0.25s ease;
}

.stbp-menu__list a:hover,
.stbp-menu__list .current-menu-item > a,
.stbp-menu__list .current-page-ancestor > a {
	background-size: 100% 2px;
	color: inherit;
}

.stbp-menu__toggle {
	display: none;
	appearance: none;
	border-radius: 0;
	min-height: 0;
	white-space: nowrap;
	align-items: center;
	gap: 0.5rem;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	padding: 0.5rem 0;
}

.stbp-menu__toggle-icon,
.stbp-menu__toggle-icon::before,
.stbp-menu__toggle-icon::after {
	display: block;
	width: 1.4rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s, opacity 0.2s;
}

.stbp-menu__toggle-icon {
	position: relative;
}

.stbp-menu__toggle-icon::before,
.stbp-menu__toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.stbp-menu__toggle-icon::before { top: -6px; }
.stbp-menu__toggle-icon::after { top: 6px; }

.stbp-menu.is-open .stbp-menu__toggle-icon { background: transparent; }
.stbp-menu.is-open .stbp-menu__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.stbp-menu.is-open .stbp-menu__toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Sprachumschalter */
.stbp-lang {
	display: flex;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--raleway);
	font-weight: 600;
	font-size: 0.875rem;
}

.stbp-lang a,
.stbp-lang span {
	display: inline-block;
	padding: 0.3rem 0.55rem;
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
}

.stbp-lang [aria-current] {
	background: #000;
	color: #fff;
}

.stbp-lang a:hover {
	background: var(--wp--preset--color--wash);
	color: inherit;
}

@media (max-width: 960px) {
	.stbp-menu__toggle {
		display: inline-flex;
	}

	.stbp-menu__panel {
		position: fixed;
		inset: var(--wp--custom--header-height) 0 0 0;
		background: #fff;
		padding: 1.5rem var(--wp--preset--spacing--30) 3rem;
		overflow-y: auto;
		display: none;
		flex-direction: column;
		gap: 2rem;
	}

	.admin-bar .stbp-menu__panel {
		top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 46px));
	}

	.stbp-menu.is-open .stbp-menu__panel {
		display: flex;
	}

	.stbp-menu__panel .stbp-menu__list {
		flex-direction: column;
		gap: 0;
		font-size: clamp(1.75rem, 8vw, 2.5rem);
		font-weight: 600;
		letter-spacing: -0.01em;
	}

	.stbp-menu__panel .stbp-menu__list a {
		display: inline-block;
		padding: 0.4rem 0;
	}

	.stbp-lang {
		font-size: 1rem;
	}
}

@media (min-width: 961px) {
	.stbp-menu__panel {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}

/* ---------- Fußzeile ---------- */
.stbp-footer {
	margin-top: var(--wp--preset--spacing--60);
}

.stbp-footer .stbp-menu__list {
	flex-direction: column;
	gap: 0.35rem;
}

.stbp-footer .stbp-menu__list a {
	padding: 0;
}

.stbp-footer__symbol svg {
	width: 4.5rem;
	height: auto;
}

/* ---------- Werk-Seite ---------- */
.stbp-artwork-hero {
	background: var(--wp--preset--color--accent-tint);
}

.stbp-artwork-hero .wp-block-columns {
	align-items: start;
}

.stbp-artwork-image {
	display: grid;
	gap: 1rem;
}

.stbp-artwork-image__item {
	margin: 0;
}

.stbp-artwork-image__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 82vh;
	object-fit: contain;
	object-position: left top;
	box-shadow: 0 1px 0 rgb(0 0 0 / 0.04);
}

.stbp-artwork-meta h1 {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
	hyphens: auto;
	overflow-wrap: anywhere;
}

.stbp-artwork-meta__title {
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.35;
}

.stbp-artwork-meta__position {
	font-variant-numeric: tabular-nums;
	/* steht auf der getönten Fläche des Werks: etwas dunkler als die Akzentfarbe (sonst unter 4,5:1) */
	color: color-mix(in srgb, var(--wp--preset--color--accent) 75%, #000);
	font-weight: 600;
}

.stbp-artwork-portrait {
	margin: 0;
}

.stbp-artwork-portrait__img {
	width: 7.5rem;
	height: 7.5rem;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

/* Kette (Vorgänger / Nachfolger) */
.stbp-chain-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 2rem;
}

.stbp-chain-nav__item {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 1rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.stbp-chain-nav__item.is-next {
	grid-template-columns: 1fr auto;
	text-align: right;
}

.stbp-chain-nav__item.is-next .stbp-chain-nav__thumb {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.stbp-chain-nav__item.is-next .stbp-chain-nav__label,
.stbp-chain-nav__item.is-next .stbp-chain-nav__name {
	grid-column: 1;
}

.stbp-chain-nav__thumb {
	grid-row: 1 / span 2;
	width: clamp(4.5rem, 10vw, 7rem);
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stbp-chain-nav__label {
	align-self: end;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

.stbp-chain-nav__name {
	align-self: start;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
}

a.stbp-chain-nav__item:hover {
	color: inherit;
}

a.stbp-chain-nav__item:hover .stbp-chain-nav__thumb {
	transform: translateY(-3px);
	box-shadow: 0 0 0 4px var(--stbp-item-accent, #000);
}

a.stbp-chain-nav__item:hover .stbp-chain-nav__name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.stbp-chain-nav__position {
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
}

.stbp-chain-nav__item.is-empty {
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 700px) {
	.stbp-chain-nav {
		grid-template-columns: 1fr 1fr;
	}

	.stbp-chain-nav__position {
		grid-column: 1 / -1;
		grid-row: 1;
		text-align: center;
	}

	.stbp-chain-nav__item,
	.stbp-chain-nav__item.is-next {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.stbp-chain-nav__item.is-next {
		text-align: right;
	}

	.stbp-chain-nav__item .stbp-chain-nav__thumb,
	.stbp-chain-nav__item.is-next .stbp-chain-nav__thumb {
		grid-row: auto;
		grid-column: auto;
		margin-bottom: 0.5rem;
	}

	.stbp-chain-nav__item.is-next .stbp-chain-nav__thumb {
		justify-self: end;
	}

	.stbp-chain-nav__item.is-next .stbp-chain-nav__label,
	.stbp-chain-nav__item.is-next .stbp-chain-nav__name {
		grid-column: auto;
	}
}

/* Zufalls-Werk */
.stbp-random-artwork__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.stbp-random-artwork__link::before {
	content: "";
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: conic-gradient(#e63946, #f4a261, #e9c46a, #2a9d8f, #457b9d, #8e5ea2, #e63946);
	transition: transform 0.6s ease;
}

.stbp-random-artwork__link:hover::before {
	transform: rotate(360deg) scale(1.3);
}

/* ---------- Community: Porträts rund ---------- */
.stbp-people .wp-block-post-template {
	row-gap: var(--wp--preset--spacing--40);
}

.stbp-people .wp-block-post-featured-image {
	margin: 0 auto 0.85rem;
	width: min(100%, 11rem);
	aspect-ratio: 1;
}

.stbp-people .wp-block-post-featured-image a,
.stbp-people .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.stbp-people .wp-block-post-featured-image img {
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.stbp-people .wp-block-post:hover .wp-block-post-featured-image img,
.stbp-people .wp-block-post:focus-within .wp-block-post-featured-image img {
	box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--stbp-item-accent, #000);
	transform: scale(1.03);
}

.stbp-people .wp-block-post-title {
	text-align: center;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0;
}

.stbp-people .wp-block-post-title a {
	text-decoration: none;
}

/* Raster für Beiträge (Archive, Ausstellungen) */
.stbp-cards .wp-block-post-featured-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	transition: filter 0.25s ease;
}

.stbp-cards .wp-block-post:hover .wp-block-post-featured-image img {
	filter: contrast(1.06) saturate(1.15);
}

.stbp-cards .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.01em;
	margin-top: 0.75rem;
}

.stbp-cards .wp-block-post-title a {
	text-decoration: none;
}

.stbp-cards .wp-block-post:hover .wp-block-post-title a {
	text-decoration: underline;
}

/* Seitennummerierung */
.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--raleway);
	font-weight: 600;
	gap: 1.5rem;
}

.wp-block-query-pagination a {
	text-decoration: none;
}

.wp-block-query-pagination-numbers .current {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
	font: inherit;
	border: 1px solid #8c8c8c;
	border-radius: 0.5rem;
	padding: 0.7em 0.9em;
	background: #fff;
	color: inherit;
}

:where(input, textarea, select, button):focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* Elementor-Inhalte (Übergang): nicht über die Breite des Themes hinaus */
.stbp-elementor .wp-block-post-content > .elementor {
	max-width: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Menü ohne Aufklappen (Fußzeile) */
.stbp-menu--plain {
	margin-left: 0;
	display: block;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (min-width: 782px) {
	.stbp-artwork-meta {
		position: sticky;
		top: calc(var(--wp--custom--header-height) + 2rem);
	}
}

.is-artwork .stbp-random-artwork {
	text-align: center;
}

/* ======================================================================
   Startseite
   ====================================================================== */

/* ---------- Mosaik: die Kette setzt sich zum Big Picture zusammen ---------- */
.stbp-mosaic {
	--p: 1;
	--cols: 15;
	--rows: var(--rows-15);
	position: relative;
}

@media (max-width: 1100px) {
	.stbp-mosaic {
		--cols: 10;
		--rows: var(--rows-10);
	}
}

@media (max-width: 640px) {
	.stbp-mosaic {
		--cols: 7;
		--rows: var(--rows-7);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.stbp-mosaic {
		--p: 0;
		height: 240vh;
	}
}

.stbp-mosaic__stage {
	position: sticky;
	top: var(--wp--custom--header-height);
	height: calc(100svh - var(--wp--custom--header-height));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	overflow: clip;
	padding-block: 1rem;
}

.admin-bar .stbp-mosaic__stage {
	top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 32px));
	height: calc(100svh - var(--wp--custom--header-height) - var(--wp-admin--admin-bar--height, 32px));
}

.stbp-mosaic__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--cols), 1fr);
	width: min(100%, calc((100svh - var(--wp--custom--header-height) - 9rem) * var(--cols) / var(--rows) * 1.25));
}

.stbp-mosaic__tile {
	--lp: clamp(0, (var(--p) - var(--delay)) / 0.5, 1);
	--rest: calc(1 - var(--lp));
	position: relative;
	transform:
		translate(calc(var(--dx) * var(--rest)), calc(var(--dy) * var(--rest)))
		rotate(calc(var(--rot) * var(--rest)))
		scale(calc(1 + 0.3 * var(--rest)));
	will-change: transform;
}

.stbp-mosaic__tile a {
	display: block;
	aspect-ratio: 5 / 4;
	background: var(--wp--preset--color--wash);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stbp-mosaic__grid.has-sprite .stbp-mosaic__tile:not(.is-img) a {
	background-image: var(--sprite);
	background-size: calc(var(--sprite-cols) * 100%) calc(var(--sprite-rows) * 100%);
	background-position: var(--sx) var(--sy);
}

.stbp-mosaic__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stbp-mosaic__tile:hover {
	z-index: 3;
}

.stbp-mosaic__tile:hover a {
	transform: scale(1.6);
	box-shadow: 0 0 0 3px var(--accent), 0 10px 30px rgb(0 0 0 / 0.25);
}

.stbp-mosaic__tip {
	position: absolute;
	left: 50%;
	top: calc(100% + 1.4rem);
	transform: translateX(-50%);
	white-space: nowrap;
	background: #000;
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1.2;
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s;
}

.stbp-mosaic__n {
	color: var(--accent);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	filter: brightness(1.8) saturate(1.2);
}

.stbp-mosaic__tile:hover .stbp-mosaic__tip {
	opacity: 1;
}

.stbp-mosaic__facts {
	max-width: 40rem;
	margin: 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	opacity: clamp(0, (var(--p) - 0.75) * 5, 1);
}

/* ---------- Einstieg (Text über dem Mosaik) ---------- */
.stbp-home-intro h1 {
	margin: 0;
}

/* ---------- Kette als Scroll-Strecke ---------- */
.stbp-strip__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto 1.5rem;
	padding-inline: var(--wp--preset--spacing--30);
}

.stbp-strip__head h2 {
	margin: 0;
}

.stbp-strip__controls {
	display: flex;
	gap: 0.5rem;
}

.stbp-strip__btn {
	appearance: none;
	min-width: 3rem;
	height: 3rem;
	padding: 0 1rem;
	border: 1.5px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font: 600 1rem/1 var(--wp--preset--font-family--raleway);
	cursor: pointer;
}

.stbp-strip__btn:hover:not(:disabled) {
	background: #000;
	color: #fff;
}

.stbp-strip__btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.stbp-strip__track {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0 var(--wp--preset--spacing--30) 1rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--wp--preset--spacing--30);
	scrollbar-width: thin;
	cursor: grab;
}

.stbp-strip__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.stbp-strip__item {
	flex: 0 0 clamp(11rem, 21vw, 17rem);
	scroll-snap-align: start;
}

.stbp-strip__item a {
	display: grid;
	text-decoration: none;
	color: inherit;
}

.stbp-strip__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	background: var(--wp--preset--color--wash);
	border-bottom: 4px solid transparent;
	transition: border-color 0.2s ease, filter 0.2s ease;
	-webkit-user-drag: none;
}

.stbp-strip__item a:hover .stbp-strip__img,
.stbp-strip__item a:focus-visible .stbp-strip__img {
	border-bottom-color: var(--accent);
	filter: saturate(1.15) contrast(1.05);
}

.stbp-strip__n,
.stbp-strip__name,
.stbp-strip__country {
	padding-inline: 0.75rem 0.5rem;
}

.stbp-strip__n {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
	font-variant-numeric: tabular-nums;
}

.stbp-strip__name {
	font-weight: 700;
	line-height: 1.25;
}

.stbp-strip__item a:hover .stbp-strip__name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.stbp-strip__country {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

/* ---------- Drei Wege hinein ---------- */
.stbp-ways > .wp-block-column {
	position: relative;
	border-top: 2px solid #000;
	padding: 1.25rem 1.25rem 1.75rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.stbp-ways h2 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.stbp-ways h2 a {
	text-decoration: none;
}

.stbp-ways h2 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.stbp-ways .stbp-way__cta {
	margin-top: 1.5rem;
	font-family: var(--wp--preset--font-family--raleway);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.stbp-ways > .wp-block-column:hover,
.stbp-ways > .wp-block-column:focus-within {
	background: #000;
	color: #fff;
}

.stbp-ways > .wp-block-column:hover a,
.stbp-ways > .wp-block-column:focus-within a {
	color: #fff;
}

/* Fokus: Der Kasten wird schwarz – ein schwarzer Rahmen am Link wäre unsichtbar.
   Darum Rahmen um den ganzen Kasten (auf Weiß); ohne :has() ein weißer Rahmen am Link. */
.stbp-ways > .wp-block-column a:focus-visible {
	outline-color: #fff;
}

@supports selector(:has(a)) {
	.stbp-ways > .wp-block-column:has(a:focus-visible) {
		outline: 3px solid #000;
		outline-offset: 3px;
	}

	.stbp-ways > .wp-block-column a:focus-visible {
		outline: 2px solid transparent;
	}
}

/* ---------- Video (lädt erst beim Klick) ---------- */
.stbp-video {
	margin: 0;
}

.stbp-video__play,
.stbp-video__frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.stbp-video__play {
	position: relative;
	padding: 0;
	background: #000;
	color: #fff;
	cursor: pointer;
	overflow: hidden;
	font: inherit;
	text-align: left;
}

.stbp-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.75;
	transition: opacity 0.3s ease, transform 0.6s ease;
}

.stbp-video__play:hover .stbp-video__poster {
	opacity: 0.9;
	transform: scale(1.02);
}

.stbp-video__label {
	position: absolute;
	left: clamp(1rem, 4vw, 2.5rem);
	bottom: clamp(1rem, 4vw, 2.5rem);
	right: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.stbp-video__icon {
	flex: none;
	width: clamp(3.5rem, 7vw, 5rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: #fff;
	position: relative;
	transition: transform 0.2s ease;
}

.stbp-video__icon::after {
	content: "";
	position: absolute;
	left: 40%;
	top: 30%;
	border-style: solid;
	border-width: 0.6em 0 0.6em 1em;
	border-color: transparent transparent transparent #000;
	font-size: clamp(1rem, 2vw, 1.4rem);
}

.stbp-video__play:hover .stbp-video__icon {
	transform: scale(1.08);
}

.stbp-video__title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.stbp-video__note {
	margin-top: 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

/* ---------- Unterstützen ---------- */
.stbp-support a:where(:not(.wp-element-button)) {
	color: inherit;
}

.stbp-support .wp-element-button {
	background: #fff;
	color: #000;
}

.stbp-support .wp-element-button:hover {
	background: var(--wp--preset--color--wash);
	color: #000;
}

.stbp-facts {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}

/* Im Editor: Mosaik ruhig und zusammengesetzt zeigen */
.editor-styles-wrapper .stbp-mosaic {
	--p: 1 !important;
	height: auto !important;
}

.editor-styles-wrapper .stbp-mosaic__stage {
	position: static;
	height: auto;
}

/* Video mit Vorschaubild: Schatten unten, damit der Titel auf hellen Bildern lesbar bleibt */
.stbp-video.has-poster .stbp-video__play::after {
	content: "";
	position: absolute;
	inset: 35% 0 0;
	background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / 0.65));
	pointer-events: none;
}

.stbp-video__label {
	z-index: 1;
}

/* ======================================================================
   Community
   ====================================================================== */
.stbp-page-intro h1 {
	margin: 0 0 0.25em;
}

.stbp-community__facts {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}

/* Suche + Land: bleibt beim Scrollen unter der Kopfzeile stehen */
.stbp-community__filters {
	position: sticky;
	top: var(--wp--custom--header-height);
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 0.75rem 1rem;
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0.85rem 0;
	background: #fff;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.admin-bar .stbp-community__filters {
	top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 32px));
}

.stbp-community__filters[hidden] {
	display: none;
}

.stbp-field {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
}

.stbp-field--search {
	flex: 1 1 16rem;
	max-width: 26rem;
}

.stbp-field__label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

.stbp-field input,
.stbp-field select {
	width: 100%;
	border-radius: 999px;
	border: 1.5px solid #000;
	padding: 0.65em 1.1em;
	font: inherit;
	background-color: #fff;
}

.stbp-field select {
	max-width: 18rem;
	padding-right: 2.5em;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
	background-position: calc(100% - 1.35em) 55%, calc(100% - 1em) 55%;
	background-size: 0.35em 0.35em;
	background-repeat: no-repeat;
}

.stbp-community__reset {
	appearance: none;
	border: 0;
	background: none;
	padding: 0.7em 0.25em;
	font: 600 1rem/1.2 var(--wp--preset--font-family--raleway);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	color: inherit;
	cursor: pointer;
}

.stbp-community__reset[hidden] {
	display: none;
}

.stbp-community__count {
	margin-left: auto;
	padding-bottom: 0.7em;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--graphite);
}

/* Raster */
.stbp-community__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
}

@media (max-width: 600px) {
	.stbp-community__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stbp-community__count {
		margin-left: 0;
		width: 100%;
		padding-bottom: 0;
	}
}

.stbp-person[hidden] {
	display: none;
}

.stbp-person a {
	display: grid;
	justify-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.stbp-person__media {
	position: relative;
	display: block;
	width: min(100%, 11rem);
	aspect-ratio: 1;
	margin-bottom: 0.85rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--wp--preset--color--wash);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.stbp-person__portrait,
.stbp-person__art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stbp-person__art {
	opacity: 0;
	transform: scale(1.15) rotate(-6deg);
	transition: opacity 0.35s ease, transform 0.5s ease;
}

.stbp-person__art:not([src]) {
	display: none;
}

.stbp-person:hover .stbp-person__media,
.stbp-person a:focus-visible .stbp-person__media {
	box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--stbp-item-accent, #000);
	transform: scale(1.03);
}

.stbp-person.has-art:hover .stbp-person__art,
.stbp-person.has-art a:focus-visible .stbp-person__art {
	opacity: 1;
	transform: none;
}

.stbp-person a:focus-visible {
	/* durchsichtig statt "none": im Kontrastmodus (Windows) wird daraus ein sichtbarer Rahmen */
	outline: 2px solid transparent;
}

/* Tastatur: dunkler Ring innen, damit der Rahmen auch bei hellen Akzentfarben gut zu sehen ist */
.stbp-person a:focus-visible .stbp-person__media {
	box-shadow: 0 0 0 4px #fff, 0 0 0 7px #000, 0 0 0 11px var(--stbp-item-accent, #000);
}

.stbp-person__name {
	font-weight: 600;
	line-height: 1.3;
}

.stbp-person:hover .stbp-person__name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.stbp-person__country {
	margin-top: 0.15rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

.stbp-community__empty {
	font-size: var(--wp--preset--font-size--large);
}

.stbp-page-intro .has-x-large-font-size {
	line-height: 1.2;
	letter-spacing: -0.015em;
}

@media (max-width: 600px) {
	.stbp-community__filters {
		position: static;
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 0.6rem;
	}

	.stbp-field--search {
		grid-column: 1 / -1;
		max-width: none;
	}

	.stbp-field select {
		max-width: none;
	}

	.stbp-community__filters .stbp-field__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.stbp-community__count {
		width: auto;
		align-self: center;
		padding: 0;
		font-size: var(--wp--preset--font-size--small);
	}

	.stbp-community__reset {
		grid-column: 1 / -1;
		justify-self: start;
		padding: 0;
	}
}

/* Gruppen: mehrere Porträts als überlappende Kreise (Community + Werk-Seite) */
.stbp-person__media.is-group {
	overflow: visible;
	background: none;
}

.stbp-person__media.is-group .stbp-person__portrait {
	width: 62%;
	height: 62%;
	border-radius: 50%;
	box-shadow: 0 0 0 3px #fff;
	background: var(--wp--preset--color--wash);
}

.stbp-person__media.has-2 .stbp-person__portrait:nth-child(1) { inset: 4% auto auto 2%; }
.stbp-person__media.has-2 .stbp-person__portrait:nth-child(2) { inset: auto 2% 4% auto; }

.stbp-person__media.has-3 .stbp-person__portrait { width: 54%; height: 54%; }
.stbp-person__media.has-3 .stbp-person__portrait:nth-child(1) { inset: 2% auto auto 23%; }
.stbp-person__media.has-3 .stbp-person__portrait:nth-child(2) { inset: auto auto 6% 0; }
.stbp-person__media.has-3 .stbp-person__portrait:nth-child(3) { inset: auto 0 6% auto; }

.stbp-person__media.has-4 .stbp-person__portrait { width: 52%; height: 52%; }
.stbp-person__media.has-4 .stbp-person__portrait:nth-child(1) { inset: 0 auto auto 0; }
.stbp-person__media.has-4 .stbp-person__portrait:nth-child(2) { inset: 0 0 auto auto; }
.stbp-person__media.has-4 .stbp-person__portrait:nth-child(3) { inset: auto auto 0 0; }
.stbp-person__media.has-4 .stbp-person__portrait:nth-child(4) { inset: auto 0 0 auto; }

/* Beim Darüberfahren: das Werk deckt die Gruppe als ganzer Kreis ab */
.stbp-person__media.is-group .stbp-person__art {
	border-radius: 50%;
	z-index: 2;
}

/* Werk-Seite: Gruppen-Porträts nebeneinander, leicht überlappend */
.stbp-artwork-portrait.is-group {
	display: flex;
	flex-wrap: wrap;
}

.stbp-artwork-portrait.is-group .stbp-artwork-portrait__img {
	width: 6rem;
	height: 6rem;
	box-shadow: 0 0 0 3px var(--wp--preset--color--accent-tint);
}

.stbp-artwork-portrait.is-group .stbp-artwork-portrait__img + .stbp-artwork-portrait__img {
	margin-left: -1rem;
}

/* ======================================================================
   Gallery
   ====================================================================== */
.stbp-gallery__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin: 0 0 var(--wp--preset--spacing--40);
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.stbp-gallery__jump-row {
	display: flex;
	gap: 0.5rem;
}

.stbp-gallery__jump input {
	width: 8.5rem;
	-moz-appearance: textfield;
}

.stbp-gallery__jump {
	position: relative;
}

.stbp-gallery__jump-msg {
	position: absolute;
	top: 100%;
	left: 0;
	white-space: nowrap;
	margin-top: 0.2rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

.stbp-gallery__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
}

@media (max-width: 600px) {
	.stbp-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.75rem 0.75rem;
	}
}

.stbp-gal {
	scroll-margin-top: calc(var(--wp--custom--header-height) + 2rem);
}

.stbp-gal a {
	display: grid;
	text-decoration: none;
	color: inherit;
}

.stbp-gal__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	background: var(--wp--preset--color--wash);
	border-bottom: 4px solid transparent;
	transition: border-color 0.2s ease, filter 0.2s ease;
}

.stbp-gal a:hover .stbp-gal__img,
.stbp-gal a:focus-visible .stbp-gal__img {
	border-bottom-color: var(--accent);
	filter: saturate(1.15) contrast(1.05);
}

.stbp-gal a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 4px;
}

.stbp-gal__n {
	margin-top: 0.7rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
	font-variant-numeric: tabular-nums;
}

.stbp-gal__name {
	font-weight: 700;
	line-height: 1.25;
}

.stbp-gal a:hover .stbp-gal__name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.stbp-gal__country {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

/* "Gehe zu Nr." / Direktlink: Werk kurz hervorheben */
.stbp-gal.is-target .stbp-gal__img {
	animation: stbp-target 1.8s ease;
}

@keyframes stbp-target {
	0%, 60% { box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--accent); }
	100% { box-shadow: 0 0 0 6px #fff, 0 0 0 10px transparent; }
}

/* Großansicht */
.stbp-no-scroll {
	overflow: hidden;
}

.stbp-lightbox {
	width: min(100vw - 2rem, 90rem);
	max-width: none;
	height: min(100svh - 2rem, 60rem);
	max-height: none;
	padding: 0;
	border: 0;
	border-top: 6px solid var(--accent, #000);
	background: #fff;
	color: #000;
}

.stbp-lightbox::backdrop {
	background: rgb(0 0 0 / 0.8);
}

.stbp-lightbox__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22rem;
	height: 100%;
}

.stbp-lightbox__figure {
	margin: 0;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 3vw, 2.5rem);
	background: var(--wp--preset--color--wash);
	min-height: 0;
}

.stbp-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.stbp-lightbox__img.is-loaded {
	opacity: 1;
}

.stbp-lightbox__meta {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 4rem 2rem 2rem;
	overflow-y: auto;
}

.stbp-lightbox__meta p,
.stbp-lightbox__meta h2 {
	margin: 0;
}

.stbp-lightbox__n {
	color: var(--accent, #000);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.stbp-lightbox__name {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.05;
}

.stbp-lightbox__title {
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.35;
}

.stbp-lightbox__country {
	color: var(--wp--preset--color--graphite);
}

.stbp-lightbox__open {
	align-self: start;
	margin-top: 1rem;
}

.stbp-lightbox__nav {
	display: flex;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1.5rem;
}

.stbp-lightbox__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: #000;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.stbp-lightbox__close:focus-visible,
.stbp-lightbox .stbp-strip__btn:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.stbp-lightbox {
		width: 100vw;
		height: 100svh;
	}

	.stbp-lightbox__inner {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 1fr) auto;
	}

	.stbp-lightbox__meta {
		padding: 1rem 1.25rem 1.25rem;
	}

	.stbp-lightbox__name {
		font-size: var(--wp--preset--font-size--large);
	}

	.stbp-lightbox__title {
		font-size: var(--wp--preset--font-size--medium);
	}

	.stbp-lightbox__nav {
		position: absolute;
		top: 0.75rem;
		left: 0.75rem;
		margin: 0;
		padding: 0;
	}

	.stbp-lightbox__nav .stbp-strip__btn {
		background: rgb(255 255 255 / 0.9);
	}
}

/* Weitere Projekte */
.stbp-projects h2 {
	margin-bottom: 1.5rem;
}

.stbp-projects h3 {
	margin-top: 2.5rem;
}

.stbp-project-cards .wp-block-image {
	margin: 0;
}

.stbp-project-cards .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.stbp-project-cards .wp-element-caption {
	margin-top: 0.6rem;
	text-align: left;
	color: inherit;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
}

.stbp-project-date {
	margin-bottom: 0;
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
}

.stbp-project-date + .wp-block-heading {
	margin-top: 0.25rem;
}

/* Bildergalerien in "Weitere Projekte": letzte Reihe nicht auf volle Breite strecken */
.stbp-projects .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex-grow: 0;
}

/* ======================================================================
   The Big Picture
   ====================================================================== */
.stbp-page-intro h2 {
	margin-top: 2.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.stbp-kicker {
	margin-top: -0.25rem;
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--large);
}

.stbp-bp-pair h2 {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.stbp-bp-pair > .wp-block-column {
	border-top: 2px solid #000;
	padding-top: 1.25rem;
}

.stbp-bp-symbol {
	margin: 1.5rem 0;
}

.stbp-bp-symbol img {
	width: min(100%, 13rem);
	height: auto;
}

/* "Read & marvel": Knopf, der den Text darunter aufklappt */
.stbp-reveal > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85em 1.5em;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font: 600 1rem/1.2 var(--wp--preset--font-family--raleway);
	cursor: pointer;
	list-style: none;
}

.stbp-reveal > summary::-webkit-details-marker {
	display: none;
}

.stbp-reveal > summary::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-0.15em) rotate(45deg);
	transition: transform 0.2s ease;
}

.stbp-reveal[open] > summary::after {
	transform: translateY(0.1em) rotate(-135deg);
}

.stbp-reveal > summary:hover {
	background: var(--wp--preset--color--accent);
}

.stbp-reveal > summary:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.stbp-reveal[open] > summary ~ * {
	animation: stbp-reveal 0.35s ease both;
}

.stbp-reveal > .wp-block-image {
	margin: 1.5rem 0 1rem;
}

@keyframes stbp-reveal {
	from { opacity: 0; transform: translateY(-0.5rem); }
	to { opacity: 1; transform: none; }
}

/* Willkommen in vielen Sprachen: Liste zum Aufklappen */
.stbp-languages {
	margin-top: var(--wp--preset--spacing--30);
}

.stbp-languages .wp-block-column {
	border-top: 1px solid var(--wp--preset--color--line);
}

.stbp-lang-item,
.stbp-toggle {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.stbp-lang-item > summary,
.stbp-toggle > summary {
	position: relative;
	padding-right: 2.5rem !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
	cursor: pointer;
	list-style: none;
}

.stbp-lang-item > summary::-webkit-details-marker,
.stbp-toggle > summary::-webkit-details-marker {
	display: none;
}

.stbp-lang-item > summary::after,
.stbp-toggle > summary::after {
	content: "+";
	/* absolut, damit der Unterstrich beim Darüberfahren nicht mitgedreht wird */
	position: absolute;
	right: 0;
	top: 50%;
	margin-top: -0.5em;
	flex: none;
	font-weight: 400;
	font-size: 1.5em;
	line-height: 1;
	transition: transform 0.2s ease;
}

.stbp-lang-item[open] > summary::after,
.stbp-toggle[open] > summary::after {
	transform: rotate(45deg);
}

.stbp-lang-item > summary:hover,
.stbp-toggle > summary:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.stbp-lang-item > :not(summary),
.stbp-toggle > :not(summary) {
	max-width: 40rem;
}

.stbp-lang-item[open],
.stbp-toggle[open] {
	padding-bottom: 1rem;
}

.stbp-lang-item p[dir="rtl"] {
	text-align: right;
}

@media (max-width: 781px) {
	.stbp-languages .wp-block-column + .wp-block-column {
		border-top: 0;
	}
}

/* ======================================================================
   Participate
   ====================================================================== */
.stbp-ways h3 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.stbp-ways h3 a {
	text-decoration: none;
}

.stbp-ways h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.stbp-step__n {
	margin: 0 0 1rem;
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.stbp-steps {
	margin-bottom: 0;
}

.stbp-member {
	margin-top: var(--wp--preset--spacing--30);
}

.stbp-member .stbp-toggle {
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Sprungleiste */
.stbp-toc {
	position: sticky;
	top: var(--wp--custom--header-height);
	z-index: 10;
	margin-top: var(--wp--preset--spacing--50);
	background: #fff;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.admin-bar .stbp-toc {
	top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 32px));
}

.stbp-toc ul {
	display: flex;
	gap: 0.25rem 1.75rem;
	margin: 0;
	padding: 0.8rem 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	font-family: var(--wp--preset--font-family--raleway);
	font-weight: 600;
	white-space: nowrap;
}

.stbp-toc a {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	padding-bottom: 0.15rem;
	transition: background-size 0.25s ease;
}

.stbp-toc a:hover,
.stbp-toc a[aria-current="true"] {
	background-size: 100% 2px;
	color: inherit;
}

@media (max-width: 600px) {
	.stbp-toc {
		position: static;
	}

	.stbp-toc ul {
		flex-wrap: wrap;
		white-space: normal;
	}
}

/* Abschnitte */
.stbp-section {
	margin-top: var(--wp--preset--spacing--60);
}

.stbp-section-title {
	max-width: 52rem;
	margin-top: 0;
	padding-top: 1.25rem;
	border-top: 2px solid #000;
	font-size: var(--wp--preset--font-size--xx-large);
	scroll-margin-top: calc(var(--wp--custom--header-height) + 4.5rem);
}

.stbp-section .stbp-section-title + .stbp-kicker {
	margin-top: -0.5rem;
}

.stbp-section .stbp-toggle:first-of-type {
	border-top: 1px solid var(--wp--preset--color--line);
}

.stbp-address {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--wash);
	display: inline-block;
}

/* ======================================================================
   Kontakt
   ====================================================================== */
.stbp-contact-cols > .wp-block-column {
	border-top: 2px solid #000;
	padding-top: 1.25rem;
}

.stbp-contact-line {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.35;
}

.stbp-contact-line__label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

.stbp-contact-line a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* Formular (Block "stbp/contact-form" aus STBP Core) */
.stbp-contact__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 0 1.25rem;
}

.stbp-contact__form *,
.stbp-field input,
.stbp-field select {
	box-sizing: border-box;
}

.stbp-contact__form[hidden],
.stbp-contact__done[hidden] {
	display: none;
}

.stbp-contact__field {
	display: grid;
	align-content: start;
	gap: 0.35rem;
	margin: 0 0 1.25rem;
}

.stbp-contact__field:has(textarea),
.stbp-contact__field:has(select),
.stbp-contact__err--form,
.stbp-contact__actions,
.stbp-contact__privacy {
	grid-column: 1 / -1;
}

.stbp-contact__field label {
	font-weight: 600;
}

.stbp-contact__req {
	font-weight: 400;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

.stbp-contact__form input,
.stbp-contact__form select,
.stbp-contact__form textarea {
	width: 100%;
	border: 1.5px solid #000;
	border-radius: 0.6rem;
	padding: 0.75em 0.9em;
	font: inherit;
	background: #fff;
}

.stbp-contact__form select {
	appearance: none;
	padding-right: 2.5em;
	background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
	background-position: calc(100% - 1.35em) 55%, calc(100% - 1em) 55%;
	background-size: 0.35em 0.35em;
	background-repeat: no-repeat;
}

.stbp-contact__form textarea {
	resize: vertical;
	min-height: 10rem;
}

.stbp-contact__form [aria-invalid] {
	border-color: #b3261e;
	box-shadow: 0 0 0 1px #b3261e;
}

.stbp-contact__err {
	color: #b3261e;
	font-size: var(--wp--preset--font-size--small);
}

.stbp-contact__err:empty {
	display: none;
}

.stbp-contact__actions {
	margin: 0.25rem 0 0.75rem;
}

.stbp-contact__actions button[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.stbp-contact__privacy {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

/* verstecktes Feld gegen Bots */
.stbp-contact__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.stbp-contact__notice,
.stbp-contact__done {
	padding: 1.25rem 1.5rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}

.stbp-contact__notice.is-success,
.stbp-contact__done {
	background: var(--wp--preset--color--wash);
	border-left: 4px solid #000;
}

.stbp-contact__notice.is-error {
	border-left: 4px solid #b3261e;
	background: #fdf1f0;
}

@media (max-width: 600px) {
	.stbp-contact__form {
		grid-template-columns: 1fr;
	}
}

/* ======================================================================
   Ausstellungen
   ====================================================================== */

/* Karte: Europa + Steiermark */
.stbp-exmap {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	grid-template-areas: "europe summary" "europe styria";
	grid-template-rows: 1fr auto;
	gap: 1.25rem clamp(1rem, 3vw, 2.5rem);
	margin: 0 0 var(--wp--preset--spacing--50);
}

.stbp-exmap__panel--europe {
	grid-area: europe;
}

.stbp-exmap__panel--styria {
	grid-area: styria;
	border-top: 2px solid #000;
	padding-top: 0.75rem;
}

.stbp-exmap__caption {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.stbp-exmap__summary {
	grid-area: summary;
	align-self: start;
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.stbp-exmap a {
	text-decoration: none;
}

.stbp-exmap svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.stbp-exmap text,
.stbp-exfacts__map text {
	font-family: inherit;
	font-size: 19px;
	font-weight: 600;
	fill: #000;
	paint-order: stroke;
	stroke: #fff;
	stroke-width: 6px;
	stroke-linejoin: round;
}

.stbp-exmap__panel--styria text {
	font-size: 26px;
	stroke-width: 8px;
}

.stbp-exmap__route {
	fill: none;
	stroke: #000;
	stroke-width: 2;
	stroke-linecap: round;
	opacity: 0.5;
}

.stbp-exmap__panel--styria .stbp-exmap__route {
	stroke-width: 3;
}

.stbp-exmap.will-draw .stbp-exmap__route {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.stbp-exmap.will-draw.is-drawn .stbp-exmap__route {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 2.8s cubic-bezier(0.45, 0, 0.25, 1);
}

.stbp-exmap__dot circle {
	fill: #000;
	transition: r 0.2s ease, opacity 0.2s ease;
}

.stbp-exmap__dot .stbp-exmap__halo {
	fill: transparent;
	stroke: none;
}

.stbp-exmap__dot.is-active .stbp-exmap__halo {
	fill: rgb(0 0 0 / 0.14);
}

.stbp-exmap__dot.is-active circle:not(.stbp-exmap__halo) {
	r: 11;
}

.stbp-exmap__panel--styria .stbp-exmap__dot circle:not(.stbp-exmap__halo) {
	r: 10;
}

.stbp-exmap__panel--styria .stbp-exmap__dot.is-active circle:not(.stbp-exmap__halo) {
	r: 14;
}

.stbp-exmap__dot text {
	transition: opacity 0.2s ease;
}

.has-active .stbp-exmap__dot:not(.is-active) {
	opacity: 0.3;
}

.stbp-exmap__cluster circle {
	fill: #000;
}

.stbp-exmap__cluster text {
	fill: #fff;
	stroke: none;
	font-size: 20px;
	font-weight: 700;
}

.stbp-exmap__cluster .stbp-exmap__cluster-label {
	fill: #000;
	stroke: #fff;
	font-size: 19px;
	font-weight: 600;
}

.has-active .stbp-exmap__cluster:not(.is-active) {
	opacity: 0.3;
}

/* Liste */
.stbp-exlist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 2.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stbp-excard a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	color: inherit;
	text-decoration: none;
}

.stbp-excard__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 0.6rem;
	background: var(--wp--preset--color--wash);
	transition: transform 0.35s ease;
}

.stbp-excard a:hover .stbp-excard__img,
.stbp-excard.is-active .stbp-excard__img {
	transform: translateY(-4px);
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px #000;
}

.stbp-excard__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.stbp-excard__place {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.2;
}

.stbp-excard a:hover .stbp-excard__place {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.stbp-excard__year {
	flex: none;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.stbp-excard__country {
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
}

.stbp-digital {
	margin-bottom: 1.5rem;
}

/* 360°-Rundgang */
.stbp-tour {
	margin: 0 0 var(--wp--preset--spacing--60);
}

.stbp-tour__start,
.stbp-tour__frame {
	display: block;
	width: 100%;
	height: min(70vh, 40rem);
	border: 0;
}

.stbp-tour__start {
	position: relative;
	padding: 0;
	background: #000;
	color: #fff;
	cursor: pointer;
	overflow: hidden;
	font: inherit;
}

.stbp-tour__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.7;
	transition: opacity 0.3s ease, transform 8s linear;
}

.stbp-tour__start:hover .stbp-tour__poster {
	opacity: 0.85;
	transform: scale(1.06) translateX(-2%);
}

.stbp-tour__label {
	position: absolute;
	inset: auto auto clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem);
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.stbp-tour__icon {
	display: grid;
	place-items: center;
	width: clamp(3.5rem, 7vw, 5rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0;
	transition: transform 0.2s ease;
}

.stbp-tour__start:hover .stbp-tour__icon {
	transform: rotate(-20deg) scale(1.08);
}

.stbp-tour__note {
	margin-top: 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--graphite);
}

/* Einzelseite */
.stbp-exhead {
	margin-bottom: var(--wp--preset--spacing--40);
}

.stbp-exback {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

.stbp-exback a {
	color: inherit;
	text-decoration: none;
}

.stbp-exback a:hover {
	text-decoration: underline;
}

.stbp-exhead .wp-block-post-title {
	margin: 0;
}

.stbp-exfacts {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 2px solid #000;
}

.stbp-exfacts dl {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem clamp(1.5rem, 4vw, 3.5rem);
	margin: 0;
}

.stbp-exfacts dt {
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
}

.stbp-exfacts dd {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.stbp-exfacts__map {
	flex: none;
	width: clamp(9rem, 20vw, 13rem);
	height: auto;
	border: 1px solid var(--wp--preset--color--line);
}

.stbp-exfacts__map circle {
	fill: #000;
}

.stbp-exfacts__map .stbp-exfacts__pulse {
	fill: rgb(0 0 0 / 0.15);
	transform-box: fill-box;
	transform-origin: center;
	animation: stbp-pulse 2.4s ease-out 0.4s 2 both;
}

@keyframes stbp-pulse {
	0% { transform: scale(0.4); opacity: 1; }
	100% { transform: scale(1.6); opacity: 0; }
}

.stbp-photos--hero img {
	width: 100%;
	max-height: 82vh;
	object-fit: cover;
}

.stbp-photos a {
	cursor: zoom-in;
}

.stbp-exhibition .wp-block-post-content > .stbp-photos--hero {
	margin-bottom: var(--wp--preset--spacing--50);
}

.stbp-exhibition .wp-block-post-content > .stbp-section-title {
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-gallery.stbp-photos {
	--wp--style--unstable-gallery-gap: 0.75rem;
	gap: 0.75rem;
}

.wp-block-gallery.has-nested-images.stbp-photos figure.wp-block-image {
	flex-grow: 0;
}

.wp-block-gallery.has-nested-images.stbp-photos figure.wp-block-image img {
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
}

/* Text der Ausstellung bündig mit Titel und Fotos (links), nicht mittig */
.stbp-exhibition .wp-block-post-content.is-layout-constrained > :where(:not(.alignwide):not(.alignfull)) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
}

.wp-block-gallery.stbp-photos .wp-block-image img {
	transition: opacity 0.2s ease;
}

.wp-block-gallery.stbp-photos .wp-block-image a:hover img {
	opacity: 0.85;
}

.stbp-exnav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--50);
	padding-top: 1rem;
	border-top: 2px solid #000;
}

.stbp-exnav a {
	color: inherit;
	text-decoration: none;
}

.stbp-exnav a:hover .stbp-exnav__place,
.stbp-exnav__all:hover {
	text-decoration: underline;
}

.stbp-exnav__prev,
.stbp-exnav__next {
	display: flex;
	flex-direction: column;
}

.stbp-exnav__next {
	text-align: right;
}

.stbp-exnav__label {
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
}

.stbp-exnav__place {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.stbp-exnav__all {
	font-weight: 600;
}

/* Großansicht für Fotos: ohne Seitenspalte */
.stbp-lightbox--photos .stbp-lightbox__inner {
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, 1fr) auto;
}

.stbp-lightbox--photos .stbp-lightbox__meta {
	flex-direction: row;
	align-items: center;
	padding: 0.75rem 1.25rem;
}

.stbp-lightbox--photos .stbp-lightbox__title {
	font-size: var(--wp--preset--font-size--medium);
}

.stbp-lightbox--photos .stbp-lightbox__nav {
	position: static;
	margin: 0 0 0 auto;
	padding: 0;
}

@media (max-width: 900px) {
	.stbp-exmap {
		grid-template-columns: 1fr;
		grid-template-areas: "summary" "europe" "styria";
		grid-template-rows: auto;
	}

	.stbp-exmap__summary {
		font-size: var(--wp--preset--font-size--large);
	}

	.stbp-exfacts {
		flex-direction: column;
		align-items: flex-start;
	}

	.stbp-exnav {
		grid-template-columns: 1fr 1fr;
	}

	.stbp-exnav__all {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

@media (max-width: 600px) {
	.stbp-exmap text {
		font-size: 30px;
		stroke-width: 9px;
	}

	.stbp-exmap__panel--styria text {
		font-size: 34px;
		stroke-width: 10px;
	}

	.stbp-exmap__cluster text {
		font-size: 24px;
	}

	.stbp-exlist {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem 0.9rem;
	}

	.stbp-excard__row {
		flex-direction: column;
		gap: 0;
	}

	.stbp-excard__place {
		font-size: var(--wp--preset--font-size--medium);
	}
}

@media (prefers-reduced-motion: reduce) {
	.stbp-exfacts__map .stbp-exfacts__pulse {
		animation: none;
	}

	.stbp-excard__img,
	.stbp-tour__poster {
		transition: none;
	}
}

/* ======================================================================
   Spenden
   ====================================================================== */

.stbp-give {
	gap: clamp(1.5rem, 4vw, 3.5rem);
	margin-bottom: var(--wp--preset--spacing--60);
}

.stbp-give > .stbp-give__way {
	padding: 1rem 0 0;
	border-top: 2px solid #000;
}

.stbp-give__title {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.stbp-donate {
	scroll-margin-top: 6rem;
}

.stbp-donate fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.stbp-donate legend {
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.stbp-donate__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.stbp-donate__chip {
	position: relative;
	cursor: pointer;
}

.stbp-donate__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.stbp-donate__chip span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 5.5rem;
	min-height: 3.25rem;
	padding: 0 1.25rem;
	border: 2px solid #000;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.stbp-donate__chip--other span {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.stbp-donate__chip:hover span {
	transform: translateY(-2px);
}

.stbp-donate__chip input:checked + span {
	background: #000;
	color: #fff;
}

.stbp-donate__chip input:focus-visible + span {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.stbp-donate__other {
	display: grid;
	gap: 0.35rem;
	margin: 1rem 0 0;
}

.stbp-donate__other[hidden] {
	display: none;
}

.stbp-donate__other label {
	font-weight: 600;
}

.stbp-donate__other-input {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 14rem;
	padding: 0 0.9rem;
	border: 1.5px solid #000;
	border-radius: 0.6rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.stbp-donate__other-input input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 0.6em 0;
	border: 0;
	background: transparent;
	font: inherit;
}

.stbp-donate__other-input input:focus {
	outline: 2px solid transparent;
}

.stbp-donate__other-input:focus-within {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.stbp-donate__other small {
	color: var(--wp--preset--color--graphite);
}

.stbp-donate__submit {
	display: block;
	width: 100%;
	margin-top: 1.5rem;
	padding: 1.05rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font: inherit;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.stbp-donate__submit:hover {
	transform: translateY(-2px);
}

.stbp-donate__submit:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.stbp-donate__note {
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
}

.stbp-donate__thanks {
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: 1rem;
	background: #000;
	color: #fff;
}

.stbp-donate__thanks p {
	margin: 0;
}

.stbp-donate__thanks-title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Bankverbindung + QR-Code */
.stbp-bank {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem 2rem;
	align-items: start;
}

.stbp-bank__list {
	display: grid;
	gap: 0.9rem;
	margin: 0;
}

.stbp-bank__row dt {
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
}

.stbp-bank__row dd {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin: 0;
	font-weight: 600;
}

.stbp-bank__row:nth-child(2) .stbp-bank__value {
	font-size: var(--wp--preset--font-size--large);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.stbp-bank__copy {
	padding: 0.2rem 0.75rem;
	border: 1.5px solid #000;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	cursor: pointer;
}

.stbp-bank__copy:hover,
.stbp-bank__copy.is-done {
	background: #000;
	color: #fff;
}

.stbp-bank__qr {
	width: 11rem;
	margin: 0;
}

.stbp-bank__qr[hidden] {
	display: none;
}

.stbp-bank__qr-code svg {
	display: block;
	width: 100%;
	height: auto;
}

.stbp-bank__qr figcaption {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
}

/* Das Wichtigste */
.stbp-essentials h3 {
	margin-top: 0;
}

.stbp-ticks {
	padding-left: 0;
	list-style: none;
}

.stbp-ticks li {
	position: relative;
	margin-bottom: 0.5rem;
	padding-left: 1.75rem;
}

.stbp-ticks li::before {
	content: "";
	position: absolute;
	top: 0.45em;
	left: 0.2rem;
	width: 0.7rem;
	height: 0.4rem;
	border-bottom: 2px solid #000;
	border-left: 2px solid #000;
	transform: rotate(-45deg);
}

@media (max-width: 600px) {
	.stbp-bank {
		grid-template-columns: 1fr;
	}

	.stbp-donate__chip span {
		min-width: 4.5rem;
		padding: 0 1rem;
	}
}

/* Am Handy ist ein QR-Code zum Scannen wenig hilfreich – Kopieren steht im Vordergrund. */
@media (max-width: 600px) and (pointer: coarse) {
	.stbp-bank__qr {
		width: 9rem;
	}
}

/* ======================================================================
   Barrierefreiheit
   ====================================================================== */

/* Springt man mit der Tastatur oder über einen Anker zu etwas, soll es nicht unter der festen Kopfzeile landen. */
html {
	scroll-padding-top: calc(var(--wp--custom--header-height, 4.5rem) + 1rem);
}

/* Fokus auf dunklem Grund (z. B. der schwarze Unterstützen-Bereich): weißer statt schwarzer Rahmen. */
:is(.has-ink-background-color, .stbp-support) :is(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline-color: #fff;
}

/* Lange Wörter und Web-Adressen dürfen umbrechen, statt die Seite seitlich zu verbreitern (Handy, 320 px). */
.wp-block-heading {
	overflow-wrap: anywhere;
	hyphens: auto;
}

.wp-block-post-content :is(p, li, td, figcaption) {
	overflow-wrap: break-word;
}

.wp-block-post-content :is(p, li, td, figcaption) a {
	overflow-wrap: anywhere;
}

/* Verlinkte Bilder (alte Beiträge mit festen Breiten) nie breiter als die Spalte. */
.wp-block-image a {
	max-width: 100%;
}

/* Seitenzahlen der Suche: größere Klickfläche (mind. 24 × 24 px). */
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination a {
	display: inline-block;
	min-width: 1.75rem;
	min-height: 1.75rem;
	padding: 0.15rem 0.4rem;
	text-align: center;
	box-sizing: border-box;
}

/* "Liste überspringen": unsichtbar, bis der Link per Tastatur erreicht wird. */
.stbp-skip {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.stbp-skip:focus,
.stbp-skip:focus-visible {
	position: fixed;
	top: calc(var(--wp--custom--header-height, 4.5rem) + 0.75rem);
	left: 1rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip-path: none;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #000;
}

.stbp-skip-target {
	display: block;
	height: 0;
	outline: none;
}

/* Kontrastmodus (z. B. Windows "Hoher Kontrast"): Rahmen nicht nur über Farbe und Schatten. */
@media (forced-colors: active) {
	.stbp-person a:focus-visible .stbp-person__media,
	.stbp-skip:focus {
		outline: 3px solid CanvasText;
		outline-offset: 3px;
	}
}

/* Tabellen auf Textseiten (Datenschutz): auf schmalen Bildschirmen seitlich scrollen, statt Wörter mitten im Wort zu brechen. */
@media (max-width: 700px) {
	.stbp-textpage .wp-block-table {
		overflow-x: auto;
	}

	.stbp-textpage .wp-block-table table:has(th:nth-child(3)) {
		min-width: 34rem;
	}

	.stbp-textpage .wp-block-table table {
		table-layout: auto;
	}

	.stbp-textpage .wp-block-table :is(td, th) {
		overflow-wrap: normal;
		word-break: normal;
	}
}
