/* 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;
}

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-color: var(--background-color);
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.3s ease, border-color 0.3s ease;
	position: relative;
    z-index: 1030;
}

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

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

.main-header-compact .header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.main-header-compact .btn-light {
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	color: var(--text-color);
}

[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;
}

.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(--text-color);
	color: var(--surface-color);
	border-color: var(--text-color);
}

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

/* KORREKTUR: Finaler, korrekter Wert für den Scroll-Abstand */
.category-header {
	scroll-margin-top: 100px;
}

/* 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: 1px;
	background-color: #e2e8f0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}

.product-card-simple {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem;
	background-color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
}

.product-card-simple:hover {
	background-color: var(--surface-color);
}

.product-card-simple-text {
	flex-grow: 1;
	padding-right: 1.5rem;
}

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

.product-card-simple-desc {
	font-size: 15px;
	margin: 0.25rem 0 0.5rem 0;
	color: var(--subtle-text-color);
}

.product-card-simple-price {
	font-size: 17px;
	margin: 0;
	font-weight: 600;
}

.product-card-simple-img-wrapper {
	background: rgba(0, 0, 0, 0.02);
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
}

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

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

/* 4. 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;
	}
}

/* 5. 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;
}