/* Speisekarte – loaded only on the menu page. */

.royal-menu {
	--royal-catnav-h: 3.25rem;
}

/* ---- Head: title, branch switcher, status ---- */

.royal-menu__head {
	margin-bottom: 1rem;
}

.royal-menu__title {
	margin: 0 0 0.75rem;
}

.royal-switch {
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: var(--wp--preset--color--cream);
	border: 1px solid rgba(96, 28, 39, 0.15);
	gap: 4px;
}

.royal-switch__btn {
	padding: 0.5rem 1.25rem;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--maroon);
}

.royal-switch__btn.is-active {
	background: var(--wp--preset--color--maroon);
	color: var(--wp--preset--color--cream);
}

.royal-switch__btn:not(.is-active):hover {
	background: rgba(96, 28, 39, 0.08);
	color: var(--wp--preset--color--maroon);
}

.royal-menu__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
}

.royal-status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #b32d2e;
	flex: none;
}

.royal-status-dot.is-open {
	background: #1a7f37;
	box-shadow: 0 0 0 4px rgba(26, 127, 55, 0.15);
}

.royal-menu__status-text {
	font-weight: 600;
}

.royal-menu__status-addr {
	color: rgba(34, 34, 33, 0.65);
}

/* ---- Tools: search + filter chips (JS reveals) ---- */

.royal-menu__tools {
	margin: 1rem 0;
}

.royal-search input {
	width: 100%;
	padding: 0.75rem 1rem;
	min-height: 48px;
	border: 1.5px solid rgba(96, 28, 39, 0.25);
	border-radius: 12px;
	font: inherit;
	background: var(--wp--preset--color--base);
}

.royal-search input:focus {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--maroon);
}

.royal-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.royal-chip {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.9rem;
	min-height: 44px;
	border: 1.5px solid rgba(96, 28, 39, 0.25);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
}

.royal-chip::-webkit-details-marker {
	display: none;
}

.royal-chip:active {
	transform: scale(0.96);
}

.royal-chip:hover {
	border-color: var(--wp--preset--color--maroon);
}

.royal-chip[aria-pressed="true"] {
	background: var(--wp--preset--color--maroon);
	border-color: var(--wp--preset--color--maroon);
	color: var(--wp--preset--color--cream);
}

.royal-allergenfilter {
	position: relative;
}

.royal-allergenfilter[open] > .royal-chip {
	background: var(--wp--preset--color--maroon);
	border-color: var(--wp--preset--color--maroon);
	color: var(--wp--preset--color--cream);
}

.royal-allergenfilter__list {
	position: absolute;
	z-index: 60;
	top: calc(100% + 6px);
	left: 0;
	min-width: 16rem;
	max-height: 18rem;
	overflow: auto;
	padding: 0.75rem;
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(96, 28, 39, 0.2);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(34, 34, 33, 0.18);
}

.royal-allergenfilter__list label {
	display: block;
	padding: 0.3rem 0.25rem;
	font-size: 0.9375rem;
}

/* ---- Featured strip ---- */

.royal-featured {
	margin: 1.25rem 0;
}

.royal-featured__title {
	font-size: var(--wp--preset--font-size--large);
	margin: 0 0 0.75rem;
}

.royal-featured__list {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	padding: 2px 2px 8px;
	margin: 0;
	list-style: none;
	scroll-snap-type: x proximity;
}

.royal-featured__card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	width: 10.5rem;
	flex: none;
	text-decoration: none;
	color: inherit;
	background: var(--wp--preset--color--base);
	border: 1.5px solid var(--wp--preset--color--gold);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.royal-featured__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(96, 28, 39, 0.18);
}

.royal-featured__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 6rem;
	object-fit: cover;
	font-size: 2rem;
	background: linear-gradient(135deg, var(--wp--preset--color--gold) 0%, var(--wp--preset--color--amber) 100%);
}

.royal-featured__name {
	padding: 0.5rem 0.75rem 0;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.royal-featured__price {
	padding: 0.15rem 0.75rem 0.6rem;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: 0.9375rem;
}

/* ---- Sticky category nav ---- */

.royal-catnav {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	margin: 0 calc(-1 * var(--wp--preset--spacing--40, 1rem));
	background: var(--wp--preset--color--maroon);
	box-shadow: 0 4px 12px rgba(34, 34, 33, 0.18);
}

.royal-catnav ul {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0 var(--wp--preset--spacing--40, 1rem);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	min-height: var(--royal-catnav-h);
	align-items: stretch;
}

.royal-catnav ul::-webkit-scrollbar {
	display: none;
}

.royal-catnav a {
	display: flex;
	align-items: center;
	padding: 0 0.9rem;
	min-height: var(--royal-catnav-h);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}

.royal-catnav a:hover {
	color: var(--wp--preset--color--gold);
}

.royal-catnav a.is-active {
	color: var(--wp--preset--color--gold);
	border-bottom-color: var(--wp--preset--color--gold);
}

/* ---- Sections ---- */

.royal-menu__section {
	scroll-margin-top: calc(var(--royal-catnav-h) + var(--wp-admin--admin-bar--height, 0px) + 0.75rem);
	margin: 2rem 0;
}

.royal-menu__section-img {
	width: 100%;
	height: 10rem;
	object-fit: cover;
	border-radius: 14px;
	margin-bottom: 0.75rem;
}

.royal-menu__section h2 {
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--maroon);
	margin: 0 0 0.25rem;
}

.royal-menu__section-intro {
	margin: 0 0 1rem;
	color: rgba(34, 34, 33, 0.7);
}

/* ---- Item rows ---- */

.royal-menu__items {
	display: grid;
	gap: 0.6rem;
	margin-top: 1rem;
}

.royal-item {
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(96, 28, 39, 0.12);
	border-radius: 14px;
	transition: box-shadow 160ms ease, border-color 160ms ease;
}

.royal-item[open],
.royal-item:hover {
	border-color: rgba(96, 28, 39, 0.3);
	box-shadow: 0 6px 18px rgba(96, 28, 39, 0.1);
}

.royal-item__row {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	justify-content: space-between;
	padding: 0.85rem 1rem;
	cursor: pointer;
	list-style: none;
}

.royal-item__row::-webkit-details-marker {
	display: none;
}

.royal-item__body {
	display: block;
	min-width: 0;
}

.royal-item__name {
	display: block;
	font-weight: 700;
	line-height: 1.35;
}

/* Printed menu number – customers order by it at the counter. */
.royal-item__num {
	display: inline-block;
	min-width: 1.6em;
	margin-inline-end: 0.4em;
	padding: 0.05em 0.3em;
	border-radius: 0.35em;
	background: color-mix(in srgb, var(--wp--preset--color--maroon) 9%, transparent);
	color: color-mix(in srgb, var(--wp--preset--color--maroon) 75%, transparent);
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 0.66em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
	text-align: center;
	vertical-align: 0.2em;
}

.royal-item__marks {
	white-space: nowrap;
	margin-inline-start: 0.25rem;
	font-weight: 400;
}

.royal-badge {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	vertical-align: 0.1em;
	margin-inline-start: 0.25rem;
}

.royal-badge--neu {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--maroon);
}

.royal-badge--beliebt {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.royal-badge--soldout {
	background: rgba(34, 34, 33, 0.85);
	color: var(--wp--preset--color--base);
}

.royal-item__desc {
	display: block;
	margin-top: 0.15rem;
	color: rgba(34, 34, 33, 0.7);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.royal-item__codes {
	color: rgba(34, 34, 33, 0.5);
	font-size: 0.8125rem;
}

.royal-item__price {
	flex: none;
	font-weight: 700;
	color: var(--wp--preset--color--maroon);
	white-space: nowrap;
}

.royal-item.is-soldout .royal-item__name,
.royal-item.is-soldout .royal-item__desc,
.royal-item.is-soldout .royal-item__price {
	opacity: 0.55;
}

.royal-item.is-hidden {
	display: none;
}

.royal-menu__section.is-hidden,
.royal-catnav li.is-hidden,
.royal-featured.is-hidden {
	display: none;
}

/* ---- Item details (native <details> body / sheet content) ---- */

.royal-item__details {
	padding: 0 1rem 1rem;
	border-top: 1px dashed rgba(96, 28, 39, 0.15);
	margin-top: -0.25rem;
	padding-top: 0.75rem;
}

.royal-item__photo {
	width: 100%;
	max-height: 14rem;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 0.75rem;
}

.royal-item__details h3 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--maroon);
	margin: 0.9rem 0 0.3rem;
}

.royal-item__pricelist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.royal-item__pricelist li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.25rem 0;
	font-size: 0.9375rem;
}

.royal-item__drink {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	color: rgba(34, 34, 33, 0.75);
}

.royal-item__declarations {
	margin-top: 0.9rem;
	font-size: 0.8125rem;
	color: rgba(34, 34, 33, 0.65);
}

.royal-item__declarations p {
	margin: 0.25rem 0;
}

/* ---- Empty state ---- */

.royal-menu__empty {
	text-align: center;
	padding: 2.5rem 1rem;
	font-weight: 600;
	color: rgba(34, 34, 33, 0.6);
}

/* ---- Legend ---- */

.royal-legend {
	margin-top: 3rem;
	padding: 1.5rem;
	background: var(--wp--preset--color--cream);
	border-radius: 16px;
}

.royal-legend h2 {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--maroon);
	margin: 0 0 0.75rem;
}

.royal-legend h3 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 0.4rem;
}

.royal-legend__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.25rem;
}

.royal-legend ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	color: rgba(34, 34, 33, 0.8);
}

.royal-legend li {
	padding: 0.15rem 0;
}

/* ---- Bottom sheet dialog (JS enhancement) ---- */

.royal-sheet {
	border: none;
	border-radius: 20px 20px 0 0;
	padding: 0;
	width: 100%;
	max-width: 40rem;
	margin: auto auto 0;
	max-height: 85dvh;
	box-shadow: 0 -12px 40px rgba(34, 34, 33, 0.3);
}

.royal-sheet::backdrop {
	background: rgba(34, 34, 33, 0.5);
}

@media (min-width: 782px) {
	.royal-sheet {
		border-radius: 20px;
		margin: auto;
	}
}

.royal-sheet__head {
	position: sticky;
	top: 0;
	display: flex;
	align-items: baseline;
	gap: 1rem;
	justify-content: space-between;
	padding: 1rem 1rem 0.75rem;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid rgba(96, 28, 39, 0.12);
}

.royal-sheet__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	color: var(--wp--preset--color--maroon);
	margin: 0;
}

.royal-sheet__price {
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	white-space: nowrap;
}

.royal-sheet__close {
	appearance: none;
	border: none;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--maroon);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	flex: none;
	align-self: center;
}

.royal-sheet .royal-item__details {
	border-top: none;
	padding: 0.75rem 1rem 1.25rem;
}

@keyframes royal-sheet-up {
	from {
		transform: translateY(24px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.royal-sheet[open] {
	animation: royal-sheet-up 200ms ease-out;
}

/* When JS drives the sheet, summaries no longer expand inline. */
.royal-menu.has-sheet .royal-item__details {
	display: none;
}

.royal-menu.has-sheet .royal-sheet .royal-item__details,
.royal-sheet .royal-item__details {
	display: block;
}

/* ---------------------------------------------------------------------------
 * Desktop (≥1200px) — the mobile layout below this breakpoint is unchanged.
 * Category nav becomes a sticky sidebar card, items flow in two columns.
 * ------------------------------------------------------------------------- */

@media (min-width: 1200px) {
	.royal-menu {
		display: grid;
		grid-template-columns: 15rem minmax(0, 1fr);
		grid-template-areas:
			"head head"
			"tools tools"
			"featured featured"
			"catnav sections"
			"catnav empty"
			"legend legend";
		column-gap: 2.75rem;
	}

	.royal-menu__head {
		grid-area: head;
		display: grid;
		grid-template-columns: auto auto 1fr;
		align-items: center;
		gap: 0.75rem 2rem;
		margin-bottom: 0.25rem;
	}

	.royal-menu__title {
		margin: 0;
	}

	.royal-menu__status {
		margin: 0;
		justify-self: end;
		text-align: right;
	}

	.royal-menu__tools {
		grid-area: tools;
		display: flex;
		align-items: flex-start;
		gap: 1rem;
		margin: 0.75rem 0 1rem;
	}

	.royal-search {
		flex: 1 1 18rem;
		margin: 0;
	}

	.royal-chips {
		margin: 0;
		flex: none;
	}

	.royal-featured {
		grid-area: featured;
	}

	.royal-catnav {
		grid-area: catnav;
		align-self: start;
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.25rem);
		margin: 2rem 0 0;
		background: none;
		box-shadow: none;
	}

	.royal-catnav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		overflow: visible;
		min-height: 0;
		padding: 0.6rem;
		background: var(--wp--preset--color--base);
		border: 1px solid rgba(96, 28, 39, 0.14);
		border-radius: 14px;
		box-shadow: 0 6px 20px rgba(96, 28, 39, 0.07);
	}

	.royal-catnav a {
		min-height: 0;
		padding: 0.55rem 0.9rem;
		color: var(--wp--preset--color--contrast);
		border-bottom: none;
		border-left: 3px solid transparent;
		border-radius: 8px;
		white-space: normal;
		transition: background-color 140ms ease, color 140ms ease;
	}

	.royal-catnav a:hover {
		color: var(--wp--preset--color--maroon);
		background: var(--wp--preset--color--cream);
	}

	.royal-catnav a.is-active {
		color: var(--wp--preset--color--maroon);
		background: var(--wp--preset--color--cream);
		border-left-color: var(--wp--preset--color--gold);
		border-bottom: none;
	}

	.royal-menu__sections {
		grid-area: sections;
	}

	.royal-menu__sections .royal-menu__section:first-child {
		margin-top: 2rem;
	}

	.royal-menu__section {
		scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem);
	}

	.royal-menu__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
		align-items: start;
	}

	.royal-menu__section-img {
		height: 13rem;
	}

	.royal-menu__empty {
		grid-area: empty;
	}

	.royal-legend {
		grid-area: legend;
		padding: 2rem;
	}
}

/* Details sheet: centered modal with a soft backdrop on desktop. */
@media (min-width: 782px) {
	.royal-sheet {
		max-width: 42rem;
	}

	.royal-sheet::backdrop {
		backdrop-filter: blur(2px);
	}
}

/* ---- Back to top ---- */

.royal-totop {
	position: fixed;
	right: 1rem;
	bottom: calc(var(--wp--custom--action-bar-height, 4rem) + env(safe-area-inset-bottom) + 1rem);
	z-index: 90;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: var(--wp--preset--color--maroon);
	color: var(--wp--preset--color--gold);
	font-size: 1.25rem;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(34, 34, 33, 0.3);
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 200ms ease, transform 200ms ease;
}

.royal-totop.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

@media (min-width: 782px) {
	.royal-totop {
		bottom: 1.25rem;
	}
}

/* ===========================================================================
 * Redesign: cover, floating tools card, featured grid, pill category bar,
 * section headings with icon + count. Overrides the base rules above.
 * ========================================================================= */

.royal-menu-page {
	overflow-x: clip;
}

/* ---- Cover ---- */

.royal-menu-cover {
	position: relative;
	isolation: isolate;
	margin: 0 calc(50% - 50vw) 0;
	padding:
		clamp(2.5rem, 6vw, 4.5rem)
		max(var(--wp--preset--spacing--40, 1rem), calc((100vw - var(--wp--style--global--wide-size)) / 2))
		clamp(4.75rem, 8vw, 6rem);
	overflow: hidden;
	color: var(--wp--preset--color--cream);
	background: #2e0e14;
}

/* Food photo on the right, fading into the royal red. */
.royal-menu-cover::before {
	content: "";
	position: absolute;
	inset: 0 0 0 35%;
	z-index: -2;
	background: url("../images/doener-teller.webp") center / cover no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

.royal-menu-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(45% 80% at 0% 0%, rgba(192, 30, 36, 0.45), transparent 70%),
		linear-gradient(90deg, rgba(46, 14, 20, 0.95) 0%, rgba(74, 21, 32, 0.75) 45%, rgba(46, 14, 20, 0.3) 100%),
		repeating-linear-gradient(45deg, rgba(235, 194, 63, 0.04) 0 1px, transparent 1px 34px);
}

.royal-menu-cover__inner {
	max-width: 40rem;
}

.royal-menu-cover__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--gold);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.royal-menu-cover__eyebrow::before {
	content: "";
	width: 2rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.royal-menu-cover .royal-menu__title {
	margin: 0 0 1.1rem;
	color: var(--wp--preset--color--cream);
	font-size: clamp(2.6rem, 6vw, 4.5rem);
	line-height: 1;
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.royal-menu-cover .royal-menu__title span {
	color: var(--wp--preset--color--gold);
}

.royal-menu-cover__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.royal-menu-cover__facts li {
	padding: 0.35rem 0.85rem;
	border: 1px solid rgba(235, 194, 63, 0.35);
	border-radius: 999px;
	background: rgba(252, 246, 226, 0.07);
	font-size: 0.875rem;
	font-weight: 600;
}

.royal-menu-cover__facts strong {
	color: var(--wp--preset--color--gold);
}

/* Branch switch + status on dark. */
.royal-menu-cover .royal-switch {
	background: rgba(252, 246, 226, 0.08);
	border-color: rgba(235, 194, 63, 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.royal-menu-cover .royal-switch__btn {
	color: var(--wp--preset--color--cream);
}

.royal-menu-cover .royal-switch__btn.is-active {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--maroon);
	box-shadow: 0 8px 20px -8px rgba(235, 194, 63, 0.6);
}

.royal-menu-cover .royal-switch__btn:not(.is-active):hover {
	background: rgba(252, 246, 226, 0.12);
	color: var(--wp--preset--color--cream);
}

.royal-menu-cover .royal-menu__status {
	margin-top: 0.9rem;
	color: var(--wp--preset--color--cream);
}

.royal-menu-cover .royal-menu__status-addr {
	color: rgba(252, 246, 226, 0.7);
}

.royal-menu-cover .royal-status-dot {
	background: #f87171;
}

.royal-menu-cover .royal-status-dot.is-open {
	background: #4ade80;
	box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

@media (max-width: 781px) {
	.royal-menu-cover::before {
		inset: 0;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.royal-menu-cover::after {
		background:
			radial-gradient(60% 50% at 0% 0%, rgba(192, 30, 36, 0.45), transparent 70%),
			linear-gradient(180deg, rgba(46, 14, 20, 0.82) 0%, rgba(46, 14, 20, 0.92) 100%);
	}
}

/* ---- Tools: floating card over the cover's bottom edge ---- */

.royal-menu__tools {
	position: relative;
	z-index: 55;
	margin: -3.25rem 0 1.5rem;
	padding: 0.85rem;
	border: 1px solid rgba(96, 28, 39, 0.1);
	border-radius: 20px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 24px 50px -24px rgba(46, 14, 20, 0.45);
}

.royal-search {
	position: relative;
	margin: 0;
}

.royal-search::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23601C27' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.7;
}

.royal-search input {
	padding-left: 2.75rem;
	border-color: rgba(96, 28, 39, 0.18);
	border-radius: 14px;
	background: #fffdf6;
}

@media (max-width: 1199px) {
	/* Two even rows of filter chips instead of one orphaned chip. */
	.royal-chips {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
	}

	.royal-allergenfilter {
		display: flex;
		min-width: 0;
	}

	.royal-allergenfilter__list {
		left: auto;
		right: 0;
	}

	.royal-chip,
	.royal-allergenfilter > .royal-chip {
		box-sizing: border-box;
		justify-content: center;
		width: 100%;
		font-size: 0.875rem;
	}
}

/* ---- Featured ---- */

.royal-featured {
	margin: 0 0 1.5rem;
}

.royal-featured__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--maroon);
	font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

.royal-featured__card {
	border: 0;
	border-radius: 16px;
	box-shadow: 0 14px 30px -18px rgba(96, 28, 39, 0.55), 0 0 0 1px rgba(235, 194, 63, 0.6);
}

.royal-featured__price {
	font-size: 1rem;
}

@media (min-width: 782px) {
	.royal-featured__list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
		gap: 1rem;
		overflow: visible;
	}

	.royal-featured__card {
		width: auto;
		height: 100%;
	}

	.royal-featured__img {
		height: 9rem;
		font-size: 2.75rem;
	}

	.royal-featured__name {
		padding: 0.7rem 0.9rem 0;
		font-size: 1rem;
	}

	.royal-featured__price {
		padding: 0.2rem 0.9rem 0.85rem;
	}
}

/* ---- Category bar (mobile/tablet): gold pill for the active one ---- */

@media (max-width: 1199px) {
	.royal-catnav {
		background: linear-gradient(90deg, #4a1520, var(--wp--preset--color--maroon));
	}

	.royal-catnav ul {
		align-items: center;
		gap: 0.35rem;
		scroll-padding-inline: 1rem;
	}

	.royal-catnav a {
		min-height: 2.3rem;
		padding: 0 0.95rem;
		border: 1px solid rgba(235, 194, 63, 0.25);
		border-bottom-width: 1px;
		border-radius: 999px;
		font-size: 0.875rem;
		transition: background-color 160ms ease, color 160ms ease;
	}

	.royal-catnav a.is-active {
		border-color: var(--wp--preset--color--gold);
		background: var(--wp--preset--color--gold);
		color: var(--wp--preset--color--maroon);
	}
}

/* ---- Section headings: icon, name, dish count ---- */

.royal-menu__section-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.85rem;
	padding-bottom: 0.85rem;
	border-bottom: 2px solid rgba(235, 194, 63, 0.45);
}

.royal-menu__section-title h2 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.15;
}

.royal-menu__section-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	box-shadow: inset 0 0 0 1.5px rgba(235, 194, 63, 0.7);
	font-size: 1.35rem;
}

.royal-menu__section-count {
	margin-left: auto;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--maroon);
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}

.royal-menu__section {
	margin: 2.5rem 0;
}

/* ---- Items: price pill, gold accent on hover ---- */

.royal-item {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
}

.royal-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--wp--preset--color--gold);
	transform: scaleY(0);
	transition: transform 200ms ease;
}

.royal-item:hover::before,
.royal-item[open]::before {
	transform: scaleY(1);
}

.royal-item__price {
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--cream);
	font-size: 0.95rem;
}

/* ---- Desktop ---- */

@media (min-width: 1200px) {
	.royal-menu__head.royal-menu-cover {
		display: block;
		margin-bottom: 0;
	}

	.royal-menu-cover .royal-menu__status {
		justify-self: auto;
		text-align: left;
	}

	.royal-menu__tools {
		margin: -3.25rem 0 2rem;
		padding: 0.85rem 1rem;
		align-items: center;
	}

	.royal-catnav {
		margin-top: 2.5rem;
	}

	.royal-catnav ul {
		padding: 0.75rem;
		border-radius: 18px;
		box-shadow: 0 18px 40px -24px rgba(96, 28, 39, 0.45);
	}

	.royal-catnav ul::before {
		content: "Kategorien";
		display: block;
		padding: 0.25rem 0.9rem 0.6rem;
		color: var(--wp--preset--color--primary);
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.16em;
		text-transform: uppercase;
	}

	.royal-catnav a {
		font-size: 0.9375rem;
		font-weight: 600;
		color: rgba(34, 34, 33, 0.85);
		border-left: 0;
	}

	.royal-catnav a.is-active {
		background: var(--wp--preset--color--maroon);
		color: var(--wp--preset--color--cream);
	}

	.royal-catnav a.is-active:hover {
		background: var(--wp--preset--color--maroon);
		color: var(--wp--preset--color--gold);
	}
}

/* ---- Small phones ---- */

@media (max-width: 599px) {
	.royal-menu-cover__eyebrow {
		font-size: 0.7rem;
		letter-spacing: 0.14em;
		text-wrap: balance;
	}

	.royal-menu-cover__eyebrow::before {
		display: none;
	}

	.royal-menu-cover .royal-menu__title {
		font-size: clamp(2.2rem, 11vw, 2.75rem);
	}

	.royal-menu-cover__facts li {
		padding: 0.3rem 0.7rem;
		font-size: 0.8125rem;
	}

	.royal-chip,
	.royal-allergenfilter > .royal-chip {
		padding: 0.4rem 0.5rem;
		font-size: 0.8125rem;
		white-space: nowrap;
	}

	.royal-menu__section-title h2 {
		font-size: clamp(1.3rem, 6.2vw, 1.6rem);
	}

	.royal-menu__section-icon {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 1.1rem;
	}
}

@media (max-width: 379px) {
	.royal-menu-cover .royal-switch__btn {
		padding: 0.5rem 1rem;
	}

	.royal-menu__status-addr {
		flex-basis: 100%;
	}

	.royal-item__row {
		gap: 0.6rem;
		padding: 0.8rem 0.8rem;
	}

	.royal-item__price {
		padding: 0.1rem 0.5rem;
		font-size: 0.875rem;
	}
}

/* ---- Dish thumbnails in the list rows ---- */

.royal-item.has-thumb .royal-item__row {
	align-items: center;
	gap: 0.9rem;
}

.royal-item__thumb {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 6px 14px -8px rgba(96, 28, 39, 0.5);
	transition: transform 300ms ease;
}

.royal-item__row .royal-item__body {
	flex: 1;
}

@media (hover: hover) {
	.royal-item:hover .royal-item__thumb {
		transform: scale(1.06) rotate(-2deg);
	}
}

@media (max-width: 379px) {
	.royal-item__thumb {
		width: 52px;
		height: 52px;
		border-radius: 12px;
	}
}

/* ===========================================================================
 * Dish details: bottom sheet on phones, two-column modal on desktop.
 * Photo (or branded placeholder) + category, name, marks, description,
 * price, sizes/extras, collapsible allergens and a sticky call button.
 * ========================================================================= */

html.royal-sheet-open {
	overflow: hidden;
}

.royal-sheet {
	width: 100%;
	max-width: 34rem;
	max-height: 92dvh;
	padding: 0;
	overflow: hidden;
	border-radius: 24px 24px 0 0;
	background: #fff;
	box-shadow: 0 -20px 60px rgba(30, 8, 12, 0.35);
	transition: transform 250ms ease;
}

.royal-sheet[open] {
	display: flex;
	flex-direction: column;
}

.royal-sheet::backdrop {
	background: rgba(30, 8, 12, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* ---- Media ---- */

.royal-sheet__media {
	position: relative;
	flex: none;
	height: clamp(12rem, 36dvh, 17rem);
	overflow: hidden;
	background:
		radial-gradient(90% 90% at 20% 15%, rgba(252, 246, 226, 0.4), transparent 55%),
		linear-gradient(135deg, var(--wp--preset--color--gold) 0%, var(--wp--preset--color--amber) 100%);
	touch-action: none;
}

.royal-sheet:not(.has-photo) .royal-sheet__media {
	height: 8.5rem;
}

.royal-sheet__media img,
.royal-sheet__media .royal-item__photo {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	-webkit-user-drag: none;
	user-select: none;
}

.royal-sheet__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	font-size: 3.75rem;
	filter: drop-shadow(0 8px 18px rgba(96, 28, 39, 0.35));
}

.royal-sheet__grab {
	position: absolute;
	top: 0.6rem;
	left: 50%;
	width: 44px;
	height: 5px;
	margin-left: -22px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.royal-sheet__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--wp--preset--color--maroon);
	box-shadow: 0 6px 16px -6px rgba(30, 8, 12, 0.5);
	cursor: pointer;
	transition: transform 150ms ease, background-color 150ms ease;
}

.royal-sheet__close:hover {
	background: var(--wp--preset--color--gold);
}

.royal-sheet__close:active {
	transform: scale(0.92);
}

.royal-sheet__close svg {
	width: 18px;
	height: 18px;
}

.royal-sheet.is-soldout .royal-sheet__media img {
	filter: grayscale(0.8);
}

.royal-sheet.is-soldout .royal-sheet__media::after {
	content: "Ausverkauft";
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(34, 34, 33, 0.88);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
}

/* ---- Content ---- */

.royal-sheet__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.royal-sheet__intro {
	padding: 1.25rem 1.25rem 0.25rem;
}

.royal-sheet__cat {
	margin: 0 0 0.3rem;
	color: var(--wp--preset--color--primary);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.royal-sheet__title {
	margin: 0;
	color: var(--wp--preset--color--maroon);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 5vw, 1.9rem);
	font-weight: 400;
	line-height: 1.15;
}

.royal-sheet__marks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.5rem;
	font-size: 1.1rem;
}

.royal-sheet__marks .royal-badge {
	margin: 0;
	font-size: 0.75rem;
}

.royal-sheet__desc {
	display: block;
	margin: 0.6rem 0 0;
	color: rgba(34, 34, 33, 0.75);
	font-size: 1rem;
	line-height: 1.5;
}

.royal-sheet__price {
	display: inline-flex;
	margin: 0.9rem 0 0;
	padding: 0.35rem 1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--maroon);
	font-size: 1.15rem;
	font-weight: 800;
	box-shadow: 0 8px 18px -10px rgba(235, 194, 63, 0.9);
}

.royal-sheet .royal-sheet__details {
	display: block;
	margin: 0;
	padding: 0.25rem 1.25rem 1.25rem;
	border-top: 0;
}

.royal-sheet__details .royal-item__long {
	margin-top: 1rem;
	color: rgba(34, 34, 33, 0.8);
}

.royal-sheet__details .royal-item__long p {
	margin: 0 0 0.5rem;
}

.royal-sheet__details h3 {
	margin: 1.4rem 0 0.55rem;
	color: var(--wp--preset--color--maroon);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.royal-sheet__details .royal-item__pricelist {
	display: grid;
	gap: 0.4rem;
}

.royal-sheet__details .royal-item__pricelist li {
	align-items: center;
	padding: 0.65rem 0.9rem;
	border: 1px solid rgba(96, 28, 39, 0.1);
	border-radius: 12px;
	background: #fffdf7;
	font-size: 0.9375rem;
}

.royal-sheet__details .royal-item__pricelist li span:last-child {
	flex: none;
	color: var(--wp--preset--color--maroon);
	font-weight: 700;
	white-space: nowrap;
}

.royal-sheet__details .royal-item__pricelist--sizes li span:last-child {
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--cream);
}

/* ---- Allergens: collapsible, readable list (also used inline without JS) ---- */

.royal-item__declarations {
	margin-top: 1.25rem;
	border: 1px solid rgba(96, 28, 39, 0.12);
	border-radius: 14px;
	background: #fff;
}

.royal-item__declarations > summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.6rem 0.9rem;
	color: var(--wp--preset--color--maroon);
	font-size: 0.875rem;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.royal-item__declarations > summary::-webkit-details-marker {
	display: none;
}

.royal-item__declarations > summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 200ms ease;
}

.royal-item__declarations[open] > summary::after {
	transform: rotate(-135deg) translateY(-2px);
}

.royal-item__declcount {
	display: inline-grid;
	place-items: center;
	min-width: 1.4rem;
	height: 1.4rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--wp--preset--color--cream);
	font-size: 0.75rem;
}

.royal-item__decl-list {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0 0.9rem 0.9rem;
	list-style: none;
	font-size: 0.875rem;
	color: rgba(34, 34, 33, 0.8);
}

.royal-item__decl-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.royal-item__decl-list b {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--maroon);
	font-size: 0.75rem;
}

/* ---- Footer: order online ---- */

.royal-sheet__foot {
	position: sticky;
	bottom: 0;
	display: flex;
	gap: 0.6rem;
	margin-top: auto;
	padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(96, 28, 39, 0.1);
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.royal-sheet__order {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	min-height: 54px;
	padding: 0.5rem 1rem;
	border-radius: 16px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	text-decoration: none;
	box-shadow: 0 10px 22px -12px rgba(192, 30, 36, 0.8);
	transition: background-color 150ms ease, transform 120ms ease;
}

.royal-sheet__order:hover {
	background: var(--wp--preset--color--maroon);
}

.royal-sheet__order:active {
	transform: scale(0.98);
}

.royal-sheet__order svg {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--wp--preset--color--gold);
}

.royal-sheet__order span {
	display: grid;
	justify-items: start;
	line-height: 1.2;
}

.royal-sheet__order strong {
	font-size: 1rem;
}

.royal-sheet__order small {
	font-size: 0.75rem;
	opacity: 0.85;
}

@media (max-width: 379px) {
	.royal-sheet__order small {
		display: none;
	}
}

/* ---- Desktop: two columns, photo left ---- */

@media (min-width: 782px) {
	.royal-sheet {
		width: calc(100% - 3rem);
		max-width: 60rem;
		max-height: min(88dvh, 42rem);
		margin: auto;
		border-radius: 28px;
		box-shadow: 0 40px 100px -20px rgba(30, 8, 12, 0.55);
	}

	.royal-sheet[open] {
		flex-direction: row;
	}

	.royal-sheet__media {
		position: static;
		width: 47%;
		height: auto;
		touch-action: auto;
	}

	.royal-sheet:not(.has-photo) .royal-sheet__media {
		width: 32%;
		height: auto;
	}

	.royal-sheet__placeholder {
		font-size: 5rem;
	}

	.royal-sheet__grab {
		display: none;
	}

	.royal-sheet__close {
		top: 1rem;
		right: 1rem;
		background: var(--wp--preset--color--cream);
		box-shadow: none;
	}

	.royal-sheet__intro {
		padding: 2rem 4.5rem 0.25rem 2rem;
	}

	.royal-sheet .royal-sheet__details {
		padding: 0.25rem 2rem 1.5rem;
	}

	.royal-sheet__foot {
		padding: 1rem 2rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.royal-sheet[open] .royal-sheet__media img {
		animation: royal-sheet-zoom 600ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
	}
}

@keyframes royal-sheet-zoom {
	from {
		transform: scale(1.08);
	}

	to {
		transform: none;
	}
}
