/* styles.css – Design einheitlich; Inhalte je Kategorie per JS gesteuert */
:root{
  --logo-bg:#1f1f1f;   /* nur Logo-Bereich dunkel */
  --bg:#ffffff;        /* Seite hell */
  --card:#f8f8f8;
  --text:#0a0a0a;
  --muted:#6b6b6b;
  --line:#e8e8e8;
  --pad:16px;
  --font:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;

  --btn-yellow:#facc15; /* gelb */
  --btn-text:#ffffff;   /* weiß */

  --modal-bg:#ffffff;
  --overlay:rgba(0,0,0,.6); /* dunkelgraues Overlay */
  --chip:#111; --chip-text:#fff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; background:var(--bg); color:var(--text); font-family:var(--font); -webkit-font-smoothing:antialiased}

/* Logo-Balken */
.logo-header{ text-align:center; padding:var(--pad); background:var(--logo-bg) }
.logo{ max-width:180px; height:auto }

/* Suche */
.top{ position:sticky; top:0; z-index:10; padding:var(--pad); background:var(--bg) }
#q{ width:100%; border:1px solid var(--line); border-radius:6px; padding:10px 12px }

/* Kategorien */
.cats{
  position:sticky; top:84px; display:flex; gap:8px; overflow:auto;
  padding:8px var(--pad); background:var(--bg); border-bottom:1px solid var(--line)
}
.cats button{
  border:1px solid var(--line); background:#fff; color:#0a0a0a;
  padding:6px 10px; font-weight:700; cursor:pointer; border-radius:999px
}
.cats button.active{ background:#000; color:#fff; border-color:#000 }

/* Inhalt */
#main{ padding:var(--pad) }
h2.cat{
  margin:0 0 10px; font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted)
}

/* Produktliste: Bild → Text → Button */
.product{ display:block; padding:0 0 18px; margin:0 0 18px; border-bottom:1px solid var(--line) }
.photo {
  display: block;
  width: 100%;
  height: 200px !important;   /* erzwingt einheitliche Höhe */
  object-fit: contain;
  background: #fff;
  border: none;
  border-radius: 0;
  
}
.meta{ padding-top:10px }
.name{ margin:0; font-size:18px; font-weight:800 }
.desc{ margin:6px 0 10px; color:var(--muted); line-height:1.4 }
.price-line{ display:flex; justify-content:flex-end; align-items:center; gap:12px }
.config{
  border:none; cursor:pointer; font-weight:800; padding:10px 14px; border-radius:6px;
  background:var(--btn-yellow); color:var(--btn-text);
}

/* Footer / Warenkorb */
.bar{
  position:sticky; bottom:0; display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:10px var(--pad); border-top:1px solid var(--line); background:var(--bg)
}
.btn{ background:#000; color:#fff; border:1px solid #000; padding:10px 14px; border-radius:6px }

/* ===== Modale ===== */
.modal{
  width:min(720px, 94vw); border:0; padding:0; background:transparent;
}
.modal::backdrop{ background:var(--overlay) }

.modal-body{
  background:var(--modal-bg); border-radius:12px; overflow:hidden; position:relative;
  display:grid; gap:16px; padding-bottom:16px;
}
.modal-photo {
  display: block;
  width: 100%;
  height: 200px !important;   /* erzwingt einheitliche Höhe */
  object-fit: contain;
  background: #fff;
  border: none;
  border-radius: 0;
  
}
.modal-title{ padding:0 16px }
.muted{ color:#777 }

/* Sections */
.section{ padding:0 16px; display:grid; gap:10px }
.section-title{ font-weight:800; font-size:14px }

/* Chips / Pills */
.btn-row{ display:grid; grid-template-columns:1fr 1fr; gap:8px }
.chip{
  background:var(--chip); color:var(--chip-text);
  border:none; border-radius:8px; padding:12px; cursor:pointer; font-weight:800
}
.chip.is-active{ outline:3px solid #ffd166; }
.btn-col{ display:grid; gap:8px }
.pill{
  width:100%; text-align:center; border:1px solid var(--line); background:#fff; color:#0a0a0a;
  padding:12px; border-radius:8px; cursor:pointer; font-weight:800
}
.pill.is-active{ outline:2px solid #111 }

/* Grids */
.icon-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
}
.icon{ position:relative; display:grid; gap:6px; justify-items:center; cursor:pointer; }
.icon img{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:10px; border:1px solid var(--line);
  transition: filter .15s ease, opacity .15s ease;
}
.icon.off img{ filter:grayscale(1) brightness(.5) }
.icon span{ font-size:12px; color:#222 }
.icon.off span{ color:#888 }

/* Extras */
.toggle-line{ display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px dashed var(--line) }
.toggle-line input{ width:18px; height:18px }

/* Modal-Buttons unten */
.modal-actions{ padding:0 16px; display:grid; gap:8px }
.action.long{
  width:100%; padding:14px; border-radius:10px; font-weight:900; cursor:pointer; border:none
}
.action.long{ background:#111; color:#fff }
.action.long.alt{ background:var(--btn-yellow); color:#111 }

/* X oben rechts */
.modal-close{
  position:absolute; top:8px; right:8px; border:none; background:#000; color:#fff;
  width:32px; height:32px; border-radius:8px; cursor:pointer; font-weight:900
}

/* Getränke-Karten fürs Menü */
.cards-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px; padding:0 16px;
}
@media (min-width:600px){
  .cards-grid{ grid-template-columns:repeat(4,1fr) }
}
.card{
  position:relative; border:1px solid var(--line); border-radius:10px; overflow:hidden;
  cursor:pointer; background:#fff; display:grid; gap:8px;
}
.card-img{ width:100%; aspect-ratio:1/1; object-fit: contain;
  max-height: 200px; display:block }
.card-label{ font-size:13px; color:#222; padding:0 10px 10px 10px }
.card.is-active{ border-color:#111; box-shadow:0 0 0 2px #111 inset }
.card .tick{
  position:absolute; top:8px; right:8px; width:24px; height:24px; border-radius:999px;
  background:#111; color:#fff; display:grid; place-items:center; font-size:14px; font-weight:900; opacity:0;
  transition:opacity .15s ease;
}
.card.is-active .tick{ opacity:1 }

.form-error{ color:#c00; font-size:13px; margin:0; padding:0 16px }

@media (min-width: 900px){
  #main{ max-width:920px; margin:0 auto }
}

.cart-item img {
  display: block;
  width: 80px;
  height: 80px !important;   /* erzwingt einheitliche Höhe */
  object-fit: contain;
  background: #fff;
  border: none;
  border-radius: 0;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid var(--line);
}



/* === Netflix-Style Hero Rotator (auto switch, no controls) === */
.hero-rotator{
  position: relative;
  width: 100%;
  height: clamp(220px, 30vw, 420px);
  overflow: hidden;
  background: #000;
}
.hero-rotator .slide-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 800ms ease-in-out, transform 6000ms ease;
  will-change: opacity, transform;
}
.hero-rotator .slide-bg.is-active{
  opacity: 1;
  transform: scale(1.06);
  z-index: 1;
}
.hero-rotator .hero-vignette{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.2) 100%);
}
@media (max-width: 768px){
  .hero-rotator{ height: clamp(180px, 36vw, 280px); }
}



/* === Ensure: Kategorien größer & Desktop zentriert === */
:root{
  --cats-fs: 14px;
  --cats-pad-x: 14px;
  --cats-pad-y: 10px;
  --cats-gap: 10px;
}
.cats{ gap: var(--cats-gap); }
.cats button{
  font-size: var(--cats-fs);
  padding: var(--cats-pad-y) var(--cats-pad-x);
  border-radius: 999px;
}
@media (min-width: 769px){
  .cats{ justify-content: center; flex-wrap: wrap; }
  .cats button{ font-size: 15px; padding: 12px 16px; }
}
@media (max-width: 768px){
  .cats{ flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
}


/* Blur-up Effekt: inaktive leicht weich, aktive scharf */
.hero-rotator .slide-bg{ filter: blur(8px); }
.hero-rotator .slide-bg.is-active{ filter: blur(0); transition: opacity 800ms ease-in-out, transform 6000ms ease, filter 600ms ease; }
