/**
 * Sparta Speisekarten.
 *
 * Tokens come from the site itself (Blocksy palette + Manrope), so the block
 * keeps matching the theme if the palette changes:
 *   accent  --theme-palette-color-1  #a3997e
 *   text    --theme-palette-color-4  #090909
 *   shadow  --theme-palette-color-2  rgba(69,57,24,.25)
 * Radius 3px and uppercase letterspaced labels echo the theme buttons.
 */

.wvsm {
	--wvsm-accent: var( --theme-palette-color-1, #a3997e );
	--wvsm-text: var( --theme-palette-color-4, #090909 );
	--wvsm-shadow-tint: var( --theme-palette-color-2, rgba( 69, 57, 24, .25 ) );
	--wvsm-surface: #fff;
	--wvsm-muted: #6d6656;
	--wvsm-hairline: color-mix( in srgb, var( --wvsm-accent ) 34%, transparent );
	--wvsm-wash: color-mix( in srgb, var( --wvsm-accent ) 8%, transparent );
	--wvsm-radius: 3px;
	--wvsm-columns: 4;
	--wvsm-ease: cubic-bezier( .2, .6, .3, 1 );

	position: relative;
}

.wvsm-grid {
	display: grid;
	grid-template-columns: repeat( var( --wvsm-columns ), minmax( 0, 1fr ) );
	grid-auto-rows: 1fr;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wvsm-grid > li {
	margin: 0;
	padding: 0;
	list-style: none;
}



/* Section heading ------------------------------------------------------- */

.wvsm__head {
	margin: 0 0 26px;
	text-align: center;
}

.wvsm-heading {
	margin: 0;
	font-size: clamp( 17px, 1.6vw, 21px );
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var( --wvsm-text );
}

.wvsm-heading__rule {
	display: block;
	width: 44px;
	height: 1px;
	margin: 14px auto 0;
	background: var( --wvsm-accent );
}

.wvsm-intro {
	max-width: 56ch;
	margin: 14px auto 0;
	font-size: 13px;
	line-height: 1.6;
	color: var( --wvsm-muted );
}

/*
 * Entrance. The hidden state is added by JS, so with JS off or blocked the
 * cards are simply there. It runs once per page view, never on a loop.
 */
.wvsm--reveal .wvsm__head {
	opacity: 0;
	transform: translateY( 10px );
}

.wvsm--reveal.is-in .wvsm__head {
	opacity: 1;
	transform: none;
	transition: opacity .5s var( --wvsm-ease ), transform .5s var( --wvsm-ease );
}

.wvsm--reveal .wvsm-card {
	opacity: 0;
	transform: translateY( 14px );
}

.wvsm--reveal.is-in .wvsm-card {
	opacity: 1;
	transform: none;
	transition: opacity .55s var( --wvsm-ease ), transform .55s var( --wvsm-ease );
	transition-delay: calc( var( --wvsm-i, 0 ) * 65ms );
}

/* Card ------------------------------------------------------------------- */

.wvsm-card__button {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 26px 12px 20px;
	border: 1px solid var( --wvsm-hairline );
	border-radius: var( --wvsm-radius );
	background: var( --wvsm-surface );
	color: var( --wvsm-text );
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s var( --wvsm-ease ), transform .2s var( --wvsm-ease ), box-shadow .2s var( --wvsm-ease );
}

.wvsm-card__button:hover,
.wvsm-card__button:focus-visible {
	border-color: var( --wvsm-accent );
	transform: translateY( -3px );
	box-shadow: 0 14px 30px -12px var( --wvsm-shadow-tint );
}

.wvsm-card__button:focus-visible {
	outline: 2px solid var( --wvsm-accent );
	outline-offset: 3px;
}

.wvsm-card__button:active {
	transform: translateY( -1px );
}

.wvsm-card__icon {
	display: block;
	margin-bottom: 14px;
}

.wvsm-card__icon svg {
	display: block;
	width: 56px;
	height: 56px;
	color: var( --wvsm-text );
	transition: color .2s var( --wvsm-ease );
}

.wvsm-card__icon .wvsm-ring {
	stroke: var( --wvsm-accent );
	opacity: .5;
	transition: opacity .2s var( --wvsm-ease );
}

.wvsm-card__button:hover .wvsm-card__icon svg,
.wvsm-card__button:focus-visible .wvsm-card__icon svg {
	color: var( --wvsm-accent );
}

.wvsm-card__button:hover .wvsm-card__icon .wvsm-ring {
	opacity: 1;
}

.wvsm-card__title {
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* Signature detail: the hairline that ties the card to the brand rules. */
.wvsm-card__rule {
	display: block;
	width: 20px;
	height: 1px;
	margin: 11px 0;
	background: var( --wvsm-accent );
	opacity: .55;
	transition: width .25s var( --wvsm-ease ), opacity .2s var( --wvsm-ease );
}

.wvsm-card__button:hover .wvsm-card__rule {
	width: 34px;
	opacity: 1;
}

.wvsm-card__subtitle {
	max-width: 22ch;
	font-size: 11px;
	line-height: 1.5;
	color: var( --wvsm-muted );
}

.wvsm-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --wvsm-accent );
}

.wvsm-card__cta svg {
	width: 13px;
	height: 13px;
	transition: transform .2s var( --wvsm-ease );
}

.wvsm-card__button:hover .wvsm-card__cta svg {
	transform: translateX( 4px );
}

/* Slider dots, shown only on the phone layout ---------------------------- */

.wvsm-dots {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 7px;
	margin-top: 16px;
}

.wvsm-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: var( --wvsm-hairline );
	cursor: pointer;
	transition: width .25s var( --wvsm-ease ), background-color .2s var( --wvsm-ease );
}

.wvsm-dot[aria-current="true"] {
	width: 20px;
	background: var( --wvsm-accent );
}

.wvsm-dot:focus-visible {
	outline: 2px solid var( --wvsm-accent );
	outline-offset: 3px;
}

/*
 * Under the desktop width the same markup becomes one swipeable row. That way
 * there is never an orphan second row at any size, whatever the card count.
 */

@media ( max-width: 1099px ) {
	.wvsm__head {
		margin-bottom: 22px;
	}

	.wvsm-grid {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		padding: 4px 16px 8px;
		margin-inline: -16px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}

	.wvsm-grid::-webkit-scrollbar {
		display: none;
	}

	.wvsm-grid > li {
		flex: 0 0 240px;
		scroll-snap-align: start;
	}

	.wvsm-card__button {
		padding: 26px 16px 20px;
	}

	.wvsm-card__title {
		font-size: 12.5px;
	}

	.wvsm-card__subtitle {
		font-size: 12px;
	}

	.wvsm-card__button:hover {
		transform: none;
		box-shadow: none;
		border-color: var( --wvsm-hairline );
	}

	.wvsm-dots {
		display: flex;
	}
}

/* Modal ------------------------------------------------------------------ */

body.wvsm-open {
	overflow: hidden;
}

/*
 * The Elfsight widgets on this site paint at z-index 2e9 and up (cookie bar,
 * announcement bar, the floating reservation button). While a card is open
 * they would sit on top of it, so they step aside and come straight back.
 */
body.wvsm-open [class*="elfsight-app-"],
body.wvsm-open [class*="ElfsightPortalNest"] {
	visibility: hidden !important;
}

.wvsm-modal {
	--wvsm-accent: var( --theme-palette-color-1, #a3997e );
	--wvsm-radius: 3px;
	--wvsm-ease: cubic-bezier( .2, .6, .3, 1 );

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.wvsm-modal[hidden] {
	display: none;
}

.wvsm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 12, 11, 9, .82 );
	animation: wvsm-fade .22s var( --wvsm-ease );
}

@keyframes wvsm-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.wvsm-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min( 1180px, 100% );
	height: min( 92vh, 100% );
	overflow: hidden;
	border-radius: var( --wvsm-radius );
	background: #fff;
	box-shadow: 0 30px 70px rgba( 0, 0, 0, .5 );
	animation: wvsm-in .2s var( --wvsm-ease );
}

@keyframes wvsm-in {
	from { opacity: 0; transform: translateY( 10px ) scale( .995 ); }
	to   { opacity: 1; transform: none; }
}

.wvsm-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-bottom: 1px solid color-mix( in srgb, var( --wvsm-accent ) 30%, transparent );
	background: #fff;
}

.wvsm-modal__titles {
	min-width: 0;
}

.wvsm-modal__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.3;
	color: #090909;
}

.wvsm-modal__subtitle {
	margin: 4px 0 0;
	font-size: 12px;
	letter-spacing: .02em;
	color: #6d6656;
}

.wvsm-modal__subtitle[hidden] {
	display: none;
}

.wvsm-modal__tools {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.wvsm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid color-mix( in srgb, var( --wvsm-accent ) 40%, transparent );
	border-radius: var( --wvsm-radius );
	background: #fff;
	color: #090909;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .2s var( --wvsm-ease ), color .2s var( --wvsm-ease ), background-color .2s var( --wvsm-ease );
}

.wvsm-btn:hover {
	border-color: var( --wvsm-accent );
	background: color-mix( in srgb, var( --wvsm-accent ) 10%, #fff );
	color: #090909;
}

.wvsm-btn:focus-visible {
	outline: 2px solid var( --wvsm-accent );
	outline-offset: 2px;
}

.wvsm-btn[disabled] {
	opacity: .4;
	cursor: default;
}

.wvsm-btn--icon {
	font-size: 17px;
	letter-spacing: 0;
}

.wvsm-btn--close {
	font-size: 20px;
	letter-spacing: 0;
}

.wvsm-btn__icon {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

.wvsm-btn .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px );
	white-space: nowrap;
}

.wvsm-modal__viewport {
	position: relative;
	flex: 1 1 auto;
	overflow: auto;
	padding: 16px;
	background: #1c1b17;
	touch-action: pinch-zoom pan-x pan-y;
	-webkit-overflow-scrolling: touch;
}

.wvsm-modal__viewport:focus-visible {
	outline: none;
}

.wvsm-modal__status {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	color: #f2efe8;
	font-size: 13px;
	letter-spacing: .04em;
	text-align: center;
}

.wvsm-modal__status[hidden] {
	display: none;
}

.wvsm-modal__status .wvsm-btn {
	background: transparent;
	color: #f2efe8;
	border-color: rgba( 255, 255, 255, .45 );
}

.wvsm-modal__status .wvsm-btn:hover {
	background: rgba( 255, 255, 255, .1 );
	color: #fff;
}

.wvsm-spinner {
	width: 26px;
	height: 26px;
	margin: 0;
	border: 2px solid rgba( 255, 255, 255, .3 );
	border-top-color: var( --wvsm-accent );
	border-radius: 50%;
	animation: wvsm-spin .8s linear infinite;
}

@keyframes wvsm-spin {
	to { transform: rotate( 360deg ); }
}

.wvsm-modal__pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.wvsm-page canvas {
	display: block;
	background: #fff;
	box-shadow: 0 10px 26px rgba( 0, 0, 0, .4 );
}

.wvsm-modal__foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px 18px;
	border-top: 1px solid color-mix( in srgb, var( --wvsm-accent ) 30%, transparent );
	background: #fff;
}

.wvsm-modal__counter {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #6d6656;
}

@media ( max-width: 560px ) {
	.wvsm-grid > li {
		flex: 0 0 68%;
		max-width: 250px;
	}
}

@media ( max-width: 782px ) {
	.wvsm-modal {
		padding: 0;
	}

	.wvsm-modal__panel {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.wvsm-modal__head {
		padding: 12px 14px;
		gap: 10px;
	}

	.wvsm-modal__titles {
		flex: 1 1 auto;
		min-width: 0;
	}

	.wvsm-modal__title,
	.wvsm-modal__subtitle {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.wvsm-modal__title {
		font-size: 13px;
	}

	/* Pinch zoom does this better than buttons on a phone. */
	.wvsm-modal__tools [data-wvsm-zoom] {
		display: none;
	}

	.wvsm-btn__label {
		display: none;
	}

	.wvsm-modal__viewport {
		padding: 10px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wvsm--reveal .wvsm__head,
	.wvsm--reveal.is-in .wvsm__head,
	.wvsm--reveal .wvsm-card,
	.wvsm--reveal.is-in .wvsm-card {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.wvsm-modal__backdrop,
	.wvsm-modal__panel,
	.wvsm-card__button,
	.wvsm-card__rule,
	.wvsm-card__icon svg,
	.wvsm-card__cta svg,
	.wvsm-dot {
		animation: none;
		transition: none;
	}

	.wvsm-spinner {
		animation-duration: 2s;
	}
}
