/* OG Flavor — styles.css
   Neu geschrieben 2026-10-03 nach dem Webflow-Design (Masse aus dem Export übernommen).

   Masseinheit: --u = 1 % der Handybreite. Alle Grössen sind Vielfache davon, so wie
   in Webflow alles in vw war. Ab 480 px Breite wächst nichts mehr, die Seite bleibt
   eine Handy-Spalte in der Mitte. Ab 992 px kommt der Hinweis "nur mobil". */

@font-face {
  font-family: "Barber Chop";
  src: url("assets/fonts/BarberChop.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: auto;
}

/* ============================== TOKENS ============================== */
:root {
  --u: min(1vw, 4.8px);
  --col: calc(100 * var(--u));

  --gold: #d39f38;
  --white: #fff9e6;
  --black: #1e1e1e;
  --green: #399b2b;
  --red: #b10000;
  --line: rgba(0, 0, 0, .1);

  /* Warenkorb-Zeilen (eigene Farben aus dem alten Custom Code) */
  --cart-gold: #c8942c;
  --cart-gold-hover: #b88522;
  --cart-text: #141414;
  --cart-muted: rgba(20, 20, 20, .7);

  --font: "Barber Chop", Arial, sans-serif;
  --ease: cubic-bezier(0.785, 0.135, 0.15, 0.86);   /* Webflow "ease-in-out-circ" */
}

/* ============================== BASIS ============================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

img { max-width: 100%; vertical-align: middle; display: inline-block; border: 0; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
[hidden] { display: none !important; }

.app {
  width: var(--col);
  margin-inline: auto;
}

/* ============================== BAUSTEINE ============================== */

/* Runde Icon-Knöpfe (Tasche, Zurück) */
.icon-btn {
  width: calc(10 * var(--u));
  height: calc(10 * var(--u));
  border-radius: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
}
.icon-btn--gold { background: var(--gold); }
.icon-btn--dark { background: var(--black); }
.icon-btn--light { background: var(--white); }
.icon-btn--lg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.icon-btn--lg img { width: calc(6 * var(--u)); transform: translate(calc(.05 * var(--u))); }
.icon-bag { width: calc(4 * var(--u)); }
.icon-back { width: calc(3 * var(--u)); }

/* Grosse Pillen-Knöpfe */
.pill {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100vw;
  font-family: var(--font);
  font-weight: 400;
  text-align: center;
}
.pill--dark {
  background: var(--black);
  color: var(--white);
  padding: calc(6 * var(--u)) calc(14 * var(--u)) calc(4 * var(--u));
  font-size: calc(6 * var(--u));
  line-height: calc(9 * var(--u));
}
.pill--light {
  align-self: stretch;
  background: var(--white);
  color: var(--black);
  padding: calc(3 * var(--u)) calc(14 * var(--u)) calc(2 * var(--u));
  font-size: calc(6 * var(--u));
  line-height: calc(9 * var(--u));
}
.pill--gold {
  position: relative;
  z-index: 3;
  align-self: stretch;
  display: block;
  background: var(--gold);
  color: #fff;
  border-radius: 200vw;
  padding: calc(5 * var(--u)) 15px calc(3 * var(--u));
  font-size: calc(6 * var(--u));
  line-height: calc(6 * var(--u));
}

/* Goldene Etiketten (KCAL, Protein, …) */
.tag {
  display: flex;
  align-items: center;
  height: calc(6 * var(--u));
  padding: var(--u) calc(3 * var(--u)) calc(.4 * var(--u));
  border-radius: 100vw;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font);
  font-size: calc(3 * var(--u));
  line-height: calc(3 * var(--u));
}
.tag--vegan {
  width: calc(6 * var(--u));
  padding: 0;
  justify-content: center;
  background: var(--green);
}
.tag--vegan img { width: calc(3 * var(--u)); }

/* Runder "+"-Knopf */
.add-btn {
  width: calc(10 * var(--u));
  height: calc(10 * var(--u));
  border-radius: 100vw;
  background: var(--gold);
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
}
.add-btn img { width: calc(3 * var(--u)); }

/* ============================== STARTSEITE ============================== */

.hero {
  position: relative;
  height: 60vh;
  background: url("assets/images/hero.png") 50% 100% / cover;
  border-radius: 0 0 calc(10 * var(--u)) calc(10 * var(--u));
  overflow: hidden;
}
.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(10 * var(--u));
}
.hero__nav { display: flex; justify-content: space-between; align-items: center; }
.hero__logo { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.hero__title {
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: calc(-.1 * var(--u));
}
.hero__title span { display: block; }
.hero__title-big { font-size: calc(21 * var(--u)); line-height: calc(19 * var(--u)); }
.hero__title-small { font-size: calc(14 * var(--u)); line-height: calc(14 * var(--u)); }

.hero-cta { display: flex; justify-content: center; margin-top: calc(4 * var(--u)); }

.how {
  display: flex;
  flex-direction: column;
  padding-bottom: calc(16 * var(--u));
}
.how__title { width: var(--col); margin-top: calc(10 * var(--u)); }
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(5 * var(--u));
}
.step {
  display: flex;
  align-items: center;
  gap: calc(2 * var(--u));
}
.step__num {
  width: calc(5 * var(--u));
  height: calc(5 * var(--u));
  border-radius: 100vw;
  background: var(--gold);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(0, calc(-.2 * var(--u)));
  font-family: var(--font);
  font-size: calc(2 * var(--u));
  line-height: var(--u);
}
.step__text {
  color: var(--gold);
  font-family: var(--font);
  font-size: calc(6 * var(--u));
  line-height: calc(6 * var(--u));
}
.step__line { margin: calc(3 * var(--u)) 0 calc(3.6 * var(--u)); }
.step__line-1 { width: calc(13 * var(--u)); }
.step__line-2 { width: calc(11 * var(--u)); }

/* Früher ein Bild (assets/images/oeffnungszeiten*.png), jetzt Text nach demselben Muster,
   damit die Inhaberin die Zeiten auf /admin selbst ändern kann. */
.hours {
  width: calc(80 * var(--u));
  margin-inline: auto;
  padding-bottom: calc(20 * var(--u));
  font-family: var(--font);
  text-transform: uppercase;
}
/* Titel bleibt Bild: die Schrift hat kein Ö */
.hours__title { margin-bottom: calc(8 * var(--u)); }
.hours__title img { width: 100%; }
.hours__list { display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(3 * var(--u));
  min-height: calc(16 * var(--u));
  padding: calc(3 * var(--u)) calc(4.5 * var(--u));
  border-radius: calc(2 * var(--u));
  background: #e2ad45;
  font-size: calc(5.6 * var(--u));
  line-height: calc(5.2 * var(--u));
}
.hours__days { color: #fff; }
.hours__times { color: #101115; text-align: right; }
.hours__closed {
  display: flex;
  justify-content: space-between;
  margin-top: calc(1 * var(--u));
  padding: calc(4 * var(--u)) calc(4.5 * var(--u));
  border-radius: calc(2 * var(--u));
  background: #fff;
  font-size: calc(4.6 * var(--u));
  line-height: calc(5 * var(--u));
}
.hours__closed span:first-child { color: #e2ad45; }
.hours__closed span:last-child { color: #101115; }

/* ============================== BESTELLSEITE ============================== */
.page-order .app { padding-block: calc(5 * var(--u)); }

/* Seitenrand 9,64 % wie im Webflow-Original (dort ergab er sich aus der Inhaltsbreite) */
.topbar, .menu { margin-inline: calc(9.64 * var(--u)); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(4 * var(--u));
}
.topbar__title {
  margin: 20px 0 10px;
  color: var(--black);
  font-family: var(--font);
  font-weight: 400;
  font-size: calc(8 * var(--u));
  line-height: calc(8 * var(--u));
  letter-spacing: calc(-.1 * var(--u));
}
.topbar__actions { display: flex; gap: calc(2 * var(--u)); }


.tabs {
  display: flex;
  gap: calc(.6 * var(--u));
  margin-bottom: calc(6 * var(--u));
}
.tab {
  padding: calc(2 * var(--u)) calc(4 * var(--u)) calc(1.6 * var(--u));
  border: calc(.5 * var(--u)) solid var(--black);
  border-radius: 100vw;
  color: var(--black);
  font-family: var(--font);
  font-size: calc(3 * var(--u));
  line-height: calc(3 * var(--u));
}
.tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.dishes { overflow: hidden; transition: opacity 300ms var(--ease); }
/* Platz unter dem letzten Gericht, so hoch wie der Verlauf der Leiste unten — sonst deckt die Leiste es zu */
.dishes::after { content: ""; display: block; height: 32vh; }
.dishes.is-switching { opacity: 0; transition-duration: 100ms; }

.dish {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(5 * var(--u));
  padding: calc(7 * var(--u)) calc(4 * var(--u));
  border-top: calc(.3 * var(--u)) solid var(--line);
  background: var(--white);
}
.dish__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--u));
  cursor: pointer;
}
.dish__top { display: flex; justify-content: space-between; align-items: flex-start; }
.dish__name {
  color: #333;
  font-family: var(--font);
  font-weight: 700;
  font-size: calc(6 * var(--u));
  line-height: calc(6 * var(--u));
}
.dish__price {
  font-family: var(--font);
  font-size: calc(5 * var(--u));
  line-height: calc(5 * var(--u));
}
.dish__tags { display: flex; gap: calc(.4 * var(--u)); }

/* ---------- Info zu einem Gericht ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: rgba(22, 22, 22, .3);
  -webkit-backdrop-filter: blur(calc(.6 * var(--u)));
  backdrop-filter: blur(calc(.6 * var(--u)));
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.sheet__card {
  position: relative;
  width: calc(88 * var(--u));
  margin-top: 8vh;
  padding: calc(5 * var(--u)) 0;
  border-radius: calc(5 * var(--u));
  background: var(--white);
  opacity: 0;
  transform: scale(.9);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.sheet.is-open, .sheet.is-open .sheet__card { opacity: 1; }
.sheet.is-open .sheet__card { transform: scale(1); }
.sheet__close {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, calc(-4 * var(--u)));
}
.sheet__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(5 * var(--u));
}
.sheet__top { display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.sheet__title {
  text-align: center;
  color: var(--black);
  font-family: var(--font);
  font-weight: 400;
  font-size: calc(7 * var(--u));
  line-height: calc(7 * var(--u));
  letter-spacing: calc(-.1 * var(--u));
}
.sheet__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(4 * var(--u));
  margin-top: calc(4 * var(--u));
}
.sheet__text, .sheet__price {
  color: var(--black);
  text-align: center;
  font-family: var(--font);
  font-size: calc(3.8 * var(--u));
  line-height: calc(4 * var(--u));
}
.sheet__text { width: calc(70 * var(--u)); }
.sheet__price { transform: translate(0, calc(4 * var(--u))); }
.sheet__tags { display: flex; gap: var(--u); }
.sheet__add { transform: translate(0, calc(9 * var(--u))); }

/* ---------- Warenkorb + Bestellformular ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(30, 30, 30, .5);
  -webkit-backdrop-filter: blur(var(--u));
  backdrop-filter: blur(var(--u));
  opacity: 0;
  transition: opacity 800ms var(--ease);
}
.overlay.is-open { opacity: 1; }

.panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: calc(90 * var(--u));
  height: 90vh;
  margin: 4vh auto 0;
  padding: calc(8 * var(--u));
  border-radius: calc(8 * var(--u));
  background: var(--white);
  overflow: hidden;
  transform: translate3d(0, calc(20 * var(--u)), 0);
  transition: transform 800ms var(--ease);
}
.overlay.is-open .panel { transform: translate3d(0, 0, 0); }
.panel--order {
  z-index: 2;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: transform 500ms var(--ease), opacity 500ms var(--ease);
}
.overlay.is-open .panel--order { transform: translate3d(0, calc(20 * var(--u)), 0); }
.overlay.is-open .panel--order.is-open { transform: translate3d(0, 0, 0); opacity: 1; }
.overlay.is-closing .panel, .overlay.is-closing .panel--order.is-open {
  transform: translate3d(0, calc(20 * var(--u)), 0);
  transition-duration: 800ms;
}

.panel__head { display: flex; justify-content: space-between; align-items: center; }
.panel__title {
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
  font-size: calc(7 * var(--u));
  line-height: calc(7 * var(--u));
}

.cart-list { margin: calc(2 * var(--u)) 0; }

.cart-box {
  width: 100%;
  padding: 10px 10px 2px;
  border: 1px solid rgba(20, 20, 20, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
}
.cart-empty { padding: 14px 10px; color: var(--cart-muted); font-weight: 650; }
.cart-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 6px;
}
.cart-row + .cart-row { border-top: 1px solid rgba(20, 20, 20, .08); }
.cart-row__name {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--cart-text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.cart-row__price { color: var(--cart-muted); font-size: 14px; font-weight: 650; }
.cart-row__price span { opacity: .65; font-weight: 600; }
.cart-row__qty { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.cart-row__qty output {
  min-width: 22px;
  text-align: center;
  color: var(--cart-text);
  font-family: var(--font);
  font-size: 18px;
}
.round-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--cart-gold);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 18px rgba(200, 148, 44, .25);
  user-select: none;
  transition: transform .05s ease, background .15s ease;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.round-btn:hover { background: var(--cart-gold-hover); }
.round-btn:active { transform: scale(.97); }
.round-btn:focus-visible { outline: 2px solid rgba(200, 148, 44, .35); outline-offset: 2px; }

.order-form { display: flex; flex-direction: column; }
.field-label {
  display: block;
  margin: calc(4 * var(--u)) 0 0 calc(2 * var(--u));
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
  font-size: calc(4 * var(--u));
  line-height: calc(6 * var(--u));
}
.field {
  display: block;
  width: 100%;
  height: calc(10 * var(--u));
  margin: 0;
  padding: calc(4 * var(--u)) calc(5 * var(--u));
  border: calc(.7 * var(--u)) solid #000;
  border-radius: 100vw;
  background: var(--white);
  color: #000;
  font-family: var(--font);
  font-size: calc(3 * var(--u));
  line-height: calc(3 * var(--u));
}
.field:focus { outline: 0; border-color: var(--gold); }
.field--select { padding-block: 0; color: var(--black); margin-bottom: 10px; }
.order-form__hint, .order-form__notice {
  margin-top: calc(2 * var(--u));
  text-align: center;
  font-family: var(--font);
  font-size: calc(3 * var(--u));
  line-height: calc(4 * var(--u));
}
.order-form__hint { margin-inline: calc(5 * var(--u)); color: var(--black); }
.order-form__notice { color: var(--red); }

/* ---------- Leiste unten ---------- */
.bar-fade {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  height: 32vh;
  background: linear-gradient(rgba(255, 249, 230, 0), var(--white) 28%);
  pointer-events: none;
}
.bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 11;
  display: flex;
  justify-content: center;
}
.bar__inner {
  width: var(--col);
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
  padding: calc(7 * var(--u)) calc(8 * var(--u)) calc(6 * var(--u));
  padding-bottom: max(calc(6 * var(--u)), env(safe-area-inset-bottom));
  border-radius: calc(6 * var(--u)) calc(6 * var(--u)) 0 0;
  background: var(--black);
}
.bar__top { display: flex; justify-content: space-between; align-items: center; }
.bar__label {
  display: flex;
  align-items: center;
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: calc(4 * var(--u));
  line-height: calc(4 * var(--u));
}
.bar__total {
  color: var(--gold);
  font-family: var(--font);
  font-size: calc(4 * var(--u));
  line-height: calc(4 * var(--u));
  letter-spacing: .4px;
}
.cart-count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: .3em;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--cart-gold);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* ============================== SUCCESS ============================== */
.success {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: url("assets/images/success-bg.png") 50% 0 / cover;
}
.success__head { margin: calc(4 * var(--u)); }
.success__icon { flex: 1; display: flex; justify-content: center; align-items: center; }
.success__icon img { width: calc(46 * var(--u)); transform: translate(0, calc(-14 * var(--u))); }

/* ============================== DESKTOP ============================== */
.desktop-note { display: none; }

@media (min-width: 992px) {
  .app, .bar, .bar-fade, .sheet, .overlay { display: none !important; }
  .desktop-note {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  .desktop-note img { width: 50vw; }
}
