/* Büro Veggies — Bestellformular (Figma 283:756) */
:root {
	--bv-mint: #eaf8f0;
	--bv-mint-2: #d9f1e3;
	--bv-green: #2d8f4e;
	--bv-green-2: #1fb75c;
	--bv-green-3: #3cb77b;
	--bv-orange: #f08b2c;
	--bv-white: #ffffff;
	--bv-text: #1b1b1b;
	--bv-muted: #555;
}

[x-cloak] {
	display: none !important;
}

.bv-bestellung {
	color: var(--bv-text);
	font-family: inherit;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px;
}

.bv-bestellung * {
	box-sizing: border-box;
}

.bv-section {
	padding: 48px 20px;
	border-radius: 16px;
}

.bv-section--addons {
	/* background: var(--bv-green-2);
	color: var(--bv-white);
	margin-top: 24px;
	padding: 48px 20px 60px; */
}

.bv-section--bestelldaten {
	padding: 32px 0;
}

.bv-section-header {
	text-align: center;
	margin-bottom: 32px;
}

.bv-section-header h2 {
	margin: 0 0 6px;
	color: var(--bv-green);
	font-size: 32px;
	font-weight: 700;
}

.bv-section-header--light h2 {
	color: var(--bv-white);
}

.bv-section-header p {
	margin: 0;
	font-weight: 600;
	color: var(--bv-green);
	font-size: 18px;
}

.bv-section--addons .bv-section-header p {
	color: var(--bv-white);
}

/* ---- Körbe-Grid: 4 Spalten, gleiche Höhe ---- */
.bv-grid--koerbe {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: stretch;
	/* alle Kinder strecken sich auf dieselbe Höhe */
}

@media (max-width: 980px) {
	.bv-grid--koerbe {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.bv-grid--koerbe {
		grid-template-columns: 1fr;
	}
}

.bv-grid--addons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 980px) {
	.bv-grid--addons {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.bv-grid--addons {
		grid-template-columns: 1fr;
	}
}

/* ---- Korb-Karte ---- */
.bv-card--korb {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
}

.bv-card__wrap {
	background: var(--bv-white);
	border-radius: 14px;
	padding: 16px 14px 14px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
	flex: 1;
	/* wrap füllt den freien Platz, damit Bubbles gleich tief stehen */
	display: flex;
	flex-direction: column;
}

.bv-card__title {
	color: white;
	font-size: 17px;
	margin: 0 0 10px;
	font-weight: 700;
	line-height: 1.2;
	min-height: 2.4em;
	/* stabilisiert bei 1- und 2-zeiligen Titeln */
	display: flex;
	align-items: center;
	justify-content: center;
}

.bv-card__image-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px 0;
}

.bv-card__image {
	width: 100%;
	/* max-width: 160px; */
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
}

.bv-card__image--placeholder {
	background: var(--bv-mint-2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	color: var(--bv-green);
}

.bv-card__details {
	display: inline-block;
	color: var(--bv-green);
	text-decoration: underline;
	font-weight: 600;
	font-size: 13px;
	margin-top: 10px;
}

/* ---- Speech Bubble ---- */
.bv-bubble {
	position: relative;
	background: var(--bv-green-3);
	color: var(--bv-white);
	padding: 18px 20px 22px;
	/* border-radius: 32px 28px 34px 26px / 28px 32px 26px 30px;
	box-shadow: 0 4px 16px rgba(60, 183, 123, .28); */
}

/* 
.bv-bubble::before,
.bv-bubble::after {
	content: "";
	position: absolute;
	background: var(--bv-green-3);
}

.bv-bubble::before {
	width: 38px;
	height: 34px;
	left: 14px;
	bottom: -14px;
	border-radius: 50% 60% 20% 60% / 40% 50% 60% 40%;
	transform: rotate(-12deg);
}

.bv-bubble::after {
	width: 18px;
	height: 16px;
	left: 6px;
	bottom: -22px;
	border-radius: 50%;
	transform: rotate(-20deg);
} */

.bv-bubble__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-weight: 700;
	font-size: 17px;
	margin-bottom: 8px;
}

.bv-qty {
	width: 100%;
	padding: 10px 16px;
	border-radius: 20px;
	border: 0;
	background: var(--bv-white);
	color: var(--bv-text);
	font-size: 13px;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23888'><path d='M5.25 7.5h9.5L10 13z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px;
	cursor: pointer;
	margin-bottom: 12px;
	transition: box-shadow .15s;
	font-weight: 600;
}

.bv-qty:last-child {
	margin-bottom: 0;
}

.bv-qty:focus {
	outline: 0;
	box-shadow: 0 0 0 2px var(--bv-orange);
}

/* ---- "Ihr braucht mehr?" Card ---- */
.bv-card--mehr {
	background: var(--bv-white);
	border-radius: 14px;
	padding: 20px 18px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
	height: 100%;
}

.bv-card--mehr .bv-card__title {
	margin-bottom: 8px;
	min-height: auto;
}

.bv-card--mehr p {
	color: var(--bv-green);
	font-weight: 600;
	margin: 0;
}

/* ---- Add-On Card ---- */
.bv-card--addon {
	/* background: var(--bv-white);
	border-radius: 14px;
	padding: 12px;
	text-align: center;
	color: var(--bv-text); */
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bv-card--addon .bv-card__image {
	/* max-width: 120px; */
}

.bv-card--addon .bv-card__title {
	color: white;
	font-size: 15px;
	margin: 4px 0 0;
	min-height: auto;
}

.bv-addon-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 4px 6px;
	font-weight: 600;
}

.bv-addon-row__price {
	color: var(--bv-green);
}

.bv-qty--addon {
	background: #f6f6f6;
	margin-bottom: 0;
}

/* ---- Add-Ons: Collapsed Intro ---- */
.bv-addons-intro {
	text-align: center;
	padding: 16px 20px;
}
.bv-addons-intro .bv-section-header { margin-bottom: 20px; }
.bv-addons-cta { text-align: center; }

/* ---- Add-Ons: Expanded Slider ---- */
.bv-addons-expanded { position: relative; }
.bv-addons-expanded .bv-section-header { position: relative; }
.bv-addons-close {
	position: absolute;
	top: -8px;
	right: 0;
	background: transparent;
	border: 0;
	color: var(--bv-white);
	font-size: 28px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	padding: 6px 10px;
}
.bv-addons-close:hover { opacity: .8; }

/* Splide customization */
.bv-addons-slider {
	padding: 0 40px;
}
.bv-addons-slider .splide__slide {
	background: var(--bv-white);
	border-radius: 14px;
	padding: 14px 12px;
	color: var(--bv-text);
	text-align: center;
}
.bv-addons-slider .splide__slide .bv-card__title { color: var(--bv-green); }
.bv-addons-slider .splide__arrow {
	background: rgba(255,255,255,.85);
	opacity: 1;
}
.bv-addons-slider .splide__arrow svg { fill: var(--bv-green); }
.bv-addons-slider .splide__arrow:hover { background: var(--bv-white); }
.bv-addons-slider .splide__pagination { bottom: -1.5em; }
.bv-addons-slider .splide__pagination__page {
	background: rgba(255,255,255,.5);
}
.bv-addons-slider .splide__pagination__page.is-active {
	background: var(--bv-white);
	transform: scale(1.2);
}

/* ---- Total ---- */
.bv-total {
	text-align: center;
	padding: 32px 20px 12px;
}

.bv-total strong {
	font-size: 22px;
	color: var(--bv-text);
	margin-right: 8px;
}

.bv-total__value {
	color: var(--bv-green);
	font-size: 32px;
	font-weight: 700;
	border-bottom: 3px solid var(--bv-orange);
	padding: 0 8px 4px;
	display: inline-block;
}

.bv-total small {
	display: block;
	color: var(--bv-muted);
	font-size: 13px;
	margin-top: 8px;
}

/* ---- Form ---- */
.bv-section--bestelldaten h2 {
	color: var(--bv-green);
	text-align: center;
	font-size: 26px;
	margin: 0 0 24px;
}

.bv-form {
	display: grid;
	gap: 14px;
	max-width: 880px;
	margin: 0 auto;
}

.bv-form__row {
	display: grid;
	gap: 12px;
}

.bv-form__row--2 {
	grid-template-columns: 1fr 1fr;
}

.bv-form__row--2-1-1 {
	grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 640px) {

	.bv-form__row--2,
	.bv-form__row--2-1-1 {
		grid-template-columns: 1fr;
	}
}

.bv-form label {
	display: block;
}

.bv-form input[type=text],
.bv-form input[type=email],
.bv-form input[type=tel],
.bv-form textarea {
	width: 100%;
	padding: 12px 18px;
	border-radius: 24px;
	border: 1px solid #d6d6d6;
	background: var(--bv-white);
	font-size: 14px;
	font-family: inherit;
}

.bv-form textarea {
	border-radius: 16px;
	resize: vertical;
}

.bv-form input:focus,
.bv-form textarea:focus {
	outline: 2px solid var(--bv-green);
	border-color: transparent;
}

.bv-form__fieldset {
	border: 0;
	padding: 8px 0;
	margin: 0;
}

.bv-form__fieldset legend {
	color: var(--bv-green);
	font-weight: 600;
	padding: 0;
	margin-bottom: 10px;
	font-size: 15px;
}

.bv-weekdays,
.bv-frequenz {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bv-weekday,
.bv-radio {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 18px;
	background: #f4f4f4;
	cursor: pointer;
	font-size: 14px;
}

.bv-weekday input:checked+span,
.bv-radio input:checked+span {
	font-weight: 700;
	color: var(--bv-green);
}

.bv-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	color: var(--bv-muted);
}

.bv-check a {
	color: var(--bv-green);
}

.bv-error {
	background: #fdecec;
	color: #a00;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.bv-success {
	background: #e8f7ed;
	color: var(--bv-green);
	padding: 14px;
	border-radius: 8px;
	font-weight: 600;
}

/* ---- Buttons ---- */
.bv-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 28px;
	border: 0;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: transform .1s, filter .15s;
	line-height: 1.2;
	white-space: nowrap;
	text-align: center;
}

.bv-btn--orange {
	background: var(--bv-orange);
	color: var(--bv-white);
}

.bv-btn--orange:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.bv-btn--submit {
	display: block;
	margin: 20px auto 0;
	min-width: 320px;
	font-size: 16px;
	padding: 16px 32px;
}
.bv-error--global { max-width: 680px; margin: 8px auto; }
.bv-success      { max-width: 680px; margin: 8px auto; }

.bv-btn:disabled {
	opacity: .6;
	cursor: wait;
	transform: none;
}

.bv-fullwidth .bv-bestellung,
.bv-fullwidth #et-main-area {
	background: transparent;
}

/* ---- Modal ---- */
.bv-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bv-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 183, 92, .55);
	backdrop-filter: blur(2px);
	cursor: pointer;
}

.bv-modal__panel {
	position: relative;
	background: var(--bv-white);
	border-radius: 18px;
	max-width: 780px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px 36px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	animation: bvModalIn .2s ease-out;
}

@keyframes bvModalIn {
	from {
		transform: scale(.96);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.bv-modal__close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: var(--bv-green-2);
	cursor: pointer;
	font-weight: 700;
	padding: 4px 8px;
}

.bv-modal__close:hover {
	color: var(--bv-green);
}

.bv-modal__header {
	text-align: center;
	margin-bottom: 20px;
	padding-right: 24px;
}

.bv-modal__eyebrow {
	color: var(--bv-green);
	font-size: 13px;
	font-weight: 500;
}

.bv-modal__title {
	color: var(--bv-green);
	font-size: 26px;
	font-weight: 700;
	margin: 4px 0 0;
}

.bv-modal__grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 640px) {
	.bv-modal__grid {
		grid-template-columns: 1fr;
	}
}

.bv-modal__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 50%;
}

.bv-modal__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--bv-text);
}

.bv-modal__kurz {
	font-weight: 600;
	color: var(--bv-green);
	margin: 0 0 12px;
}

.bv-modal__content p {
	margin: 0 0 10px;
}

.bv-modal__content ul {
	padding-left: 20px;
	margin: 10px 0;
}

.bv-modal__content li {
	margin-bottom: 4px;
}