/* Weingut Shop – bewusst zurückhaltend, damit es sich in jedes Theme einfügt. */

.ws-badge {
	display: block;
	margin-bottom: .25em;
	font-size: .85em;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ws-accent);
}

/* inline-flex wie das frühere Bio-Schildchen: folgt der Textausrichtung des Themes (z. B. zentriert in Produktkacheln). */
.ws-tags {
	display: inline-flex;
	flex-wrap: wrap;
	vertical-align: middle;
	align-items: center;
	gap: .4em;
	margin: .35em 0;
}

.ws-bio {
	display: inline-block;
	margin: .35em 0;
	padding: .1em .55em;
	border: 1px solid var(--ws-accent);
	border-radius: 3px;
	/* relativ zur Umgebung, aber nie größer als 13 px – sonst überragt das Schildchen bei großen Schriften den Weinnamen */
	font-size: min(.75em, .8125rem);
	line-height: 1.5;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ws-accent);
}

.ws-tags .ws-bio {
	margin: 0;
}

.ws-meta .ws-tags {
	margin: 0;
}

.ws-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75em;
	margin: -.5em 0 1em;
}

.ws-taste {
	font-style: italic;
}

/* Auszeichnungen auf der Produktseite: Medaille (Gold/Silber/Bronze, sonst Akzentfarbe) mit Name und Angabe */
.ws-preise {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.ws-preis {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	margin: 0;
	padding: .35em .8em .35em .4em;
	border: 1px solid var(--ws-line, rgba(0, 0, 0, .12));
	border-radius: 999px;
	font-size: .8em;
	line-height: 1.25;
}

.ws-preis-medaille {
	flex: none;
	width: 1.9em;
	height: 1.9em;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--ws-accent);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.ws-preis--gold .ws-preis-medaille { background-color: #c9a227; background-image: radial-gradient(circle at 35% 30%, #f3dc7c, #c9a227 55%, #9a7614); }
.ws-preis--silber .ws-preis-medaille { background-color: #a8adb3; background-image: radial-gradient(circle at 35% 30%, #eef0f2, #a8adb3 55%, #7d8389); }
.ws-preis--bronze .ws-preis-medaille { background-color: #b0703a; background-image: radial-gradient(circle at 35% 30%, #e7b98d, #b0703a 55%, #7f4d24); }

/* Mit hochgeladenem Siegel: nur das runde Bild, ohne Rahmen */
.ws-preis--siegel {
	padding: 0;
	border: 0;
}

.ws-preis-siegel {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: contain;
}

.ws-preise:has(.ws-preis--siegel) {
	align-items: center;
}

/* Weinliste: klein neben der Flasche, nur Siegel oder Medaille (Text im Tooltip) */
.ws-item-img {
	position: relative;
}

.ws-preise--kachel {
	position: absolute;
	top: 8%;
	right: 8%;
	flex-direction: column;
	gap: .35em;
	margin: 0;
	padding: 0 !important; /* Divi rückt Listen im Inhalt mit ID-Selektoren ein */
	list-style: none !important;
}

.ws-preise--kachel .ws-preis {
	padding: 0;
	border: 0;
	list-style: none;
}

/* Hohe Spezifität: Themes geben dem Flaschenbild oft Breite, Seitenverhältnis und object-fit vor (.ws-item-img img). */
.ws-shop .ws-item-img .ws-preise--kachel .ws-preis-siegel {
	width: 48px;
	height: 48px;
	aspect-ratio: 1;
	object-fit: contain;
}

.ws-preise--kachel .ws-preis-medaille {
	width: 30px;
	height: 30px;
}

.ws-preise--kachel .ws-preis-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.ws-shop--list .ws-preise--kachel {
	top: 0;
	right: 0;
}

.ws-shop--list .ws-item-img .ws-preise--kachel .ws-preis-siegel {
	width: 30px;
	height: 30px;
}

.ws-shop--list .ws-preise--kachel .ws-preis-medaille {
	width: 18px;
	height: 18px;
}

.ws-preis-text {
	display: flex;
	flex-direction: column;
}

.ws-preis-name {
	font-weight: 700;
}

.ws-preis-wert {
	opacity: .75;
}

/* „Passt zu …“ (Speiseempfehlung) unter der Kurzbeschreibung */
.ws-speise {
	margin: 0 0 1em;
	padding-left: .9em;
	border-left: 2px solid var(--ws-accent);
}

.ws-speise-titel {
	display: block;
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ws-accent);
}

.ws-short {
	display: flex;
	flex-direction: column;
	gap: .15em;
	margin: .5em 0 1em;
	font-size: .85em;
	line-height: 1.45;
	opacity: .85;
}

.ws-nw-link {
	align-self: inherit;
	margin-top: .3em;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.ws-nw-link:hover,
.ws-nw-link:focus-visible {
	color: var(--ws-accent);
}

/* Produktkacheln: kompakt. Angaben als Fließtext mit Trennpunkten, darunter „inkl. MwSt. zzgl. Versandkosten“
   und Lieferzeit, unten eine Zeile mit Preis, Mengenwähler und Warenkorb-Symbol. */
ul.products li.product .ws-short {
	display: block;
	margin: .5em 0 .3em;
	font-size: .8em;
	line-height: 1.5;
	text-align: center;
}

ul.products li.product .ws-short > :not(dialog) {
	display: inline;
	margin: 0;
}

/* Trennpunkt am Ende der vorigen Angabe, damit er beim Umbruch nicht am Zeilenanfang steht. */
ul.products li.product .ws-short > :not(dialog):has(+ :not(dialog))::after {
	content: "\00a0· ";
}

ul.products li.product .ws-short .ws-nw-link {
	display: inline;
	padding: 0;
}

ul.products li.product .wc-gzd-additional-info-loop.tax-info,
ul.products li.product .wc-gzd-additional-info-loop.shipping-costs-info,
ul.products li.product .wc-gzd-additional-info-loop.delivery-time-info {
	display: inline;
	margin: 0;
	font-size: .8em;
}

ul.products li.product .wc-gzd-additional-info-loop.delivery-time-info {
	white-space: nowrap;
}

ul.products li.product .wc-gzd-additional-info-loop.shipping-costs-info:has(+ .delivery-time-info)::after {
	content: "\00a0·";
}

/* Platzhalter, wenn ein Wein weder Lage noch Bio hat: gleiche Höhe, damit die Kacheln in einer Reihe bündig bleiben. */
.ws-tags--leer {
	visibility: hidden;
}

.ws-loop-buy {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: .5em;
	margin-top: .8em;
}

/* Kauf-Zeile (Preis, Menge, Warenkorb) in jeder Kachelreihe unten bündig: Liste als Flex statt Floats,
   Kachel als Spalte (Angaben gesammelt in .ws-loop-info), die Kauf-Zeile rutscht ans Ende.
   Breiten und Abstände des Themes bleiben. */
/* Divis Shop-Modul (Divi 5) ordnet die Kacheln schon als Raster an – dort nicht umstellen. */
ul.products:has(.ws-loop-buy):not(.et_pb_module ul) {
	display: flex;
	flex-wrap: wrap;
}

ul.products:has(.ws-loop-buy):not(.et_pb_module ul)::before,
ul.products:has(.ws-loop-buy):not(.et_pb_module ul)::after {
	display: none;
}

ul.products li.product:has(> .ws-loop-buy) {
	display: flex;
	flex-direction: column;
	float: none;
}

ul.products li.product > .ws-loop-buy {
	margin-top: auto;
	padding-top: .8em;
}

ul.products li.product .ws-loop-buy .ws-loop-price {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: 1.15em;
	font-weight: 700;
	white-space: nowrap;
}

.ws-loop-buy--qty .ws-loop-price {
	justify-content: flex-start;
}

.ws-loop-buy .ws-qty {
	flex: 0 0 5.75em;
	margin: 0;
}

.ws-loop-buy .button,
ul.products li.product .ws-loop-buy .button {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	flex: 0 0 auto;
	margin: 0;
	padding: .5em .9em;
	line-height: 1.2;
}

/* Bei Mengenwähler nur ein Warenkorb-Symbol statt Text; der Text bleibt für Screenreader im aria-label. */
.ws-loop-buy--qty .add_to_cart_button,
ul.products li.product .ws-loop-buy--qty .add_to_cart_button {
	flex: 0 0 2.75rem; /* rem, weil font-size 0 em-Werte auf 0 setzt */
	min-height: 2.5rem;
	padding: 0;
	font-size: 0;
}

/* Divi: eigenes Button-Symbol (ETmodules) und Hover-Abstand abschalten, sonst bleibt der Button leer bzw. springt. */
.et_divi_theme .ws-loop-buy--qty .add_to_cart_button::before {
	position: static !important;
	display: block !important;
	margin: 0 !important;
	content: "" !important;
	opacity: 1 !important;
	font-family: inherit !important;
}

.et_divi_theme .ws-loop-buy--qty .add_to_cart_button::after {
	display: none !important;
}

.et_divi_theme .ws-loop-buy--qty .add_to_cart_button,
.et_divi_theme .ws-loop-buy--qty .add_to_cart_button:hover {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}

.ws-loop-buy--qty .add_to_cart_button::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a1.5 1.5 0 0 0 1.5 1.2h8.8a1.5 1.5 0 0 0 1.5-1.1L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a1.5 1.5 0 0 0 1.5 1.2h8.8a1.5 1.5 0 0 0 1.5-1.1L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ws-loop-buy--qty .add_to_cart_button::after {
	display: none !important;
}

.ws-loop-buy .button.loading {
	opacity: .6;
}

.ws-loop-buy .added_to_cart {
	flex-basis: 100%;
	font-size: .8em;
}

.summary .ws-short {
	align-items: flex-start;
}

/* Fenster für Nährwerte & Zutaten */
.ws-dialog {
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 28px 28px 20px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #222;
	text-align: left;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.ws-dialog::backdrop {
	background: rgba(0, 0, 0, .5);
}

.ws-dialog-close {
	position: absolute;
	top: 8px;
	right: 10px;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ws-dialog-title {
	margin: 0 0 1em;
	padding-right: 2em;
	font-size: 1.15em;
	font-weight: 700;
}

.ws-naehrwerte h3 {
	margin: 1.2em 0 .4em;
	font-size: 1em;
}

.ws-naehrwerte h3:first-child {
	margin-top: 0;
}

.ws-table {
	width: 100%;
	margin: 0 0 1em;
	border-collapse: collapse;
	font-size: .92em;
}

table.ws-table th,
table.ws-table td {
	padding: .45em .5em;
	border-bottom: 1px solid rgba(0, 0, 0, .1);
	background: none;
	font-weight: normal;
	text-align: left;
	vertical-align: top;
}

table.ws-table td {
	text-align: right;
}

table.ws-details td {
	text-align: left;
}

table.ws-details th {
	width: 38%;
	font-weight: 600;
}

table.ws-table .ws-sub th {
	padding-left: 1.5em;
}

/* Startseite / Sortiment */
.ws-sortiment {
	margin: 0 0 4em;
}

.ws-sortiment-title {
	margin-bottom: .3em;
	text-align: center;
}

.ws-sortiment-text {
	max-width: 46em;
	margin: 0 auto 2em;
	text-align: center;
	opacity: .85;
}

/* -------------------------------------------------------------------------
 * Weinliste [weingut_shop] – Liste und Raster
 * ---------------------------------------------------------------------- */

.ws-shop {
	--ws-line: rgba(0, 0, 0, .12);
}

.ws-shop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin: 0 0 2.5em;
}

.ws-shop-cats {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.ws-shop-cats a {
	padding: .45em .9em;
	border: 1px solid var(--ws-line);
	font-size: .78em;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s, color .15s;
}

.ws-shop-cats a:hover,
.ws-shop-cats a:focus-visible {
	border-color: var(--ws-accent);
	color: var(--ws-accent);
}

.ws-view {
	display: inline-flex;
	border: 1px solid var(--ws-line);
	border-radius: 4px;
	overflow: hidden;
}

.ws-view button {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin: 0;
	padding: .5em .85em;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .85em;
	cursor: pointer;
}

.ws-view button[aria-pressed="true"] {
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
}

.ws-shop-section {
	margin: 0 0 3.5em;
	scroll-margin-top: 2em;
}

.ws-shop-title {
	margin: 0 0 .6em;
}

/* Tafel je Hauptkategorie ([weingut_shop bild="ja"]) */
.ws-shop-gruppe {
	--ws-kat: var(--ws-kat-farbe, var(--ws-accent));
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
	margin: 0 0 3.5em;
	border: 6px solid var(--ws-kat);
	scroll-margin-top: 2em;
}

.ws-shop-gruppe-bild {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 2.5em 1.5em;
	background: var(--ws-kat);
}

.ws-shop-gruppe-bild img {
	position: sticky;
	top: 3em;
	width: auto;
	max-width: 100%;
	max-height: 60vh;
	object-fit: contain;
}

.ws-shop-gruppe-inhalt {
	min-width: 0;
	padding: 2.5em clamp(1.25em, 4vw, 3em) 1em;
}

.ws-shop-gruppe .ws-shop-section {
	margin-bottom: 2.5em;
}

.ws-shop-gruppe .ws-shop-title,
.ws-shop-section[style] .ws-shop-title {
	color: var(--ws-kat-farbe, inherit);
}

@media (max-width: 800px) {
	.ws-shop-gruppe {
		grid-template-columns: minmax(0, 1fr);
	}

	.ws-shop-gruppe-bild {
		padding: 1.5em;
	}

	.ws-shop-gruppe-bild img {
		position: static;
		max-height: 220px;
	}
}

/* Liste */
.ws-list-head,
.ws-shop--list .ws-item {
	display: grid;
	grid-template-columns: 2.5rem 96px minmax(0, 1fr) 11rem 9.5rem 6rem;
	gap: 0 1.25rem;
	align-items: start;
}

.ws-list-head {
	padding: .6em 0;
	border-bottom: 1px solid var(--ws-line);
	font-size: .7em;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .6;
}

.ws-list-head span:last-child {
	text-align: right;
}

.ws-shop--list .ws-item {
	padding: 1.25em 0;
	border-bottom: 1px solid var(--ws-line);
}

.ws-item-nr {
	padding-top: .15em;
	font-size: .85em;
	opacity: .55;
}

.ws-item-img img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.ws-item-sub {
	margin: 0 0 .2em;
	font-size: .72em;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ws-accent);
}

.ws-item-title {
	margin: 0 0 .25em;
	font-size: 1.15em;
	line-height: 1.3;
}

.ws-item-title a {
	color: inherit;
	text-decoration: none;
}

.ws-item-title a:hover {
	color: var(--ws-accent);
}

.ws-item-main .ws-tags {
	margin: .15em 0 .5em;
}

.ws-item-info {
	font-size: .85em;
}

.ws-item-info .ws-nw-link {
	margin: 0;
	opacity: .8;
}

.ws-item-price .price {
	display: block;
	font-size: 1.05em;
	font-weight: 700;
}

.ws-item-price .price small {
	display: block;
	font-size: .72em;
	font-weight: 400;
	opacity: .8;
}

.ws-item-price .ws-short {
	margin: .35em 0 0;
	font-size: .78em;
	align-items: flex-start;
}

.ws-qty {
	display: flex;
	align-items: stretch;
	margin: 0 0 .5em;
	border: 1px solid rgba(0, 0, 0, .2);
	background: #fff;
}

.ws-qty-btn {
	flex: 0 0 2.25em;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
}

.ws-qty-btn:hover {
	color: var(--ws-accent);
}

.ws-qty .ws-qty-input {
	flex: 1;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: .5em 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: center;
	-moz-appearance: textfield;
}

.ws-qty-input::-webkit-outer-spin-button,
.ws-qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ws-item-buy .button {
	display: block;
	width: 100%;
	margin: 0;
	padding: .75em .5em;
	font-size: .8em;
	text-align: center;
	white-space: nowrap;
}

.ws-item-buy .added_to_cart {
	display: block;
	margin-top: .4em;
	font-size: .8em;
	text-align: center;
}

.ws-item-buy .button.loading {
	opacity: .6;
}

.ws-item-total {
	padding-top: .1em;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.ws-dialog-more {
	margin: 1em 0 0;
}

/* Raster */
.ws-shop--grid .ws-list-head {
	display: none;
}

.ws-shop--grid .ws-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 3em 1.75em;
}

.ws-shop--grid .ws-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ws-shop--grid .ws-item-nr,
.ws-shop--grid .ws-item-total {
	display: none;
}

.ws-shop--grid .ws-item-img {
	width: 100%;
	margin: 0 0 1em;
}

.ws-shop--grid .ws-item-main,
.ws-shop--grid .ws-item-price {
	width: 100%;
}

.ws-shop--grid .ws-item-info {
	margin: 0 0 .75em;
}

.ws-shop--grid .ws-item-price .ws-short {
	align-items: center;
}

.ws-shop--grid .ws-item-buy {
	width: 100%;
	max-width: 210px;
	margin-top: auto;
	padding-top: 1em;
}

/* Handy */
@media (max-width: 720px) {
	.ws-list-head {
		display: none;
	}

	.ws-shop--list .ws-item {
		grid-template-columns: 80px minmax(0, 1fr);
		grid-template-areas:
			"img main"
			"img price"
			"img buy";
		gap: .5em 1em;
	}

	.ws-shop--list .ws-item-nr,
	.ws-shop--list .ws-item-total {
		display: none;
	}

	.ws-shop--list .ws-item-img { grid-area: img; }
	.ws-shop--list .ws-item-main { grid-area: main; }
	.ws-shop--list .ws-item-price { grid-area: price; }
	.ws-shop--list .ws-item-buy { grid-area: buy; max-width: 220px; }

	.ws-shop--grid .ws-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.25em 1em;
	}
}

/* Themes wie Storefront unterstreichen Inhaltslinks mit sehr spezifischen Selektoren. */
.ws-shop .ws-shop-cats a,
.ws-shop .ws-item-title a,
.ws-shop .ws-item-img {
	text-decoration: none !important;
}

/* Filter */
.ws-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6em 1em;
	margin: -1.25em 0 2em;
	font-size: .9em;
}

.ws-filter-field select,
.ws-filter-field input {
	box-sizing: border-box;
	/* feste Höhe: Suchfeld und Auswahllisten sind sonst je nach Theme-Zeilenhöhe unterschiedlich hoch */
	height: 2.5em;
	margin: 0;
	padding: .5em .7em;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: normal;
	vertical-align: middle;
}

.ws-filter-search input {
	width: 14em;
}

.ws-filter-check {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	cursor: pointer;
}

.ws-filter-reset {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ws-accent);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.ws-filter-count {
	margin-left: auto;
	opacity: .65;
}

.ws-shop-hint {
	margin: 0 0 2em;
	font-size: .85em;
	font-weight: 600;
	color: var(--ws-accent);
}

.ws-shop [hidden],
.ws-filter [hidden] {
	display: none !important;
}

.ws-shop-empty {
	padding: 2em 0;
	text-align: center;
}

/* Germanized-Hinweise in der Weinliste */
.ws-legal {
	display: flex;
	flex-direction: column;
	font-size: .72em;
	line-height: 1.45;
	opacity: .8;
}

.ws-legal p {
	margin: 0;
}

.ws-shop--grid .ws-legal {
	align-items: center;
}

/* Veranstaltungen */
.ws-event-date {
	font-weight: 600;
}

.ws-event-seats {
	color: var(--ws-accent);
	font-weight: 600;
}

.ws-soldout {
	display: block;
	padding: .75em .5em;
	border: 1px solid rgba(0, 0, 0, .15);
	font-size: .8em;
	font-weight: 600;
	text-align: center;
	opacity: .7;
}

/* Weinpakete */
.ws-paket-item {
	border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.ws-paket-item summary {
	padding: .7em 0;
	cursor: pointer;
}

.ws-paket-qty {
	color: var(--ws-accent);
	font-weight: 700;
}

.ws-paket-facts {
	display: block;
	margin-left: 1.6em;
	font-size: .85em;
	opacity: .75;
}

.ws-paket-item[open] summary {
	margin-bottom: .5em;
}

.ws-shipping-progress {
	margin-bottom: 1.5em;
}

/* Balken bis zum versandkostenfreien Versand (Warenkorb und Seitenwarenkorb) */
.ws-progress-text {
	display: block;
}

.ws-progress {
	display: block;
	height: 6px;
	margin-top: .5em;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(0, 0, 0, .1);
}

.ws-progress-wert {
	display: block;
	height: 100%;
	min-width: 6px;
	border-radius: inherit;
	background: var(--ws-accent, #8c7a4b);
	transition: width .3s ease;
}

/* In farbigen WooCommerce-Hinweisboxen (weiße Schrift) in der Textfarbe */
.woocommerce-info .ws-progress {
	background: rgba(255, 255, 255, .3);
}

.woocommerce-info .ws-progress-wert {
	background: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.ws-progress-wert {
		transition: none;
	}
}

@media (max-width: 720px) {
	.ws-filter {
		margin-top: -1em;
	}

	.ws-filter-search,
	.ws-filter-search input,
	.ws-filter-field {
		flex: 1 1 100%;
		width: 100%;
	}

	.ws-filter-field select {
		width: 100%;
	}

	.ws-filter-count {
		margin-left: 0;
	}
}

.ws-event-past {
	padding: .8em 1em;
	border-left: 3px solid var(--ws-accent);
	background: rgba(0, 0, 0, .03);
}

/* -------------------------------------------------------------------------
 * Kalender [weingut_kalender]
 * ---------------------------------------------------------------------- */

.ws-cal {
	--ws-line: rgba(0, 0, 0, .12);
}

.ws-cal [hidden] {
	display: none !important;
}

.ws-cal-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin: 0 0 2em;
}

.ws-cal-filter {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.ws-cal-filter button {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin: 0;
	padding: .45em .9em;
	border: 1px solid var(--ws-line);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .8em;
	letter-spacing: .04em;
	cursor: pointer;
}

.ws-cal-filter button[aria-pressed="true"] {
	border-color: currentColor;
	font-weight: 600;
}

.ws-cal-dot {
	width: .6em;
	height: .6em;
	border-radius: 50%;
	background: var(--c);
}

.ws-cal--list .ws-cal-month,
.ws-cal--month .ws-cal-list {
	display: none;
}

/* Liste */
.ws-cal-group-title {
	margin: 0 0 .5em;
	padding-bottom: .4em;
	border-bottom: 1px solid var(--ws-line);
	font-size: 1.1em;
}

.ws-cal-group {
	margin-bottom: 2.5em;
}

.ws-cal-item {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) 13rem;
	gap: 0 1.5rem;
	align-items: start;
	padding: 1.25em 0;
	border-bottom: 1px solid var(--ws-line);
}

.ws-cal-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: .5em 0;
	border-top: 3px solid var(--c);
	background: rgba(0, 0, 0, .03);
	line-height: 1.1;
	text-align: center;
}

.ws-cal-day {
	font-size: 1.7em;
	font-weight: 700;
}

.ws-cal-mon,
.ws-cal-wd {
	font-size: .75em;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .75;
}

.ws-cal-art {
	display: inline-block;
	margin-bottom: .2em;
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c);
}

.ws-cal-title {
	margin: 0 0 .35em;
	font-size: 1.15em;
	line-height: 1.3;
}

.ws-cal .ws-cal-title a {
	color: inherit;
	text-decoration: none !important;
}

.ws-cal-facts p {
	margin: 0 0 .2em;
	font-size: .88em;
}

.ws-cal-when {
	font-weight: 600;
}

.ws-cal-links {
	margin-top: .4em !important;
	font-size: .8em !important;
}

.ws-cal-buy {
	display: flex;
	flex-direction: column;
	gap: .35em;
}

.ws-cal-price {
	font-weight: 700;
}

.ws-cal-price small {
	font-weight: 400;
	opacity: .7;
}

.ws-cal-seats {
	font-size: .8em;
	font-weight: 600;
	color: var(--ws-accent);
}

.ws-cal-buy .ws-qty {
	margin: .2em 0 0;
}

.ws-cal-buy .button {
	display: block;
	width: 100%;
	margin: 0;
	padding: .7em .5em;
	font-size: .8em;
	text-align: center;
}

.ws-cal-buy .added_to_cart {
	font-size: .8em;
	text-align: center;
}

/* Monat */
.ws-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .75em;
}

.ws-cal-nav h3 {
	margin: 0;
	font-size: 1.25em;
}

.ws-cal-nav button {
	width: 2.4em;
	height: 2.4em;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ws-line);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 1.2em;
	line-height: 1;
	cursor: pointer;
}

.ws-cal-nav button[disabled] {
	opacity: .3;
	cursor: default;
}

.ws-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid var(--ws-line);
	border-left: 1px solid var(--ws-line);
}

.ws-cal-head {
	padding: .4em;
	border-right: 1px solid var(--ws-line);
	border-bottom: 1px solid var(--ws-line);
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
	opacity: .7;
}

.ws-cal-cell {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-height: 6.5em;
	padding: .35em;
	border-right: 1px solid var(--ws-line);
	border-bottom: 1px solid var(--ws-line);
}

.ws-cal-cell--empty {
	background: rgba(0, 0, 0, .02);
}

.ws-cal-num {
	font-size: .8em;
	opacity: .6;
}

.ws-cal-cell--today .ws-cal-num {
	display: inline-grid;
	place-items: center;
	width: 1.8em;
	height: 1.8em;
	border-radius: 50%;
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
	opacity: 1;
}

.ws-cal-pill {
	display: block;
	width: 100%;
	margin: 0;
	padding: .25em .4em;
	overflow: hidden;
	border: 0;
	border-left: 3px solid var(--c);
	border-radius: 0;
	background: rgba(0, 0, 0, .05);
	color: inherit;
	font: inherit;
	font-size: .72em;
	line-height: 1.3;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}

.ws-cal-pill:hover,
.ws-cal-pill:focus-visible {
	background: rgba(0, 0, 0, .1);
}

.ws-cal-dialog .ws-cal-art {
	margin-bottom: .3em;
}

.ws-cal-feed {
	margin-top: 2em;
	font-size: .85em;
}

.ws-cal-feed span {
	opacity: .7;
}

/* Terminseite */
.single-ws_termin .ws-cal-facts {
	margin: 0 0 1.5em;
	padding: 1em 1.25em;
	border-left: 3px solid var(--ws-accent);
	background: rgba(0, 0, 0, .03);
}

@media (max-width: 720px) {
	/* Auf dem Handy immer als Liste. */
	.ws-cal .ws-cal-month,
	.ws-cal-views {
		display: none !important;
	}

	.ws-cal .ws-cal-list {
		display: block !important;
	}

	.ws-cal-item {
		grid-template-columns: 3.75rem minmax(0, 1fr);
		gap: .75em 1em;
	}

	.ws-cal-buy {
		grid-column: 2;
		max-width: 240px;
	}
}

/* Produktseite: Kaufbereich wie in der Weinliste */
.single-product div.product form.cart:has(.ws-qty-input) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .5em;
	max-width: 240px;
}

.single-product div.product form.cart .quantity:has(.ws-qty-input) {
	display: flex;
	align-items: stretch;
	float: none;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, .2);
	background: #fff;
}

.single-product div.product form.cart .quantity .ws-qty-input {
	flex: 1;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: .55em 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	-moz-appearance: textfield;
}

.single-product div.product form.cart:has(.ws-qty-input) .single_add_to_cart_button {
	float: none;
	width: 100%;
	margin: 0;
	text-align: center;
}

/* Termin-Kacheln ([weingut_kalender ansicht="kacheln"]) */
.ws-cal-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.ws-cal-tile {
	display: flex;
	flex-direction: column;
	gap: .5em;
	color: inherit;
	text-decoration: none;
}
.ws-cal-tile-img {
	display: block;
	aspect-ratio: 1;
	background: #ededed;
	overflow: hidden;
	margin-bottom: .5em;
}
.ws-cal-tile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ws-cal-tile-date {
	font-weight: 500;
}

/* Termin-Karten ([weingut_kalender ansicht="karten"]) */
.ws-cal-cards {
	display: grid;
	gap: 20px;
}
.ws-cal-card {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 24px;
	background: #fff;
	padding: 24px;
	align-items: start;
}
.ws-cal-card-img img {
	width: 100%;
	aspect-ratio: 380 / 307;
	object-fit: cover;
	display: block;
}
.ws-cal-card-title {
	margin: 0 0 .4em;
}
.ws-cal-card-title a {
	color: inherit;
	text-decoration: none;
}
.ws-cal-card-text,
.ws-cal-card-when {
	margin: 0 0 .6em;
}
.ws-cal-card-when {
	font-weight: 500;
}
@media (max-width: 640px) {
	.ws-cal-card {
		grid-template-columns: 1fr;
	}
}

/* Warenkorb-Symbol mit Flaschenzahl ([weingut_warenkorb]) */
.ws-cart {
	position: relative;
	display: inline-block;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}
.ws-cart img {
	display: block;
	width: 100%;
	height: auto;
}
.ws-cart-count {
	position: absolute;
	left: var(--ws-cart-x, 50%);
	top: var(--ws-cart-y, 60%);
	transform: translate(-50%, -50%);
	font-size: var(--ws-cart-size, 11px);
	font-weight: 500;
	white-space: nowrap;
}

.ws-elabel {
	margin-top: .8em;
	font-size: .9em;
}

.ws-elabel-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ws-elabel-link:hover,
.ws-elabel-link:focus-visible {
	color: var(--ws-accent);
}

/* Warenkorb-Symbol: Tasche mit runder Zahl ([weingut_warenkorb symbol="tasche"], Storefront-Header) */
.ws-cart--symbol {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--ws-accent);
	text-decoration: none;
	line-height: 1;
}

.ws-cart--symbol .ws-cart-count {
	position: absolute;
	top: auto;
	left: auto;
	right: -9px;
	bottom: -6px;
	transform: none;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}

.ws-cart--symbol .ws-cart-count[data-ws-anzahl="0"] {
	display: none;
}

/* Storefront: Symbol rechtsbündig in der Warenkorb-Spalte, Farbe und Breite nicht vom Theme. */
#site-header-cart li:has(> .ws-cart--symbol) {
	text-align: right;
}

#site-header-cart .ws-cart--symbol.cart-contents {
	display: inline-flex;
	width: auto;
	margin-right: 10px;
	padding: 18px 0;
	color: var(--ws-accent);
}

#site-header-cart .ws-cart--symbol.cart-contents::after {
	display: none;
}

#site-header-cart .ws-cart--symbol .ws-cart-count {
	bottom: 12px;
}

/* Seitenwarenkorb ------------------------------------------------------ */

html.ws-sc-offen {
	overflow: hidden;
}

/* WooCommerce' Link „Warenkorb anzeigen“ neben dem Button ersetzt das Panel. */
body:has(dialog.ws-sc[data-ws-sc-modus="oeffnen"]) a.added_to_cart {
	display: none;
}

/* Aufklapp-Warenkorb von Storefront & Co. ersetzt das Panel ebenfalls. */
body:has(dialog.ws-sc) .site-header-cart .widget_shopping_cart {
	display: none !important;
}

.ws-sc {
	--ws-sc-rand: 24px;
	position: fixed;
	inset: 0 0 0 auto;
	box-sizing: border-box;
	width: min(470px, 100vw);
	max-width: 100vw;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: #1d1d1b;
	font-size: 16px;
	line-height: 1.35;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
	transform: translateX(100%);
	transition: transform .28s ease;
}

.ws-sc[open] {
	display: flex;
	flex-direction: column;
}

.ws-sc.is-offen {
	transform: none;
}

.ws-sc::backdrop {
	background: rgba(0, 0, 0, .45);
	animation: ws-sc-fade .28s ease;
}

@keyframes ws-sc-fade {
	from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ws-sc { transition: none; }
	.ws-sc::backdrop { animation: none; }
}

.ws-sc *,
.ws-sc *::before,
.ws-sc *::after {
	box-sizing: border-box;
}

.ws-sc-kopf {
	position: relative;
	margin: 0 var(--ws-sc-rand);
	padding: 28px 0 22px;
	border-bottom: 1px solid #d6d6d6;
	text-align: center;
}

.ws-sc-kopf h2 {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ws-accent);
}

.ws-sc-zu {
	position: absolute;
	left: -6px;
	top: 22px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.ws-sc-inhalt {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	transition: opacity .2s;
}

.ws-sc-inhalt[aria-busy="true"] {
	opacity: .5;
	pointer-events: none;
}

.ws-sc-liste {
	flex: 1;
	margin: 0;
	padding: 0 var(--ws-sc-rand);
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.ws-sc-pos {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 16px;
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid #e6e6e6;
}

.ws-sc-bild img {
	display: block;
	width: 56px;
	height: 72px;
	object-fit: contain;
}

.ws-sc-text {
	min-width: 0;
}

.ws-sc-name {
	margin: 0 0 2px;
	padding: 0;
	font-weight: 600;
}

.ws-sc-name a {
	color: inherit;
	text-decoration: none;
}

.ws-sc-name a:hover {
	color: var(--ws-accent);
}

.ws-sc-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 1em;
	margin: 0 0 10px;
	font-size: 15px;
}

.ws-sc-meta dt {
	font-weight: 600;
}

.ws-sc-meta dd {
	margin: 0;
}

.ws-sc-zeile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}

/* Mengenfeld wie in Weinliste und Kacheln (.ws-qty) */
.ws-sc-menge {
	display: inline-flex;
	align-items: stretch;
	width: 6.25em;
	border: 1px solid rgba(0, 0, 0, .2);
	background: #fff;
}

.ws-sc .ws-sc-menge button {
	flex: 0 0 2.1em;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font-size: 1.05em;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.ws-sc .ws-sc-menge button:hover {
	background: transparent;
	color: var(--ws-accent);
}

.ws-sc button:focus:not(:focus-visible) {
	outline: none;
}

.ws-sc .ws-sc-menge button:disabled {
	opacity: .35;
	cursor: default;
}

.ws-sc .ws-sc-menge input {
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: .45em 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 15px;
	text-align: center;
	-moz-appearance: textfield;
}

.ws-sc-menge input::-webkit-inner-spin-button,
.ws-sc-menge input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ws-sc-preis {
	font-weight: 600;
}

.ws-sc-preis small {
	display: block;
	font-size: 14px;
	font-weight: 400;
}

.ws-sc-weg {
	align-self: start;
	width: 28px;
	height: 28px;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ws-accent);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ws-sc-fuss {
	padding: 16px var(--ws-sc-rand) 24px;
	border-top: 1px solid #e6e6e6;
}

.ws-sc-summe {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 0;
	margin: 0 0 14px;
}

.ws-sc-summe dd {
	margin: 0;
	padding-left: 1em;
	text-align: right;
}

.ws-sc-summe .ws-sc-gesamt {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #c8c8c8;
	font-size: 18px;
	font-weight: 700;
}

.ws-sc-hinweis {
	margin: 12px var(--ws-sc-rand) 0;
	padding: 8px 12px;
	background: #f4f1ea;
	font-size: 14px;
}

.ws-sc-fuss .ws-sc-hinweis {
	margin: 0 0 12px;
}

.ws-sc-hinweis--fehler {
	background: #fbeceb;
	color: #8a1f17;
}

.ws-sc-recht {
	margin: 0 0 18px;
	font-size: 14px;
}

.ws-sc-recht a {
	color: var(--ws-accent);
}

.ws-sc-aktionen {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ws-sc-btn {
	display: block;
	padding: 12px 10px;
	border: 1px solid var(--ws-accent);
	border-radius: 3px;
	background: none;
	color: var(--ws-accent);
	font: inherit;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.ws-sc-btn:hover {
	background: rgba(0, 0, 0, .04);
}

.ws-sc-btn--kasse {
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
}

.ws-sc-btn--kasse:hover {
	background: var(--ws-accent);
	filter: brightness(1.1);
}

.ws-sc-leer {
	padding: 32px var(--ws-sc-rand);
	text-align: center;
}

.ws-sc-leer p {
	margin: 0 0 16px;
}

.ws-sc-leer .ws-sc-btn {
	display: inline-block;
	padding-inline: 24px;
}

@media (max-width: 480px) {
	.ws-sc {
		--ws-sc-rand: 16px;
		font-size: 15px;
	}

	.ws-sc-aktionen {
		grid-template-columns: 1fr;
	}
}

/* Suche: Lupe und Vollbild-Suchmaske ----------------------------------- */

button.ws-suche-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ws-accent);
	cursor: pointer;
}

button.ws-suche-btn:hover,
button.ws-suche-btn:focus {
	background: none;
	color: var(--ws-accent);
	opacity: .8;
}

/* Storefront: Lupe und Warenkorb nebeneinander rechts in der Menüzeile */
#site-header-cart .ws-kopf-symbole {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
}

html.ws-suche-offen {
	overflow: hidden;
}

.ws-suche {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: #1d1d1b;
	overflow-y: auto;
}

.ws-suche[open] {
	display: flex;
	flex-direction: column;
	animation: ws-sc-fade .25s ease;
}

.ws-suche::backdrop {
	background: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.ws-suche[open] { animation: none; }
}

.ws-suche *,
.ws-suche *::before,
.ws-suche *::after {
	box-sizing: border-box;
}

.ws-suche-oben {
	position: relative;
	display: flex;
	flex: 1 0 auto;
	align-items: center;
	min-height: 50%;
	padding: 110px 24px 70px;
}

.ws-suche-form {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.ws-suche .ws-suche-form input[type="search"] {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 0 .08em;
	border: 0;
	border-bottom: 4px solid var(--ws-accent);
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: clamp(42px, 8vw, 104px);
	font-weight: 300;
	line-height: 1.2;
	-webkit-appearance: none;
	appearance: none;
}

.ws-suche .ws-suche-form input[type="search"]:focus {
	outline: none;
}

.ws-suche .ws-suche-form input[type="search"]::placeholder {
	color: #e6e6e6;
	opacity: 1;
	text-transform: uppercase;
}

.ws-suche .ws-suche-form input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.ws-suche-tipp {
	margin: 14px 0 0;
	color: var(--ws-accent);
	font-size: 15px;
	font-weight: 600;
	text-align: right;
}

.ws-suche-zu {
	position: absolute;
	top: 40px;
	right: 48px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ws-accent);
	cursor: pointer;
}

.ws-suche button.ws-suche-zu:hover,
.ws-suche button.ws-suche-zu:focus {
	background: none;
}

.ws-suche-band {
	flex: 1 0 auto;
	min-height: 40%;
	padding: 90px 24px;
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
	font-size: 19px;
	line-height: 1.4;
}

.ws-suche-band-innen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px 48px;
	max-width: 900px;
	margin: 0 auto;
}

.ws-suche-band h2 {
	margin: 0 0 .8em;
	padding: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.ws-suche-band p {
	margin: 0;
}

.ws-suche-band a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Ohne Tastatur (Handy, Tablet) passt der Enter/ESC-Hinweis nicht. */
@media (hover: none) {
	.ws-suche-tipp {
		display: none;
	}
}

@media (max-width: 600px) {
	.ws-suche-oben {
		padding: 90px 16px 48px;
	}

	.ws-suche-zu {
		top: 16px;
		right: 12px;
	}

	.ws-suche-tipp {
		font-size: 14px;
		text-align: left;
	}

	.ws-suche-band {
		padding: 48px 16px;
		font-size: 17px;
	}
}

/* Großmenü (Menüpunkt mit Klasse „ws-megamenue“) ------------------------ */

.ws-mega-bildrahmen {
	display: none;
}

.ws-shop-auswahl {
	margin: 0 0 1.2em;
}

.ws-shop-auswahl a {
	color: var(--ws-accent);
}

@media (min-width: 768px) {
	/* Storefront: Panel über die ganze Inhaltsbreite */
	.storefront-primary-navigation .col-full {
		position: relative;
	}

	.main-navigation ul.menu > li.ws-megamenue,
	.main-navigation ul.nav-menu > li.ws-megamenue {
		position: static;
	}

	.main-navigation ul li.ws-megamenue > ul.sub-menu {
		left: -9999px;
		right: auto;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
		gap: 36px 28px;
		box-sizing: border-box;
		padding: 48px 56px 52px;
		background: #fff;
		box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
	}

	.main-navigation ul li.ws-megamenue:hover > ul.sub-menu,
	.main-navigation ul li.ws-megamenue.focus > ul.sub-menu,
	.main-navigation ul li.ws-megamenue:focus-within > ul.sub-menu {
		left: 0;
		right: 0;
		display: grid;
	}

	.main-navigation ul li.ws-megamenue > ul.sub-menu > li {
		display: block;
		float: none;
		min-width: 0;
	}

	.main-navigation ul li.ws-megamenue > ul.sub-menu > li > a {
		display: block;
		width: auto;
		padding: 0;
		background: none;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
	}

	.main-navigation ul li.ws-megamenue > ul.sub-menu > li > a::after {
		content: "";
		display: block;
		width: 100%;
		height: 1px;
		margin-top: 12px;
		float: none;
		background: var(--ws-accent);
	}

	.main-navigation ul li.ws-megamenue .ws-mega-bildrahmen {
		display: block;
		aspect-ratio: 3 / 2;
		margin-bottom: 22px;
		overflow: hidden;
		background: #f4f2ed;
	}

	.main-navigation ul li.ws-megamenue .ws-mega-bild {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .3s ease;
	}

	.main-navigation ul li.ws-megamenue .ws-mega-bild--flasche {
		padding: 10px 0;
		object-fit: contain;
	}

	.main-navigation ul li.ws-megamenue > ul.sub-menu > li > a:hover .ws-mega-bild {
		transform: scale(1.04);
	}

	.main-navigation ul li.ws-megamenue ul.sub-menu ul.sub-menu {
		position: static;
		left: auto;
		float: none;
		display: block;
		margin: 14px 0 0;
		padding: 0;
		background: none;
		box-shadow: none;
	}

	.main-navigation ul li.ws-megamenue ul.sub-menu ul.sub-menu li a {
		width: auto;
		padding: 5px 0;
		background: none;
		font-size: 14px;
	}

	.main-navigation ul li.ws-megamenue ul.sub-menu li > a:hover,
	.main-navigation ul li.ws-megamenue ul.sub-menu li:hover > a {
		background: none;
		color: var(--ws-accent);
	}
}

/* Großmenü in Divis Menü-Modul (Menüpunkt mit „ws-megamenue“ und Divis „mega-menu“) */
@media (min-width: 981px) {
	/* Panel über die ganze Breite des Abschnitts statt nur über das Menü-Modul */
	.et_pb_section:has(.et_pb_menu li.ws-megamenue) :is(.et_pb_row, .et_pb_column, .et_pb_menu, .et_pb_menu_inner_container, .et_pb_menu__wrap, .et_pb_menu__menu, nav, ul.et-menu, li.ws-megamenue) {
		position: static !important; /* Divi setzt position: relative auf Zeilen mit hoher Spezifität */
	}

	/* Abschnitt mit dem Menü über den Seiteninhalt legen */
	.et_pb_section:has(.et_pb_menu li.ws-megamenue) {
		z-index: 1000;
	}

	.et_pb_menu .et-menu li.ws-megamenue > ul.sub-menu {
		left: 0 !important;
		right: 0;
		top: 100%;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
		gap: 36px 28px;
		box-sizing: border-box;
		width: auto !important;
		padding: 48px max(5%, calc((100% - 1180px) / 2)) 52px;
		border-top: 0;
		background: #fff;
		box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
	}

	/* Unsichtbare Brücke vom Menüpunkt bis zum Panel, sonst schließt es auf dem Weg nach unten (Höhe misst weingut-shop.js) */
	.et_pb_menu .et-menu li.ws-megamenue > a::before {
		content: "";
		position: absolute;
		top: 100%;
		left: -12px;
		right: -12px;
		height: var(--ws-mega-luecke, 0px);
	}

	.et_pb_menu .et-menu li.ws-megamenue > ul.sub-menu > li {
		float: none;
		width: auto;
		margin: 0;
		padding: 0;
	}

	.et_pb_menu .et-menu li.ws-megamenue > ul.sub-menu::before,
	.et_pb_menu .et-menu li.ws-megamenue > ul.sub-menu::after {
		display: none;
	}

	/* Divi setzt Links im Dropdown auf feste 200 px Breite */
	.et_pb_menu .et-menu li.ws-megamenue ul.sub-menu li a {
		width: auto !important;
	}

	.et_pb_menu .et-menu li.ws-megamenue > ul.sub-menu > li > a {
		display: block;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
	}

	.et_pb_menu .et-menu li.ws-megamenue > ul.sub-menu > li > a::after {
		content: "";
		position: static;
		display: block;
		width: 100%;
		height: 1px;
		margin-top: 12px;
		background: var(--ws-accent);
		transform: none;
	}

	.et_pb_menu .et-menu li.ws-megamenue .ws-mega-bildrahmen {
		display: block;
		aspect-ratio: 3 / 2;
		margin-bottom: 22px;
		overflow: hidden;
		background: #f4f2ed;
	}

	.et_pb_menu .et-menu li.ws-megamenue .ws-mega-bild {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .3s ease;
	}

	.et_pb_menu .et-menu li.ws-megamenue .ws-mega-bild--flasche {
		padding: 10px 0;
		object-fit: contain;
	}

	.et_pb_menu .et-menu li.ws-megamenue > ul.sub-menu > li > a:hover .ws-mega-bild {
		transform: scale(1.04);
	}

	.et_pb_menu .et-menu li.ws-megamenue ul.sub-menu ul.sub-menu {
		position: static;
		display: block;
		width: auto;
		margin: 14px 0 0;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: inherit;
	}

	.et_pb_menu .et-menu li.ws-megamenue ul.sub-menu ul.sub-menu li {
		display: block;
		float: none !important;
		width: auto !important;
		padding: 0;
	}

	.et_pb_menu .et-menu li.ws-megamenue ul.sub-menu ul.sub-menu li a {
		width: auto;
		padding: 5px 0;
		font-size: 14px;
	}

	.et_pb_menu .et-menu li.ws-megamenue ul.sub-menu li a:hover {
		background: none;
		color: var(--ws-accent);
		opacity: 1;
	}
}

/* Geschenkgutschein: Betrag und Widmung auf der Produktseite */
.single-product div.product form.cart:has(.ws-gutschein-felder) {
	max-width: 420px;
}

.single-product div.product form.cart:has(.ws-gutschein-felder) .quantity,
.single-product div.product form.cart:has(.ws-gutschein-felder) .single_add_to_cart_button {
	max-width: 240px;
}

.ws-gutschein-felder fieldset {
	background: none;
}

.ws-gutschein-felder {
	flex: 1 0 100%;
	width: 100%;
	margin: 0 0 1.2em;
}

.ws-gutschein-felder fieldset {
	margin: 0 0 1.2em;
	padding: 0;
	border: 0;
}

.ws-gutschein-felder legend {
	margin: 0 0 .5em;
	padding: 0;
	font-weight: 700;
}

.ws-gutschein-felder legend span {
	font-weight: 400;
	opacity: .7;
}

.ws-gutschein-vorschlaege {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin: 0 0 .8em;
}

.ws-gutschein-vorschlaege button {
	min-width: 4.5em;
	margin: 0;
	padding: .55em 1em;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 3px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.ws-gutschein-vorschlaege button[aria-pressed="true"] {
	border-color: var(--ws-accent);
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
}

.ws-gutschein-felder label {
	display: block;
	margin: 0 0 .6em;
}

.ws-gutschein-felder label > span:first-child {
	display: block;
	margin-bottom: .25em;
	font-size: .9em;
}

.ws-gutschein-eingabe {
	display: inline-flex;
	align-items: center;
	gap: .4em;
}

.ws-gutschein-felder input[type="number"] {
	width: 7em;
}

.ws-gutschein-felder input[type="text"],
.ws-gutschein-felder textarea {
	width: 100%;
	max-width: 28em;
}

.ws-gutschein-grenzen {
	margin: 0;
	font-size: .85em;
	opacity: .7;
}

/* Gutschein-Guthaben prüfen ([weingut_gutschein_pruefen]) */
.ws-gs-pruefen {
	max-width: 420px;
	margin: 2em 0 0;
	padding: 1.2em 0 0;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

.ws-gs-pruefen label {
	display: block;
	margin: 0 0 .5em;
	font-weight: 700;
}

.ws-gs-zeile {
	display: flex;
	gap: .5em;
}

.ws-gs-zeile input {
	flex: 1;
	min-width: 0;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ws-gs-zeile .button {
	flex: 0 0 auto;
	margin: 0;
}

.ws-gs-ergebnis {
	margin: .8em 0 0;
	padding: .6em .8em;
	background: #eef5ec;
}

.ws-gs-ergebnis--fehler {
	background: #fbeceb;
	color: #8a1f17;
}

/* Kasse: Abholung im Weingut */
.ws-abholung,
.ws-liefertour {
	clear: both;
	margin: 1.5em 0 0;
	padding: 1.2em 1.2em .4em;
	border: 1px solid rgba(0, 0, 0, .12);
	background: #faf9f6;
}

.ws-abholung[hidden],
.ws-liefertour[hidden] {
	display: none;
}

.ws-abholung h3,
.ws-liefertour h3 {
	margin: 0 0 .5em;
}

.ws-abholung-info,
.ws-abholung-hinweis,
.ws-liefertour-info,
.ws-liefertour-hinweis {
	clear: both;
	margin: 0 0 1em;
	font-size: .92em;
}

/* EU-Gewährleistungshinweis an der Kasse: volle Grafik, aber nie breiter als die Spalte */
.wc-gzd-legal-guarantee-checkout {
	max-width: 380px;
	margin: 0 0 1.2em;
}

.wc-gzd-legal-guarantee-checkout img,
.wc-gzd-legal-guarantee-checkout svg,
.wc-gzd-legal-guarantee-checkout .wc-gzd-legal-guarantee-label-image {
	display: block;
	width: 100% !important; /* Germanized legt 500 px fest */
	max-width: 100% !important;
	height: auto !important;
}

/* Gewährleistungshinweis als Link: Fenster mit der Grafik mittig. Germanizeds Zentrierung greift u. a. unter Divi
   nicht (Fenster klebt links oben, ohne Hintergrund). Die Grafik ist Hochformat (1:1,41) – Breite so, dass sie
   samt Rand und Beschriftung ganz ins Fenster passt. */
body .wc-gzd-popover:popover-open:not(.wc-gzd-popover-hover) {
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	width: min(600px, calc(100vw - 2rem), calc((100vh - 7rem) * .707));
	max-width: none;
	max-height: calc(100vh - 2rem);
	margin: 0;
	padding: 1rem;
	overflow: auto;
	border: 0;
	border-radius: 1rem;
	background: #fff;
	color: #000;
}

body .wc-gzd-popover:popover-open:not(.wc-gzd-popover-hover) .wc-gzd-popover-content img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none;
	min-height: 0;
}

/* Gewährleistungshinweis als Button in der Akzentfarbe: Germanized-Link an Kasse und Warenkorb (nicht im Footer)
   und eigener Button unter der Vorschau im Warenkorb. Schild-Icon als Maske, damit es die Schriftfarbe übernimmt. */
.ws-gewaehr-button,
.woocommerce .wc-gzd-legal-guarantee-label-link > a.wc-gzd-popover-trigger {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .6em 1.2em;
	border: 0;
	border-radius: 999px;
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff) !important;
	font-size: .95em;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .15s ease;
}

.ws-gewaehr-button::before,
.woocommerce .wc-gzd-legal-guarantee-label-link > a.wc-gzd-popover-trigger::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ws-gewaehr-trigger:hover .ws-gewaehr-button,
.woocommerce .wc-gzd-legal-guarantee-label-link > a.wc-gzd-popover-trigger:hover {
	filter: brightness(.9);
}

.ws-gewaehr-trigger:focus-visible,
.woocommerce .wc-gzd-legal-guarantee-label-link > a.wc-gzd-popover-trigger:focus-visible {
	outline: 2px solid var(--ws-accent);
	outline-offset: 3px;
}

.woocommerce .wc-gzd-legal-guarantee-label-link {
	margin: .25em 0 1em;
}

/* Warenkorb: Vorschau 200 px, darunter der Button; ein Klick auf beides öffnet die volle Grafik */
.ws-gewaehr {
	clear: both;
	margin: 1.5em 0;
}

.ws-gewaehr-trigger {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .75em;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.ws-gewaehr-vorschau {
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
	border: 1px solid rgba(0, 0, 0, .15);
}

.ws-gewaehr-dialog {
	box-sizing: border-box;
	width: min(600px, calc(100vw - 2rem), calc((100vh - 7rem) * .707));
	max-width: none;
	max-height: calc(100vh - 2rem);
	padding: 1rem;
	overflow: auto;
	border: 0;
	border-radius: 1rem;
	background: #fff;
	color: #000;
}

.ws-gewaehr-dialog::backdrop {
	background: rgba(0, 0, 0, .7);
}

.ws-gewaehr-dialog img {
	display: block;
	width: 100%;
	height: auto;
}

.ws-gewaehr-schliessen {
	float: right;
	width: 44px;
	height: 44px;
	margin: -.5rem -.5rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* Newsletter: Formular [weingut_newsletter] und Checkbox an der Kasse */
.ws-newsletter {
	max-width: 560px;
}

.ws-nl-titel {
	margin: 0 0 .4em;
	font-weight: 700;
}

.ws-nl-felder {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin: 0 0 .6em;
}

.ws-nl-felder label {
	flex: 1 1 180px;
	min-width: 0;
}

.ws-nl-felder input {
	width: 100%;
}

.ws-nl-felder .button {
	flex: 0 0 auto;
	margin: 0;
}

.ws-nl-ok {
	display: flex;
	gap: .5em;
	align-items: flex-start;
	font-size: .9em;
}

.ws-nl-ok input {
	margin-top: .25em;
}

.ws-nl-web {
	position: absolute;
	left: -9999px;
}

.ws-nl-meldung {
	margin: .6em 0 0;
	padding: .5em .8em;
	background: #eef5ec;
}

.ws-nl-meldung--fehler {
	background: #fbeceb;
	color: #8a1f17;
}

.ws-newsletter-checkbox {
	clear: both;
	font-size: .92em;
}

/* Hinweisleiste (Einstellungen → Weingut → Hinweisleiste) */
.ws-hinweis {
	position: relative;
	z-index: 100;
	background: var(--ws-h-bg);
	color: var(--ws-h-fg);
	font-size: 15px;
	line-height: 1.4;
}

.ws-hinweis[hidden] {
	display: none;
}

.ws-hinweis-innen {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 9px 48px;
	text-align: center;
}

.ws-hinweis-texte {
	min-width: 0;
}

.ws-hinweis .ws-hinweis-text {
	margin: 0;
	padding: 0; /* Divi gibt Absätzen unten 1em, dann sitzt der Text höher als die Pfeile */
}

.ws-hinweis a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ws-hinweis button {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.ws-hinweis button:hover {
	background: rgba(127, 127, 127, .18);
	color: inherit;
}

.ws-hinweis button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.ws-hinweis .ws-hinweis-zu {
	position: absolute;
	top: 50%;
	right: max(8px, env(safe-area-inset-right, 0px));
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.ws-hinweis {
		font-size: 14px;
	}

	.ws-hinweis-innen {
		padding: 8px 40px 8px 8px;
	}
}

/* -------------------------------------------------------------------------
 * Probierpaket selbst zusammenstellen
 * ---------------------------------------------------------------------- */

.ws-probier {
	width: 100%;
	margin: 0 0 1.2em;
}

.ws-probier fieldset {
	margin: 0 0 1em;
	padding: 0;
	border: 0;
}

.ws-probier legend {
	margin: 0 0 .5em;
	padding: 0;
	font-weight: 700;
}

.ws-probier-groessen {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.ws-probier-groessen label {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.ws-probier-groessen input {
	position: absolute;
	opacity: 0;
}

.ws-probier-groessen span {
	display: inline-block;
	padding: .55em 1.1em;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 3px;
	background: #fff;
	font-weight: 600;
}

.ws-probier-groessen input:checked + span {
	border-color: var(--ws-accent);
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
}

.ws-probier-groessen input:focus-visible + span {
	outline: 2px solid var(--ws-accent);
	outline-offset: 2px;
}

.ws-probier-liste {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(0, 0, 0, .12);
}

.ws-probier-wein {
	display: grid;
	grid-template-columns: 3em 1fr auto 7.5em;
	gap: .4em 1em;
	align-items: center;
	margin: 0;
	padding: .7em 0;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.ws-probier-bild img {
	display: block;
	width: 3em;
	height: 4.5em;
	object-fit: contain;
}

.ws-probier-text {
	display: flex;
	flex-direction: column;
	gap: .1em;
	min-width: 0;
	font-size: .9em;
	line-height: 1.35;
}

.ws-probier-name {
	font-weight: 700;
	text-decoration: none;
}

.ws-probier-kopf,
.ws-probier-facts {
	opacity: .75;
}

.ws-probier-text .ws-nw-link {
	align-self: flex-start;
	font-size: .9em;
}

.ws-probier-einzel {
	white-space: nowrap;
}

.ws-probier .ws-probier-menge {
	margin: 0;
}

.ws-probier .ws-qty-btn:disabled {
	opacity: .3;
	cursor: default;
}

/* Hinweis über der Weinliste, bleibt beim Scrollen durch die Liste oben stehen */
.ws-probier-hinweis {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + .75em);
	z-index: 2;
	width: fit-content;
	margin: .2em 0 .6em;
	padding: .45em 1em;
	border-radius: 999px;
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
	font-size: .85em;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.ws-probier.is-zuviel .ws-probier-hinweis {
	background: #b32d2e;
	color: #fff;
}

.ws-probier-summe {
	margin: 1em 0 0;
	padding: 1em 1.2em;
	background: rgba(0, 0, 0, .04);
}

.ws-probier-stand {
	margin: 0 0 .6em;
}

.ws-probier-fehlt {
	opacity: .75;
}

.ws-probier.is-komplett .ws-probier-fehlt {
	color: var(--ws-accent);
	opacity: 1;
	font-weight: 600;
}

.ws-probier.is-zuviel .ws-probier-fehlt {
	color: #b32d2e;
	opacity: 1;
}

.ws-probier-summe dl {
	margin: 0;
}

.ws-probier-summe dl > div {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: .15em 0;
}

.ws-probier-summe dt,
.ws-probier-summe dd {
	margin: 0;
	font-weight: 400;
}

.ws-probier-gesamt {
	margin-top: .3em;
	padding-top: .4em !important;
	border-top: 1px solid rgba(0, 0, 0, .15);
	font-size: 1.15em;
}

.ws-probier-gesamt dt,
.ws-probier-gesamt dd {
	font-weight: 700;
}

.single-product div.product form.cart:has(.ws-probier) {
	display: block;
	max-width: none;
}

.single-product div.product form.cart .ws-probier ~ .single_add_to_cart_button {
	width: 100%;
	float: none;
}

.single_add_to_cart_button.disabled {
	opacity: .5;
	cursor: not-allowed;
}

@media (max-width: 600px) {
	.ws-probier-wein {
		grid-template-columns: 3em 1fr auto;
	}
	.ws-probier-menge {
		grid-column: 2 / -1;
		max-width: 9em;
	}
}

/* Liefertouren */
.ws-touren-tabelle td,
.ws-touren-tabelle th {
	text-align: left;
	vertical-align: top;
}

/* Smoobu ([weingut_smoobu]) */
.ws-smoobu {
	margin: 1em 0;
}
.ws-smoobu__start {
	padding: 1.25em;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 4px;
}
.ws-smoobu__start > :last-child {
	margin-bottom: 0;
}
.ws-smoobu__laden {
	display: inline-block;
	margin: 0 0 .9em;
	padding: .75em 1.4em;
	border: 0;
	border-radius: 3px;
	background: var(--ws-accent, #8c7a4b);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.ws-smoobu__laden:hover,
.ws-smoobu__laden:focus-visible {
	filter: brightness(1.1);
}
.ws-smoobu__laden:focus-visible,
.ws-smoobu summary:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}
.ws-smoobu__hinweis {
	font-size: .85em;
	opacity: .85;
}
.ws-smoobu__extern {
	font-size: .9em;
}
.ws-smoobu__frame {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 640px;
	border: 0;
	background: #fff;
}
.ws-smoobu--geladen .ws-smoobu__extern {
	margin-top: .6em;
}
.ws-smoobu--kalender {
	border-top: 1px solid currentColor;
	border-top-color: color-mix(in srgb, currentColor 25%, transparent);
}
.ws-smoobu--kalender:last-of-type {
	border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}
.ws-smoobu--kalender summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .25em 1em;
	padding: .8em 0;
	cursor: pointer;
	list-style: none;
}
.ws-smoobu--kalender summary::-webkit-details-marker {
	display: none;
}
.ws-smoobu__titel {
	font-weight: 600;
}
.ws-smoobu__aktion {
	text-decoration: underline;
}
.ws-smoobu__auf,
.ws-smoobu--kalender[open] .ws-smoobu__zu {
	display: none;
}
.ws-smoobu--kalender[open] .ws-smoobu__auf {
	display: inline;
}
.ws-smoobu--kalender .ws-smoobu__frame {
	height: 600px;
}
/* Smoobu zeigt auf schmalen Bildschirmen zwei Monate untereinander. */
@media (max-width: 767px) {
	.ws-smoobu--kalender .ws-smoobu__frame {
		height: 780px;
	}
}

/* Testshop-Modus: fester Hinweis unten */
.ws-testmodus {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	padding: .55em 1em;
	background: #b3261e;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
}
.ws-testmodus p {
	margin: 0;
	padding: 0;
	color: inherit;
}
.ws-testmodus a {
	margin-left: .5em;
	color: inherit;
	text-decoration: underline;
}
.ws-testmodus a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
body.ws-testmodus-aktiv {
	padding-bottom: 2.6em;
}

/* -------------------------------------------------------------------------
 * Danke-Seite und Kundenkonto (Einstellung „Danke-Seite und Kundenkonto“)
 * ---------------------------------------------------------------------- */

.ws-kb {
	--ws-kb-linie: rgba(0, 0, 0, .12);
	--ws-kb-flaeche: color-mix(in srgb, var(--ws-accent) 6%, transparent);
	--ws-kb-radius: 8px;
}

/* Danke-Seite (Listen-Abstände mit !important, weil Divi Listen per #left-area einrückt) */
.ws-kb .woocommerce-order .woocommerce-thankyou-order-received {
	margin: 0 0 1.2em;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ws-accent);
	font-size: 1.6em;
	font-weight: 600;
	line-height: 1.25;
}
.ws-kb .woocommerce-order .woocommerce-thankyou-order-received::before {
	content: none;
}
.ws-danke-unterzeile {
	display: block;
	margin-top: .3em;
	color: inherit;
	font-size: .6em;
	font-weight: 400;
	opacity: .85;
}
.ws-kb .woocommerce-order ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(130px, 40%), 1fr));
	gap: .6em;
	margin: 0 0 1.5em !important;
	padding: 0 !important;
	list-style: none !important;
}
.ws-kb .woocommerce-order ul.woocommerce-order-overview::before,
.ws-kb .woocommerce-order ul.woocommerce-order-overview::after {
	content: none;
}
.ws-kb .woocommerce-order ul.woocommerce-order-overview li {
	float: none;
	margin: 0 !important;
	padding: .7em .9em !important;
	border: 1px solid var(--ws-kb-linie) !important;
	border-radius: var(--ws-kb-radius) !important;
	font-size: .8em;
	line-height: 1.4;
	text-transform: none;
	list-style: none !important;
}
.ws-kb .woocommerce-order ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: .2em;
	font-size: 1.25em;
	text-transform: none;
	word-break: break-word;
}
.ws-danke {
	margin: 0 0 2em;
	padding: 1.2em 1.4em;
	border-left: 4px solid var(--ws-accent);
	border-radius: 0 var(--ws-kb-radius) var(--ws-kb-radius) 0;
	background: var(--ws-kb-flaeche);
}
.ws-danke .ws-danke-titel {
	margin: 0 0 .6em;
	padding: 0;
	font-size: 1.2em;
}
.ws-danke-schritte {
	margin: 0 0 1em !important;
	padding: 0 !important;
	list-style: none !important;
	counter-reset: ws-schritt;
}
.ws-danke-schritte li {
	position: relative;
	margin: 0 0 .7em !important;
	padding: 0 0 0 2.2em !important;
	line-height: 1.5;
	list-style: none !important;
	counter-increment: ws-schritt;
}
.ws-danke-schritte li::before {
	content: counter(ws-schritt);
	position: absolute;
	top: 0;
	left: 0;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
	font-size: .9em;
	font-weight: 600;
	line-height: 1.5em;
	text-align: center;
}
.ws-danke-adresse {
	display: block;
	opacity: .8;
}
.ws-danke-kontakt {
	margin: 0 0 1em;
	padding: 0;
}
.ws-danke-knoepfe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6em 1.4em;
	margin: 0;
	padding: 0;
}
.ws-danke-konto {
	color: var(--ws-accent);
}

/* Kundenkonto: Menü links, Inhalt rechts */
.ws-kb .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
	gap: 2.5em;
	align-items: start;
}
.ws-kb .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.ws-kb .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
	content: none;
}
.ws-kb .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}
/* doppelte Klasse .woocommerce: schlägt .woocommerce-account …{width:30%/68%} aus woocommerce-layout.css */
.ws-kb .woocommerce .woocommerce-MyAccount-navigation,
.ws-kb .woocommerce .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	margin: 0;
}
.ws-kb .woocommerce-MyAccount-navigation ul {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
}
.ws-kb .woocommerce-MyAccount-navigation li {
	margin: 0 0 2px !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
}
.ws-kb .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: .55em .9em;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
}
.ws-kb .woocommerce-MyAccount-navigation li a:hover,
.ws-kb .woocommerce-MyAccount-navigation li a:focus-visible {
	background: var(--ws-kb-flaeche);
	color: var(--ws-accent);
}
.ws-kb .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--ws-accent);
	color: var(--ws-accent-fg, #fff);
}
.ws-kb .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: .8em !important;
	padding-top: .8em !important;
	border-top: 1px solid var(--ws-kb-linie) !important;
}

/* Schnellzugriffe auf der Übersicht */
.ws-konto-kacheln {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: .9em;
	margin: 1.5em 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.ws-konto-kacheln li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.ws-konto-kacheln a {
	display: block;
	height: 100%;
	padding: 1em 1.1em;
	border: 1px solid var(--ws-kb-linie);
	border-radius: var(--ws-kb-radius);
	color: inherit;
	text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.ws-konto-kacheln a:hover,
.ws-konto-kacheln a:focus-visible {
	border-color: var(--ws-accent);
	background: var(--ws-kb-flaeche);
}
.ws-konto-kacheln strong {
	display: block;
	margin-bottom: .25em;
	color: var(--ws-accent);
}
.ws-konto-kacheln span {
	display: block;
	font-size: .9em;
	opacity: .8;
}

/* Anmelden und Registrieren als Karten */
.ws-kb .woocommerce .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2em;
	width: auto;
}
.ws-kb .woocommerce .u-columns.col2-set::before,
.ws-kb .woocommerce .u-columns.col2-set::after {
	content: none;
}
.ws-kb .woocommerce .u-columns.col2-set > .u-column1,
.ws-kb .woocommerce .u-columns.col2-set > .u-column2 {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 1.6em;
	border: 1px solid var(--ws-kb-linie);
	border-radius: var(--ws-kb-radius);
}
.ws-kb .woocommerce .u-columns.col2-set form.woocommerce-form,
.ws-kb .woocommerce > form.woocommerce-form-login,
.ws-kb .woocommerce > form.woocommerce-ResetPassword,
.ws-kb .woocommerce > form.lost_reset_password {
	margin: 0;
	padding: 0;
	border: 0;
}
.ws-kb .woocommerce > form.woocommerce-form-login,
.ws-kb .woocommerce > form.woocommerce-ResetPassword,
.ws-kb .woocommerce > form.lost_reset_password {
	max-width: 480px;
	margin: 0 auto;
	padding: 1.6em;
	border: 1px solid var(--ws-kb-linie);
	border-radius: var(--ws-kb-radius);
}
.ws-kb .woocommerce .u-columns.col2-set h2,
.ws-kb .woocommerce > h2 {
	margin-top: 0;
	font-size: 1.3em;
}
.ws-kb .woocommerce-form-login .woocommerce-form-login__rememberme {
	display: block;
	margin: 0 0 .8em;
}

@media (max-width: 780px) {
	.ws-kb .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5em;
	}
	.ws-kb .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: .4em;
		padding-bottom: .3em;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.ws-kb .woocommerce-MyAccount-navigation li {
		flex: none;
		margin: 0;
	}
	.ws-kb .woocommerce-MyAccount-navigation li a {
		border: 1px solid var(--ws-kb-linie);
		white-space: nowrap;
	}
	.ws-kb .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0 !important;
		padding-top: 0 !important;
		border-top: 0 !important;
	}
}

/* Befristete Angebote */
.ws-angebot {
	margin: .35em 0;
	font-size: .875em;
	line-height: 1.4;
}

.ws-angebot--bald {
	font-weight: 600;
}

.ws-angebot[hidden],
.ws-angebot-uhr[hidden] {
	display: none;
}

.ws-angebot-uhr {
	margin-left: .35em;
	font-variant-numeric: tabular-nums;
}

.ws-angebot-uhr::before {
	content: "· ";
}

.ws-angebot--demnaechst .woocommerce-Price-amount {
	font-weight: 600;
}

/* Kasse, Abholung: Kalender für den Wunschtermin (ersetzt das Browser-Datumsfeld, siehe weingut-shop.js) */
.ws-datum-zeile {
	position: relative;
}

.ws-datum-knopf {
	display: block;
	width: 100%;
	min-height: 48px;
	padding-right: 44px !important;
	text-align: left;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23555' stroke-width='1.4' stroke-linecap='round'%3E%3Crect x='2.5' y='3.5' width='11' height='10'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	background-size: 16px 16px !important;
}

.ws-datum-knopf.ist-leer {
	color: color-mix(in srgb, currentColor 55%, transparent);
}

.ws-kalender {
	position: absolute;
	z-index: 50;
	top: calc(100% - 4px);
	left: 0;
	width: 300px;
	max-width: calc(100vw - 32px);
	padding: 14px;
	border: 1px solid rgba(0, 0, 0, .14);
	background: #fff;
	color: inherit;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.ws-kalender[hidden] {
	display: none;
}

.ws-kalender-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.ws-kalender-kopf strong {
	font-weight: 600;
}

.ws-kalender button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	box-shadow: none;
	cursor: pointer;
}

.ws-kalender .ws-kalender-pfeil {
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
}

.ws-kalender .ws-kalender-pfeil:hover:not([disabled]) {
	background: rgba(0, 0, 0, .06);
}

.ws-kalender .ws-kalender-pfeil[disabled] {
	opacity: .25;
	cursor: default;
}

.ws-kalender-raster {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.ws-kalender-wt {
	padding: 4px 0;
	font-size: .8em;
	text-align: center;
	opacity: .6;
}

.ws-kalender .ws-kalender-tag {
	aspect-ratio: 1;
	padding: 0;
	font-size: .92em;
	text-align: center;
}

.ws-kalender .ws-kalender-tag:hover:not([disabled]) {
	background: rgba(0, 0, 0, .06);
}

.ws-kalender .ws-kalender-tag.ist-heute {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ws-kalender .ws-kalender-tag.ist-gewaehlt {
	background: var(--ws-accent, #333);
	color: var(--ws-accent-fg, #fff);
}

.ws-kalender .ws-kalender-tag[disabled] {
	opacity: .28;
	cursor: default;
}

.ws-kalender .ws-kalender-tag.ist-fremd {
	visibility: hidden;
}

.ws-kalender .ws-kalender-tag:focus-visible,
.ws-kalender .ws-kalender-pfeil:focus-visible {
	outline: 2px solid var(--ws-accent, #333);
	outline-offset: -2px;
}

.ws-kalender-fuss {
	margin: 10px 0 0;
	font-size: .78em;
	opacity: .7;
}

/* Schmale Bildschirme: Wunschtermin und Uhrzeit untereinander statt gequetscht nebeneinander */
@media (max-width: 600px) {
	.woocommerce form .ws-abholung .form-row-first,
	.woocommerce form .ws-abholung .form-row-last {
		float: none;
		width: 100%;
	}
}
