:root {
	--primary: #3d3d3c;
	--secondary: #7c7c79;
	--success: #00cc99;
	--info: #78c3fb;
	--warning: #ba9d57;
	--danger: #ff674d;
}

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

.wb-workshop-container *,
.wb-workshop-show-container * {
	font-family: DIN Pro;
	font-style: normal;
}

.wb-workshop-lg-icon {
	width: 64px;
	height: auto;
	aspect-ratio: auto;
	fill: #000;
}

.wb-workshop-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	position: relative;
	box-sizing: border-box;
	gap: 40px;
}

.wb-workshop-item {
	display: flex;
	flex-direction: column;
	width: calc(50% - 40px);
	flex-wrap: nowrap;
	border: 1px solid #000;
	border-radius: 24px;
	background-color: #fff;
}

.wb-workshop-item.wb-hide {
	opacity: 0;
	display: none;
	visibility: hidden;
}

.wb-workshop-img {
	height: 250px;
	border-top-left-radius: 24px;
	border-top-right-radius: 24px;
}

.wb-workshop-body {
	display: flex;
	flex-direction: column;
	color: #000;
	gap: 8px;
	box-sizing: border-box;
	position: relative;
	justify-content: space-between;
	min-height: 350px;
	max-height: 400px;
	padding: 32px;
}

.wb-workshop-date {
	font-weight: 400;
	font-size: 16px;
}

.wb-workshop-title {
	font-weight: 600;
	font-size: 28px;
	width: 100%;
	text-overflow: clip;
	line-height: 1.1em;
}

.wb-workshop-description {
	font-weight: 400;
	height: 72px;
	font-size: 16px;
	word-break: break-word;
}

.wb-workshop-ticket {
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
}

.wb-workshop-footer {
	display: flex;
	flex-direction: row;
	align-items: end;
	gap: 32px;
}

.wb-workshop-cost,
.wb-workshop-book {
	display: flex;
	width: calc(50% - 16px);
}
.wb-workshop-cost {
	flex-direction: row;
	gap: 16px;
}
.wb-workshop-money {
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	letter-spacing: 2px;
}
.wb-workshop-book {
	flex-direction: column;
	justify-content: center;
}

.wb-bold {
	font-weight: 600;
}
.wb-small {
	font-size: 12px;
}
.wb-medium {
	font-size: 16px;
}
.wb-huge {
	font-size: 28px;
}

.wb-money {
	letter-spacing: 2px;
}

.wb-book-btn,
.wb-cart-item-remove {
	box-sizing: border-box !important;
	padding: 12px 28px !important;
	background: var(--warning) !important;
	border: 2px solid var(--warning) !important;
	text-align: center !important;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}
.wb-book-btn:hover,
.wb-cart-item-remove:hover {
	color: var(--warning) !important;
	background-color: #fff !important;
}
select.wb-book-select,
select.wb-cart-item-update {
	box-sizing: border-box !important;
	padding: 12px 28px !important;
	appearance: base-select !important;
	border-radius: 0px !important;
	border-width: 2px;
	height: 52px !important;
	min-width: 64px !important;
}

.wb-takeawayMeal-icon {
	height: 32px;
	width: auto;
	aspect-ratio: auto;
	fill: #000;
}
.wb-workshop-sm-icon {
	height: 32px;
	width: auto;
	aspect-ratio: auto;
	fill: #000;
}

span.wb-required {
	color: red;
	font-weight: 600;
}

.wb-input-group {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 12px 0 0 0;
}

.wb-checkout-input-wrapper {
	display: flex;
	flex-direction: row;
	gap: 16px;
	flex-wrap: nowrap;
}

.wb-checkout-input-wrapper > * {
	width: calc(50% - 8px);
}

.wb-checkbox-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	padding: 12px 0 0 0;
}

.wb-checkbox-group input[type="checkbox"] {
	height: 32px;
	width: 32px;
	aspect-ratio: 1/1;
	border: 2px solid #000;
	border-radius: 0px;
}

.wb-input-group input,
.wb-input-group select,
.wb-input-group textarea {
	box-sizing: border-box;
	padding: 12px;
}

.wb-input-group select {
	appearance: base-select;
	min-height: 32px;
	min-width: 32px;
	border-radius: 0px;
}

.wb-input-group label {
	padding: 4px 0;
	font-weight: 600;
}

.wb-input-group textarea {
	resize: none;
}
.wb-cart-container {
	position: relative;
	width: max-content;
}
.wb-cart {
	fill: #000000;
	height: 40px;
	width: auto;
}
.wb-cart-item-number {
	width: 24px;
	height: 24px;
	aspect-ratio: 1 / 1;
	background-color: rgb(255, 0, 0);
	border-radius: 50%;
	position: absolute;
	right: -4px;
	top: -8px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	z-index: 2;
	line-height: 1em;
	font-weight: 600;
}

.wb-shopping-cart {
	box-sizing: border-box;
	width: 100%;
	color: #000;
}
.wb-shopping-cart-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 0 0 0;
}
.wb-shopping-cart-item-image {
	height: auto !important;
	width: 10% !important;
	border: 1px solid #000 !important;
	aspect-ratio: 1 / 1 !important;
	border-radius: 50% !important;
}
.wb-shopping-cart-content {
	width: 40%;
}
.wb-shopping-cart-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 48px;
	box-sizing: border-box;
	padding: 24px;
	background-color: #fff;
	border: 1px solid #000;
}
.wb-shopping-item-quantity-wrapper {
	display: flex;
	flex-direction: row;
	gap: 32px;
	justify-content: end;
	align-items: center;
	width: 30%;
}
.wb-shopping-item-delete {
	width: 20%;
	display: flex;
	justify-content: end;
}

.wb-shopping-item-delete button {
	background: none !important;
	border: none !important;
}

.wb-shopping-item-quantity-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.wb-quantity-btn {
	aspect-ratio: 1 / 1 !important;
	height: 32px !important;
	width: 32px !important;
	line-height: 1em !important;
	padding: 4px !important;
	border-radius: 50% !important;
	background: #000 !important;
	color: #fff !important;
	border: 1px solid #000 !important;
}
.wb-quantity-btn:hover {
	background: #fff !important;
	color: #000 !important;
}
.wb-cart-item {
	display: inline-flex;
	gap: 32px;
	width: 100%;
	box-sizing: border-box;
	padding: 32px;
	background: #fff;
	align-items: center;
	border: 1px solid #000;
	border-radius: 15px;
}
.wb-checkout-redeem-gift-voucher {
	display: flex;
	flex-direction: row;
	gap: 32px;
	width: 100%;
	align-items: end;
}
.wb-w-50 {
	width: 50%;
}

.wb-checkout-form {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 32px;
	background-color: #fff;
	border-radius: 16px;
	border: 1px solid #000;
}
.wb-price-container {
	box-sizing: border-box;
	padding: 32px 0;
}

.wb-filter-container {
	display: flex;
	flex-direction: column;
	position: relative;
	box-sizing: border-box;
	gap: 24px;
	width: 100%;
}
.wb-filter-row {
	display: flex;
	flex-direction: row;
	position: relative;
	gap: 12px;
	justify-content: start;
	width: 100%;
	flex-wrap: wrap;
}
.wb-filter-badge {
	box-sizing: border-box;
	padding: 4px 24px;
	background: #fff;
	color: #000;
	border-radius: 24px;
	font-size: 12px;
	cursor: pointer;
	text-transform: uppercase;
	flex-wrap: nowrap;
}
.wb-filter-badge:hover,
.wb-filter-badge.wb-active {
	background: #ba9d57;
	color: #fff;
}

.wb-notification-message {
	color: rgb(0, 160, 0);
}
.wb-notification-error {
	color: rgb(160, 0, 0);
}

.wb-none {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

.wb-booking-wrapper {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.wb-booking-item {
	display: flex;
	flex-direction: row;
	gap: 24px;
	align-items: start;
}

.wb-workshop-image {
	height: 500px;
}

.wb-open-modal {
	text-decoration: underline;
	cursor: pointer;
}

.wb-close-dialog {
	display: flex;
	justify-content: end;
}

.wb-modal-close-icon {
	cursor: pointer;
	height: 48px;
	width: 48px;
	aspect-ratio: 1/1;
}

.wb-spacer {
	box-sizing: border-box;
	padding: 12px 0 0 0;
}

dialog {
	position: fixed !important; /* nicht relativ zum Flow, sondern fixiert */
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important; /* exakte Zentrierung */
	margin: 0 !important; /* wichtig, sonst verschiebt es sich */
	border: 1.5px solid #000 !important;
	border-radius: 1rem !important;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
	background: white !important;
	width: min(90%, 600px) !important;
	max-height: 80vh !important;
	overflow: hidden;
	font-family: "DIN Pro", sans-serif !important;
	animation: fadeIn 0.3s ease-out !important;
	z-index: 999;
}

.wb-dialog-wrapper {
	position: relative;
	padding: 2rem 0;
	margin: 0;
	overflow-y: auto !important;
	max-height: 80vh !important;
}

.wb-dialog-header {
	display: flex;
	justify-content: space-between;
	padding: 0 2rem !important;
}

.wb-dialog-body {
	margin: 0;
	height: 100%;
	padding: 0 2rem 2rem 2rem;
}

.wb-workshop-full {
	opacity: 0.2;
	user-select: none;
}

/* Overlay-Hintergrund */
dialog::backdrop {
	background: rgba(0, 0, 0, 0.8) !important;
	backdrop-filter: blur(3px) !important;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media only screen and (max-width: 768px) {
	.wb-booking-item {
		display: flex;
		flex-wrap: wrap;
	}

	.wb-book-select {
		width: 100% !important;
		max-width: none;
	}

	.wb-book-btn {
		width: 100%;
	}

	.wb-workshop-body {
		max-height: 900px;
	}
	.wb-checkout-redeem-gift-voucher {
		flex-direction: column;
		gap: 16px;
		flex-wrap: wrap;
		align-items: start;
	}

	.wb-checkout-redeem-gift-voucher .wb-w-50 {
		width: 100%;
	}

	.wb-checkout-input-wrapper {
		flex-wrap: wrap;
		gap: 0;
	}
	.wb-checkout-input-wrapper > * {
		width: 100%;
	}

	.wb-shopping-item-quantity-number {
		font-size: 24px;
	}

	.wb-shopping-cart-item-image {
		height: 64px !important;
		width: 64px !important;
	}

	.wb-shopping-cart-item {
		flex-wrap: wrap;
		gap: 24px;
	}

	.wb-shopping-item-quantity-wrapper,
	.wb-shopping-item-delete {
		width: calc(50% - 12px);
		height: min-content;
	}

	.wb-shopping-item-delete {
	}

	.wb-shopping-cart-content {
		width: 100%;
	}

	.wb-shopping-item-quantity-wrapper {
		justify-content: start;
		align-items: start;
		flex-direction: column;
		gap: 8px;
	}

	.wb-shopping-item-quantity-form {
		flex-direction: row;
	}
	.wb-workshop-image {
		height: 250px;
	}
	.wb-booking-wrapper {
		flex-direction: column;
	}
	.wb-workshop-container {
		width: 100%;
		flex-direction: column;
	}
	.wb-workshop-item {
		width: 100%;
		flex-wrap: no-wrap;
	}
	.wb-workshop-footer {
		flex-direction: column;
		gap: 16px;
	}
	.wb-workshop-cost {
		width: 100%;
	}
	.wb-workshop-book {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Ergänzungen 1.2.0                                                   */
/* ------------------------------------------------------------------ */

/* Platzhalter, wenn ein Termin kein Bild hat (vorher externes placehold.co). */
.wb-workshop-img,
.wb-workshop-image {
	background-color: #f1efe9;
}

.wb-empty {
	width: 100%;
	color: #000;
	font-size: 16px;
}

.wb-field-error {
	display: block;
	padding: 4px 0 0 0;
	color: rgb(160, 0, 0);
	font-size: 14px;
	font-weight: 600;
}

.wb-field-error:empty {
	display: none;
}

/* Filter sind seit 1.2.0 echte Buttons (Tastatur, Screenreader). Theme- und
   Elementor-Kit-Styles für Buttons (Rahmen, Farbe, Padding) hier zurücksetzen,
   damit sie aussehen wie die Pillen aus 1.0.x. */
.wb-filter-container .wb-filter-badge,
.wb-filter-container .wb-filter-badge:focus {
	display: inline-block !important;
	margin: 0 !important;
	padding: 4px 24px !important;
	border: none !important;
	border-radius: 24px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #000 !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	letter-spacing: normal !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease !important;
}

.wb-filter-container .wb-filter-badge:hover,
.wb-filter-container .wb-filter-badge.wb-active {
	background: #ba9d57 !important;
	color: #fff !important;
}

.wb-filter-container .wb-filter-badge:focus-visible {
	outline: 2px solid #ba9d57 !important;
	outline-offset: 2px !important;
}

.wb-filter-container .wb-filter-badge[hidden] {
	display: none !important;
}

.wb-book-btn[disabled],
.wb-book-btn.is-busy {
	opacity: 0.6;
	cursor: wait !important;
}

.wb-cart-item-number.is-empty {
	opacity: 0.6;
}

.wb-close-dialog {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* 1.3.0 – Design: Warenkorb, Ausgebucht, dezente Animationen          */
/* ------------------------------------------------------------------ */

:root {
	--wb-line: #e3dfd6;
	--wb-surface: #f7f5f0;
	--wb-ink: #1f1f1e;
	--wb-radius: 16px;
	--wb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Warenkorb-Icon ---------------------------------------------------- */

.wb-cart-link {
	display: inline-flex;
	color: var(--wb-ink);
	text-decoration: none;
}

.wb-cart-container {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: background-color 0.2s var(--wb-ease), color 0.2s var(--wb-ease);
}

.wb-cart-link:hover .wb-cart-container,
.wb-cart-link:focus-visible .wb-cart-container {
	background-color: var(--wb-surface);
	color: var(--warning);
}

.wb-cart {
	width: 26px;
	height: 26px;
	fill: none;
}

.wb-cart-item-number {
	position: absolute;
	top: 4px;
	right: 2px;
	width: auto;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	box-sizing: border-box;
	border: 2px solid #fff;
	border-radius: 9px;
	background-color: var(--warning);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	aspect-ratio: auto;
	transition: opacity 0.2s var(--wb-ease), transform 0.2s var(--wb-ease);
}

.wb-cart-item-number.is-empty {
	opacity: 0;
	transform: scale(0.5);
}

.wb-cart-item-number.wb-bump {
	animation: wbBump 0.45s var(--wb-ease);
}

@keyframes wbBump {
	0% { transform: scale(0.6); }
	60% { transform: scale(1.15); }
	100% { transform: scale(1); }
}

/* Einkaufswagen ----------------------------------------------------- */

.wb-notice p {
	margin: 0;
	padding: 12px 16px;
	border-radius: 12px;
}

.wb-notice .wb-notification-message {
	background-color: #eef6ef;
}

.wb-notice .wb-notification-error {
	background-color: #fbeeee;
}

.wb-shopping-cart-wrapper {
	gap: 12px;
}

.wb-shopping-cart-item {
	gap: 32px;
	border: 1px solid var(--wb-line);
	border-radius: var(--wb-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s var(--wb-ease);
}

.wb-shopping-cart-item:hover {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.07);
}

.wb-shopping-cart-item-image {
	flex-shrink: 0;
	width: 80px !important;
	height: 80px !important;
	border: none !important;
	border-radius: 12px !important;
	background-color: var(--wb-surface);
}

.wb-quantity-btn {
	background: #fff !important;
	color: var(--wb-ink) !important;
	border: 1px solid var(--wb-line) !important;
	transition: background-color 0.15s var(--wb-ease), color 0.15s var(--wb-ease);
}

.wb-quantity-btn:hover {
	background: var(--wb-ink) !important;
	color: #fff !important;
	border-color: var(--wb-ink) !important;
}

.wb-shopping-item-delete svg {
	width: 28px;
	height: 28px;
	opacity: 0.6;
	transition: opacity 0.15s var(--wb-ease);
}

.wb-shopping-item-delete button:hover svg {
	opacity: 1;
}

.wb-price-container {
	margin: 24px 0;
	padding: 24px 32px;
	border-radius: var(--wb-radius);
	background-color: var(--wb-surface);
}

.wb-price-container p {
	margin: 0;
}

.wb-checkout-form {
	border: 1px solid var(--wb-line);
	border-radius: var(--wb-radius);
}

.wb-checkout-form input:focus,
.wb-checkout-form select:focus,
.wb-checkout-form textarea:focus,
.wb-checkout-redeem-gift-voucher input:focus {
	outline: 2px solid var(--warning);
	outline-offset: 1px;
}

/* Ausgebucht / wenige Plätze --------------------------------------- */

.wb-workshop-item {
	position: relative;
}

/* Karten wachsen mit dem Inhalt statt ihn zu überlappen (feste Höhen aus 1.0.x). */
.wb-workshop-body {
	max-height: none;
}

.wb-workshop-description {
	height: auto;
	max-height: 4.8em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.wb-workshop-footer {
	flex-wrap: wrap;
	row-gap: 16px;
}

.wb-workshop-book .wb-book-btn {
	white-space: nowrap;
}

@media only screen and (max-width: 1100px) {
	.wb-workshop-cost,
	.wb-workshop-book {
		width: 100%;
	}
}

.wb-workshop-item.wb-is-soldout .wb-workshop-img,
.wb-workshop-image.wb-is-soldout {
	filter: grayscale(1);
	opacity: 0.55;
}

.wb-workshop-item.wb-is-soldout .wb-workshop-title,
.wb-workshop-item.wb-is-soldout .wb-workshop-description {
	opacity: 0.6;
}

.wb-soldout-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: var(--wb-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.wb-workshop-ticket.wb-few-left {
	color: var(--warning);
}

.wb-soldout-banner {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 24px 0 0 0;
	padding: 16px 20px;
	border-radius: 12px;
	background-color: #fbeeee;
	color: #7a1f1f;
}

.wb-alternatives {
	margin: 64px 0 0 0;
	padding: 40px 0 0 0;
	border-top: 1px solid var(--wb-line);
}

.wb-alternatives-title {
	margin: 0 0 24px 0;
}

.wb-alternatives-more {
	padding: 24px 0 0 0;
}

.wb-alternatives-more a {
	color: inherit;
	text-decoration: underline;
}

/* Dezente Einblend-Animation ---------------------------------------- */

@keyframes wbFadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.wb-workshop-item,
.wb-shopping-cart-item,
.wb-notice,
.wb-soldout-banner,
.wb-alternatives,
.wb-price-container,
.wb-checkout-form {
	animation: wbFadeIn 0.35s var(--wb-ease) both;
}

.wb-workshop-container > :nth-child(2),
.wb-shopping-cart-wrapper > :nth-child(2) { animation-delay: 0.04s; }
.wb-workshop-container > :nth-child(3),
.wb-shopping-cart-wrapper > :nth-child(3) { animation-delay: 0.08s; }
.wb-workshop-container > :nth-child(4),
.wb-shopping-cart-wrapper > :nth-child(4) { animation-delay: 0.12s; }
.wb-workshop-container > :nth-child(n + 5),
.wb-shopping-cart-wrapper > :nth-child(n + 5) { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
	.wb-workshop-item,
	.wb-shopping-cart-item,
	.wb-notice,
	.wb-soldout-banner,
	.wb-alternatives,
	.wb-price-container,
	.wb-checkout-form,
	.wb-cart-item-number.wb-bump {
		animation: none;
	}
}

@media only screen and (max-width: 768px) {
	.wb-shopping-cart-item {
		gap: 16px;
		padding: 16px;
	}

	.wb-price-container {
		padding: 20px;
	}
}
