/*
 * Sansibar · Weinwelt – /weinwelt/, Länderseiten und die Seiten der Weingüter, Linien, Regionen, Länder und Rebsorten
 * (inc/weinwelt.php). Übernommen aus dem Shopify-Theme (assets/sansibar-weinwelt.css und die Abschnitte
 * sansibar-wege, -weinlaender, -rebsorten, -weingueter, -weinland, -sammlung, -weingut). Baut auf bausteine.css auf.
 */

.sb-ww {
	--sb-ww-flaeche: var(--wp--preset--color--anthrazit-dunkel);
	--sb-ww-gold: var(--wp--preset--color--gold-text);
	--sb-ww-label: calc(1.125rem * var(--wp--custom--lesegroesse));
	--sb-ww-pad: clamp(4rem, 8vw, 6.875rem); /* 64–110 px wie sb-ww__pad in Shopify */
}

.sb-ww [hidden] {
	display: none !important;
}

/* Bild füllt seinen Rahmen */
.sb-ww-media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--wp--preset--color--flaeche);
}

.sb-ww-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Bildnachweis (0.20.2, inc/bildnachweise.php): kurz am Bild, mit Links unter Kopf und Galerie */
.sb-bildnachweis {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	max-width: 100%;
	padding: 2px 8px;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.5;
	color: #fff;
	white-space: nowrap;
	text-overflow: ellipsis;
	background: rgb(0 0 0 / 55%);
	pointer-events: none;
}

.sb-bildnachweise,
.sb .sb-bildnachweise {
	margin: 12px 0 0;
	font-size: calc(0.8125rem * var(--wp--custom--lesegroesse));
	line-height: 1.5;
	opacity: 0.8;
}

.sb-bildnachweise a {
	color: inherit;
	text-underline-offset: 3px;
}

/* Link in Großbuchstaben mit Pfeil */
.sb-ww-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--sb-ww-gold);
	cursor: pointer;
}

.sb-ww-link:hover {
	color: var(--wp--preset--color--text);
}

.sb-ww-link .sb-icon {
	flex: none;
	transition: transform 0.2s ease;
}

.sb-ww-link:hover .sb-icon {
	transform: translateX(3px);
}

.sb-ww-hinweis,
.sb .sb-ww-hinweis {
	margin: 16px 0 0;
	font-size: var(--sb-fs-klein);
	line-height: 1.5;
}

.sb-ww-hinweis a {
	color: inherit;
	text-underline-offset: 3px;
}

/* Mehrere Absätze in einem Textblock */
.sb-ww-text > * {
	margin: 0;
}

.sb-ww-text > * + * {
	margin-top: 1em;
}

/* ---------- Brotkrumen ---------- */

.sb-ww-krumen {
	padding-block: 22px;
	font-size: var(--sb-fs-klein);
}

.sb-ww-krumen ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-ww-krumen li {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.sb-ww-krumen li + li::before {
	content: "›";
	color: var(--sb-ww-gold);
}

.sb-ww-krumen a {
	color: var(--wp--preset--color--text);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sb-ww-krumen a:hover {
	color: var(--sb-ww-gold);
}

.sb-ww-krumen [aria-current] {
	font-weight: 700;
}

/* ---------- Raster und Karten ---------- */

.sb-ww-raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--sb-ww-raster-min, 260px)), 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-ww-raster > li {
	display: flex;
	min-width: 0;
}

.sb-ww-karte {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid var(--sb-linie);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.sb-ww-karte__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	background: var(--sb-ww-flaeche);
	color: var(--wp--preset--color--gold);
}

.sb-ww-karte__media.sb-ww-media {
	background: var(--wp--preset--color--flaeche);
}

.sb-ww-karte__media img {
	transition: transform 0.4s ease;
}

.sb-ww-karte:hover .sb-ww-karte__media img {
	transform: scale(1.03);
}

.sb-ww-karte__media--umriss img {
	display: block;
	width: 210px;
	max-width: 85%;
	height: auto;
	max-height: 210px;
	object-fit: contain;
}

.sb-ww-karte__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px 22px;
	border-top: 2px solid var(--wp--preset--color--gold);
	background: var(--sb-ww-flaeche);
}

.sb-ww-karte__name {
	font-size: clamp(1.5rem, 2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.sb-ww-karte__zeile {
	font-size: var(--sb-fs-klein);
	line-height: 1.45;
}

.sb-ww-karte__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb-ww-karte__cta .sb-icon {
	transition: transform 0.2s ease;
}

.sb-ww-karte:hover .sb-ww-karte__name {
	color: var(--sb-ww-gold);
}

.sb-ww-karte:hover .sb-ww-karte__cta {
	color: var(--wp--preset--color--text);
}

.sb-ww-karte:hover .sb-ww-karte__cta .sb-icon {
	transform: translateX(3px);
}

/* Telefon: lange Weingut-Listen als kompakte Zeilen (kleines Bild links, Text rechts) */
@media (max-width: 749px) {
	.sb-ww-raster--zeilen {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.sb-ww-raster--zeilen .sb-ww-karte {
		flex-direction: row;
		align-items: stretch;
	}

	.sb-ww-raster--zeilen .sb-ww-karte__media {
		flex: none;
		width: 96px;
		height: auto;
		min-height: 96px;
	}

	.sb-ww-raster--zeilen .sb-ww-karte__media .sb-icon {
		width: 40px;
		height: 40px;
	}

	.sb-ww-raster--zeilen .sb-ww-karte__body {
		justify-content: center;
		gap: 2px;
		padding: 12px 14px;
		border-top: 0;
		border-left: 2px solid var(--wp--preset--color--gold);
	}

	.sb-ww-raster--zeilen .sb-ww-karte__name {
		font-size: calc(1.3125rem * var(--wp--custom--lesegroesse));
	}

	.sb-ww-raster--zeilen .sb-ww-karte__zeile {
		font-size: calc(1.0625rem * var(--wp--custom--lesegroesse));
	}

	.sb-ww-raster--zeilen .sb-ww-karte__cta {
		margin-top: 0;
		padding-top: 4px;
		font-size: calc(1rem * var(--wp--custom--lesegroesse));
	}
}

/* Kleine Textkarte mit goldener Linie oben (Regionen, „Weiter stöbern“) */
.sb-ww-textkarte {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	padding: 22px 24px 24px;
	border: 1px solid var(--sb-linie);
	border-top: 2px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.sb-ww-textkarte__label {
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb-ww-textkarte__name {
	font-size: clamp(1.5rem, 2.2vw, 1.875rem);
	font-weight: 600;
	line-height: 1.15;
}

.sb-ww-textkarte__text {
	font-size: var(--sb-fs-klein);
	line-height: 1.45;
}

.sb-ww-textkarte__cta {
	margin-top: auto;
	padding-top: 6px;
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb-ww-textkarte:hover .sb-ww-textkarte__name {
	color: var(--sb-ww-gold);
}

.sb-ww a:focus-visible,
.sb-ww button:focus-visible,
.sb-ww select:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

/* ---------- Seite „Weinwelt“: Türen ---------- */

.sb .sb-ww-tueren {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 20px;
}

.sb .sb-ww-tuer {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--sb-linie);
}

.sb .sb-ww-tuer__media {
	height: 220px;
}

.sb .sb-ww-tuer__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 24px 26px 26px;
	border-top: 2px solid var(--wp--preset--color--gold);
	background: var(--sb-ww-flaeche);
}

.sb .sb-ww-tuer__titel {
	margin: 0;
	font-size: clamp(1.625rem, 2.4vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
}

.sb .sb-ww-tuer__titel a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

/* Die ganze Tür ist der Link */
.sb .sb-ww-tuer__titel a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sb .sb-ww-tuer__text {
	margin: 0;
	font-size: var(--sb-fs-klein);
	line-height: 1.45;
}

.sb .sb-ww-tuer__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: auto 0 0;
	padding-top: 6px;
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb .sb-ww-tuer__cta::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--sb-icon-pfeil) center / contain no-repeat;
	mask: var(--sb-icon-pfeil) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.sb .sb-ww-tuer:hover .sb-ww-tuer__titel a {
	color: var(--sb-ww-gold);
}

.sb .sb-ww-tuer:hover .sb-ww-tuer__cta::after {
	transform: translateX(3px);
}

.sb .sb-ww-tuer:focus-within {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

.sb .sb-ww-tuer__titel a:focus-visible {
	outline: none;
}

@media (max-width: 749px) {
	.sb .sb-ww-tuer__media {
		height: 160px;
	}
}

/* ---------- Weinländer ---------- */

.sb-ww-wl__media.sb-ww-karte__media {
	height: 230px;
	padding: 10px;
}

/* Hohe Kacheln, sobald ein Land ein Foto hat */
.sb-ww-wl__karte--hoch .sb-ww-wl__media.sb-ww-karte__media {
	height: auto;
	aspect-ratio: 3 / 4;
}

.sb-ww-wl__foto.sb-ww-karte__media {
	padding: 0;
}

@media (max-width: 749px) {
	.sb-ww-wl__media.sb-ww-karte__media {
		height: 190px;
	}

	.sb-ww-wl__karte--hoch .sb-ww-wl__media.sb-ww-karte__media {
		height: auto;
		aspect-ratio: 4 / 5;
	}
}

/* ---------- Rebsorten ---------- */

.sb-ww-rs__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	padding: 26px 24px;
}

.sb-ww-rs__art {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sb-ww-rs__punkt {
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
}

.sb-ww-rs__punkt--weiss {
	background: #eadfb4;
}

.sb-ww-rs__punkt--rot {
	background: #8e2f3e;
	box-shadow: 0 0 0 2px var(--wp--preset--color--text);
}

.sb-ww-rs__punkt--rose {
	background: #e3a3a6;
}

.sb-ww-rs__punkt--schaum {
	background: #f2e7c4;
}

.sb-ww-rs__name {
	font-size: clamp(1.625rem, 2.2vw, 1.875rem);
	font-weight: 600;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.sb-ww-rs__text {
	font-size: var(--sb-fs-klein);
	line-height: 1.45;
}

.sb-ww-rs:hover .sb-ww-rs__name {
	color: var(--sb-ww-gold);
}

.sb-ww-rs:hover .sb-ww-karte__cta {
	color: var(--wp--preset--color--text);
}

.sb-ww-rs-alle {
	margin-top: 28px;
}

.sb-ww-rs-alle summary {
	cursor: pointer;
	list-style: none;
}

.sb-ww-rs-alle summary::-webkit-details-marker {
	display: none;
}

.sb-ww-rs-alle summary .sb-icon {
	transform: rotate(90deg);
}

.sb-ww-rs-alle[open] summary .sb-icon {
	transform: rotate(-90deg);
}

.sb-ww-rs-alle__liste {
	columns: 4 220px;
	column-gap: 32px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.sb-ww-rs-alle__liste li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--sb-linie);
	break-inside: avoid;
	font-size: var(--sb-fs-klein);
}

.sb-ww-rs-alle__liste a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.sb-ww-rs-alle__liste a:hover {
	color: var(--sb-ww-gold);
}

.sb-ww-rs-alle__zahl {
	color: var(--sb-ww-gold);
	font-weight: 600;
}

/* ---------- Weingüter von A bis Z ---------- */

.sb-ww-abc {
	margin-bottom: 28px;
	padding: 14px 0;
	border-top: 1px solid var(--sb-linie);
	border-bottom: 1px solid var(--sb-linie);
}

.sb-ww-abc ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-ww-abc a,
.sb-ww-abc span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	font-size: var(--sb-fs-klein);
	font-weight: 700;
	text-decoration: none;
}

.sb-ww-abc a {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
}

.sb-ww-abc a:hover {
	background: color-mix(in srgb, var(--wp--preset--color--gold) 80%, #ffffff);
}

.sb-ww-abc a[data-leer] {
	background: none;
	border: 1px solid var(--sb-linie);
	color: var(--wp--preset--color--text);
	opacity: 0.45;
	pointer-events: none;
}

.sb-ww-abc span {
	border: 1px solid var(--sb-linie);
	color: var(--wp--preset--color--text);
	opacity: 0.45;
}

.sb-ww-wgl__filter {
	margin: -8px 0 20px;
}

.sb-ww-wgl__zahl {
	margin: 0 0 20px;
	font-size: var(--sb-fs-klein);
	color: var(--wp--preset--color--text-gedaempft);
}

.sb-ww-wgl__raster > li {
	scroll-margin-top: calc(var(--sb-kopf-hoehe) + 24px);
}

/* ---------- Filter-Knöpfe ---------- */

.sb-ww-filterknoepfe {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 28px;
}

.sb-ww-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.sb-ww-chips__label {
	margin-right: 6px;
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb-ww-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border: 2px solid rgba(242, 240, 235, 0.7);
	border-radius: var(--wp--custom--radius--knopf);
	background: none;
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: calc(1.1875rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sb-ww-chip:hover {
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--text);
}

.sb-ww-chip[aria-pressed="true"],
.sb-ww-chip[aria-current="true"] {
	border-color: var(--wp--preset--color--gold);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
}

.sb-ww-chip__zahl {
	font-weight: 500;
	opacity: 0.85;
}

.sb-ww-chip--leise {
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- Seiten der Einträge: Kopf mit Bild links, Steckbrief rechts ---------- */

.sb.sb-ww-seite {
	padding-block: 0 var(--sb-ww-pad);
}

.sb-ww-teil {
	padding-top: var(--sb-ww-pad);
}

.sb-ww-kopf {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	gap: clamp(32px, 5vw, 72px);
	align-items: stretch;
	padding-top: 12px;
}

/* Bild so hoch wie der Steckbrief daneben, mindestens aber gut sichtbar */
.sb-ww-kopf__bild {
	width: 100%;
	height: 100%;
	min-height: clamp(300px, 38vw, 540px);
}

.sb-ww-kopf__bild--leer {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sb-ww-flaeche);
	color: var(--wp--preset--color--gold);
}

.sb-ww-kopf__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 22px;
	min-width: 0;
}

.sb-ww-kopf .sb-titel--xl {
	font-size: clamp(2.625rem, 5vw, 4.5rem);
	overflow-wrap: anywhere;
}

.sb .sb-ww-kopf__aktionen {
	width: 100%;
}

/* Zwei Knöpfe teilen sich die Zeile, bei Umbruch beide volle Breite */
.sb .sb-ww-kopf__aktionen:has(> :nth-child(2)) > .wp-block-button {
	flex: 1 1 auto;
}

.sb .sb-ww-kopf__aktionen:has(> :nth-child(2)) .wp-block-button__link {
	width: 100%;
}

.sb-ww-kopf__hinweis {
	margin: 0;
	font-size: var(--sb-fs-klein);
	line-height: 1.5;
}

/* Einleitung unter dem Titel: Kurztext aus BC (Weingut, Region; 0.25.8) */
.sb-ww-lead {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 38em;
}

.sb-ww-lead__titel {
	margin: 0;
	font-size: clamp(1.375rem, 1.9vw, 1.75rem);
	font-weight: 500;
	line-height: 1.3;
	color: var(--sb-ww-gold);
	text-wrap: balance;
}

.sb-ww-lead__text {
	margin: 0;
	font-size: var(--sb-fs-text);
	line-height: 1.55;
	text-wrap: pretty;
}

/* Steckbrief */
.sb-ww-fakten {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
	width: 100%;
	margin: 0;
	border-top: 1px solid var(--sb-linie);
}

.sb-ww-fakten > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--sb-linie);
}

.sb-ww-fakten dt {
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb-ww-fakten dd {
	margin: 0;
	font-size: var(--sb-fs-text);
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.sb-ww-fakten a {
	color: var(--wp--preset--color--text);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sb-ww-fakten a:hover {
	color: var(--sb-ww-gold);
}

@media (max-width: 479px) {
	.sb-ww-fakten {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Auf einen Blick (Highlights des Weinguts) */
.sb-ww-blick {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.sb-ww-blick__titel {
	margin: 0;
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb-ww-blick__liste {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-ww-merkmal {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 12px 14px;
	border: 1px solid var(--sb-linie);
	background: var(--sb-ww-flaeche);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.sb-ww-merkmal__symbol {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: 50%;
	color: var(--sb-ww-gold);
}

.sb-ww-merkmal__text {
	font-size: var(--sb-fs-klein);
	font-weight: 600;
	line-height: 1.25;
}

a.sb-ww-merkmal:hover {
	border-color: var(--wp--preset--color--gold);
}

a.sb-ww-merkmal:hover .sb-ww-merkmal__text {
	color: var(--sb-ww-gold);
}

/* Lage der Region: Umriss des Landes mit goldenem Punkt */
.sb-ww-lagekarte {
	position: relative;
	display: block;
	width: min(300px, 100%);
	border: 1px solid var(--sb-linie);
	background: var(--sb-ww-flaeche);
}

.sb-ww-lagekarte img {
	display: block;
	width: 100%;
	height: auto;
}

.sb-ww-lagekarte__punkt {
	position: absolute;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--sb-ww-gold);
	box-shadow: 0 0 0 5px rgba(205, 176, 122, 0.4);
}

.sb-ww-lagekarte:hover {
	border-color: var(--wp--preset--color--gold);
}

/* Großer Text zwischen Kopf und Galerie */
.sb-ww-erzaehlung {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 28px clamp(32px, 5vw, 72px);
	padding-top: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--sb-linie);
}

.sb-ww-erzaehlung--einspaltig {
	grid-template-columns: minmax(0, 1fr);
}

.sb-ww-erzaehlung__lead {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.sb-ww-erzaehlung__gross,
.sb-ww-erzaehlung__gross p {
	margin: 0;
	font-size: clamp(1.625rem, 2.4vw, 2.125rem);
	font-weight: 500;
	line-height: 1.45;
	text-wrap: pretty;
}

.sb-ww-erzaehlung--einspaltig .sb-ww-erzaehlung__gross {
	max-width: 34em;
}

.sb-ww-erzaehlung .sb-text {
	max-width: none;
}

/* Galerie */
.sb-ww-galerie {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 20px;
	margin: 0;
	padding: clamp(48px, 6vw, 80px) 0 0;
	list-style: none;
}

.sb-ww-galerie__bild {
	height: 280px;
}

/* Block mit Linie oben (Weingüter einer Region) */
.sb-ww-block {
	padding-top: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--sb-linie);
}

/* ---------- Alle Weine eines Eintrags ---------- */

.sb.sb-ww-weine-abschnitt {
	padding-block: var(--sb-ww-pad);
	scroll-margin-top: calc(var(--sb-kopf-hoehe) + 8px);
}

.sb-ww-weine__steuerung {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

/* Liste ohne eigene Überschrift (Shop): Anzahl links, Reihenfolge rechts */
.sb-ww-weine__leiste {
	margin-bottom: 28px;
}

.sb-ww-weine__leiste .sb-ww-weine__steuerung {
	justify-content: space-between;
}

.sb-ww-weine__zahl {
	margin: 0;
	font-size: var(--sb-fs-klein);
	color: var(--wp--preset--color--text-gedaempft);
}

.sb-ww-sortierung {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	font-size: var(--sb-fs-klein);
}

.sb-ww-sortierung label {
	margin: 0; /* WooCommerce gibt Labels Abstand nach unten */
	line-height: 1.2;
	font-size: var(--sb-ww-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb-ww-sortierung select {
	min-height: 48px;
	padding: 0 40px 0 14px;
	border: 2px solid rgba(242, 240, 235, 0.7);
	border-radius: var(--wp--custom--radius--knopf);
	background: var(--wp--preset--color--anthrazit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2F0EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
	color: var(--wp--preset--color--text);
	font: inherit;
	font-weight: 600;
	appearance: none;
	cursor: pointer;
	/* Auf sehr schmalen Handys (320 Pixel) wird die Auswahl schmaler statt die Seite breiter (0.52.0) */
	min-width: 0;
	max-width: 100%;
	text-overflow: ellipsis;
}

.sb-ww-sortierung select:hover {
	border-color: var(--wp--preset--color--gold);
}

.sb-ww-weine {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 989px) {
	.sb-ww-weine {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 749px) {
	.sb-ww-weine {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}
}

/* Wein-Karte */
.sb-ww-wein {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

/* Bildfläche in der Form des Fotos (0.34.0, inc/weinwelt.php ww_karte_form()): 2:3 für die Fotos aus BC (Flaschen,
   Food, Accessoires), 4:5 und quadratisch (Fashion) nach Zusatz. Das Bild füllt die Fläche ganz – kein heller Rand
   oben und unten, und es ist das ganze Bild statt eines quadratischen Ausschnitts. Die Fläche bleibt nur ohne Bild. */
.sb-ww-wein__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--flaeche);
}

.sb-ww-wein__media--4x5 {
	aspect-ratio: 4 / 5;
}

.sb-ww-wein__media--quadrat {
	aspect-ratio: 1 / 1;
}

.sb-ww-wein__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.sb-ww-wein:hover .sb-ww-wein__media img {
	transform: scale(1.03);
}

.sb-ww-wein__leer {
	color: var(--wp--preset--color--gold);
	opacity: 0.7;
}

.sb-ww-wein__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sb-ww-wein__weingut {
	font-size: calc(1rem * var(--wp--custom--lesegroesse));
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sb-ww-gold);
}

.sb-ww-wein__titel {
	font-size: calc(1.25rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.sb-ww-wein:hover .sb-ww-wein__titel {
	color: var(--sb-ww-gold);
}

.sb-ww-wein__detail {
	font-size: calc(1.125rem * var(--wp--custom--lesegroesse));
}

.sb-ww-wein__preis {
	margin-top: 6px;
	font-size: calc(1.25rem * var(--wp--custom--lesegroesse));
}

.sb-ww-wein__preis del {
	opacity: 0.7;
}

.sb-ww-wein__preis ins {
	text-decoration: none;
}

.sb-ww-wein__grundpreis {
	font-size: calc(1rem * var(--wp--custom--lesegroesse));
}

.sb-ww-steuer {
	margin: 28px 0 0;
	font-size: calc(1.0625rem * var(--wp--custom--lesegroesse));
}

.sb-ww-steuer a {
	color: inherit;
	text-underline-offset: 3px;
}

/* Seiten-Navigation */
.sb-ww-seiten {
	margin-top: 40px;
}

.sb-ww-seiten ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-ww-seiten .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 12px;
	border: 2px solid var(--sb-linie);
	color: var(--wp--preset--color--text);
	font-size: var(--sb-fs-klein);
	font-weight: 600;
	text-decoration: none;
}

.sb-ww-seiten a.page-numbers:hover {
	border-color: var(--wp--preset--color--gold);
}

.sb-ww-seiten .page-numbers.current {
	border-color: var(--wp--preset--color--gold);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
}

/* Weiter stöbern */
.sb.sb-ww-weiter {
	padding-block: var(--sb-ww-pad);
}

/* ---------- Länderseiten ---------- */

/* Abstände wie die Teile der Länderseite in Shopify: nur oben, ohne Trennlinie zwischen Kopf, Geschichte, Regionen
   und Bilderstrecke; Weine und Weingüter mit Linie */
.sb.sb-ww-land-teil {
	padding-block: var(--sb-ww-pad) 0;
}

.sb.sb-ww-land-kopf {
	padding-top: 0;
	overflow-x: clip; /* das Titelbild läuft bis an den rechten Rand */
}

.sb.sb-ww-land-geschichte::before,
.sb.sb-ww-land-regionen::before,
.sb.sb-ww-land-bilder::before {
	display: none;
}

.sb.sb-ww-land-weine .sb__inner,
.sb.sb-ww-land-weingueter .sb__inner {
	padding-top: 0;
}

.sb.sb-ww-land-weine,
.sb.sb-ww-land-weingueter {
	padding-top: clamp(3rem, 6vw, 5rem);
}

.sb-bausteine .wp-block-post-content > .sb-ww-land-teil:last-child,
.sb.sb-ww-land-teil:has(+ .sb-ww-land-weine),
.sb.sb-ww-land-teil:has(+ .sb-ww-land-weingueter) {
	padding-bottom: var(--sb-ww-pad);
}

#regionen,
#weine {
	scroll-margin-top: calc(var(--sb-kopf-hoehe) + 8px);
}

/* Kopf: Text links, Bild rechts bis an den Rand */
.sb .sb-ww-land__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 48px;
	padding: 8px 0 32px;
}

.sb .sb-ww-land__intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 760px;
}

.sb .sb-ww-land__kopf:has(.sb-ww-land__held img[src]) {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: clamp(32px, 4vw, 64px);
	padding-bottom: 0;
}

.sb .sb-ww-land__held {
	position: relative;
	align-self: stretch;
	min-height: min(74vh, 720px);
	margin: 0;
	margin-inline-end: calc(-1 * (max(0px, (100vw - var(--sb-breite)) / 2) + var(--sb-rand)));
	overflow: hidden;
}

.sb .sb-ww-land__held img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Weicher Übergang vom Bild in den dunklen Grund */
.sb .sb-ww-land__held::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--wp--preset--color--anthrazit) 0%, rgb(56 58 62 / 0) 16%);
	pointer-events: none;
}

.sb .sb-ww-land__held:not(:has(img[src])) {
	display: none;
}

@media (max-width: 989px) {
	.sb .sb-ww-land__kopf:has(.sb-ww-land__held img[src]) {
		grid-template-columns: minmax(0, 1fr);
	}

	.sb .sb-ww-land__held {
		order: -1;
		min-height: 0;
		aspect-ratio: 4 / 3;
		margin-inline: calc(-1 * var(--sb-rand));
	}

	.sb .sb-ww-land__held::after {
		background: linear-gradient(0deg, var(--wp--preset--color--anthrazit) 0%, rgb(56 58 62 / 0) 22%);
	}
}

/* Zahlen und Sprünge im Kopf */
.sb-ww-zahlen {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin: 8px 0 0;
	font-size: var(--sb-fs-klein);
}

.sb-ww-zahlen > div {
	display: flex;
	flex-direction: column-reverse;
	gap: 2px;
}

.sb-ww-zahlen dt {
	font-weight: inherit;
}

.sb-ww-zahlen dd {
	margin: 0;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--sb-ww-gold);
}

.sb-ww-land__sprung {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	margin: 16px 0 0;
}

.sb-ww-land__sprung .sb-icon {
	transform: rotate(90deg);
}

.sb-ww-land__sprung .sb-ww-link:hover .sb-icon {
	transform: rotate(90deg) translateX(3px);
}

/* Geschichte: Bild links, Text rechts */
.sb .sb-ww-land__story {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
}

.sb .sb-ww-land__story:not(:has(.sb-ww-land__story-bild img[src])) {
	grid-template-columns: minmax(0, 1fr);
	max-width: 860px;
	margin-inline: auto;
}

.sb .sb-ww-land__story-bild {
	position: relative;
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--flaeche);
}

.sb .sb-ww-land__story-bild img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sb .sb-ww-land__story-bild:not(:has(img[src])) {
	display: none;
}

.sb .sb-ww-land__story-text {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sb .sb-ww-land__story-text::before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	background: var(--wp--preset--color--gold);
}

.sb .sb-ww-land__story-text .sb-text,
.sb .sb-ww-land__regionen-kopf .sb-text,
.sb .sb-ww-land__galerie-text .sb-text {
	max-width: none;
}

@media (max-width: 749px) {
	.sb .sb-ww-land__story {
		grid-template-columns: minmax(0, 1fr);
	}

	.sb .sb-ww-land__story-bild {
		aspect-ratio: 4 / 3;
	}
}

/* Regionen: Text, Karte, Kacheln */
.sb .sb-ww-land__regionen-kopf {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 860px;
	margin-bottom: clamp(32px, 4vw, 48px);
}

.sb-ww-land__regionen {
	margin-top: clamp(32px, 4vw, 48px);
}

.sb-ww-land__region-bild.sb-ww-karte__media {
	height: auto;
	aspect-ratio: 4 / 5;
}

.sb-ww-land__region-bild--umriss {
	padding: 18px;
}

.sb-ww-land__lage {
	position: relative;
	display: block;
	width: 100%;
	max-width: 240px;
}

.sb-ww-land__lage img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 749px) {
	.sb-ww-land__region-bild.sb-ww-karte__media {
		aspect-ratio: 16 / 10;
	}
}

/* Karte des Landes mit den Regionen */
.sb-ww-landkarte {
	position: relative;
	display: block;
	border: 1px solid var(--sb-linie);
	background: var(--sb-ww-flaeche);
}

.sb-ww-landkarte__flaeche {
	position: relative;
}

/* Hohe Länder (Italien, Deutschland …) nicht höher als etwa der Bildschirm – mittig im Kasten */
.sb-ww-landkarte--gross .sb-ww-landkarte__flaeche {
	max-width: min(100%, calc(min(78vh, 820px) * var(--sb-ww-karte-breite, 1200) / var(--sb-ww-karte-hoehe, 640)));
	margin-inline: auto;
}

.sb-ww-landkarte--klein .sb-ww-landkarte__flaeche {
	max-width: 560px;
	margin-inline: auto;
}

.sb-ww-landkarte__flaeche > img {
	display: block;
	width: 100%;
	height: auto;
}

.sb-ww-pin {
	position: absolute;
	width: 0;
	height: 0;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.sb-ww-pin::before {
	/* größere Tippfläche */
	content: "";
	position: absolute;
	left: -22px;
	top: -22px;
	width: 44px;
	height: 44px;
}

.sb-ww-pin__punkt {
	position: absolute;
	left: -11px;
	top: -11px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
	box-shadow: 0 0 0 6px rgba(205, 176, 122, 0.3);
	transition: transform 0.15s ease;
}

.sb-ww-pin__name {
	position: absolute;
	top: -20px;
	padding: 6px 14px;
	white-space: nowrap;
	background: var(--sb-leiste);
	font-size: clamp(17px, 1.6vw, 22px);
	font-weight: 600;
	line-height: 1.3;
}

.sb-ww-pin--links .sb-ww-pin__name {
	right: 20px;
}

.sb-ww-pin--rechts .sb-ww-pin__name {
	left: 20px;
}

.sb-ww-pin:hover .sb-ww-pin__name,
.sb-ww-pin:focus-visible .sb-ww-pin__name {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
}

.sb-ww-pin:hover,
.sb-ww-pin:focus-visible {
	z-index: 2;
}

/* Schild ohne Platz (setzt view.js): erst beim Zeigen oder mit der Tastatur */
.sb-ww-pin--still .sb-ww-pin__name {
	visibility: hidden;
}

.sb-ww-pin--still:hover .sb-ww-pin__name,
.sb-ww-pin--still:focus-visible .sb-ww-pin__name {
	visibility: visible;
}

.sb-ww-pin:hover .sb-ww-pin__punkt,
.sb-ww-pin:focus-visible .sb-ww-pin__punkt {
	transform: scale(1.25);
}

.sb-ww .sb-ww-pin:focus-visible {
	outline: none;
}

/* Telefon: nur Punkte – die Regionen stehen als Kacheln darunter */
@media (max-width: 749px) {
	.sb-ww-pin__name {
		display: none;
	}

	.sb-ww-pin__punkt {
		left: -6px;
		top: -6px;
		width: 12px;
		height: 12px;
		box-shadow: 0 0 0 3px rgba(205, 176, 122, 0.3);
	}
}

/* Bilderstrecke: drei Fotos, das mittlere etwas tiefer */
.sb .sb-ww-land__fotos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 32px);
	padding: 0 0 48px;
}

.sb .sb-ww-land__fotos--1 {
	grid-template-columns: minmax(0, 1fr);
}

.sb .sb-ww-land__fotos--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sb .sb-ww-land__foto {
	position: relative;
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--flaeche);
}

.sb .sb-ww-land__fotos--1 .sb-ww-land__foto {
	aspect-ratio: 16 / 9;
}

.sb .sb-ww-land__foto img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sb .sb-ww-land__fotos--3 > .sb-ww-land__foto:nth-child(2) {
	transform: translateY(48px);
}

.sb .sb-ww-land__galerie-text {
	max-width: 860px;
	margin: clamp(32px, 4vw, 56px) auto 0;
}

@media (max-width: 749px) {
	.sb .sb-ww-land__fotos {
		display: flex;
		gap: 12px;
		margin-inline: calc(-1 * var(--sb-rand));
		padding: 0 var(--sb-rand);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.sb .sb-ww-land__foto {
		flex: 0 0 78%;
		scroll-snap-align: center;
	}

	.sb .sb-ww-land__fotos--3 > .sb-ww-land__foto:nth-child(2) {
		transform: none;
	}
}

/* ---------- Editor ---------- */

.sb-ww-editor {
	min-height: 40px;
}

.editor-styles-wrapper .sb .sb-ww-tuer__titel a::after {
	display: none; /* Titel im Editor anklickbar lassen */
}

/* Etikett auf der Karte: „Weinpaket“, „Überraschung“, „Look“ (Theme 0.26.0, inc/pakete.php) */
.sb-ww-wein__etikett {
	position: absolute;
	z-index: 1;
	top: 10px;
	left: 10px;
	padding: 0.15em 0.75em;
	border-radius: 999px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

/* ---------- Plaketten auf der Karte: Tipp der Sansibar / Im Restaurant (0.52.0, inc/plaketten.php) ----------
   Schild unten links auf dem Bild (liegt im Link der Karte) – das Zeichen bleibt oben links, das Herz oben rechts.
   Die Bildfläche misst ihre Breite: Auf schmalen Karten steht die kurze Aufschrift, damit das Schild höchstens etwa
   drei Viertel des Bildes bedeckt. „Tipp“ statt „Tipp der Sansibar“ unter 250 Pixeln Breite der Karte (im Raster der
   Listen unter rund 1160 Pixeln Fensterbreite; das Board nannte 1200), am Handy unter 220; „Restaurant“ statt „Im
   Restaurant“ unter 180 bzw. 160 Pixeln. */
.sb-ww-wein__media--plakette {
	container: sb-plakette / inline-size;
}

.sb-plakette {
	position: absolute;
	z-index: 1;
	left: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: calc(100% - 16px);
	min-height: 30px;
	padding: 0 10px 0 8px;
	overflow: hidden;
	background: rgba(41, 43, 47, 0.92);
	color: var(--wp--preset--color--weiss);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
}

.sb-plakette .sb-icon {
	flex: none;
	color: var(--wp--preset--color--gold);
}

.sb-plakette__kurz {
	display: none;
}

@media (min-width: 750px) {
	@container sb-plakette (max-width: 249px) {
		.sb-plakette--tipp .sb-plakette__lang {
			display: none;
		}

		.sb-plakette--tipp .sb-plakette__kurz {
			display: inline;
		}
	}

	@container sb-plakette (max-width: 179px) {
		.sb-plakette--restaurant .sb-plakette__lang {
			display: none;
		}

		.sb-plakette--restaurant .sb-plakette__kurz {
			display: inline;
		}
	}
}

@media (max-width: 749px) {
	.sb-plakette {
		left: 6px;
		bottom: 6px;
		gap: 5px;
		max-width: calc(100% - 12px);
		min-height: 28px;
		padding: 0 8px 0 6px;
		font-size: 0.75rem;
		letter-spacing: 0.08em;
	}

	@container sb-plakette (max-width: 219px) {
		.sb-plakette--tipp .sb-plakette__lang {
			display: none;
		}

		.sb-plakette--tipp .sb-plakette__kurz {
			display: inline;
		}
	}

	@container sb-plakette (max-width: 159px) {
		.sb-plakette--restaurant .sb-plakette__lang {
			display: none;
		}

		.sb-plakette--restaurant .sb-plakette__kurz {
			display: inline;
		}
	}
}

/* Hat ein Wein Tipp und Restaurant, zeigt das Schild den Tipp und diese Zeile das Restaurant */
.sb-ww-wein__restaurant {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--wp--preset--color--text);
	font-size: 0.875rem;
	line-height: 1.4;
}

.sb-ww-wein__restaurant .sb-icon {
	flex: none;
	color: var(--wp--preset--color--gold);
}

/* ---------- Zeichen auf der Karte: Only Sansibar / Imported by Sansibar (0.41.0, inc/zeichen.php) ----------
   Schild oben links auf dem Bild, neben dem Link der Karte (wie das Herz des Wunschzettels oben rechts). Only Sansibar
   ist ein Link zur Landing Page. Am Handy nur das Symbol auf einer Fläche von 44 × 44 Pixeln. */
.sb-zeichen-karte {
	position: relative;
	display: block;
	height: 100%;
	container-type: inline-size;
}

.sb-zeichen-schild {
	position: absolute;
	z-index: 1;
	top: 8px;
	left: 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 0 12px 0 9px;
	background: rgba(41, 43, 47, 0.92);
	color: var(--wp--preset--color--gold-text);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
}

a.sb-zeichen-schild:hover,
a.sb-zeichen-schild:focus-visible {
	color: var(--wp--preset--color--weiss);
	background: var(--wp--preset--color--anthrazit-tief);
}

.sb-zeichen-schild--import {
	color: var(--wp--preset--color--text);
	pointer-events: none;
}

.sb-zeichen-saebel {
	display: block;
	flex: none;
	height: auto;
}

.sb-zeichen-schiff {
	display: flex;
	flex: none;
}

/* Nur das Symbol: am Handy und auf schmalen Karten, auf denen der Name bis unter das Herz reichen würde
   (Only Sansibar unter 270 Pixeln, Imported by Sansibar unter 340 Pixeln Breite der Karte) */
@media (max-width: 749px) {
	.sb-zeichen-schild {
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
	}

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

@container (max-width: 269px) {
	.sb-zeichen-schild {
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
	}

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

@container (max-width: 339px) {
	.sb-zeichen-schild--import {
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
	}

	.sb-zeichen-schild--import .sb-zeichen-schild__name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}
