/*
 * Sansibar · Weinclub (0.29.0) – die Seite /weinclub/ (content/seiten/weinclub.html, Block sansibar/weinclub-buchung)
 * und „Mein Weinclub“ im Kundenkonto (sansibar-core, Weinclub\Konto). Nach dem Design-Entwurf vom 02.11.2026:
 * magazinartig, große Bilder, Gold für Kleinzeilen und Zahlen, Flächen in Anthrazit-Stufen. Lesegrößen aus bausteine.css.
 */

/* ---------- Seite: Grundlagen ---------- */

.sb-weinclub-seite .sb.sb-club-hero + .sb::before,
.sb-weinclub-seite .sb-club-band + .sb::before,
.sb-weinclub-seite .sb + .sb-club-band::before {
	display: none;
}

.sb-club-kopfzeile {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.sb-club-kopfzeile__text {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	gap: 0.875rem;
}

/* Rechts neben der Überschrift, darf schmaler werden statt umzubrechen (erst auf schmalen Fenstern darunter) */
.sb-club-kopfzeile__neben {
	flex: 0 1 24em;
	min-width: 15em;
	max-width: 28em;
	margin: 0;
	font-size: var(--sb-fs-klein);
	line-height: 1.5;
	color: rgba(242, 240, 235, 0.78);
}

/* ---------- Titelbild ---------- */

.sb.sb-club-hero {
	display: flex;
	align-items: flex-end;
	min-height: min(760px, 88svh);
	padding-block: clamp(3.5rem, 7vw, 5rem);
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--anthrazit-tief);
}

.sb-club-hero .sb-club-hero__bild {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
}

.sb-club-hero .sb-club-hero__bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
}

.sb-club-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(41, 43, 47, 0) 30%, rgba(41, 43, 47, 0.75) 100%);
}

.sb-club-hero__inhalt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.375rem;
}

.sb-club-hero .sb-titel--xl {
	max-width: 12em;
}

.sb-club-hero__text {
	max-width: 30em;
	margin: 0;
	font-size: calc(1.4375rem * var(--wp--custom--lesegroesse));
	line-height: 1.5;
	color: rgba(242, 240, 235, 0.9);
}

.sb-club-hero .sb-knoepfe {
	margin-top: 0.25rem;
}

.sb-club-hero__fakten {
	margin: 0.25rem 0 0;
	font-size: var(--sb-fs-label);
	font-weight: 600;
	line-height: 1.7;
	color: var(--wp--preset--color--gold-text);
}

/* ---------- Vier Vorteile mit Bild ---------- */

.sb-club-kacheln {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.sb-club-kachel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.625rem;
	min-height: 420px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-tief);
}

.sb-club-kachel .sb-club-kachel__bild {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
}

.sb-club-kachel .sb-club-kachel__bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
	transition: transform 0.6s ease, opacity 0.3s ease;
}

.sb-club-kachel:hover .sb-club-kachel__bild img {
	opacity: 0.55;
	transform: scale(1.03);
}

.sb-club-kachel__nr {
	margin: 0;
	font-size: clamp(2.25rem, 3.2vw, 2.75rem);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--gold-text);
}

.sb-club-kachel__titel {
	margin: 0;
	font-size: clamp(1.5rem, 2.2vw, 1.875rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.sb-club-kachel__text {
	max-width: 26em;
	margin: 0;
	font-size: var(--sb-fs-klein);
	line-height: 1.5;
	color: rgba(242, 240, 235, 0.88);
}

/* ---------- Band mit Zahlen ---------- */

.sb.sb-club-band {
	display: flex;
	align-items: center;
	min-height: 560px;
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--anthrazit-tief);
}

.sb-club-band .sb-club-band__bild {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
}

.sb-club-band .sb-club-band__bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
}

.sb-club-band__inhalt {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: end;
}

.sb-club-band__text {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.sb-club-zahlen {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.sb-club-zahl {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.375rem;
	border-top: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--karte);
	background: rgba(41, 43, 47, 0.85);
}

.sb-club-zahl__wert {
	margin: 0;
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 600;
	line-height: 1;
}

.sb-club-zahl__text {
	margin: 0;
	font-size: var(--sb-fs-label);
	color: rgba(242, 240, 235, 0.75);
}

/* ---------- Zweispaltige Abschnitte (20 % auf das Paket, Verschenken) ---------- */

.sb.sb-club-nachkauf {
	background: var(--wp--preset--color--anthrazit-dunkel);
}

.sb-club-zweispaltig {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
}

.sb-club-zweispaltig__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.125rem;
}

.sb-club-zweispaltig .sb-club-zweispaltig__bild {
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--flaeche);
}

.sb-club-zweispaltig .sb-club-zweispaltig__bild img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
}

.sb-club-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 0.375rem;
}

.sb-club-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 1rem;
	border: 2px solid rgba(242, 240, 235, 0.7);
	border-radius: var(--wp--custom--radius--knopf);
	font-size: var(--sb-fs-label);
	font-weight: 600;
}

/* ---------- Fragen ---------- */

.sb-club-fragen__inhalt {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	max-width: 960px;
}

.sb-club-fragen__liste {
	margin-top: 1.5rem;
	border-top: 1px solid var(--sb-linie);
}

.sb-club-frage {
	margin: 0;
	border-bottom: 1px solid var(--sb-linie);
}

.sb-club-frage > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 64px;
	padding: 0.875rem 0;
	font-size: var(--sb-fs-klein);
	font-weight: 600;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.sb-club-frage > summary::-webkit-details-marker {
	display: none;
}

.sb-club-frage > summary::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	-webkit-mask: var(--sb-icon-pfeil) center / contain no-repeat;
	mask: var(--sb-icon-pfeil) center / contain no-repeat;
	background: var(--wp--preset--color--gold);
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.sb-club-frage[open] > summary::after {
	transform: rotate(-90deg);
}

.sb-club-frage > p {
	max-width: 40em;
	margin: 0 0 1.25rem;
	font-size: var(--sb-fs-klein);
	line-height: 1.6;
	color: rgba(242, 240, 235, 0.8);
}

/* ---------- Buchung (blocks/weinclub) ---------- */

.sb.sb-club-buchen {
	background: var(--wp--preset--color--anthrazit-dunkel);
}

.sb-wcb__anker {
	position: absolute;
	top: -1px;
}

.sb-wcb {
	--sb-wcb-rand: rgba(242, 240, 235, 0.7);
	--sb-wcb-leise: rgba(242, 240, 235, 0.65);
	--sb-wcb-feld: var(--wp--preset--color--tinte);
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
	margin: 0;
}

.sb-wcb__schritte {
	display: flex;
	flex-direction: column;
	gap: 2.25rem;
}

.sb-wcb__kopf {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.sb-wcb__hinweis {
	margin: 0;
	font-size: var(--sb-fs-label);
	color: var(--sb-wcb-leise);
}

.sb-wcb__hinweis a {
	color: var(--wp--preset--color--gold-text);
}

.sb-wcb fieldset.sb-wcb__schritt {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sb-wcb__legende {
	float: left;
	width: 100%;
	margin: 0 0 0.75rem;
	padding: 0;
	font-size: var(--sb-fs-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sb-wcb__legende--gold {
	color: var(--wp--preset--color--gold-text);
}

.sb-wcb__chips,
.sb-wcb__karten {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	clear: both;
}

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

/* Auswahlfelder als Knöpfe: der Radio-Knopf bleibt (unsichtbar) für Tastatur und Formular */
.sb-wcb__chip,
.sb-wcb__karte {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.25rem;
	border: 2px solid var(--sb-wcb-rand);
	border-radius: var(--wp--custom--radius--knopf);
	font-size: var(--sb-fs-label);
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sb-wcb__chip input,
.sb-wcb__karte input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.sb-wcb__chip:has(input:checked),
.sb-wcb__karte:has(input:checked) {
	border-color: var(--wp--preset--color--gold);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
}

.sb-wcb__chip:has(input:focus-visible),
.sb-wcb__karte:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--gold-text);
	outline-offset: 3px;
}

.sb-wcb__karte {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	min-height: 56px;
	padding: 0.75rem 1.125rem;
	text-align: left;
}

.sb-wcb__karte.is-aus {
	opacity: 0.45;
	cursor: not-allowed;
}

.sb-wcb__karte-titel {
	font-size: var(--sb-fs-klein);
}

.sb-wcb__karte-text {
	font-size: calc(0.9375rem * var(--wp--custom--lesegroesse));
	font-weight: 500;
	color: var(--sb-wcb-leise);
}

.sb-wcb__karte:has(input:checked) .sb-wcb__karte-text {
	color: var(--wp--preset--color--tinte);
}

/* Monate nur bei fester Laufzeit (ein Geschenk hat immer eine), Geschenk-Felder nur beim Geschenk – auch ohne Skript
   über :has. Spezifisch genug, um „.sb-wcb fieldset.sb-wcb__schritt“ (display: flex) zu schlagen. */
.sb-wcb .sb-wcb__monate,
.sb-wcb fieldset.sb-wcb__geschenk {
	display: none;
}

.sb-wcb:has(input[name="sb_wc[modus]"][value="fest"]:checked) .sb-wcb__monate,
.sb-wcb:has(input[name="sb_wc[art]"][value="geschenk"]:checked) .sb-wcb__monate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 1.125rem 1.25rem;
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit);
}

.sb-wcb:has(input[name="sb_wc[art]"][value="geschenk"]:checked) fieldset.sb-wcb__geschenk {
	display: flex;
	padding: 1.5rem;
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit);
}

.sb-wcb__monate-label {
	font-weight: 600;
}

.sb-wcb__zahl {
	width: 96px;
	min-height: 48px;
	padding: 0 0.75rem;
	border: 2px solid var(--sb-wcb-rand);
	border-radius: var(--wp--custom--radius--knopf);
	background: var(--sb-wcb-feld);
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: var(--sb-fs-klein);
	font-weight: 600;
	text-align: center;
}

.sb-wcb__schnell {
	display: inline-flex;
	gap: 8px;
	margin-left: 0.375rem;
}

.sb-wcb__schnell button {
	white-space: nowrap;
	min-height: 40px;
	padding: 0 0.875rem;
	border: 2px solid rgba(242, 240, 235, 0.5);
	border-radius: var(--wp--custom--radius--knopf);
	background: transparent;
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: calc(0.9375rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
	cursor: pointer;
}

.sb-wcb__schnell button.is-an {
	border-color: var(--wp--preset--color--gold);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
}

.sb-wcb__festzeile {
	flex-basis: 100%;
}

.sb-wcb__klein {
	margin: 0;
	font-size: calc(0.9375rem * var(--wp--custom--lesegroesse));
	line-height: 1.5;
	color: var(--sb-wcb-leise);
}

.sb-wcb__felder {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.sb-wcb__feld {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	font-size: calc(0.9375rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
}

.sb-wcb__feld input,
.sb-wcb__feld textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.625rem 0.875rem;
	border: 2px solid rgba(242, 240, 235, 0.5);
	border-radius: var(--wp--custom--radius--feld);
	background: var(--sb-wcb-feld);
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: var(--sb-fs-label);
	font-weight: 400;
}

.sb-wcb__feld textarea {
	resize: vertical;
}

.sb-wcb__feld input:focus-visible,
.sb-wcb__feld textarea:focus-visible,
.sb-wcb__zahl:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold-text);
	outline-offset: 2px;
}

/* Ihre Auswahl */
.sb-wcb__auswahl {
	position: sticky;
	top: 6rem;
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border: 1px solid rgba(242, 240, 235, 0.18);
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-tief);
}

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

.sb-wcb__liste {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.5rem 1.25rem;
	margin: 0;
	font-size: var(--sb-fs-label);
}

.sb-wcb__liste dt {
	color: var(--sb-wcb-leise);
}

.sb-wcb__liste dd {
	margin: 0;
}

.sb-wcb__preis {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	padding-top: 1.125rem;
	border-top: 1px solid rgba(242, 240, 235, 0.22);
	font-size: var(--sb-fs-label);
	color: rgba(242, 240, 235, 0.75);
}

.sb-wcb__preis strong {
	font-size: clamp(1.875rem, 2.6vw, 2.25rem);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--text);
}

.sb-wcb__knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 1.5rem;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--knopf);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
	font-family: inherit;
	font-size: var(--sb-fs-knopf);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sb-wcb__knopf:hover,
.sb-wcb__knopf:focus-visible {
	background: color-mix(in srgb, var(--wp--preset--color--gold) 80%, #ffffff);
	border-color: color-mix(in srgb, var(--wp--preset--color--gold) 80%, #ffffff);
}

.sb-wcb__punkte {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: calc(0.9375rem * var(--wp--custom--lesegroesse));
	color: rgba(242, 240, 235, 0.7);
}

.sb-wcb__punkte li::before {
	content: "·";
	margin-right: 0.5em;
	color: var(--wp--preset--color--gold-text);
}

.sb-club-buchen--bald .sb__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.sb-club-buchen--bald .sb-text a {
	color: var(--wp--preset--color--gold-text);
	white-space: nowrap;
}

/* ---------- Handy und schmale Fenster ---------- */

@media (max-width: 989px) {
	.sb-club-band__inhalt,
	.sb-club-zweispaltig,
	.sb-wcb {
		grid-template-columns: 1fr;
	}

	.sb-club-zweispaltig--bild-links .sb-club-zweispaltig__bild {
		order: -1;
	}

	.sb-wcb__auswahl {
		position: static;
	}

	.sb.sb-club-band {
		min-height: 0;
	}
}

@media (max-width: 749px) {
	.sb.sb-club-hero {
		min-height: min(640px, 92svh);
	}

	.sb-club-hero__text {
		font-size: var(--sb-fs-text);
	}

	.sb-club-kacheln {
		grid-template-columns: 1fr;
	}

	.sb-club-kachel {
		min-height: 320px;
	}

	.sb-wcb__karten,
	.sb-wcb__felder {
		grid-template-columns: 1fr;
	}

	/* Schnellwahl auf dem Handy in eigener Zeile, damit „12 Monate“ nicht umbricht */
	.sb-wcb__schnell {
		flex-basis: 100%;
		margin-left: 0;
	}
}

/* ============================================================================================================
   Mein Weinclub (Kundenkonto, Ausgabe aus sansibar-core Weinclub\Konto)
   ============================================================================================================ */

.sb-mw {
	/* Pfeil wie in bausteine.css (--sb-icon-pfeil gilt dort nur in .sb, das Konto liegt nicht darin) */
	--sb-icon-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--sb-mw-linie: rgba(242, 240, 235, 0.2);
	--sb-mw-leise: rgba(242, 240, 235, 0.7);
	--sb-mw-fs: calc(1rem * var(--wp--custom--lesegroesse));
	--sb-mw-fs-gross: calc(1.125rem * var(--wp--custom--lesegroesse));
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 4vw, 3rem);
	font-variant-numeric: lining-nums;
}

.sb-mw *,
.sb-mw *::before,
.sb-mw *::after {
	box-sizing: border-box;
}

.sb-mw p,
.sb-mw h2,
.sb-mw ul,
.sb-mw dl {
	margin: 0;
}

/* Die Konto-Seite liegt im Seiteninhalt (.sb-inhalt .wp-block-post-content): dort rücken Listen ein und li + li
   bekommt Abstand – hier nicht (wie .sb-konto-kacheln in kasse.css) */
.sb-inhalt .wp-block-post-content .sb-mw ul,
.sb-mw ul {
	padding: 0;
	list-style: none;
}

.sb-inhalt .wp-block-post-content .sb-mw li,
.sb-mw li {
	margin: 0;
}

.sb-mw-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

.sb-mw-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--wp--preset--color--gold);
}

.sb-mw-titel {
	font-size: clamp(1.5rem, 2.4vw, 2.125rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.sb-mw-text,
.sb-mw-zeile {
	max-width: 40em;
	font-size: var(--sb-mw-fs-gross);
	line-height: 1.55;
	color: var(--sb-mw-leise);
}

.sb-mw-klein {
	font-size: var(--sb-mw-fs);
	color: var(--sb-mw-leise);
}

.sb-mw-klein a {
	color: var(--wp--preset--color--gold-text);
}

.sb-mw-status {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--knopf);
	font-size: var(--sb-mw-fs);
	font-weight: 600;
	color: var(--wp--preset--color--gold-text);
}

.sb-mw-warnung {
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--wp--preset--color--fehler);
	background: rgba(224, 87, 79, 0.12);
	font-size: var(--sb-mw-fs);
}

.sb-mw-kopfzeile {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-bottom: 1.25rem;
}

.sb-mw-kopfzeile > div {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.sb-mw-knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sb-mw-knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1.125rem;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--knopf);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
	font-family: inherit;
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.sb-mw-knopf:hover,
.sb-mw-knopf:focus-visible {
	color: var(--wp--preset--color--tinte);
	background: color-mix(in srgb, var(--wp--preset--color--gold) 80%, #ffffff);
	border-color: color-mix(in srgb, var(--wp--preset--color--gold) 80%, #ffffff);
}

.sb-mw-knopf--leise,
.sb-mw-knopf--leise:hover,
.sb-mw-knopf--leise:focus-visible {
	border-color: rgba(242, 240, 235, 0.7);
	background: transparent;
	color: var(--wp--preset--color--text);
}

.sb-mw-knopf--leise:hover,
.sb-mw-knopf--leise:focus-visible {
	background: rgba(242, 240, 235, 0.08);
}

/* Kopf: Stand der Mitgliedschaft */
.sb-mw-stand {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-tief);
}

.sb-mw-stand__text {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.sb-mw-karte {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.375rem;
	border: 1px solid rgba(216, 189, 134, 0.5);
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit);
}

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

.sb-mw-karte__gross {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	font-size: clamp(1.625rem, 2.4vw, 2rem);
	font-weight: 600;
	line-height: 1;
}

.sb-mw-karte__gross span {
	font-size: var(--sb-mw-fs);
	font-weight: 400;
	color: var(--sb-mw-leise);
}

.sb-mw-karte__liste {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.375rem 1rem;
	margin-top: 0.375rem;
	font-size: var(--sb-mw-fs);
}

.sb-mw-karte__liste dt {
	color: var(--sb-mw-leise);
}

.sb-mw-karte__liste dd {
	margin: 0;
}

/* Vorteile */
.sb-mw-vorteile ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	padding: 0;
	list-style: none;
}

.sb-mw-vorteil {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	padding: 1.125rem 1.25rem;
	border-top: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-dunkel);
}

.sb-mw-vorteil--ruht {
	border-top-color: rgba(242, 240, 235, 0.3);
	opacity: 0.75;
}

.sb-mw-vorteil__zahl {
	font-size: clamp(1.75rem, 2.4vw, 2.125rem);
	font-weight: 600;
	line-height: 1;
}

.sb-mw-vorteil__titel {
	font-size: var(--sb-mw-fs);
	font-weight: 600;
}

.sb-mw-vorteil__text {
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	color: var(--sb-mw-leise);
}

/* Weine (aktuelles Paket, Club-Konditionen) */
.sb-mw-weine {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 0;
	list-style: none;
}

.sb-mw-weine--klein {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.sb-mw-wein {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-dunkel);
}

/* Bild absolut im festen Format – ein hochformatiges Foto darf die Karte nicht höher machen */
.sb-mw-wein__bild {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--flaeche);
}

.sb-mw-wein__bild img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8%;
}

.sb-mw-wein__marke {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 0.25rem 0.625rem;
	border-radius: var(--wp--custom--radius--knopf);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
	font-size: calc(0.8125rem * var(--wp--custom--lesegroesse));
	font-weight: 700;
}

.sb-mw-wein__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.125rem 1.25rem;
}

.sb-mw-wein__name {
	font-size: var(--sb-mw-fs-gross);
	font-weight: 600;
	line-height: 1.25;
}

.sb-mw-wein__name a {
	color: inherit;
	text-decoration: none;
}

.sb-mw-wein__name a:hover {
	color: var(--wp--preset--color--gold-text);
}

.sb-mw-wein__menge,
.sb-mw-wein__label {
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	color: var(--sb-mw-leise);
}

.sb-mw-wein__preis {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	font-size: var(--sb-mw-fs);
}

.sb-mw-wein__club {
	font-size: calc(1.25rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
}

.sb-mw-wein__preis s {
	color: var(--sb-mw-leise);
}

.sb-mw-wein .sb-mw-knopf {
	align-self: flex-start;
	margin-top: auto;
}

.sb-mw-hinweis {
	margin-top: 1rem;
	font-size: var(--sb-mw-fs);
	color: var(--sb-mw-leise);
}

/* Expertise und Archiv */
.sb-mw-expertise,
.sb-mw-archiv__eintrag details {
	border-top: 1px solid var(--sb-mw-linie);
}

.sb-mw-expertise {
	margin-top: 1rem;
	border-bottom: 1px solid var(--sb-mw-linie);
}

.sb-mw-expertise > summary,
.sb-mw-archiv__eintrag summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	min-height: 56px;
	padding: 0.75rem 0;
	font-size: var(--sb-mw-fs-gross);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.sb-mw-expertise > summary::-webkit-details-marker,
.sb-mw-archiv__eintrag summary::-webkit-details-marker {
	display: none;
}

.sb-mw-expertise > summary::after,
.sb-mw-archiv__eintrag summary::after,
.sb-mw-aktion > summary strong::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-left: auto;
	-webkit-mask: var(--sb-icon-pfeil) center / contain no-repeat;
	mask: var(--sb-icon-pfeil) center / contain no-repeat;
	background: var(--wp--preset--color--gold);
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.sb-mw-expertise[open] > summary::after,
.sb-mw-archiv__eintrag details[open] summary::after,
.sb-mw-aktion[open] > summary strong::after {
	transform: rotate(-90deg);
}

.sb-mw-aktion > summary strong,
.sb-mw-aktion--link strong {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Link-Karte (Zahlungsart): Pfeil nach rechts */
.sb-mw-aktion--link strong::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-left: auto;
	-webkit-mask: var(--sb-icon-pfeil) center / contain no-repeat;
	mask: var(--sb-icon-pfeil) center / contain no-repeat;
	background: var(--wp--preset--color--gold);
}

.sb-mw-expertise__text {
	max-width: 44em;
	padding-bottom: 1.25rem;
	font-size: var(--sb-mw-fs-gross);
	line-height: 1.6;
	color: var(--sb-mw-leise);
}

.sb-mw-archiv__liste {
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--sb-mw-linie);
}

.sb-mw-archiv__monat {
	min-width: 9em;
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

.sb-mw-archiv__inhalt {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0 0 1.25rem;
}

.sb-mw-archiv__weine {
	font-size: var(--sb-mw-fs);
	color: var(--sb-mw-leise);
}

/* Verwalten */
.sb-mw-verwalten__raster {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 12px;
	margin-bottom: 1rem;
}

.sb-mw-aktion {
	padding: 1rem 1.125rem;
	border: 1px solid var(--sb-mw-linie);
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-dunkel);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.sb-mw-aktion--link:hover,
.sb-mw-aktion--link:focus-visible {
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--text);
}

.sb-mw-aktion > summary,
.sb-mw-aktion--link {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	list-style: none;
	cursor: pointer;
}

.sb-mw-aktion > summary::-webkit-details-marker {
	display: none;
}

.sb-mw-aktion strong {
	font-size: var(--sb-mw-fs-gross);
	font-weight: 600;
}

.sb-mw-aktion span {
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	color: var(--sb-mw-leise);
}

.sb-mw-aktion--kuendigen > summary strong {
	color: var(--sb-mw-leise);
}

.sb-mw-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	margin-top: 1rem;
}

.sb-mw-form label {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	gap: 0.375rem;
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
}

.sb-mw-form select {
	min-height: 44px;
	padding: 0 0.75rem;
	border: 2px solid rgba(242, 240, 235, 0.5);
	border-radius: var(--wp--custom--radius--feld);
	background: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: var(--sb-mw-fs);
}

.sb-mw-haken {
	flex-direction: row !important;
	align-items: flex-start;
	gap: 0.625rem !important;
	font-weight: 400 !important;
}

.sb-mw-haken input {
	margin-top: 0.25rem;
	accent-color: var(--wp--preset--color--gold);
}

/* Geschenke */
.sb-mw-geschenke__liste {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 1rem;
	padding: 0;
	list-style: none;
}

.sb-mw-geschenk {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 0.875rem 1.125rem;
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-dunkel);
}

.sb-mw-geschenk strong {
	font-size: var(--sb-mw-fs-gross);
	font-weight: 600;
}

.sb-mw-geschenk span {
	font-size: var(--sb-mw-fs);
	color: var(--sb-mw-leise);
}

/* Meine Geschenke: Urkunde (PDF) und Verlängern (0.33.0) */
.sb-mw-geschenk__aktionen {
	flex: 0 0 auto;
}

.sb-mw-geschenk__verlaengern {
	flex: 1 1 100%;
	margin-top: 0.5rem;
}

.sb-mw-teaser {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.875rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-tief);
}

@media (max-width: 989px) {
	.sb-mw-stand {
		grid-template-columns: 1fr;
	}

	.sb-mw-vorteile ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 640px) {
	.sb-mw-weine,
	.sb-mw-verwalten__raster {
		grid-template-columns: 1fr;
	}

	.sb-mw-wein {
		flex-direction: row;
	}

	.sb-mw-wein__bild {
		flex: 0 0 116px;
		aspect-ratio: 3 / 4;
	}

	.sb-mw-wein__bild img {
		padding: 6%;
	}

	.sb-mw-wein__text {
		min-width: 0;
		padding: 0.875rem 1rem 1rem;
	}

	.sb-mw-wein__marke {
		top: 8px;
		left: 8px;
	}

	.sb-mw-archiv__monat {
		min-width: 0;
		flex-basis: 100%;
	}
}

/* ---------- Verträge kündigen (0.32.0, § 312k BGB) – Formular und Eingangsbeleg aus sansibar-core (Weinclub\Kuendigung) ---------- */

.sb-kuendigung {
	--sb-k-linie: rgba(242, 240, 235, 0.2);
	--sb-k-leise: rgba(242, 240, 235, 0.72);
	--sb-k-fs: calc(1rem * var(--wp--custom--lesegroesse));
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 46rem;
	margin-block: 1.5rem 2rem;
	font-variant-numeric: lining-nums;
}

.sb-kuendigung *,
.sb-kuendigung *::before,
.sb-kuendigung *::after {
	box-sizing: border-box;
}

.sb-kuendigung__gruppe {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: clamp(1.1rem, 2.5vw, 1.5rem);
	border: 1px solid var(--sb-k-linie);
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-tief);
}

.sb-kuendigung__gruppe legend {
	padding: 0 0.4rem;
	color: var(--wp--preset--color--gold-text);
	font-size: var(--sb-k-fs);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.sb-kuendigung__raster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
}

.sb-kuendigung__feld {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
}

.sb-kuendigung input[type="text"],
.sb-kuendigung input[type="email"],
.sb-kuendigung select,
.sb-kuendigung textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	border: 2px solid rgba(242, 240, 235, 0.5);
	border-radius: var(--wp--custom--radius--feld);
	background: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: var(--sb-k-fs);
	font-weight: 400;
}

.sb-kuendigung input:focus-visible,
.sb-kuendigung select:focus-visible,
.sb-kuendigung textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

.sb-kuendigung [aria-invalid="true"],
.sb-kuendigung [aria-invalid="true"] input,
.sb-kuendigung [aria-invalid="true"] select {
	border-color: var(--wp--preset--color--fehler);
}

.sb-kuendigung__wahl {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
	font-size: var(--sb-k-fs);
	cursor: pointer;
}

.sb-kuendigung__wahl input {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--wp--preset--color--gold);
}

.sb-kuendigung__wahl--monat select {
	width: auto;
	min-width: 12rem;
}

.sb-kuendigung__fest {
	margin: 0;
	font-size: var(--sb-k-fs);
	font-weight: 600;
}

.sb-kuendigung__klein {
	margin: 0;
	color: var(--sb-k-leise);
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	font-weight: 400;
	line-height: 1.5;
}

.sb-kuendigung__fehler {
	color: var(--wp--preset--color--fehler);
	font-size: calc(0.875rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
}

.sb-kuendigung__meldung {
	margin: 0;
	padding: 0.9rem 1.1rem;
	border-left: 3px solid var(--wp--preset--color--fehler);
	background: var(--wp--preset--color--anthrazit-tief);
	font-weight: 600;
}

/* Grund nur bei außerordentlicher, Zeitpunkt nur bei ordentlicher Kündigung (ohne :has alles sichtbar) */
.sb-kuendigung:has(input[name="art"][value="ordentlich"]:checked) .sb-kuendigung__grund,
.sb-kuendigung:has(input[name="art"][value="ausserordentlich"]:checked) .sb-kuendigung__zeitpunkt {
	display: none;
}

.sb-kuendigung__falle {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sb-kuendigung__knoepfe {
	margin: 0;
}

.sb-kuendigung__knopf,
.sb-club-kuendigen__knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 1.5rem;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--knopf);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte);
	font-family: inherit;
	font-size: calc(0.9375rem * var(--wp--custom--lesegroesse));
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.sb-kuendigung__knopf:hover,
.sb-kuendigung__knopf:focus-visible,
.sb-club-kuendigen__knopf:hover,
.sb-club-kuendigen__knopf:focus-visible {
	background: color-mix(in srgb, var(--wp--preset--color--gold) 80%, #ffffff);
	border-color: color-mix(in srgb, var(--wp--preset--color--gold) 80%, #ffffff);
	color: var(--wp--preset--color--tinte);
	text-decoration: none;
}

/* Eingangsbeleg */
.sb-kuendigung--beleg {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--sb-k-linie);
	border-radius: var(--wp--custom--radius--karte);
	background: var(--wp--preset--color--anthrazit-tief);
}

.sb-kuendigung__eyebrow {
	margin: 0;
	color: var(--wp--preset--color--gold-text);
	font-size: calc(0.8125rem * var(--wp--custom--lesegroesse));
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sb-kuendigung__titel {
	margin: 0;
}

.sb-kuendigung__zeilen {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 0.5rem 1.25rem;
	margin: 0;
	font-size: var(--sb-k-fs);
}

.sb-kuendigung__zeilen dt {
	color: var(--sb-k-leise);
}

.sb-kuendigung__zeilen dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.sb-kuendigung__text {
	margin: 0;
	font-size: var(--sb-k-fs);
	line-height: 1.6;
}

@media (max-width: 599px) {
	.sb-kuendigung__zeilen {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.sb-kuendigung__zeilen dd {
		margin-bottom: 0.5rem;
	}
}

/* Auf /weinclub/ unter „Kann ich pausieren oder kündigen?“ */
.sb-club-kuendigen {
	margin-top: 0.75rem;
}

/* Beleg drucken: nur der Beleg, dunkle Schrift auf Papier */
@media print {
	.sb-kuendigungs-seite header.wp-block-template-part,
	.sb-kuendigungs-seite footer.wp-block-template-part,
	.sb-kuendigungs-seite .wp-block-post-content > :not(.sb-kuendigung),
	.sb-kuendigung__knoepfe {
		display: none !important;
	}

	.sb-kuendigung,
	.sb-kuendigung * {
		border-color: #999999 !important;
		background: transparent !important;
		color: #000000 !important;
	}
}
