/* Corkfolio Gastro Demo — Gästekarte. Mobile zuerst, eine ruhige, warme Bühne. */
* { box-sizing: border-box; }
:root {
  --paper: #f7f2ea;
  --card: #fffdf9;
  --ink: #2b2118;
  --muted: #857a6d;
  --line: #e6ddd0;
  --wine: #6d1a2a;
  --wine-deep: #521320;
  --gold: #a5813f;
  --ok: #3d7a4a;
  --shadow: 0 1px 2px rgba(43,33,24,.06), 0 10px 30px rgba(43,33,24,.08);
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.serif { font-family: "Fraunces", Georgia, serif; }

/* Kopf */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem calc(.8rem);
  background: rgba(247,242,234,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .haus { flex: 1; min-width: 0; }
.top .name { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; }
.top .sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
.top .tisch {
  font-size: .78rem; font-weight: 600; color: var(--wine);
  border: 1px solid var(--wine); border-radius: 999px; padding: .25rem .7rem;
  white-space: nowrap;
}
.back {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.1rem;
  flex: 0 0 auto; cursor: pointer;
}

main { padding: 1.1rem 1rem 2rem; max-width: 40rem; margin: 0 auto; }
.foot {
  text-align: center; font-size: .75rem; color: var(--muted);
  padding: 1rem 1rem 2.2rem;
}
.foot strong { color: var(--wine); }

h2.sect {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.25rem; margin: 1.6rem 0 .7rem;
}
.hint { color: var(--muted); font-size: .85rem; }

/* Einstieg */
.entry { display: flex; flex-direction: column; gap: .8rem; margin-top: .4rem; }
.entry button {
  text-align: left; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow); cursor: pointer;
  padding: 1.1rem 1.2rem; font: inherit; color: inherit;
}
.entry .t { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; font-weight: 600; display: block; }
.entry .s { color: var(--muted); font-size: .85rem; }
.entry .essen .t { color: var(--wine); }

/* Weinzeilen */
.rows { display: flex; flex-direction: column; gap: .7rem; }
.wrow {
  display: flex; gap: .9rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: .7rem .85rem; box-shadow: var(--shadow); cursor: pointer;
}
.wrow img {
  width: 52px; height: 68px; object-fit: cover; border-radius: 8px;
  background: var(--paper); flex: 0 0 auto;
}
.wrow .mid { flex: 1; min-width: 0; }
.wrow .prod { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow .wname { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.wrow .meta { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow .right { text-align: right; flex: 0 0 auto; }
.wrow .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; border-radius: 4px; padding: .1rem .38rem; }
.badge.reco { color: var(--gold); border: 1px solid var(--gold); }
.badge.punkt { color: var(--ok); border: 1px solid var(--ok); }
.badge.letzte { color: var(--wine); border: 1px solid var(--wine); }
.badge.top { background: var(--gold); color: #fff; border: none; }
.badge.glas { color: var(--gold); border: 1px solid var(--gold); }
.wrow .gp { font-size: .74rem; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* Filter */
.filters { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.chiprow { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .2rem; -webkit-overflow-scrolling: touch; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: .38rem .85rem; font-size: .85rem; font-weight: 500;
  white-space: nowrap; cursor: pointer; flex: 0 0 auto; font-family: inherit;
}
.chip.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.search {
  width: 100%; font: inherit; font-size: 16px; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: .7rem .95rem;
}
.search::placeholder { color: var(--muted); }

/* Gerichte */
.dcat { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 1.3rem 0 .5rem; font-weight: 600; }
.drow {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: .85rem 1rem; cursor: pointer; margin-bottom: .6rem;
}
.drow .dn { font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.drow .dd { font-size: .8rem; color: var(--muted); }
.drow .dp { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pairbanner {
  background: var(--wine); color: #fff; border-radius: 14px;
  padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem;
}
.pairbanner .b { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; }

/* Detail */
.detail .photo {
  width: 100%; max-height: 46vh; object-fit: contain;
  border-radius: 18px; background: #efe7da; margin-bottom: 1rem;
}
.detail .prod { text-transform: uppercase; letter-spacing: .11em; color: var(--muted); font-size: .8rem; }
.detail h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.7rem; line-height: 1.15; margin: .15rem 0 .3rem; }
.detail .sub { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.kv { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 1rem; }
.kv span { font-size: .78rem; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .22rem .6rem; color: var(--ink); }
.window {
  border-left: 3px solid var(--ok); background: var(--card);
  border-radius: 0 12px 12px 0; padding: .6rem .9rem; margin: .9rem 0; font-size: .9rem;
}
.window.wait { border-color: var(--gold); }
.window .w-t { font-weight: 600; }
.detail p.text { font-size: .92rem; margin: .7rem 0; }
.detail .l { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; color: var(--gold); font-weight: 700; margin-top: 1.1rem; }
.pairchips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.pairchips button {
  font: inherit; font-size: .84rem; cursor: pointer;
  border: 1px solid var(--wine); color: var(--wine); background: none;
  border-radius: 999px; padding: .35rem .8rem;
}

.buybar {
  position: sticky; bottom: 0; margin: 1.4rem -1rem -2rem;
  background: linear-gradient(to top, var(--paper) 75%, transparent);
  padding: 1.2rem 1rem 1.4rem;
}
.buy {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--wine); color: #fff; border: none; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: 1rem 1.2rem; cursor: pointer; box-shadow: var(--shadow);
}
.buy:active { background: var(--wine-deep); }
.buy .p { font-variant-numeric: tabular-nums; }
.buy.glass { background: var(--card); color: var(--wine); border: 1.5px solid var(--wine); margin-top: .6rem; }
.buy.glass:active { background: var(--paper); }
.soldout { text-align: center; color: var(--muted); font-weight: 600; padding: .6rem 0; }

/* Menü + Weinbegleitung */
.menucard {
  background: var(--card); border: 1px solid var(--gold); border-radius: 16px;
  box-shadow: var(--shadow); padding: 1.2rem 1.2rem 1.1rem; margin: .3rem 0 1.4rem;
}
.menucard .mtitle { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.35rem; }
.menucard .mdesc { color: var(--muted); font-size: .85rem; margin-bottom: .9rem; }
.menucard .mcourses { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.menucard .mc { display: flex; gap: .7rem; align-items: baseline; }
.menucard .mc .n {
  flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.menucard .mcd { font-weight: 600; font-size: .95rem; }
.menucard .mcw { font-size: .78rem; color: var(--muted); }
.mbtn {
  width: 100%; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  background: var(--gold); color: #fff; border: none; border-radius: 12px; padding: .9rem;
}

/* Status */
.status { text-align: center; padding-top: 1.5rem; }
.status .big { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 600; margin: .8rem 0 .4rem; }
.status img { width: 130px; height: 170px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.pulse {
  width: 14px; height: 14px; border-radius: 50%; background: var(--gold);
  margin: 1rem auto; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(.7); opacity:.5 } 50% { transform: scale(1.15); opacity:1 } }
.status .actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
.abtn {
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  border-radius: 14px; padding: .9rem 1rem;
  border: 1px solid var(--wine); color: var(--wine); background: var(--card);
}
.abtn.primary { background: var(--wine); color: #fff; }
.review { margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
.review a { color: var(--gold); }

/* Bottom-Sheet (Merken) */
#sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(43,33,24,.45); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 1.4rem 1.2rem 2.2rem; max-width: 40rem; margin: 0 auto;
  box-shadow: 0 -10px 40px rgba(43,33,24,.25);
}
.sheet h3 { font-family: "Fraunces", Georgia, serif; margin: 0 0 .4rem; font-size: 1.25rem; }
.sheet p { font-size: .9rem; color: var(--muted); margin: .3rem 0 1rem; }
.apple {
  width: 100%; background: #000; color: #fff; border: none; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 1rem; padding: .95rem; cursor: pointer;
}
.sheet .done-house { font-weight: 600; color: var(--ink); }
.demotag { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .4rem; margin-left: .4rem; }

.empty { text-align: center; color: var(--muted); padding: 2rem 0; }
