/**
 * Zafran theme styles – ITS DIGITAL INDIA
 *
 * Colours and fonts come from Elementor → Site Settings (Global Colors / Global Fonts).
 * The fallbacks below are only used when Elementor is inactive.
 */

:root {
	--z-green: var(--e-global-color-primary, #12372a);
	--z-gold: var(--e-global-color-secondary, #b8923f);
	--z-text: var(--e-global-color-text, #4b4a43);
	--z-cream: var(--e-global-color-zcream, #f7f0e4);
	--z-deep: var(--e-global-color-zdeep, #0d2b20);
	--z-gold-light: var(--e-global-color-zgoldlt, #d6b46a);
	--z-red: var(--e-global-color-zred, #a3302a);
	--z-serif: var(--e-global-typography-primary-font-family, "Cormorant Garamond"), Georgia, "Times New Roman", serif;
	--z-sans: var(--e-global-typography-text-font-family, "Jost"), "Helvetica Neue", Arial, sans-serif;
	--z-line: rgba(18, 55, 42, 0.14);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 130px;
}

body {
	margin: 0;
	background: var(--z-cream);
	color: var(--z-text);
	font-family: var(--z-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--z-green);
}

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
	color: var(--z-green);
}

.zafran-svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* ---------- Sticky header ---------- */
.zafran-location--header {
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow 0.25s ease;
}

.admin-bar .zafran-location--header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .zafran-location--header {
		top: 0;
	}
}

.zafran-location--header.is-scrolled {
	box-shadow: 0 6px 24px rgba(13, 43, 32, 0.12);
}

/* ---------- Logo ---------- */
.zafran-logo {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: var(--z-gold);
	text-decoration: none;
	line-height: 1;
}

.zafran-logo .zafran-emblem {
	width: 34px;
	height: 28px;
}

.zafran-logo__name {
	font-family: var(--z-serif);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.2em;
	color: var(--z-green);
}

.zafran-logo__tagline {
	margin-top: 6px;
	font-family: var(--z-sans);
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--z-gold-light);
}

.zafran-logo--light .zafran-logo__name {
	color: var(--z-gold-light);
	font-size: 30px;
	font-weight: 500;
	letter-spacing: 0.22em;
}

.zafran-logo--light {
	align-items: flex-start;
}

.zafran-logo--light .zafran-emblem {
	display: none;
}

.custom-logo {
	display: block;
	max-height: 84px;
	width: auto;
}

@media (max-width: 1024px) {
	.custom-logo {
		max-height: 72px;
	}
}

@media (max-width: 767px) {
	.custom-logo {
		max-height: 64px;
	}
}

/* ---------- Highlighted word in headings: wrap it in <em> ---------- */
.zafran-hl em {
	font-style: italic;
	color: var(--z-gold);
}

/* ---------- Main menu ---------- */
.zafran-menu-widget .zafran-nav {
	display: flex;
	justify-content: flex-end;
}

.zafran-menu-widget .zafran-nav__list {
	justify-content: flex-end;
}

.zafran-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zafran-nav__list a {
	display: block;
	padding: 6px 0;
	font-family: var(--z-serif);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--z-green);
	position: relative;
}

.zafran-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--z-gold);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.zafran-nav__list a:hover::after,
.zafran-nav__list a:focus-visible::after,
.zafran-nav__list .current-menu-item > a:not([href*="#"])::after {
	transform: scaleX(1);
}

.zafran-nav__list .sub-menu {
	display: none;
}

.zafran-nav__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--z-green);
	background: transparent;
	color: var(--z-green);
	cursor: pointer;
	position: relative;
}

.zafran-nav__bars,
.zafran-nav__bars::before,
.zafran-nav__bars::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 1.5px;
	margin-left: -10px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.zafran-nav__bars {
	top: 50%;
}

.zafran-nav__bars::before,
.zafran-nav__bars::after {
	content: "";
	left: 0;
	margin-left: 0;
}

.zafran-nav__bars::before {
	top: -6px;
}

.zafran-nav__bars::after {
	top: 6px;
}

.zafran-nav.is-open .zafran-nav__bars {
	background: transparent;
}

.zafran-nav.is-open .zafran-nav__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.zafran-nav.is-open .zafran-nav__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.zafran-nav__toggle {
		display: block;
	}

	.zafran-nav__panel {
		position: fixed;
		left: 0;
		right: 0;
		top: var(--zafran-header-bottom, 112px);
		max-height: 0;
		overflow: hidden;
		background: var(--z-cream);
		border-top: 1px solid var(--z-line);
		box-shadow: 0 18px 30px rgba(13, 43, 32, 0.12);
		transition: max-height 0.35s ease;
	}

	.zafran-nav.is-open .zafran-nav__panel {
		max-height: 80vh;
		overflow-y: auto;
	}

	.zafran-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 16px 20px;
	}

	.zafran-nav__list a {
		padding: 14px 0;
		font-size: 15px;
		border-bottom: 1px solid var(--z-line);
	}

	.zafran-nav__list a::after {
		display: none;
	}
}

/* ---------- Photo placeholders ("Foto folgt") ---------- */
.zafran-photo {
	background-color: var(--z-green);
	background-image:
		radial-gradient(ellipse at center, rgba(214, 180, 106, 0.16) 0%, rgba(214, 180, 106, 0) 62%),
		repeating-linear-gradient(45deg, rgba(214, 180, 106, 0.09) 0 1px, transparent 1px 34px),
		repeating-linear-gradient(-45deg, rgba(214, 180, 106, 0.09) 0 1px, transparent 1px 34px);
	background-position: center;
	background-size: cover;
}

/* ---------- Hero arch ---------- */
.zafran-arch-frame,
.zafran-arch {
	clip-path: url(#zafran-arch);
	-webkit-clip-path: url(#zafran-arch);
}

.zafran-arch-frame {
	background-color: var(--z-gold) !important;
}

/* ---------- Round-top arch with inner gold line (menu cards & tabs) ---------- */
.zafran-arch-round {
	position: relative;
	overflow: hidden;
	border-radius: 999px 999px 0 0;
}

.zafran-arch-round::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(214, 180, 106, 0.75);
	border-radius: 999px 999px 0 0;
	pointer-events: none;
	z-index: 1;
}

/* ---------- Food menu ---------- */
.zafran-dish-img {
	flex: 0 0 auto !important;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(214, 180, 106, 0.35), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.zafran-dish-head .elementor-widget-divider {
	align-self: center;
}

/* Let flexible parts take only the remaining space (no overflow) */
.zafran-dish-info,
.zafran-arch-grow {
	flex: 1 1 0 !important;
	min-width: 0;
}

.zafran-dish-price {
	flex: 0 0 auto !important;
	white-space: nowrap;
}

.zafran-vertical {
	flex: 0 0 auto !important;
}

.zafran-tag {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 6px 1px;
	background: var(--z-gold-light);
	color: var(--z-deep);
	font-family: var(--z-sans);
	font-size: 11px;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	vertical-align: middle;
}

.zafran-vertical .elementor-heading-title {
	writing-mode: vertical-rl;
	white-space: nowrap;
	line-height: 0.9;
}

.zafran-menu-panel {
	background-image:
		radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
}

.zafran-watermark {
	pointer-events: none;
	user-select: none;
}

.zafran-watermark .elementor-heading-title {
	white-space: nowrap;
}

/* Menu tabs: transparent titles, gold underline on the active tab, ✦ between titles */
.zafran-menu-tabs .e-n-tabs-heading {
	justify-content: center;
}

.zafran-menu-tabs .e-n-tab-title {
	position: relative;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid transparent !important;
	padding: 8px 0 !important;
}

.zafran-menu-tabs .e-n-tab-title[aria-selected="true"] {
	border-bottom-color: var(--z-gold-light) !important;
}

.zafran-menu-tabs .e-n-tab-title + .e-n-tab-title::before {
	content: "✦";
	position: absolute;
	left: calc(var(--n-tabs-title-gap, 64px) / -2);
	top: 50%;
	transform: translate(-50%, -50%);
	color: var(--z-gold-light);
	font-size: 10px;
	pointer-events: none;
}

@media (max-width: 767px) {
	.zafran-menu-tabs .e-n-tabs-heading {
		justify-content: flex-start;
		overflow-x: auto;
		padding: 0 4px 4px 20px;
	}

}

/* ---------- Opening badge ---------- */
.zafran-badge {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	box-shadow: 0 0 0 4px var(--z-cream), 0 0 0 5px var(--z-gold), 0 12px 30px rgba(13, 43, 32, 0.2);
}

/* ---------- Underlined text link (e.g. "Jetzt reservieren →") ---------- */
.zafran-textlink .elementor-button {
	transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.zafran-textlink .elementor-button:hover {
	letter-spacing: 0.24em;
}

/* ---------- Feature list 01 / 02 / 03 ---------- */
.zafran-feature {
	border-top: 1px solid rgba(184, 146, 63, 0.55);
}

/* ---------- FAQ (Elementor Accordion) ---------- */
.zafran-faq .e-n-accordion-item {
	border-bottom: 1px solid var(--z-line);
}

.zafran-faq .e-n-accordion-item:first-child {
	border-top: 1px solid var(--z-line);
}

.zafran-faq .e-n-accordion-item-title {
	cursor: pointer;
}

.zafran-faq .e-n-accordion-item-title-text {
	font-family: var(--z-serif);
}

.zafran-faq .e-n-accordion-item > [role="region"] p:last-child {
	margin-bottom: 0;
}

/* ---------- Opening hours ---------- */
.zafran-hours {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.zafran-hours td {
	padding: 9px 0;
	border-bottom: 1px solid rgba(214, 180, 106, 0.22);
	color: #f2ead9;
}

.zafran-hours td:last-child {
	text-align: right;
	color: var(--z-gold-light);
}

.elementor-widget-text-editor .zafran-hours {
	margin: 0;
}

/* ---------- Two-click Google map ---------- */
.zafran-map {
	position: relative;
	min-height: 260px;
	height: 100%;
	border: 1px solid rgba(214, 180, 106, 0.6);
	padding: 12px;
}

.zafran-map__consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 236px;
	height: 100%;
	padding: 24px;
	text-align: center;
	color: #e9e1cf;
	background-image:
		repeating-linear-gradient(0deg, rgba(214, 180, 106, 0.07) 0 1px, transparent 1px 38px),
		repeating-linear-gradient(90deg, rgba(214, 180, 106, 0.07) 0 1px, transparent 1px 38px);
}

.zafran-map__pin {
	width: 26px;
	height: 26px;
	color: var(--z-gold-light);
}

.zafran-map__notice {
	max-width: 260px;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.zafran-map__load {
	padding: 11px 22px;
	border: 1px solid var(--z-gold-light);
	background: transparent;
	color: #f2ead9;
	font-family: var(--z-serif);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.zafran-map__load:hover,
.zafran-map__load:focus-visible {
	background: var(--z-gold-light);
	color: var(--z-deep);
}

.zafran-map__route {
	font-size: 15px;
	color: #f2ead9;
}

.zafran-map__route:hover {
	color: var(--z-gold-light);
}

.zafran-map.is-loaded {
	padding: 0;
}

.zafran-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	border: 0;
}

/* ---------- Fallback header/footer and plain pages ---------- */
.zafran-fallback-header,
.zafran-fallback-footer {
	background: var(--z-cream);
	border-bottom: 1px solid var(--z-line);
}

.zafran-fallback-footer {
	background: var(--z-deep);
	color: #e9e1cf;
	border: 0;
}

.zafran-fallback-inner,
.zafran-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 16px;
}

.zafran-fallback-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.zafran-page {
	padding-top: 64px;
	padding-bottom: 80px;
}

.zafran-page__title {
	font-family: var(--z-serif);
	font-weight: 500;
	font-size: clamp(36px, 5vw, 56px);
	color: var(--z-green);
	margin: 0 0 24px;
}

@media (max-width: 767px) {
	.zafran-dish-head > .elementor-widget-heading:first-child {
		flex: 1 1 auto !important;
		min-width: 0;
	}
}

/* ---------- Full menu (Speisekarte) ---------- */

/* Dish name with dotted leader up to the price */
.zafran-mi-name .elementor-heading-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 8px;
}

.zafran-mi-name .elementor-heading-title::after {
	content: "";
	flex: 1 1 24px;
	min-width: 24px;
	border-bottom: 1px dashed rgba(214, 180, 106, 0.45);
	transform: translateY(-4px);
}

.zafran-mi-name small {
	font-family: var(--z-sans);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	color: rgba(233, 225, 207, 0.6);
}

.zafran-mi-name {
	flex: 1 1 0 !important;
	min-width: 0;
}

.zafran-mi {
	border-bottom: 1px solid rgba(214, 180, 106, 0.16);
}

/* Spice level: <span class="zafran-chili"></span> */
.zafran-chili {
	display: inline-block;
	width: 13px;
	height: 15px;
	margin-left: -2px;
	vertical-align: -2px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath fill='%2368a33a' d='M15.5 2c-.6 0-1 .4-1 1v2.2c-1.4.2-2.6 1-3.3 2.2l2.6 1.4c.3-.6.9-1 1.7-1s1.4.4 1.7 1l2.6-1.4c-.7-1.2-1.9-2-3.3-2.2V3c0-.6-.4-1-1-1z'/%3E%3Cpath fill='%23c62828' d='M19.6 10.2c-.9-1.4-2.4-2.2-4.1-2.2s-3.2.8-4.1 2.2C8.6 14.5 5.7 20.2 2.3 23.6c-.6.6-.2 1.7.7 1.7 7.2 0 13.7-3.7 16.9-9.7.9-1.7.9-3.8-.3-5.4z'/%3E%3C/svg%3E");
}

/* Cut-out food photo inside an arch */
.zafran-cutout {
	background-size: 82% auto !important;
	background-repeat: no-repeat !important;
	background-position: center 70% !important;
}

.zafran-menu-section-title .elementor-heading-title {
	display: flex;
	align-items: center;
	gap: 16px;
}

.zafran-menu-section-title .elementor-heading-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(214, 180, 106, 0.55), rgba(214, 180, 106, 0));
}

.zafran-spice-legend .zafran-chili {
	margin-left: 2px;
}

/* Allergen / additive codes */
.zafran-codes {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 24px;
}

.zafran-codes li {
	break-inside: avoid;
	padding: 6px 0 6px 26px;
	text-indent: -26px;
	border-bottom: 1px solid var(--z-line);
	font-size: 15px;
}

.zafran-codes b {
	display: inline-block;
	min-width: 26px;
	text-indent: 0;
	font-family: var(--z-serif);
	font-size: 17px;
	color: var(--z-gold);
}

@media (max-width: 480px) {
	.zafran-codes {
		columns: 1;
	}
}

/* ---------- Main menu: dropdown (sub-menu) ---------- */
@media (min-width: 1025px) {
	.zafran-nav__list > li {
		position: relative;
	}

	.zafran-nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: -18px;
		z-index: 60;
		display: block;
		min-width: 200px;
		margin: 0;
		padding: 10px 0;
		list-style: none;
		background: var(--z-cream);
		border-top: 2px solid var(--z-gold);
		box-shadow: 0 16px 30px rgba(13, 43, 32, 0.14);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.zafran-nav__list li:hover > .sub-menu,
	.zafran-nav__list li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.zafran-nav__list .sub-menu a {
		padding: 9px 18px;
		white-space: nowrap;
	}

	.zafran-nav__list .sub-menu a::after {
		display: none;
	}

	.zafran-nav__list .sub-menu a:hover {
		color: var(--z-gold);
	}
}

@media (max-width: 1024px) {
	.zafran-nav__list .sub-menu {
		display: block;
		margin: 0;
		padding: 0 0 0 16px;
		list-style: none;
	}

	.zafran-nav__list .sub-menu a {
		font-size: 15px;
	}
}

/* Home page photo strip: 4 x 25% + 3px gaps was 9px wider than the screen and caused sideways scrolling. */
.elementor-element-cc36a51 > .e-con.zafran-photo {
	flex-shrink: 1 !important;
	min-width: 0;
}
