/* =========================================
   1. GRUNDEINSTELLUNGEN & FARBEN
   ========================================= */
:root {
  --primary: #ea1d2c;
  --primary-glow: rgba(234, 29, 44, 0.5);
  
  --bg-body: #111111;
  --bg-header: #000000;
  --bg-card: #1a1a1a;
  --bg-input: #222222;
  
  --text-main: #ffffff;
  --text-muted: #888888;
  
  --border: #333333;
  --shadow: 0 8px 30px rgba(0,0,0,0.5);
  
  --header-h: 70px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-body: #f8f9fa;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #eeeeee;
    --text-main: #111111;
    --text-muted: #666666;
    --border: #e0e0e0;
    --shadow: 0 8px 30px rgba(0,0,0,0.1);
  }
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent; 
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  padding-top: var(--header-h); 
  padding-bottom: 0;
  transition: background-color 0.3s;
}

/* =========================================
   2. APP HEADER (FIXIERT)
   ========================================= */
.app-header {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 20px;
  z-index: 2000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.menu-btn {
  background: none; 
  border: none; 
  color: var(--text-main);
  font-size: 1.5rem; 
  cursor: pointer; 
  display: flex; 
  align-items: center;
}

.header-title {
  font-weight: 900; 
  font-size: 1.1rem; 
  letter-spacing: 1px;
  text-transform: uppercase; 
  color: var(--text-main);
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%);
}

.header-cart {
  position: relative; 
  color: var(--text-main);
  display: flex; 
  align-items: center; 
  justify-content: center;
  text-decoration: none; 
  padding: 5px;
}

.cart-badge {
  position: absolute; 
  top: -5px; 
  right: -5px;
  background: var(--primary); 
  color: #fff;
  font-size: 0.7rem; 
  font-weight: 800;
  padding: 2px 6px; 
  border-radius: 10px;
  min-width: 18px; 
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}

.cart-badge.pop { 
  transform: scale(1.4); 
}

/* =========================================
   3. SIDEBAR (MENÜ)
   ========================================= */
.sidebar-backdrop {
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.8);
  z-index: 2100; 
  opacity: 0; 
  visibility: hidden; 
  transition: 0.3s;
  backdrop-filter: blur(5px);
}

.sidebar-backdrop.active { 
  opacity: 1; 
  visibility: visible; 
}

.sidebar {
  position: fixed; 
  top: 0; 
  left: 0; 
  height: 100%; 
  width: 280px;
  background: var(--bg-card);
  transform: translateX(-100%); 
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2200; 
  display: flex; 
  flex-direction: column; 
  padding: 30px 20px;
  border-right: 1px solid var(--border);
}

.sidebar.active { 
  transform: translateX(0); 
}

.sidebar-head {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 40px;
}

.sidebar-title { 
  font-weight: 900; 
  font-size: 1.2rem; 
  color: var(--text-main); 
}

.sidebar-close { 
  background: none; 
  border: none; 
  font-size: 2rem; 
  color: var(--text-muted); 
  cursor: pointer; 
}

.nav-link {
  display: flex; 
  align-items: center; 
  gap: 15px;
  padding: 15px; 
  margin-bottom: 5px;
  color: var(--text-main); 
  text-decoration: none;
  font-weight: 600; 
  border-radius: 10px; 
  transition: 0.2s;
}

.nav-link:active, 
.nav-link:hover { 
  background: rgba(255,255,255,0.05); 
  color: var(--primary); 
}

/* =========================================
   4. KATEGORIEN LEISTE
   ========================================= */
.cat-bar-wrapper {
  position: sticky; 
  top: var(--header-h); 
  z-index: 90;
  background: var(--bg-body); 
  padding: 15px 0; 
  border-bottom: 1px solid var(--border);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cat-scroll {
  display: flex; 
  gap: 10px; 
  overflow-x: auto; 
  padding: 0 15px;
  scrollbar-width: none;
}

.cat-scroll::-webkit-scrollbar { 
  display: none; 
}

.cat-pill {
  background: var(--bg-card); 
  border: 1px solid var(--border);
  color: var(--text-main); 
  padding: 10px 20px; 
  border-radius: 50px; 
  white-space: nowrap; 
  font-size: 0.9rem; 
  font-weight: 700; 
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.cat-pill.active { 
  background: var(--primary); 
  color: #ffffff; 
  border-color: var(--primary); 
  transform: scale(1.05);
  box-shadow: 0 5px 20px var(--primary-glow);
}

/* =========================================
   5. HERO BEREICH
   ========================================= */
.hero {
  position: relative; 
  text-align: center; 
  background: #000000; 
  color: #ffffff;      
  padding: 60px 20px;
  margin-top: 0; 
  overflow: hidden; 
  border-bottom: 1px solid var(--border);
}

.hero-logo-img { 
  width: 140px; 
  margin-bottom: 20px; 
  animation: float 6s ease-in-out infinite; 
  filter: drop-shadow(0 0 20px rgba(234, 29, 44, 0.3));
}

@keyframes float { 
  0%, 100% { transform: translateY(0); } 
  50% { transform: translateY(-10px); } 
}

.hero h1 { 
  font-size: 2.5rem; 
  font-weight: 900; 
  margin-bottom: 10px; 
  line-height: 1.1; 
  color: #ffffff; 
}

.hero h1 span { 
  color: #ffffff; 
  text-shadow: none; 
}

.hero p { 
  color: #aaaaaa; 
  margin-bottom: 25px; 
  font-size: 1rem; 
}

.btn {
  display: inline-block; 
  background: var(--primary); 
  color: #fff;
  padding: 14px 35px; 
  border-radius: 50px; 
  font-weight: 700;
  text-decoration: none; 
  border: none; 
  cursor: pointer;
  box-shadow: 0 8px 25px var(--primary-glow);
  transition: transform 0.2s;
}

.btn:active { 
  transform: scale(0.96); 
}

/* =========================================
   6. INHALT & ANIMATIONEN
   ========================================= */
.container { 
  max-width: 900px; 
  margin: 0 auto; 
  padding: 20px 15px; 
}

.reveal {
  opacity: 0; 
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active { 
  opacity: 1; 
  transform: translateY(0); 
}

.about-section { 
  text-align: center; 
  margin: 60px 0; 
}

.about-title { 
  font-size: 1.8rem; 
  font-weight: 900; 
  margin-bottom: 20px; 
  text-transform: uppercase; 
  color: var(--text-main); 
}

.about-text { 
  color: var(--text-muted); 
  line-height: 1.6; 
  max-width: 700px; 
  margin: 0 auto; 
}

.team-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  gap: 20px; 
  margin-top: 40px; 
}

.team-card {
  background: var(--bg-card); 
  padding: 25px; 
  border-radius: 20px;
  border: 1px solid var(--border); 
  text-align: center;
  box-shadow: var(--shadow); 
  transition: transform 0.3s;
}

.team-card:hover { 
  transform: translateY(-5px); 
  border-color: var(--primary); 
}

.team-avatar {
  width: 80px; 
  height: 80px; 
  background: var(--bg-input); 
  border-radius: 50%;
  margin: 0 auto 15px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 2rem; 
  border: 2px solid var(--border);
}

.team-name { 
  font-weight: 700; 
  color: var(--text-main); 
  margin-bottom: 5px; 
}

.team-role { 
  font-size: 0.8rem; 
  color: var(--text-main); 
  opacity: 0.8; 
  text-transform: uppercase; 
  font-weight: 700; 
}

.info-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 15px; 
  margin-top: 40px; 
}

@media(min-width: 700px) { 
  .info-grid { 
    grid-template-columns: 1fr 1fr; 
  } 
}

.info-card {
  background: var(--bg-card); 
  padding: 20px; 
  border-radius: 16px;
  border: 1px solid var(--border); 
  text-align: left;
}

.info-title { 
  color: var(--text-main); 
  font-weight: 700; 
  margin-bottom: 8px; 
  font-size: 0.9rem; 
  text-transform: uppercase; 
}

.info-text { 
  color: var(--text-main); 
  font-size: 0.95rem; 
  line-height: 1.5; 
}

/* =========================================
   7. SPEISEKARTE & GRID
   ========================================= */
.cat-section { 
  scroll-margin-top: 150px; 
  margin-bottom: 3rem; 
}

.cat-head { 
  font-size: 1.6rem; 
  font-weight: 900; 
  margin-bottom: 15px; 
  text-transform: uppercase; 
  border-bottom: 2px solid var(--border); 
  padding-bottom: 5px; 
  color: var(--text-main); 
}

.grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 15px; 
}

@media(min-width: 700px) { 
  .grid { 
    grid-template-columns: 1fr 1fr; 
  } 
}

.card {
  background: var(--bg-card); 
  border: 1px solid var(--border);
  border-radius: 16px; 
  padding: 15px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  cursor: pointer; 
  position: relative; 
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.card:active { 
  transform: scale(0.98); 
  background: var(--bg-input); 
}

.card-info { 
  flex: 1; 
  padding-right: 15px; 
}

.card-name { 
  font-weight: 700; 
  display: block; 
  margin-bottom: 4px; 
  font-size: 1rem; 
  color: var(--text-main); 
}

.card-nr { 
  color: var(--primary); 
  margin-right: 5px; 
  font-weight: 900; 
  font-size: 0.9em; 
}

.card-desc { 
  font-size: 0.85rem; 
  color: var(--text-muted); 
}

.card-price { 
  background: var(--bg-input); 
  color: var(--text-main); 
  border: 1px solid var(--border);
  padding: 8px 12px; 
  border-radius: 10px; 
  font-weight: 700; 
  font-size: 0.95rem; 
  white-space: nowrap;
}

/* =========================================
   8. WARENKORB & FORMULAR
   ========================================= */
.cart-list { 
  list-style: none; 
  margin-bottom: 30px; 
}

.cart-item {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 15px; 
  border-bottom: 1px solid var(--border);
  background: var(--bg-card); 
  border-radius: 12px; 
  margin-bottom: 10px;
}

.qty-btn {
  width: 32px; 
  height: 32px; 
  background: var(--bg-input); 
  border: 1px solid var(--border);
  color: var(--text-main); 
  border-radius: 8px; 
  font-weight: bold; 
  cursor: pointer;
}

.form-group { 
  margin-bottom: 25px; 
} 

.form-label {
  display: block; 
  font-weight: 700; 
  margin-bottom: 8px; 
  font-size: 0.95rem; 
  color: var(--text-main);
}

.form-input {
  width: 100%; 
  padding: 14px; 
  border-radius: 10px; 
  border: 1px solid var(--border);
  background: var(--bg-input); 
  color: var(--text-main); 
  font-size: 16px; 
  font-family: inherit;
}

select.form-input {
  -webkit-appearance: none; 
  -moz-appearance: none; 
  appearance: none;
  font-size: 19px; 
  padding: 15px; 
  height: 60px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea1d2c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; 
  background-position: right 15px center; 
  background-size: 18px; 
  padding-right: 45px;
}

/* === 8b. WARENKORB – SUMMENBOX (DARK MODE FIX) === */

#cart-total {
  margin: 15px 0 5px 0;
}

.cart-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
}

.cart-summary-box .label {
  font-size: 0.9rem;
  color: var(--text-main);
  opacity: 0.9;
}

.cart-summary-box .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-summary-box .total-line {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 1.1rem;
  font-weight: 900;
}

/* Preis unter jedem Artikel */
.item-price-small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mindestbestellwert Info */
#min-order-msg {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
  text-align: center;
  padding: 40px 20px 20px 20px;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  margin-top: 3rem; 
  width: 100%;
}

.footer-links { 
  display: flex; 
  justify-content: center; 
  gap: 20px; 
  flex-wrap: wrap; 
  margin-bottom: 15px; 
}

.footer-links a { 
  color: var(--text-main); 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 0.9rem; 
  transition: 0.2s; 
}

.footer-links a:hover { 
  color: var(--primary); 
}

.footer-bottom { 
  font-size: 0.75rem; 
  color: var(--text-muted); 
  margin: 0; 
}

.dev-credit { 
  color: var(--text-muted); 
  text-decoration: none; 
  margin-top: 5px; 
  display: inline-block; 
}

.dev-credit span { 
  font-weight: bold; 
  color: var(--text-main); 
}

/* =========================================
   10. MODALS & COOKIE BANNER
   ========================================= */
.modal-backdrop {
  position: fixed; 
  inset: 0; 
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 30px 25px;
  max-width: 400px; 
  width: 100%;
  text-align: center;
  box-shadow: 0 0 30px rgba(234, 29, 44, 0.2);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content img {
  background-color: #000000; 
  border-radius: 50%;        
  padding: 8px;              
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@keyframes modalPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

cookie-banner {
  position: fixed; 
  bottom: 0; 
  left: 0; 
  width: 100%;
  background: #111; 
  border-top: 2px solid var(--primary);
  padding: 25px 20px; 
  z-index: 10000;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.9);
  display: none;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

cookie-banner {
  position: fixed; 
  bottom: 0; 
  left: 0; 
  width: 100%;
  /* Nutzt Header-Hintergrund für automatische Anpassung (Schwarz in Dark, Weiß in Light) */
  background: var(--bg-header); 
  border-top: 2px solid var(--primary);
  padding: 25px 20px; 
  z-index: 10000;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
  display: none;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-content {
  max-width: 900px; 
  margin: 0 auto;
  display: flex; 
  flex-direction: column;
  gap: 20px;
}

.cookie-text { 
  font-size: 0.9rem; 
  /* Nutzt die Haupttext-Farbe, damit es in beiden Modi sichtbar ist */
  color: var(--text-main); 
  line-height: 1.6;
}

.cookie-text strong {
  color: var(--primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 5px;
}

.cookie-actions {
  display: flex;
  flex-direction: column; 
  gap: 12px;
}

.cookie-btn {
  background: var(--primary); 
  color: white; /* Button-Text bleibt immer Weiß, da der Hintergrund Rot ist */
  border: none;
  padding: 14px 25px; 
  border-radius: 12px; 
  cursor: pointer;
  font-weight: 700; 
  font-size: 0.95rem; 
  transition: all 0.2s;
  width: 100%;
}

.cookie-btn.secondary {
  /* Nutzt Border-Farbe für den Button-Hintergrund im hellen/dunklen Modus */
  background: var(--border); 
  color: var(--text-main);
}

/* Desktop-Optimierung */
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-text {
    flex: 1;
    padding-right: 30px;
  }
  .cookie-actions {
    flex-direction: row;
    min-width: 320px;
  }
  .cookie-btn {
    width: auto;
    flex: 1;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.btn-secondary {
  background: #333 !important; /* Dezenter für "Ablehnen/Nur Notwendige" */
}

@media (min-width: 600px) {
  .cookie-actions { width: auto; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
