/* Sultanahmet Köftecisi - Finale Version V12 */

/* 1. Grundlegende Stile & Farbschema mit CSS-Variablen
-------------------------------------------------- */
:root,
[data-theme="light"] {
	--accent-color: #C51A1B;
	--text-color: #1a1a1a;
	--subtle-text-color: #6b7280;
	--background-color: #ffffff;
	--surface-color: #f7f8fa;
	--border-color: #e2e8f0;
	--dark-color: #000;
	--category-scroll-offset: 110px;
}

html {
	scroll-padding-top: var(--category-scroll-offset);
}

body {
	font-family: 'Montserrat', sans-serif;
	background-color: var(--background-color);
	color: var(--text-color);
	transition: background-color 0.3s ease, color 0.3s ease;
}

h2 {
	font-size: 26px;
	font-weight: 700 !important;
}

/* 2. Header & Navigation
-------------------------------------------------- */
.main-header-compact {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 247, 244, 0.96) 100%);
	padding: 0.9rem 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.9);
	transition: background-color 0.3s ease, border-color 0.3s ease;
	position: relative;
	z-index: 1030;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.header-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.header-brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.main-header-compact .header-logo-link img {
	height: 54px;
}

.main-header-compact .header-title {
	font-size: 1.25rem;
	font-weight: 600;
}

.header-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.85rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(226, 232, 240, 0.85);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.header-trust-badge img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	flex-shrink: 0;
}

.header-trust-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.header-trust-label {
	font-size: 0.9rem;
	font-weight: 700;
	color: #111827;
}

.header-trust-subtitle {
	font-size: 0.77rem;
	color: var(--subtle-text-color);
}

.main-header-compact .header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.main-header-compact .btn-light {
	background-color: rgba(255, 255, 255, 0.86);
	border: 1px solid rgba(226, 232, 240, 0.9);
	color: var(--text-color);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.header-reservation-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.78rem 1.05rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #c51a1b 0%, #9f1415 100%);
	border: 1px solid rgba(159, 20, 21, 0.9);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 14px 28px rgba(197, 26, 27, 0.22);
}

.header-reservation-btn:hover,
.header-reservation-btn:focus {
	background: linear-gradient(135deg, #b61819 0%, #8e1112 100%);
	color: #fff;
	transform: translateY(-1px);
}

.header-icon-btn,
.header-language-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border-radius: 999px;
}

.header-icon-btn {
	width: 46px;
	padding: 0;
}

.header-language-btn {
	gap: 0.55rem;
	padding: 0.72rem 1rem;
	font-weight: 700;
}

.header-language-btn::after {
	margin-left: 0.15rem;
}

.header-language-menu {
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 16px;
	padding: 0.45rem;
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.header-language-menu .dropdown-item {
	border-radius: 12px;
	padding: 0.6rem 0.8rem;
	font-weight: 600;
}

.header-language-menu .dropdown-item:hover {
	background: rgba(197, 26, 27, 0.08);
}

[data-theme="light"] {
	--background-rgb: 255, 255, 255;
}

/* 2. Header & Navigation */
.main-header-compact {
	/* ... unverändert ... */
}

.category-nav-wrapper {
	position: sticky;
	top: 0;
	background-color: rgba(var(--background-rgb), 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1020;
	padding: 0.75rem 0;
	transition: background-color 0.3s ease, border-color 0.3s ease;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.category-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.category-nav .nav {
	display: flex;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.category-nav .nav::-webkit-scrollbar {
	display: none;
}

.category-nav .nav-link {
	white-space: nowrap;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	color: var(--text-color);
	font-weight: 600;
	font-size: 14px;
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	margin-right: 0.75rem;
	flex-shrink: 0;
	transition: all 0.2s ease-in-out;
}

.category-nav .nav-link:hover {
	background-color: var(--border-color);
}

.category-nav .nav-link.active {
	background-color: var(--dark-color);
	color: #fff;
	border-color: var(--dark-color);
}

.category-nav-controls button {
	/* ... unverändert ... */
}

/* KORREKTUR: Finaler, korrekter Wert für den Scroll-Abstand */
.category-header {
	scroll-margin-top: var(--category-scroll-offset);
	padding-top: 2.5rem !important;
	padding-bottom: 0.35rem;
	margin-bottom: 1rem !important;
}

.category-header h2 {
	margin-bottom: 0.45rem !important;
}

.category-header .text-muted {
	max-width: 760px;
	font-size: 15px;
}

/* NEU: Styling für Allergen-Codes auf der Produktkarte */
.product-card-allergens {
	font-weight: 500;
	font-size: 12px;
	color: var(--subtle-text-color);
	vertical-align: middle;
	text-transform: uppercase;
}

/* 3. Produktkarten */
.product-list-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.topseller-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.product-card-simple {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 0.9rem 1rem;
	background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
	cursor: pointer;
	transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card-topseller {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid var(--border-color);
	border-radius: 14px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
	padding: 0.75rem 0.85rem;
	overflow: hidden;
}

.product-card-topseller .product-card-simple-img-wrapper {
	order: 2;
	width: 84px;
	height: 84px;
	border-radius: 10px;
	margin: 0;
	flex-shrink: 0;
}

.product-card-topseller .product-card-simple-text {
	order: 1;
	padding: 0;
	padding-right: 0.35rem;
}

.product-card-topseller .product-card-simple-title {
	font-size: 15px;
	margin-bottom: 0.2rem;
}

.product-card-topseller .product-card-simple-desc {
	font-size: 13px;
	margin: 0.15rem 0 0.35rem 0;
	line-height: 1.35;
	display: block;
	overflow: visible;
}

.product-card-topseller .product-card-simple-price {
	font-size: 15px;
}

.product-card-topseller .text-muted {
	margin-bottom: 0.25rem !important;
	font-size: 12px;
}

.product-card-simple:hover {
	background-color: var(--surface-color);
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.product-card-simple-text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
	padding-right: 0.35rem;
	min-width: 0;
}

.product-card-simple-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 0.25rem;
}

.product-card-simple-desc {
	font-size: 14px;
	margin: 0.15rem 0 0.4rem 0;
	line-height: 1.4;
	color: var(--subtle-text-color);
	display: block;
	overflow: visible;
}

.product-card-simple-price {
	font-size: 19px;
	margin: 0;
	font-weight: 700;
	color: var(--accent-color);
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	background: rgba(197, 26, 27, 0.08);
	border: 1px solid rgba(197, 26, 27, 0.14);
}

.product-card-price-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.product-card-price-option {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	background: rgba(197, 26, 27, 0.07);
	border: 1px solid rgba(197, 26, 27, 0.14);
	color: #7f1d1d;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
}

.product-card-price-option strong {
	color: var(--accent-color);
	font-size: 13px;
}

.product-card-detail-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--subtle-text-color);
}

.product-card-simple-meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-top: 0.2rem;
	padding-top: 0.25rem;
	flex-wrap: wrap;
}

.product-card-simple-img-wrapper {
	background: linear-gradient(180deg, #f8f8f8 0%, #efefef 100%);
	width: 84px;
	height: 84px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.product-card-simple-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 992px) {
	.product-list-row {
		margin: auto;
	}
}

@media (max-width: 767.98px) {
	.header-shell {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
	}

	.header-brand {
		justify-content: flex-start;
		align-items: center;
		gap: 0.5rem;
		min-width: 0;
	}

	.header-trust-badge {
		padding: 0.3rem 0.45rem;
		gap: 0.4rem;
		border-radius: 14px;
	}

	.header-trust-badge img {
		width: 28px;
		height: 28px;
	}

	.header-trust-label {
		font-size: 0.74rem;
	}

	.header-trust-subtitle {
		display: none;
	}

	.main-header-compact .header-actions {
		width: auto;
		justify-content: flex-end;
		gap: 0.45rem;
		flex-wrap: nowrap;
		flex-shrink: 0;
	}

	.header-reservation-btn {
		justify-content: center;
		padding: 0.68rem 0.78rem;
		min-width: 46px;
	}

	.header-reservation-btn span,
	.header-language-btn span:last-child {
		display: none;
	}

	.header-language-btn {
		padding: 0.68rem 0.78rem;
		min-width: 46px;
	}

	.header-language-btn::after {
		display: none;
	}

	.header-icon-btn {
		width: 44px;
		min-height: 44px;
	}

	.main-header-compact .header-logo-link img {
		height: 42px !important;
	}

	.product-card-simple {
		padding: 0.8rem 0.85rem;
	}

	.product-card-simple-title {
		font-size: 17px;
	}

	.product-card-simple-desc {
		font-size: 13px;
	}

	.product-card-simple-meta {
		align-items: center;
	}

	.product-card-simple-price {
		font-size: 18px;
		padding: 0.4rem 0.65rem;
	}

	.product-card-price-option {
		font-size: 11px;
	}

	.product-card-price-option strong {
		font-size: 12px;
	}

	.product-card-simple-img-wrapper {
		width: 76px;
		height: 76px;
	}

	.product-card-topseller .product-card-simple-img-wrapper {
		width: 76px;
		height: 76px;
	}
}

/* 4. Produkt-Modal */
.product-modal .modal-dialog {
	max-width: 940px;
}

.product-modal .modal-content.product-modal-card {
	position: relative;
	border: 0;
	border-radius: 28px;
	overflow: hidden;
	background:
		radial-gradient(circle at top right, rgba(197, 26, 27, 0.08), transparent 28%),
		linear-gradient(180deg, #ffffff 0%, #fbf7f4 100%);
	box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.product-modal .modal-backdrop,
.modal-backdrop.show {
	backdrop-filter: blur(4px);
}

.product-modal-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	min-height: 520px;
}

.product-modal-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background:
		radial-gradient(circle at top, rgba(197, 26, 27, 0.12), transparent 42%),
		linear-gradient(180deg, #f8f0ed 0%, #f5f5f5 100%);
}

.product-modal-media::after {
	content: "";
	position: absolute;
	inset: 22px;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	pointer-events: none;
}

.product-modal-media img {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 360px;
	max-height: 360px;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.product-modal-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 2.6rem 2.5rem;
}

.product-modal-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.product-modal-kicker {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgba(197, 26, 27, 0.08);
	color: var(--accent-color);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.product-modal-price {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--accent-color);
}

.product-modal-title {
	font-size: clamp(2rem, 4vw, 2.9rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.04em;
	margin: 0 0 0.85rem;
	color: #111827;
}

.product-modal-summary {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #475467;
	margin-bottom: 1.4rem;
}

.product-modal-section {
	padding-top: 1.25rem;
	border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.product-modal-section + .product-modal-section {
	margin-top: 1.25rem;
}

.product-modal-section-title {
	font-size: 0.92rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #7c2d12;
	margin-bottom: 0.75rem;
}

.product-modal-description {
	font-size: 1rem;
	line-height: 1.8;
	color: #334155;
	margin-bottom: 0;
}

.product-modal-allergen-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.72);
	color: #0f172a;
	font-weight: 700;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.product-modal-allergen-toggle:hover,
.product-modal-allergen-toggle:focus {
	background: #fff;
	color: #0f172a;
	border-color: rgba(197, 26, 27, 0.24);
}

.product-modal-allergen-toggle[aria-expanded="true"] i {
	transform: rotate(180deg);
}

.product-modal-allergen-toggle i {
	transition: transform 0.2s ease;
}

.product-modal-allergens {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	padding-top: 1rem;
}

.product-modal-price-grid {
	display: grid;
	gap: 0.75rem;
}

.product-modal-price-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(148, 163, 184, 0.18);
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.product-modal-price-option span {
	color: #475467;
	font-weight: 600;
}

.product-modal-price-option strong {
	color: var(--accent-color);
	font-size: 1.05rem;
	font-weight: 800;
}

.product-modal-allergen-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.62rem 0.92rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(148, 163, 184, 0.2);
	color: #475467;
	font-size: 0.92rem;
	line-height: 1.4;
	box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.product-modal-close {
	position: absolute;
	top: 1.1rem;
	right: 1.1rem;
	z-index: 3;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
	opacity: 1;
}

.product-modal-close:hover {
	transform: translateY(-1px);
}

@media (max-width: 767.98px) {
	.product-modal .modal-dialog {
		margin: 0.9rem;
	}

	.product-modal-layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.product-modal-media {
		padding: 1.35rem 1.35rem 1rem;
	}

	.product-modal-media::after {
		inset: 14px;
		border-radius: 18px;
	}

	.product-modal-media img {
		max-width: 100%;
		max-height: 250px;
		border-radius: 18px;
	}

	.product-modal-body {
		padding: 1.6rem 1.2rem 1.35rem;
	}

	.product-modal-topline {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.7rem;
	}

	.product-modal-title {
		font-size: 1.8rem;
	}

	.product-modal-summary,
	.product-modal-description,
	.product-modal-allergen-badge {
		font-size: 0.95rem;
	}

	.product-modal-price-option {
		padding: 0.8rem 0.85rem;
	}

	.product-modal-close {
		top: 0.8rem;
		right: 0.8rem;
	}
}

/* 5. Angebots-Slider */
.offer-swiper {
	width: 100%;
	padding-bottom: 25px !important;
	margin-left: auto;
	margin-right: auto;
}

.offer-card {
	position: relative;
	display: block;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	color: white;
	text-decoration: none;
}

.offer-image {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.offer-card:hover .offer-image {
	transform: scale(1.05);
}

.offer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.9) 100%);
}

.offer-content {
	position: relative;
	z-index: 2;
	padding: 1.5rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
}

.offer-title {
	font-size: 1.5rem;
	font-weight: 700;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.offer-description {
	font-size: 1rem;
	opacity: 0.9;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.swiper-pagination-progressbar {
	background: var(--border-color);
}

.swiper-pagination-progressbar-fill {
	background: var(--accent-color) !important;
}

@media (min-width: 992px) {
	.offer-swiper {
		max-width: 900px;
		border-radius: 16px;
		overflow: hidden;
	}
}

/* 6. Preloader, Modal & andere Features */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--background-color);
	z-index: 9999;
	display: grid;
	place-items: center;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#preloader img {
	width: 150px;
	animation: pulse 1.5s ease-in-out infinite;
}

#preloader.hidden {
	opacity: 0;
	visibility: hidden;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}

	100% {
		transform: scale(1);
	}
}

.product-modal-content {
	background-color: var(--background-color);
	border: none;
	border-radius: 1rem;
}

.modal-img-top {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
}

.product-modal-content .modal-header {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	z-index: 10;
}

.quantity-selector {
	background-color: var(--surface-color);
	border-radius: 50px;
	padding: 0.5rem;
}

.quantity-selector button {
	width: 45px;
	height: 45px;
	border-radius: 50% !important;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1;
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
}

.quantity-selector span {
	min-width: 40px;
	text-align: center;
	font-weight: 600;
}

.btn-add-to-cart {
	padding: 0.8rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
}

#back-to-top-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	z-index: 1030;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	transform: translateY(20px);
}

#back-to-top-btn.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#reservation-btn {
	position: fixed;
	bottom: 40px;
	left: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	z-index: 1030;
	transition: all 0.3s ease;
	transform: translateY(20px);
}
	
/* Sticky Nav anpassen für GTranslate */
.category-nav-wrapper.translate-push {
	top: 39px;
}
