/* Peaky Beans – Kaufbox 1.10.0 */
.pb-kaufbox {
	--pb-orange: #ec702e;
	--pb-orange-dark: #b4501c;
	--pb-ink: #141210;
	--pb-line: #e3dbd3;
	--pb-soft: #EFE9E3;
	--pb-muted: #6b5f57;

	/*
	 * Eckenradien an einer Stelle.
	 *
	 * "gross" ist auf das Produktbild abgestimmt (border-radius: 20px in
	 * .pb-gallery-video__el): die Flaechen neben dem Bild sollen dieselbe
	 * Rundung haben, sonst wirkt die Seite zusammengewuerfelt. Kleinere
	 * Bauteile bekommen weniger, damit die Rundung bei geringer Hoehe nicht
	 * zur Kapsel wird.
	 */
	--pb-radius-gross: 20px;
	--pb-radius-mittel: 14px;
	--pb-radius-klein: 10px;

	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	font-family: Inter, system-ui, sans-serif;
	color: var(--pb-ink);
}

.pb-kaufbox *,
.pb-kaufbox *::before,
.pb-kaufbox *::after {
	box-sizing: border-box;
}

/* Größen-Karten */
.pb-kb-sizes {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.pb-kb-legend {
	padding: 0;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pb-kb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.pb-kb-card {
	position: relative;
	overflow: visible;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 96px;
	padding: 16px 18px;
	border: 2px solid var(--pb-line);
	border-radius: var(--pb-radius-gross);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pb-kb-card:hover {
	border-color: #c9bfb5;
}

.pb-kb-card.is-selected,
.pb-kb-card:has(.pb-kb-radio:checked) {
	border-color: var(--pb-ink);
	background: var(--pb-soft);
}

.pb-kb-card:has(.pb-kb-radio:focus-visible) {
	outline: 3px solid var(--pb-orange);
	outline-offset: 2px;
}

.pb-kb-card.is-disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.pb-kb-radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.pb-kb-card-title {
	font-size: 20px;
	font-weight: 900;
	line-height: 1.15;
	text-transform: uppercase;
}

.pb-kb-card-sub {
	font-size: 14px;
	color: var(--pb-muted);
}

.pb-kb-card-price {
	margin-top: 6px;
	font-size: 16px;
	font-weight: 800;
}

.pb-kb-card-price .woocommerce-Price-amount {
	font-weight: inherit;
}

.pb-kb-badge {
	position: absolute;
	top: -11px;
	right: 12px;
	white-space: nowrap;
	z-index: 2;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--pb-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
}

.pb-kb-badge--muted {
	background: #8a7e75;
}

/* Preis */
.pb-kb-pricebox {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.pb-kb-price {
	font-size: 38px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
}

.pb-kb-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--pb-muted);
}

.pb-kb-unit:empty {
	display: none;
}

.pb-kb-note a {
	color: inherit;
	text-decoration: underline;
}

/* Menge + Button */
.pb-kb-actions {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.pb-kaufbox .pb-kb-qty {
	display: flex;
	align-items: center;
	flex: none;
	height: 60px;
	margin: 0;
	padding: 0 4px;
	border: 2px solid var(--pb-line);
	border-radius: var(--pb-radius-mittel);
	background: #fff;
	box-shadow: none;
}

.pb-kaufbox .pb-kb-qty .pb-kb-qty-btn,
.pb-kaufbox .pb-kb-qty .pb-kb-qty-btn:hover,
.pb-kaufbox .pb-kb-qty .pb-kb-qty-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: var(--pb-radius-klein);
	background: transparent !important;
	box-shadow: none !important;
	color: var(--pb-ink) !important;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.pb-kaufbox .pb-kb-qty .pb-kb-qty-btn:hover {
	background: var(--pb-soft) !important;
}

.pb-kaufbox .pb-kb-qty .pb-kb-qty-input,
.pb-kaufbox .pb-kb-qty .pb-kb-qty-input:focus {
	width: 36px;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	color: var(--pb-ink);
	font-family: inherit;
	font-size: 17px;
	font-weight: 800;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.pb-kaufbox .pb-kb-qty:focus-within {
	border-color: var(--pb-ink);
}

.pb-kb-qty-input::-webkit-outer-spin-button,
.pb-kb-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pb-kaufbox .pb-kb-cta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	white-space: normal;
	box-shadow: none;
	line-height: 1.2;
	min-height: 60px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--pb-radius-mittel);
	background: var(--pb-orange);
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.pb-kb-cta:hover {
	background: var(--pb-orange-dark);
}

.pb-kb-cta:focus-visible,
.pb-kaufbox .pb-kb-qty .pb-kb-qty-btn:focus-visible {
	outline: 3px solid var(--pb-ink);
	outline-offset: 2px;
}

.pb-kb-cta:disabled {
	background: #c9bfb5;
	cursor: not-allowed;
}

.pb-kb-cta.is-loading {
	opacity: 0.75;
	pointer-events: none;
}

@media (max-width: 480px) {
	.pb-kb-price {
		font-size: 32px;
	}

	/* Mobil: Preis unter den Text, damit der Button nicht aus dem Bild läuft */
	.pb-kb-actions { gap: 10px; }
	.pb-kaufbox .pb-kb-qty { padding: 0 2px; }
	.pb-kaufbox .pb-kb-qty .pb-kb-qty-btn,
	.pb-kaufbox .pb-kb-qty .pb-kb-qty-btn:hover,
	.pb-kaufbox .pb-kb-qty .pb-kb-qty-btn:focus { width: 34px; }
	.pb-kaufbox .pb-kb-qty .pb-kb-qty-input,
	.pb-kaufbox .pb-kb-qty .pb-kb-qty-input:focus { width: 28px; }
	.pb-kaufbox .pb-kb-cta {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 2px;
		padding: 6px 12px;
		font-size: 14px;
		letter-spacing: 0.02em;
	}
	.pb-kaufbox .pb-kb-cta-sep { display: none; }
	.pb-kaufbox .pb-kb-cta-price {
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 0;
		text-transform: none;
		opacity: 0.9;
	}
}

/* ------------------------------------------------------------------
 * Geschmacksprofil [peaky_geschmack] und Zubereitung [peaky_zubereitung]
 * ---------------------------------------------------------------- */
.pb-geschmack,
.pb-zubereitung {
	--pb-orange: #ec702e;
	--pb-ink: #141210;
	--pb-muted: #6b5f57;
	--pb-sand: #EFE9E3;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-family: Inter, system-ui, sans-serif;
	color: var(--pb-ink);
}
.pb-geschmack *,
.pb-zubereitung * { box-sizing: border-box; }

/* Aromen als Pillen */
.pb-geschmack .pb-g-aromen {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pb-geschmack .pb-g-pill {
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--pb-sand);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}
.pb-geschmack .pb-g-pill::before,
.pb-geschmack .pb-g-pill::marker { content: none; }

/* Intensität, Röstgrad, Säure als Punkte */
.pb-geschmack .pb-g-scales { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.pb-geschmack .pb-g-scale { display: flex; flex-direction: column; gap: 6px; }
.pb-geschmack .pb-g-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pb-muted);
}
.pb-geschmack .pb-g-dots { display: flex; gap: 4px; }
.pb-geschmack .pb-g-dot {
	width: 12px;
	height: 12px;
	border: 1.5px solid var(--pb-ink);
	border-radius: 50%;
	background: transparent;
}
.pb-geschmack .pb-g-dot.is-on { border-color: var(--pb-orange); background: var(--pb-orange); }
.pb-geschmack .pb-g-body { font-size: 14px; font-weight: 700; line-height: 12px; }

.pb-geschmack .pb-g-text p,
.pb-zubereitung p { margin: 0 0 10px; color: #4a403a; }
.pb-geschmack .pb-g-text p:last-child,
.pb-zubereitung p:last-child { margin-bottom: 0; }

/* Zubereitung: Methode links, Text rechts */
.pb-zubereitung ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pb-zubereitung li { margin: 0; color: #4a403a; }
.pb-zubereitung li strong { color: var(--pb-ink); font-weight: 800; }
.pb-zubereitung p strong { color: var(--pb-ink); }

@media (min-width: 600px) {
	.pb-zubereitung li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: baseline; }
}

/* ------------------------------------------------------------------
 * Lager und persönliche Lieferung (unter dem Warenkorb-Button)
 * ---------------------------------------------------------------- */
.pb-kaufbox .pb-kb-stock {
	--pb-green: #1f7a3d;
	--pb-green-soft: #e8f3ec;
	display: flex;
	flex-direction: column;
	margin-top: -4px;
	border: 1.5px solid var(--pb-line);
	border-radius: var(--pb-radius-gross);
	background: #fff;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.35;
}
.pb-kaufbox .pb-kb-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
}
.pb-kaufbox .pb-kb-row[hidden] { display: none; }
.pb-kaufbox .pb-kb-row + .pb-kb-row { border-top: 1px solid var(--pb-line); }
.pb-kaufbox .pb-kb-ico {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--pb-green-soft);
	color: var(--pb-green);
}
.pb-kaufbox .pb-kb-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pb-green);
	animation: pb-kb-pulse 2.4s ease-out infinite;
}
@keyframes pb-kb-pulse {
	0% { box-shadow: 0 0 0 0 rgba(31, 122, 61, 0.45); }
	70% { box-shadow: 0 0 0 7px rgba(31, 122, 61, 0); }
	100% { box-shadow: 0 0 0 0 rgba(31, 122, 61, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.pb-kaufbox .pb-kb-dot { animation: none; }
}
.pb-kaufbox .pb-kb-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pb-kaufbox .pb-kb-txt strong { color: var(--pb-ink); font-weight: 700; }
.pb-kaufbox .pb-kb-stock-state { color: var(--pb-green) !important; }
/*
 * Bewusst in der Textfarbe, nicht in Gruen: Gruen ist in diesem Kasten das
 * Signal fuer den Lagerstatus ("Auf Lager"). Faerbte man die Zeile darunter
 * mit, gaebe es zwei gleichrangige Signale und keines sticht mehr heraus.
 */
.pb-kaufbox .pb-kb-local-day { color: var(--pb-ink); }

/*
 * Der Verweis sitzt in der Unterzeile und soll sie nicht dominieren:
 * gleiche Groesse wie der Text daneben, unterstrichen statt farbig,
 * damit das Gruen weiter allein dem Lagerstatus gehoert.
 */
.pb-kaufbox .pb-kb-local-link,
.pb-kaufbox .pb-kb-local-link:hover,
.pb-kaufbox .pb-kb-local-link:focus {
	margin-left: 6px;
	color: var(--pb-ink);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	white-space: nowrap;
}
.pb-kaufbox .pb-kb-local-link:hover { text-decoration-thickness: 2px; }
.pb-kaufbox .pb-kb-lead,
.pb-kaufbox .pb-kb-local-date { color: var(--pb-muted); font-size: 13px; }

.pb-kaufbox .pb-kb-stock.is-out .pb-kb-ico { background: #f1ede9; }
.pb-kaufbox .pb-kb-stock.is-out .pb-kb-dot { background: #a39a92; animation: none; }
.pb-kaufbox .pb-kb-stock.is-out .pb-kb-stock-state { color: var(--pb-muted) !important; }

.pb-kaufbox .pb-kb-plz-toggle,
.pb-kaufbox .pb-kb-plz-toggle:hover,
.pb-kaufbox .pb-kb-plz-toggle:focus {
	flex: none;
	margin: 0;
	padding: 7px 12px;
	border: 1.5px solid var(--pb-line) !important;
	border-radius: 999px;
	background: #fff !important;
	box-shadow: none;
	color: var(--pb-ink) !important;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
}
.pb-kaufbox .pb-kb-plz-toggle:hover { border-color: var(--pb-ink) !important; }
.pb-kaufbox .pb-kb-plz-toggle[aria-expanded="true"] { background: var(--pb-ink) !important; border-color: var(--pb-ink) !important; color: #fff !important; }

/*
 * Die PLZ-Zeile beginnt dort, wo der Text der Zeile darueber beginnt —
 * nicht am Rand des Kastens. Sonst fluchtet das Eingabefeld mit dem
 * Symbol statt mit der Aussage, zu der es gehoert, und klebt optisch
 * am Rand. Der Einzug ist Symbolbreite plus Abstand plus Innenrand.
 */
.pb-kaufbox .pb-kb-stock { --pb-kb-einzug: 62px; }

.pb-kaufbox .pb-kb-plz {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	padding: 14px 16px 16px var(--pb-kb-einzug);
	border-top: 1px solid var(--pb-line);
	background: var(--pb-soft);
}
.pb-kaufbox .pb-kb-plz[hidden] { display: none; }
.pb-kaufbox .pb-kb-plz-input,
.pb-kaufbox .pb-kb-plz-input:focus {
	width: 120px;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--pb-line);
	border-radius: var(--pb-radius-mittel);
	background: #fff;
	box-shadow: none;
	color: var(--pb-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
}
.pb-kaufbox .pb-kb-plz-input:focus { border-color: var(--pb-ink); outline: none; }
.pb-kaufbox .pb-kb-plz-input::placeholder { font-weight: 400; letter-spacing: 0; color: #a39a92; }
.pb-kaufbox .pb-kb-plz-result { flex: 1 1 180px; font-size: 13px; line-height: 1.4; color: var(--pb-muted); }
.pb-kaufbox .pb-kb-plz-result.is-yes { color: var(--pb-green); font-weight: 600; }

@media (max-width: 480px) {
	.pb-kaufbox .pb-kb-row { gap: 10px; padding: 11px 12px; }
	.pb-kaufbox .pb-kb-ico { width: 30px; height: 30px; }
	.pb-kaufbox .pb-kb-stock { --pb-kb-einzug: 52px; }
	.pb-kaufbox .pb-kb-plz { padding: 12px 12px 14px var(--pb-kb-einzug); }

	/* Auf schmalen Bildschirmen bekommt der Verweis eine eigene Zeile,
	   sonst klebt er hinter einem einzelnen umgebrochenen Wort. */
	.pb-kaufbox .pb-kb-local-link { display: block; margin-left: 0; margin-top: 3px; }
}

/* Abo-Auswahl (Kaufart) */
.pb-kb-plans {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.pb-kb-grid--plans {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.pb-kb-grid--once {
	grid-template-columns: 1fr;
}

.pb-kb-plan--once {
	min-height: 0;
}

.pb-kb-sublegend {
	margin: 14px 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pb-muted);
}

.pb-kb-plan {
	min-height: 84px;
	padding: 14px 16px;
}

.pb-kb-plan .pb-kb-card-title {
	font-size: 16px;
	padding-right: 52px;
}

.pb-kb-plan .pb-kb-card-price {
	margin-top: auto;
	padding-top: 6px;
}

.pb-kb-plan .pb-kb-badge {
	top: 10px;
	right: 10px;
}

.pb-kb-plan-note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--pb-muted);
}

.pb-kb-plan-note[hidden] {
	display: none;
}


/* =====================================================================
 * 1.19.0 Lagerstand unter dem Röst-Etikett ([peaky_lager])
 * Steht die Zeile auf der Seite, blendet die Kaufbox ihre eigene aus.
 * ===================================================================== */
.pb-lager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #6b5f57;
}
.pb-lager__dot {
	flex: none;
	width: 8px;
	height: 8px;
	margin: 0 2px 0 4px;
	border-radius: 50%;
	background: #1f7a3d;
	box-shadow: 0 0 0 4px rgba(31, 122, 61, 0.14);
}
.pb-lager__state { color: #1f7a3d; font-weight: 700; }
.pb-lager__lead::before { content: "·"; margin-right: 8px; color: #6b5f57; }
.pb-lager.is-out .pb-lager__dot { background: #b4501c; box-shadow: 0 0 0 4px rgba(180, 80, 28, 0.14); }
.pb-lager.is-out .pb-lager__state { color: #b4501c; }
body:has(.pb-lager) .pb-kaufbox .pb-kb-stock-line { display: none; }
body:has(.pb-lager) .pb-kaufbox .pb-kb-stock-line + .pb-kb-local { border-top: 0; }

/* PLZ-Feld: Theme-Stile setzen den Innenabstand auf 0, daher hier fest. */
.pb-kaufbox .pb-kb-plz-input,
.pb-kaufbox .pb-kb-plz-input:focus {
	width: 140px;
	padding: 0 14px !important;
	text-indent: 0;
}

/* 1.20.0 PLZ: Hinweis vor der Eingabe, Notiz nach dem Merken */
.pb-kaufbox .pb-kb-plz-result:not(.is-yes):not(.is-no) { color: #6b5f57; font-size: 13px; font-weight: 400; }
.pb-kaufbox .pb-kb-plz-note { color: #6b5f57; font-weight: 400; }


/* pb: native Abo-Auswahl ausblenden */
.pb-kaufbox .wcsatt-options-wrapper,
.pb-kaufbox .wcsatt-options-product-prompt {
	display: none !important;
}
