/* ==========================================================================
   Nergele Kebab House - SCIENTIFIC APPETITE-INDUCING GOURMET THEME
   Basiert auf der Gastronomie-Farbpsychologie (Rot + Gold/Gelb + Frisches Grün)
   Optimiert für maximale Lesbarkeit des Logos & Appetitanregung
   ========================================================================== */

:root {
  /* Wissenschaftlich belegte Appetit-Farben */
  --bg-dark: #f8f6f0;          /* Warmes Gourmet-Creme / Elfenbein */
  --bg-card: #ffffff;          /* Sauberes Weiß für Produktkarten */
  --bg-card-active: #f3efe6;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-sheet: #ffffff;
  
  /* Appetit-Stimulatoren */
  --primary: #d90429;          /* Appetit-Rot (Ketchup / Kebab-Grill) */
  --primary-hover: #ef233c;
  --accent-gold: #d97706;      /* Warmes Käse-/Ofen-Gold (Glückshormon-Gelb) */
  --accent-gold-glow: rgba(217, 119, 6, 0.15);
  --accent-green: #16a34a;     /* Frische Kräuter & Salate (Halal-Grün) */
  
  /* Schrift & Kontrast (Gestochen scharf & lesbar) */
  --text-main: #18181b;        /* Tiefes Dunkelgrau für perfekte Lesbarkeit */
  --text-muted: #52525b;       /* Soft Grey */
  --text-dim: #a1a1aa;
  
  /* Marken-Farben */
  --justeat-brand: #ff8000;
  --ubereats-brand: #06c167;
  --phone-brand: #25d366;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-active: rgba(217, 119, 6, 0.35);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-sheet: 0 -8px 30px rgba(0, 0, 0, 0.2);
  
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  padding-bottom: calc(75px + var(--safe-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
}

/* 1. Mobile Top Announcement Banner */
.announcement-banner {
  background: linear-gradient(90deg, #d90429 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(217, 4, 41, 0.25);
}

.announcement-banner.hidden {
  display: none;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1.5rem;
}

.banner-pulse {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse-ring 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.banner-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  font-weight: 500;
}

.banner-text strong {
  color: #fef08a;
}

.banner-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 1.1rem;
  padding: 0.2rem 0.4rem;
}

/* 2. Mobile Header Bar (Hell & Sauber für perfektes Logo) */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

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

.btn-header-call {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: var(--accent-green);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* 3. Mobile Hero (Appetitanregendes Gourmet-Design) */
.mobile-hero {
  padding: 1.75rem 1rem 1.5rem 1rem;
  background: linear-gradient(180deg, #fff9f0 0%, var(--bg-dark) 100%);
  text-align: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: var(--accent-gold);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.mobile-hero-title {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  color: #111827;
}

.mobile-hero-title span {
  color: var(--primary);
}

.mobile-hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.quick-order-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.btn-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.btn-platform:active {
  transform: scale(0.97);
}

.btn-platform.justeat {
  background: linear-gradient(135deg, var(--justeat-brand) 0%, #e07000 100%);
}

.btn-platform.ubereats {
  background: linear-gradient(135deg, var(--ubereats-brand) 0%, #049b52 100%);
}

.btn-platform.phone-full {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.info-badges-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.info-badges-scroll::-webkit-scrollbar {
  display: none;
}

.info-chip {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.info-chip i {
  color: var(--primary);
}

/* 4. Sticky Mobile Menu Search & Swipeable Categories */
.sticky-menu-bar {
  position: sticky;
  top: 64px;
  z-index: 850;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.mobile-search-box {
  position: relative;
  margin-bottom: 0.65rem;
}

.mobile-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mobile-search-input:focus {
  border-color: var(--primary);
}

.mobile-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.swipe-categories {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.swipe-categories::-webkit-scrollbar {
  display: none;
}

.mobile-tab-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.mobile-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
}

/* 5. Mobile App-Style Compact Product List Cards */
.mobile-products-section {
  padding: 1.25rem 0;
}

.mobile-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-card:active {
  transform: scale(0.99);
  background: var(--bg-card-active);
}

.mobile-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 85px;
}

.mobile-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.mobile-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.mobile-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-price-badge {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-mobile-order {
  background: linear-gradient(135deg, var(--primary) 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 3px 8px rgba(217, 4, 41, 0.25);
}

.mobile-card-thumb-wrapper {
  position: relative;
  width: 95px;
  height: 95px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f4f4f5;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-card-tag {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

/* 6. Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  padding: 0.4rem 0 calc(0.4rem + var(--safe-bottom)) 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0;
}

.bottom-nav-item i {
  font-size: 1.15rem;
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.bottom-nav-item.highlight-order {
  color: var(--primary);
  font-weight: 800;
}

.bottom-nav-item.highlight-order i {
  background: var(--primary);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.4);
  font-size: 1rem;
}

/* 7. Mobile Bottom-Sheet Drawer Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  background: var(--bg-sheet);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem calc(1.5rem + var(--safe-bottom)) 1.25rem;
  position: relative;
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-full);
  margin: 0 auto 1.25rem auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--text-muted);
  font-size: 1.3rem;
}

.sheet-order-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sheet-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sheet-btn.justeat { background: linear-gradient(135deg, var(--justeat-brand) 0%, #e07000 100%); }
.sheet-btn.ubereats { background: linear-gradient(135deg, var(--ubereats-brand) 0%, #049b52 100%); }
.sheet-btn.phone { background: linear-gradient(135deg, var(--phone-brand) 0%, #15793c 100%); }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .modal-overlay { align-items: center; }
  .modal-sheet { border-radius: var(--radius-lg); max-height: 90vh; }
  .mobile-products-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
