/* ============================================================= */
/*  GRITTAL Restaurant – Full, clean, mobile-ready CSS           */
/*  (All previous styles + fix for long item names)              */
/* ============================================================= */

:root {
  --primary: #306844;
  --accent: #f4a261;
  --soft-green: #e8f5e9;
  --soft-peach: #fff3e0;
  --soft-blue: #e3f2fd;
  --soft-pink: #fce4ec;
  --gray: #555;
  --light: #f8f9fa;
  --volume-color: #4682B4;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', sans-serif;
  background:#fdfdf9;
  color:#333;
  line-height:1.7;
  padding:30px 20px;
}

.container {
  max-width:920px;
  margin:0 auto;
  background:#fff;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 15px 40px rgba(48,104,68,.12);
  padding:40px;
}

/* ==================== HEADER ==================== */
header { text-align:center; margin-bottom:50px; }
h1 {
  font-size:3.2rem;
  color:var(--primary);
  margin-bottom:8px;
  font-weight:700;
}
.tagline {
  font-family:'Caveat',cursive;
  font-size:1.8rem;
  color:var(--accent);
  margin:10px 0 20px;
}
.header-underline {
  height:6px;
  background:linear-gradient(90deg,var(--accent),var(--primary));
  border-radius:3px;
  width:180px;
  margin:0 auto;
}

/* Logo */
.logo-container { text-align:center; margin-bottom:20px; }
.logo {
  height:90px;
  max-width:280px;
  object-fit:contain;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.1));
  transition:transform .3s ease;
}
.logo:hover { transform:scale(1.05); }
@media (max-width:600px) { .logo { height:70px; } }

/* ==================== SEARCH ==================== */
/* ==================== SEARCH – ICON INSIDE ON ALL DEVICES ==================== */
.search-container {
  margin: 40px 0 50px;
  text-align: center;
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

#menu-search {
  width: 100%;
  padding: 16px 48px 16px 20px;   /* ← 48px right padding = space for icon */
  font-size: 1.1rem;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  outline: none;
  background: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#menu-search:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(48,104,68,0.1);
}

/* ICON – positioned inside input */
.search-icon {
  position: absolute;
  right: 16px;                    /* ← 16px from right edge of INPUT */
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.3rem;
  pointer-events: none;
  z-index: 2;
}

/* MOBILE: tighter spacing */
@media (max-width: 600px) {
  #menu-search {
    padding: 14px 44px 14px 18px;
    font-size: 1rem;
  }
  .search-icon {
    right: 12px;
    font-size: 1.1rem;
  }
}
/* ==================== FILTER BUTTONS ==================== */
/* ==================== CATEGORY FILTERS – HORIZONTAL SCROLL ==================== */
.category-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.65rem;
  justify-content: flex-start;
  padding: 1.3rem 1rem 1.8rem;
  margin: 0 auto;
  max-width: 100%;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  position: relative;  /* ← For fade positioning */
}

/* Fade gradients on edges (hints at scrollable content) */
/* .category-filters::before,
.category-filters::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;  /* Fade width 
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.category-filters::before {
  left: 0;
  background: linear-gradient(to right, #fdfdf9, transparent);
}
.category-filters::after {
  right: 0;
  background: linear-gradient(to left, #fdfdf9, transparent);
}

/* Show fades when scrollable 
.category-filters.scrollable-left::before,
.category-filters.scrollable-right::after {
  opacity: 1;
} */

/* Hide scrollbar (keeps clean look) */
.category-filters::-webkit-scrollbar {
  height: 6px;
}
.category-filters::-webkit-scrollbar-track {
  background: transparent;
}
.category-filters::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
.category-filters::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.4);
}
/* Buttons stay same size */
/* ==================== FILTER BUTTONS – FIXED TEXT VISIBILITY ==================== */
.filter-btn {
  flex: 0 0 auto;
  background: #44c571 !important;
  color: #444 !important;           /* ← Always dark when inactive */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  padding: 0.6rem 1.1rem;
  border: 2px solid #e2e2e2;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.28s ease;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-btn:hover {
  background: #3acf14 !important;
  border-color: #d32f2f;
  color: #d32f2f !important;
  transform: translateY(-1.5px);
  box-shadow: 0 5px 12px rgba(211,47,47,0.18);
}

.filter-btn.active {
  background: #34bb19 !important;
  color: #080000 !important;          /* ← White text only when active */
  border-color: #34bb19;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(211,47,47,0.32);
  transform: translateY(-1px);
}

/* Mobile: tighter spacing */
@media (max-width: 768px) {
  .category-filters {
    padding: 1rem 0.8rem 1.5rem;
    gap: 0.55rem;
  }
  .filter-btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.95rem;
    min-height: 38px;
  }
}

@media (max-width: 480px) {
  .filter-btn {
    font-size: 0.76rem;
    padding: 0.5rem 0.85rem;
  }
}

/* ==================== MENU SECTIONS ==================== */
.menu-section {
  margin-bottom:60px;
  padding:30px;
  border-radius:20px;
  background:var(--light);
  transition:transform .3s ease;
}
.menu-section:hover { transform:translateY(-5px); }

/* Soft background cycling */
.menu-section:nth-child(5n+1){background:var(--soft-green);}
.menu-section:nth-child(5n+2){background:var(--soft-peach);}
.menu-section:nth-child(5n+3){background:var(--soft-blue);}
.menu-section:nth-child(5n+4){background:var(--soft-pink);}
.menu-section:nth-child(5n+5){background:var(--light);}

/* Section title */
.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  cursor: default;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  pointer-events: none;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70%;
  height: 5px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0,5 Q25,0 50,5 T100,5" stroke="%23f4a261" stroke-width="3" fill="none"/></svg>') no-repeat;
  background-size: contain;
}

/* Remove hover/tap expand styles */
.section-title:hover,
.section-title.tapped {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 0 25px !important;
  box-shadow: none !important;
  z-index: auto !important;
}

/* ==================== MENU ITEM ==================== */
/* ==================== MENU ITEM – CLEAN & CONSISTENT ==================== */
.menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px dashed #ddd;
  gap: 12px;
  transition: background 0.3s;
}
.menu-item:hover {
  background: rgba(255,255,255,.7);
  border-radius: 12px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
}

/* ITEM NAME – wraps, takes available space */
.item-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: #222;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

/* ITEM DETAILS – always on the right, same line */
.item-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: fit-content;
}
.item-details .volume {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  max-width: 220px;
}
.item-details .item-price {
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  min-width: 68px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(244,162,97,.3);
}

/* TWO SIZES – stay together on right */
.item-details.has-two-sizes {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  align-items: center;
}
.size-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
}
.size-col .volume {
  color: var(--volume-color);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.size-col .item-price {
  background: var(--accent);
  color: white;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  min-width: 70px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(244,162,97,.3);
}

/* ==================== MOBILE: STACK VERTICALLY ==================== */
@media (max-width: 600px) {
  .menu-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .item-name {
    font-size: 0.98rem;
    line-height: 1.35;
  }
  .item-details {
    justify-content: flex-end;
    margin-top: 4px;
  }
  .item-details .volume {
    font-size: 0.88rem;
    max-width: none;
    text-align: right;
  }
  .item-details.has-two-sizes {
    justify-content: flex-end;
    gap: 12px;
  }
  .size-col {
    min-width: 70px;
  }
}

/* ==================== RESERVATION ==================== */
.reservation-section{
  margin:60px 0 50px;
  padding:32px;
  background:linear-gradient(135deg,var(--soft-green),var(--soft-peach));
  border-radius:20px;
  text-align:center;
  box-shadow:0 8px 20px rgba(48,104,68,.1);
  transition:transform .3s ease;
}
.reservation-section:hover{transform:translateY(-5px);}
.reservation-icon{
  width:70px;height:70px;
  margin:0 auto 16px;
  background:var(--primary);
  color:#fff;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.8rem;
  box-shadow:0 4px 12px rgba(48,104,68,.2);
}
.reservation-title{
  font-size:1.8rem;
  color:var(--primary);
  margin:0 0 12px;
  font-weight:700;
}
.reservation-text{
  font-size:1.1rem;
  color:#444;
  margin:0 0 20px;
  line-height:1.6;
}
.reservation-phone{
  display:inline-block;
  font-size:1.5rem;
  font-weight:700;
  color:var(--primary);
  text-decoration:none;
  padding:12px 24px;
  background:#fff;
  border-radius:30px;
  box-shadow:0 4px 15px rgba(0,0,0,.1);
  transition:all .3s ease;
}
.reservation-phone:hover{
  background:var(--accent);
  color:#fff;
  transform:scale(1.05);
}
.reservation-phone i{margin-right:8px;}
.reservation-hours{
  margin:16px 0 0;
  font-size:.95rem;
  color:#666;
  font-style:italic;
}
@media (max-width:600px){
  .reservation-section{padding:24px;}
  .reservation-title{font-size:1.6rem;}
  .reservation-phone{font-size:1.3rem;padding:10px 20px;}
}

/* ==================== FOOTER ==================== */
footer{
  text-align:center;
  margin-top:70px;
  padding:30px;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff;
  border-radius:20px;
  font-size:.95rem;
}
footer p{margin:8px 0;}
footer strong{font-weight:600;}

/* ==================== PRINT ==================== */
@media print{
  body{padding:15px;background:#fff;}
  .container{box-shadow:none;border-radius:0;padding:20px;}
  .search-container,.search-icon,.category-filters,.reservation-section{display:none;}
  .menu-section{background:#fff !important;padding:15px 0;margin:20px 0;}
  .menu-item{border-bottom:1px solid #ccc;padding:10px 0;}
  .item-price{background:#333;color:#fff;}
  .volume{color:#555;}
  footer{background:#333;}
}

/* ==================== ALLERGEN LEGEND (kept from your HTML) ==================== */
div[style*="background: #f8f9fa"]{
  padding:1rem 1.5rem;
  background:#f8f9fa;
  border-top:1px solid #eee;
  font-size:.85rem;
  color:#555;
}
/* -------------------------------------------------
   Flavour note – tiny, italic, no price column
   ------------------------------------------------- */
.flavour-note {
  margin: 0.5rem 0 1.5rem;
  padding: 0 1rem;
  font-size: 0.84rem;
  color: #666;
  line-height: 1.45;
  font-style: italic;
  text-align: left;
}
.flavour-note strong {
  font-style: normal;
  color: #444;
}

/* ============================================================= */
/*  REMOVE HOVER/TAP HIGHLIGHT BOXES (iOS/Android/Chrome)        */
/* ============================================================= */

/* 1. Remove tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;   /* iOS Safari / Android Chrome */
}

/* 2. Remove default focus outline (optional – keeps accessibility) */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 3. Prevent text selection “box” on double-tap (mobile) */
.category-filters,
.menu-item,
.item-name,
.filter-btn {
  -webkit-user-select: none;   /* Disable selection */
  user-select: none;
}

/* 4. Re-enable selection only where needed (e.g. search input) */
#menu-search {
  -webkit-user-select: text;
  user-select: text;
}

/* 5. Optional: Keep hover effect on buttons only (no background flash) */
.filter-btn:hover,
.menu-item:hover {
  background: transparent !important;   /* Remove white flash */
}
/* ============================================================= */
/*  REMOVE HOVER/TAP HIGHLIGHT FROM SECTION HEADERS             */
/* ============================================================= */

.section-title,
.section-title * {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;              /* Prevents tap box */
}

/* Re-enable interaction if you have clickable titles */
.section-title {
  pointer-events: auto;              /* Allows hover/click if needed */
  cursor: default;
}

/* Optional: Keep your hover style but remove flash */
.section-title:hover {
  background: transparent !important;
}
.section-title,
.section-title * {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;     /* iOS: disables callout */
  -webkit-user-select: none !important;
  user-select: none !important;
  outline: none !important;
  cursor: default !important;
}

/* Keep hover effect but NO background flash */
.section-title:hover,
.section-title.tapped {
  background: transparent !important;
}

/* If you still want tap-to-expand on mobile, use JS only */
.section-title {
  -webkit-appearance: none !important;
}

.filter-wrapper {
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

.category-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.65rem;
  padding: 1.3rem 70px 1.8rem 1rem; /* right padding for arrow */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-filters::-webkit-scrollbar { display: none; }

.filter-arrow-right {
  position: absolute;
  right: 12px;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 40px;
  background: white;
  border: 2.5px solid #3faa65;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(48,104,68,0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

/* FORCE CHEVRON – KILLS ANY HAND EMOJI */
.filter-arrow-right i::before {
  content: "\f054" !important; /* fa-chevron-right */
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  color: #49a76a;
  font-size: 1.5rem;
}

/* SHOW + GROW ON HOVER */
.filter-arrow-right.show {
  opacity: 1;
  pointer-events: auto;
}
.filter-arrow-right.show:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 25px rgba(48,104,68,0.4);
}

/* Mobile */
@media (max-width: 600px) {
  .category-filters { padding-right: 60px; }
  .filter-arrow-right {
    width: 40px;
    height: 40px;
    right: 10px;
  }
}
/* WEIHNACHTSMENÜ BANNER*/
/* WEIHNACHTSMENÜ BANNER – 100% MOBILE FIXED */
.christmas-banner {
  width: 100%;
  max-width: 920px; 
  margin: 30px auto 50px;
  padding: 0;
  box-sizing: border-box;
}

.christmas-inner {
  background: linear-gradient(135deg, #a81e1e 10%, #A300 40%, #2a8506 100%);
  color: #0a8d0a;
  padding: 32px;                 
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(139,26,26,0.4);
  border: 3px solid #FFD700;
  overflow: hidden;
  max-width: 100%;
}

.christmas-title {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  color: #0a8d0a;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
  max-width: 100%;
}s
.christmas-date {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
  opacity: 0.95;
}

.christmas-menus {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.christmas-menu-item {
  background: rgba(255,255,255,0.18);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  min-width: 280px;
  flex: 1;
  max-width: 400px;
  border: 1px solid rgba(255,215,0,0.4);
}

.menu-label {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFD700;
}

.dish {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.dessert {
  font-size: 1.05rem;
  margin-bottom: 12px;
  font-style: italic;
}

.price {
  font-size: 2rem;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.christmas-note {
  margin: 22px auto 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.25);
  border: 2px solid #FFD700;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 680px;
  backdrop-filter: blur(4px);
  color: #0a8d0a;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.christmas-footer {
  margin-top: 20px;
  font-size: 1.2rem;
  font-style: italic;
}

.heart {
  display: inline-block;
  animation: heartbeat 1.5s ease infinite;
}

/* Mobile fixes */
@media (max-width: 700px) {
  .christmas-title { font-size: 2.3rem; }
  .christmas-menus { flex-direction: column; align-items: center; }
  .christmas-menu-item { min-width: 90%; max-width: none; }
  .price { font-size: 1.8rem; }
  .christmas-note { 
    margin: 18px 10px 6px; 
    font-size: 1.05rem; 
    padding: 12px 16px;
  }
}

@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}