/* Modul Weinfinder. Farbe und Schrift kommen von der Seite (--ws-accent, Theme). Überschreibbar per --wf-… an .ws-finder. */
.ws-finder,
.ws-finder-kopf,
.ws-finder-fuss {
	--wf-akzent: var(--ws-accent, #8c7a4b);
	--wf-auf-akzent: var(--ws-accent-fg, #fff);
	--wf-papier: #f5f5f0;
	--wf-flaeche: #fff;
	--wf-boden: color-mix(in srgb, var(--wf-akzent) 16%, #efefea);
	--wf-tinte: #17170f;
	--wf-grau: #56574c;
	--wf-linie: #d5d6ca;
	--wf-fehler: #9c2a1c;
	--wf-kurve: cubic-bezier(.22, 1, .36, 1);
	--wf-rand: clamp(16px, 4vw, 40px);
}
.ws-finder {
	position: relative;
	background: var(--wf-papier);
	color: var(--wf-tinte);
	font-size: 16px;
	line-height: 24px;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
.ws-finder *, .ws-finder *::before, .ws-finder *::after { box-sizing: border-box; }
.ws-finder [hidden] { display: none !important; }
.ws-finder :is(h1, h2, h3, p, ul, li, dl, label) { margin: 0; padding: 0; }
.ws-finder :is(h1, h2, h3) { color: inherit; text-wrap: balance; letter-spacing: -.02em; font-weight: 700; text-transform: none; }
.ws-finder p { text-wrap: pretty; }
.ws-finder ul { list-style: none; }
.ws-finder :is(button, input) { font: inherit; letter-spacing: normal; text-transform: none; }
.ws-finder button { cursor: pointer; color: inherit; }
.ws-finder :focus-visible { outline: 3px solid var(--wf-tinte); outline-offset: 3px; }
.ws-finder [tabindex="-1"]:focus { outline: none; }
.ws-finder-ersatz { max-width: 900px; margin: 0 auto !important; padding: 24px var(--wf-rand) !important; text-align: center; }

/* Knöpfe */
.ws-finder .ws-finder-knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 0;
	border-radius: 9999px;
	background: var(--wf-akzent);
	color: var(--wf-auf-akzent);
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .3s var(--wf-kurve), transform .3s var(--wf-kurve);
}
.ws-finder .ws-finder-knopf:hover { background: color-mix(in srgb, var(--wf-akzent) 86%, #fff); color: var(--wf-auf-akzent); }
.ws-finder .ws-finder-knopf:active { transform: scale(.98); }
.ws-finder .ws-finder-knopf[disabled] { background: var(--wf-linie); color: var(--wf-grau); cursor: not-allowed; }
.ws-finder .ws-finder-knopf--gross { min-height: 56px; padding: 16px 32px; font-size: 18px; }
.ws-finder .ws-finder-knopf--leise { background: transparent; color: var(--wf-tinte); box-shadow: inset 0 0 0 1.5px var(--wf-tinte); }
.ws-finder .ws-finder-knopf--leise:hover { background: var(--wf-flaeche); color: var(--wf-tinte); }
.ws-finder .ws-finder-link { border: 0; background: none; padding: 12px 0; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--wf-akzent); text-decoration-thickness: 2px; }
.ws-finder .ws-finder-link:hover { text-decoration-color: currentColor; }

/* Start und Fragen */
.ws-finder-spiel { min-height: var(--wf-hoehe, max(640px, calc(100svh - 200px))); display: flex; flex-direction: column; }
.ws-finder-inhalt { width: 100%; max-width: 1080px; margin-inline: auto; padding: clamp(16px, 4svh, 48px) var(--wf-rand) 24px; text-align: center; }
.ws-finder-punkte { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 16px; }
.ws-finder-punkte span { width: 10px; height: 10px; border-radius: 50%; background: var(--wf-linie); }
.ws-finder-punkte .ist-voll { background: var(--wf-akzent); }
.ws-finder-punkte .ist-jetzt { background: var(--wf-tinte); transform: scale(1.2); }
.ws-finder .ws-finder-start h1 { max-width: 12em; margin-inline: auto; font-size: clamp(40px, 7vw, 80px); line-height: 1; letter-spacing: -.035em; }
.ws-finder .ws-finder-text { max-width: 560px; margin: 16px auto 24px; font-size: 18px; line-height: 28px; color: var(--wf-grau); }
.ws-finder .ws-finder-klein { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--wf-grau); }
.ws-finder .ws-finder-frage h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; }
.ws-finder .ws-finder-hinweiszeile { margin-top: 8px; color: var(--wf-grau); }
.ws-finder-antworten { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.ws-finder .ws-finder-antwort { min-width: 176px; min-height: 56px; padding: 12px 24px; border: 0; border-radius: 20px; background: var(--wf-flaeche); box-shadow: inset 0 0 0 1.5px var(--wf-linie); text-align: center; line-height: 24px; transition: background-color .3s var(--wf-kurve), box-shadow .3s var(--wf-kurve), transform .3s var(--wf-kurve); }
.ws-finder .ws-finder-antwort:hover { box-shadow: inset 0 0 0 2px var(--wf-akzent); }
.ws-finder .ws-finder-antwort:active { transform: scale(.98); }
.ws-finder .ws-finder-antwort b { display: block; font-weight: 600; }
.ws-finder .ws-finder-antwort small { display: block; font-size: 14px; line-height: 20px; color: var(--wf-grau); }
.ws-finder .ws-finder-antwort[aria-pressed="true"] { background: var(--wf-tinte); color: #fff; box-shadow: none; }
.ws-finder .ws-finder-antwort[aria-pressed="true"] small { color: #d6d8c9; }
.ws-finder .ws-finder-antwort--farbe { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding-left: 16px; }
.ws-finder-klecks { flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(21, 22, 15, .12); }
.ws-finder-klecks--perlen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23fff'%3E%3Ccircle cx='11' cy='22' r='2.4'/%3E%3Ccircle cx='19' cy='17' r='1.8'/%3E%3Ccircle cx='13' cy='12' r='1.6'/%3E%3Ccircle cx='21' cy='25' r='1.6'/%3E%3Ccircle cx='20' cy='8' r='1.4'/%3E%3C/svg%3E"); }
.ws-finder-fusszeile { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 16px; min-height: 48px; }
.ws-finder-rein { animation: ws-finder-rein .6s var(--wf-kurve) both; }
@keyframes ws-finder-rein { from { opacity: 0; transform: translateY(24px); } }

/* Flaschenreihe */
.ws-finder-reihe { position: relative; flex: 1 0 clamp(180px, 34svh, 400px); overflow: hidden; }
.ws-finder-sonne { position: absolute; left: 50%; bottom: 56px; width: 100vmin; height: 100vmin; margin: 0 0 -50vmin -50vmin; border-radius: 50%; background: var(--wf-akzent); transform: scale(var(--sonne, .12)); transition: transform 1s var(--wf-kurve); }
.ws-finder-flaschen { position: absolute; inset: 0 0 56px; }
.ws-finder .ws-finder-flaschen img { position: absolute; left: 0; bottom: -2px; height: var(--h); max-width: none; transform-origin: 50% 100%; transition: transform .9s var(--wf-kurve), opacity .6s var(--wf-kurve); }
.ws-finder .ws-finder-flaschen img.ist-foto { height: auto; max-height: var(--h); bottom: 0; border-radius: 12px 12px 0 0; object-fit: cover; aspect-ratio: 3 / 4; }
.ws-finder .ws-finder-boden { position: absolute; inset: auto 0 0; height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--wf-boden); font-weight: 500; text-align: center; }

/* Ergebnis */
.ws-finder-ergebnis { max-width: 1240px; margin-inline: auto; padding: 24px var(--wf-rand) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); }
.ws-finder .ws-finder-ergebnis h2, .ws-finder .ws-finder-schluss h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; }
.ws-finder .ws-finder-grau { margin-top: 12px; max-width: 520px; color: var(--wf-grau); }
.ws-finder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ws-finder .ws-finder-chip { border: 0; border-radius: 9999px; min-height: 40px; padding: 8px 16px; background: var(--wf-flaeche); box-shadow: inset 0 0 0 1.5px var(--wf-linie); font-size: 14px; line-height: 20px; transition: box-shadow .3s var(--wf-kurve); }
.ws-finder .ws-finder-chip:hover { box-shadow: inset 0 0 0 2px var(--wf-akzent); }
.ws-finder .ws-finder-notiz { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--wf-boden); }
.ws-finder-buehne { position: relative; margin-top: 24px; height: clamp(240px, 40svh, 360px); overflow: hidden; border-radius: 28px; background: var(--wf-boden); }
.ws-finder-buehne-sonne { position: absolute; left: 50%; bottom: 24px; height: 150%; aspect-ratio: 1; transform: translate(-50%, 50%); border-radius: 50%; background: var(--wf-akzent); }
.ws-finder-buehne::after { content: ""; position: absolute; inset: auto 0 0; height: 24px; background: color-mix(in srgb, var(--wf-boden) 88%, #000); }
.ws-finder-buehne-flaschen { position: absolute; inset: 0 0 23px; z-index: 1; }
.ws-finder .ws-finder-buehne-flaschen img { position: absolute; height: var(--h); width: calc(var(--h) * var(--v, .23)); max-width: none; transform: translateX(-50%) scale(var(--k, 1)); transform-origin: 50% 100%; animation: ws-finder-steigt .8s var(--wf-kurve) both; animation-delay: calc(var(--i) * 60ms); }
.ws-finder .ws-finder-buehne-flaschen img.ist-foto { width: calc(var(--h) * .24); height: calc(var(--h) * .34); object-fit: cover; border-radius: 8px 8px 0 0; }
.ws-finder-buehne-flaschen.ist-ruhig img { animation: none !important; }
@keyframes ws-finder-steigt { from { opacity: 0; translate: 0 48px; } }
.ws-finder-groesse { display: flex; gap: 8px; margin-bottom: 8px; }
.ws-finder .ws-finder-groesse button { flex: 1; min-height: 48px; border: 0; border-radius: 9999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--wf-linie); font-weight: 600; transition: background-color .3s var(--wf-kurve), color .3s var(--wf-kurve); }
.ws-finder .ws-finder-groesse button:hover { box-shadow: inset 0 0 0 2px var(--wf-akzent); }
.ws-finder .ws-finder-groesse button[aria-pressed="true"] { background: var(--wf-tinte); color: #fff; box-shadow: none; }
.ws-finder .ws-finder-wein { display: grid; grid-template-columns: 48px 1fr auto; gap: 4px 16px; padding: 16px 0; }
.ws-finder .ws-finder-wein + .ws-finder-wein { box-shadow: 0 -1px 0 var(--wf-linie); }
.ws-finder-bild { grid-row: 1 / 3; align-self: center; justify-self: center; height: 104px; display: flex; align-items: center; }
.ws-finder .ws-finder-bild img { height: 100%; width: auto; max-width: 48px; object-fit: contain; }
.ws-finder .ws-finder-bild img.ist-foto { height: auto; border-radius: 8px; }
.ws-finder .ws-finder-wein h3 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; }
.ws-finder .ws-finder-wein h3 a { color: inherit; text-decoration: none; }
.ws-finder .ws-finder-wein h3 a:hover { text-decoration: underline; text-decoration-color: var(--wf-akzent); text-underline-offset: 4px; }
.ws-finder .ws-finder-grund { font-size: 14px; line-height: 20px; }
.ws-finder-fakten { font-size: 12px; line-height: 16px; color: var(--wf-grau); }
.ws-finder .ws-finder-fakten .ws-nw-link { margin-top: 4px; min-height: 24px; padding: 0 !important; border: 0; background: none; font-size: 12px; line-height: 16px; color: var(--wf-tinte); text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.ws-finder .ws-finder-preis { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ws-finder .ws-finder-preis del { font-weight: 400; color: var(--wf-grau); }
.ws-finder .ws-finder-preis small { display: block; font-weight: 400; font-size: 12px; line-height: 16px; color: var(--wf-grau); }
.ws-finder-menge { grid-column: 3; justify-self: end; align-self: end; display: inline-flex; align-items: center; border-radius: 9999px; background: var(--wf-flaeche); box-shadow: inset 0 0 0 1.5px var(--wf-linie); }
.ws-finder .ws-finder-menge button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 18px; line-height: 1; transition: background-color .3s var(--wf-kurve); }
.ws-finder .ws-finder-menge button:hover:not([disabled]) { background: var(--wf-boden); }
.ws-finder .ws-finder-menge button[disabled] { opacity: .35; cursor: not-allowed; }
.ws-finder-menge output { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ws-finder-wein.ist-leer .ws-finder-bild { opacity: .45; }
.ws-finder .ws-finder-klapp { margin: 8px 0 0; padding: 0; border: 0; background: none; }
.ws-finder .ws-finder-klapp > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 600; list-style: none; }
.ws-finder .ws-finder-klapp > summary::-webkit-details-marker { display: none; }
.ws-finder .ws-finder-klapp > summary svg { width: 20px; height: 20px; transition: transform .5s var(--wf-kurve); }
.ws-finder .ws-finder-klapp[open] > summary svg { transform: rotate(45deg); }
.ws-finder-summe { position: sticky; bottom: 0; z-index: 10; margin-top: 16px; padding: 16px 24px; border-radius: 28px 28px 0 0; background: var(--wf-tinte); color: #fff; }
.ws-finder-summe-zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ws-finder .ws-finder-summe-preis { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-finder .ws-finder-summe-klein { font-size: 12px; line-height: 16px; color: #cfd2c0; }
.ws-finder .ws-finder-summe-klein a { color: inherit; text-decoration: underline; }
.ws-finder .ws-finder-summe .ws-finder-knopf { white-space: nowrap; }
.ws-finder .ws-finder-summe .ws-finder-knopf[disabled] { background: #3c3e33; color: #cfd2c0; }
.ws-finder .ws-finder-summe :focus-visible { outline-color: #fff; }
.ws-finder .ws-finder-summe .ws-finder-fehler { margin-bottom: 12px; color: #ffb4a6; }
.ws-finder .ws-finder-fehler { color: var(--wf-fehler); font-size: 14px; line-height: 20px; }
.ws-finder .ws-finder-ok { padding: 8px 0 16px; }
.ws-finder-mail { display: grid; gap: 12px; padding: 8px 0 16px; max-width: 520px; }
.ws-finder .ws-finder-mail label { font-weight: 500; }
.ws-finder .ws-finder-mail input[type="email"] { width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--wf-flaeche); color: var(--wf-tinte); box-shadow: inset 0 0 0 1.5px var(--wf-linie); }
.ws-finder .ws-finder-mail input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--wf-fehler); }
.ws-finder .ws-finder-mail .ws-finder-knopf { justify-self: start; }
.ws-finder .ws-finder-haken { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 400 !important; }
.ws-finder .ws-finder-haken input { width: 24px; height: 24px; margin: 0; accent-color: var(--wf-tinte); }
.ws-finder-web { position: absolute; left: -9999px; }

/* Paket im Warenkorb */
.ws-finder-schluss { max-width: 760px; margin-inline: auto; padding: clamp(32px, 8svh, 80px) var(--wf-rand); }
.ws-finder-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.ws-finder-zusatz { margin: 8px 0 16px; padding: 24px; border-radius: 28px; background: var(--wf-boden); }
.ws-finder .ws-finder-zusatz h3 { font-size: 24px; line-height: 32px; }
.ws-finder .ws-finder-zusatz p { margin: 4px 0 16px; }

/* Seitenvorlage ohne Menü */
body.ws-finder-seite { margin: 0; background: #f5f5f0; }
body.ws-finder-seite .ws-finder { --wf-hoehe: max(560px, calc(100svh - var(--wf-oben, 72px))); }
.ws-finder-kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 8px var(--wf-rand); background: var(--wf-papier); }
.admin-bar .ws-finder-kopf { top: var(--wp-admin--admin-bar--height, 32px); }
.ws-finder-logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--wf-tinte); font-size: 20px; font-weight: 700; text-decoration: none; }
.ws-finder-logo img { display: block; width: auto; height: 40px; max-width: min(220px, 50vw); object-fit: contain; object-position: left center; }
.ws-finder-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; padding: 24px var(--wf-rand); background: var(--wf-papier); font-size: 14px; line-height: 20px; }
.ws-finder-fuss a { padding: 8px 0; color: var(--wf-tinte); }
.ws-finder-sprung { position: fixed; left: 16px; top: -80px; z-index: 50; padding: 8px 16px; border-radius: 8px; background: #17170f; color: #fff; }
.ws-finder-sprung:focus { top: 12px; }

@media (min-width: 900px) {
	.ws-finder-ergebnis { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
	.ws-finder-links { position: sticky; top: calc(88px + var(--wp-admin--admin-bar--height, 0px)); display: flex; flex-direction: column; height: calc(100svh - max(var(--wf-oben, 0px), 88px) - 32px); min-height: 480px; max-height: 800px; }
	.ws-finder-buehne { flex: 1; min-height: 240px; height: auto; }
}
@media (max-width: 899px) {
	.ws-finder-ergebnis { padding-bottom: 136px; }
	.ws-finder-summe { position: fixed; inset: auto 0 0; z-index: 99999; /* über dem Testshop-Hinweis von WooCommerce */ margin: 0; padding: 16px var(--wf-rand) max(16px, env(safe-area-inset-bottom, 0px)); border-radius: 0; }
}
@media (max-width: 640px) {
	.ws-finder-inhalt { padding-top: 16px; }
	.ws-finder-antworten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
	.ws-finder .ws-finder-antwort { min-width: 0; padding: 8px 12px; min-height: 64px; border-radius: 16px; }
	.ws-finder .ws-finder-antwort small { font-size: 12px; line-height: 16px; }
	.ws-finder .ws-finder-antwort--farbe { justify-content: flex-start; text-align: left; }
	.ws-finder .ws-finder-antwort:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
	.ws-finder-ergebnis { gap: 24px; padding-top: 8px; }
	.ws-finder-buehne { height: 240px; }
	.ws-finder .ws-finder-wein { grid-template-columns: 40px 1fr auto; gap: 4px 12px; }
	.ws-finder .ws-finder-summe .ws-finder-knopf { padding-inline: 16px; }
	.ws-finder .ws-finder-summe-preis { font-size: 24px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.ws-finder *, .ws-finder *::before, .ws-finder *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
