@font-face { font-family: "Cormorant"; src: url(fonts/cormorant.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

/* Barkarte bei Kerzenlicht: tiefes Flaschengrün, Champagnergold, Hairlines statt Flächen */
:root {
  --bg: #0f1a16;
  --raise: #14231e;
  --line: rgba(201, 169, 106, .22);
  --line-soft: rgba(236, 228, 208, .09);
  --ink: #ece4d0;
  --muted: #9aa597;
  --gold: #c9a96a;
  --gold-ink: #15120a;
  --warn: #d9a25e;
  --bad: #c7746a;
  --f-s: #d6c25a; --f-z: #c98a3e; --f-b: #9e3434; --f-f: #c25a7b; --f-c: #e3d8bf;
  --f-k: #6c9659; --f-r: #7e7a71; --f-w: #a65f31; --f-p: #98bcd0; --f-x: #c9a96a;
  --glass: #c9a96a;
  --serif: Cormorant, "Cormorant Garamond", Garamond, Georgia, serif;
  --gutter: 20px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f1efe8; --raise: #faf8f2; --line: rgba(122, 93, 38, .28); --line-soft: rgba(20, 30, 26, .1);
    --ink: #17221d; --muted: #5d685f; --gold: #7a5d26; --gold-ink: #fffaf0; --warn: #8c5513; --bad: #9b3a30;
    --f-c: #d3c5a3; --glass: #7a5d26; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f1efe8; --raise: #faf8f2; --line: rgba(122, 93, 38, .28); --line-soft: rgba(20, 30, 26, .1);
  --ink: #17221d; --muted: #5d685f; --gold: #7a5d26; --gold-ink: #fffaf0; --warn: #8c5513; --bad: #9b3a30;
  --f-c: #d3c5a3; --glass: #7a5d26; color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 Figtree, system-ui, sans-serif; letter-spacing: .01em;
  padding-bottom: calc(68px + env(safe-area-inset-bottom)); min-height: 100vh;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
input[type=range] { accent-color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; margin: 0; }
.name { font-family: var(--serif); font-weight: 500; }

/* Kopf */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px var(--gutter) 0; max-width: 920px; margin: 0 auto; }
.brand { font-family: var(--serif); font-style: italic; font-size: 1.6rem; text-decoration: none; color: var(--gold); letter-spacing: .02em; }
.top-r { display: flex; align-items: baseline; gap: 14px; }
.lang { background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 999px; padding: 4px 10px; min-height: 32px; font-size: .75rem; letter-spacing: .08em; cursor: pointer; flex: none; }
.wx { margin: 0; color: var(--muted); font-size: .8125rem; text-align: right; max-width: 24ch; line-height: 1.4; }
.wx button { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

main { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter) 40px; outline: none; }

/* Navigation */
.tabs {
  position: fixed; inset: auto 0 0 0; display: flex; justify-content: center; gap: 8px; z-index: 20;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
}
.tabs a { flex: 1; max-width: 180px; text-align: center; text-decoration: none; padding: 12px 6px 10px; color: var(--muted); font-family: var(--serif); font-size: 1.15rem; border-bottom: 1px solid transparent; }
.tabs a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* Typografie */
.lead { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1; margin: 36px 0 10px; letter-spacing: -.005em; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 52ch; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.4; }
h2.sec { font-family: var(--serif); font-size: 1.6rem; margin: 40px 0 14px; display: flex; align-items: center; gap: 14px; }
h2.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.small { font-size: .8125rem; color: var(--muted); }
.q { font-family: var(--serif); font-size: 1.25rem; margin: 22px 0 10px; }

/* Auswahl */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.chip {
  border: 1px solid var(--line-soft); background: transparent; border-radius: 999px; padding: 7px 14px;
  cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; font-size: .875rem;
}
.chip:hover { border-color: var(--line); }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: rgba(201, 169, 106, .08); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip.neg[aria-pressed="true"] { border-color: var(--bad); color: var(--bad); background: transparent; text-decoration: line-through; text-decoration-thickness: 1px; }
.seg { display: inline-flex; border: 1px solid var(--line-soft); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 7px 16px; cursor: pointer; min-height: 38px; font-size: .875rem; }
.seg button[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px;
  border-radius: 2px; border: 1px solid var(--gold); background: var(--gold); color: var(--gold-ink);
  font-weight: 500; letter-spacing: .04em; cursor: pointer; text-decoration: none; font-size: .9375rem;
}
.btn.ghost { background: transparent; color: var(--gold); }
.link { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sub .small .link { font-size: inherit; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta { margin-top: 34px; }

/* Glas */
.g { display: block; overflow: visible; flex: none; }
.g .outline { fill: none; stroke: var(--glass); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.g .liquid rect { opacity: .92; }
.g .bubble { fill: none; stroke: var(--ink); stroke-width: .7; opacity: .55; }

/* Vorschläge */
.picks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pick { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; text-decoration: none; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pick .g { width: 76px; height: 100px; }
.pick .kind { font-size: .75rem; color: var(--gold); margin: 0 0 4px; letter-spacing: .08em; }
.pick h3 { font-size: 1.85rem; line-height: 1.05; }
.pick .why { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); margin: 6px 0 0; line-height: 1.35; }
.pick.new .kind::before { content: "◆ "; font-size: .6rem; vertical-align: 1px; }
#more-end { height: 1px; }
@media (min-width: 760px) {
  .picks { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 28px; }
  .pick { border: 1px solid var(--line); padding: 28px 22px; text-align: center; grid-template-columns: 1fr; justify-items: center; }
}

/* Karte als Menü */
.search { width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; margin: 4px 0 18px; font-family: var(--serif); font-size: 1.3rem; }
.search::placeholder { color: var(--muted); font-style: italic; }
.search:focus-visible { outline: none; border-bottom-color: var(--gold); }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 10px; padding: 0 var(--gutter) 2px; scrollbar-width: none; }
.filters .chip { flex: none; }
.count { color: var(--muted); font-size: .8125rem; margin: 18px 0 0; }
.menu { display: grid; grid-template-columns: 1fr; column-gap: 40px; }
@media (min-width: 760px) { .menu { grid-template-columns: 1fr 1fr; } }
.item { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.item .g { width: 36px; height: 48px; }
.item h3 { font-size: 1.4rem; line-height: 1.1; }
.item .meta { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.02rem; line-height: 1.25; margin-top: 2px; }
.item .abv { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.item.off { opacity: .4; }
.item .house { color: var(--gold); font-size: .6rem; vertical-align: 3px; margin-left: 6px; }

/* Detail */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.sheet-in { outline: none; max-width: 640px; margin: 0 auto; padding: 14px var(--gutter) 110px; }
/* Zurück: oben im Fluss; schwebend im Daumenbereich erst nach dem Scrollen */
.sheet .close.top { display: block; margin: 0 auto 0 0; text-align: left; background: none; border: 0; color: var(--gold); cursor: pointer; padding: 8px 0; min-height: 44px; font-family: var(--serif); font-size: 1.2rem; }
.sheet .close.float {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  min-height: 48px; padding: 8px 22px 10px; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--gold); border: 1px solid var(--gold);
  font-family: var(--serif); font-size: 1.2rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
}
.sheet.scrolled .close.float { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .sheet .close.float { transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .sheet.scrolled .close.float { transition: opacity .2s ease, transform .2s ease, visibility 0s; }
}
@media (min-width: 760px) { .sheet .close.float { left: max(16px, calc(50% - 320px - 120px)); top: 24px; bottom: auto; } }
.hero { text-align: center; margin: 8px 0 22px; }
.hero .g { width: 150px; height: 198px; margin: 0 auto 18px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 11vw, 3.8rem); line-height: 1; }
.facts { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin: 10px auto 0; max-width: 36ch; line-height: 1.35; }
.creator { text-align: center; color: var(--gold); font-size: .8125rem; letter-spacing: .06em; margin: 0 0 8px; }
.orn { text-align: center; color: var(--gold); font-size: .55rem; letter-spacing: 1.2em; margin: 18px 0; padding-left: 1.2em; }
.bars { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px 14px; align-items: center; margin: 0 auto 6px; max-width: 360px; }
.bars span { font-family: var(--serif); font-style: italic; font-size: 1.05rem; text-align: right; color: var(--muted); }
.bar { height: 2px; background: var(--line-soft); }
.bar i { display: block; height: 100%; }
.disclaim { text-align: center; max-width: 44ch; margin: 10px auto 0; }
.react { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 22px 0 6px; }
.react .chip.like[aria-pressed="true"] { border-color: var(--f-k); color: var(--f-k); background: transparent; }

.specs { display: flex; gap: 0; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); scrollbar-width: none; border-bottom: 1px solid var(--line-soft); }
.specs button { flex: none; border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 10px 14px 10px 0; margin-right: 14px; cursor: pointer; text-align: left; line-height: 1.2; color: var(--muted); }
.specs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.specs small { display: block; font-family: var(--serif); font-style: italic; font-size: .95rem; }

.tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-soft); border-radius: 999px; }
.stepper button { width: 38px; height: 38px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--gold); }
.stepper output { min-width: 5em; text-align: center; font-variant-numeric: tabular-nums; font-size: .875rem; }
.ings { list-style: none; margin: 0 0 8px; padding: 0; }
.ings li { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.ings .iname { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.ings .amt { font-variant-numeric: tabular-nums; color: var(--gold); text-align: right; white-space: nowrap; font-size: .9375rem; }
.ings .amt small { display: block; color: var(--muted); font-size: .75rem; }
.ings .miss { color: var(--bad); font-size: .75rem; display: block; font-family: Figtree, sans-serif; }
.ings .note { color: var(--muted); font-size: .8125rem; display: block; font-family: Figtree, sans-serif; }
.garnish { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 12px 0 0; }
.garnish b { font-style: normal; font-weight: 500; color: var(--ink); }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 8px; margin: 0 0 10px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-variant-numeric: lining-nums; color: var(--gold); font-size: 1.2rem; line-height: 1.3; }
.tip { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.tip b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--gold); margin-bottom: 2px; }
.tip.warn b { color: var(--warn); }
.src { font-size: .8125rem; color: var(--muted); margin-top: 26px; }

/* Bar */
.panel { border-top: 1px solid var(--line); padding: 22px 0 8px; margin: 0 0 18px; }
.panel h2 { font-family: var(--serif); font-size: 1.75rem; margin: 0 0 4px; }
.field { display: grid; gap: 4px; margin: 0 0 14px; }
.field label { font-size: .8125rem; color: var(--muted); }
.field input, .field select { padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; border-radius: 0; }
.field select option { background: var(--raise); }
.field input[type="range"] { border: 0; padding: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 18px; }
.field.wide { grid-column: 1 / -1; }
table.calc { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
table.calc td, table.calc th { padding: 9px 2px; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; }
table.calc th { color: var(--muted); font-size: .8125rem; }
table.calc td:first-child { font-family: var(--serif); font-size: 1.2rem; }
table.calc td.n, table.calc th.n { text-align: right; color: var(--gold); }
table.calc tr.total td { border-bottom: 0; border-top: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; margin: 12px 0 10px; display: inline-flex; }
details summary::-webkit-details-marker { display: none; }

.empty { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; padding: 24px 0; }

@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) .sheet-in { animation: rise .35s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .sheet-in.still, .sheet-in.still .pour { animation: none !important; }
  .hero .pour { transform-box: fill-box; transform-origin: 50% 100%; animation: pour 1.2s cubic-bezier(.3, .7, .2, 1) .15s both; }
  @keyframes pour { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Druck: Partykarte und Barzettel */
#print { display: none; }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body.printing > *:not(#print) { display: none !important; }
  body.printing { background: #fff; color: #1b1b18; padding: 0; min-height: 0; }
  body.printing #print { display: block; }
  .pm { --glass: #8a6a2c; font-family: Figtree, sans-serif; color: #1b1b18; }
  .pm header { text-align: center; margin-bottom: 8mm; }
  .pm h1 { font-family: var(--serif); font-weight: 500; font-size: 34pt; line-height: 1; margin: 0; }
  .pm-sub { font-family: var(--serif); font-style: italic; font-size: 14pt; color: #5b5a52; margin: 3mm 0 0; }
  .pm .orn { color: #8a6a2c; margin: 4mm 0 0; }
  .pm-list { display: grid; gap: 6mm 12mm; }
  .pm-list.two { grid-template-columns: 1fr 1fr; }
  .pm article { display: grid; grid-template-columns: 12mm 1fr; gap: 5mm; align-items: center; break-inside: avoid; padding-bottom: 5mm; border-bottom: .3pt solid #c9b88f; }
  .pm article .g { width: 12mm; height: 16mm; }
  .pm h2 { font-family: var(--serif); font-weight: 500; font-size: 18pt; margin: 0; line-height: 1.1; }
  .pm-words { font-family: var(--serif); font-style: italic; font-size: 12pt; color: #5b5a52; margin: 1mm 0; }
  .pm-ings { font-size: 9pt; letter-spacing: .02em; color: #3a3a34; margin: 0; }
  .pm footer { text-align: center; font-family: var(--serif); font-style: italic; color: #5b5a52; margin-top: 8mm; font-size: 12pt; }
  .pm.bar header { text-align: left; }
  .pm.bar h1 { font-size: 22pt; }
  .pm.bar section { break-inside: avoid; margin: 0 0 6mm; }
  .pm.bar h2 { font-size: 15pt; }
  .pm table { width: 100%; border-collapse: collapse; font-size: 9.5pt; font-variant-numeric: tabular-nums; }
  .pm th, .pm td { text-align: left; padding: 1.2mm 0; border-bottom: .3pt solid #ddd5c2; font-weight: 400; }
  .pm th { color: #77756b; font-size: 8pt; }
  .pm .n { text-align: right; }
  .pm .oz { color: #77756b; font-size: 8pt; }
  .pm-note { font-size: 8.5pt; color: #5b5a52; margin: 1.5mm 0 0; }
  .pm .liquid rect { opacity: .85; }
}

/* Rheine-Specials (Raffi) */
.spb { display: inline-block; font-size: .62rem; letter-spacing: .14em; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px; }
.spb.big { margin: 0 0 10px; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.35rem; margin: 6px 0 0; }
.sdesc { text-align: center; max-width: 46ch; margin: 0 auto 14px; color: var(--ink); }
.wirkung { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 0 0 6px; }
.wirkung i { width: 16px; height: 3px; background: var(--line-soft); }
.wirkung i.on { background: var(--f-b); }
.wirkung span { font-size: .75rem; color: var(--muted); margin-left: 8px; }
.ings.plain li { grid-template-columns: 1fr; }
.diag { margin-top: 10px; }
.qsteps { display: flex; gap: 6px; margin: 4px 0 6px; max-width: 240px; }
.qsteps i { flex: 1; height: 2px; background: var(--line-soft); }
.qsteps i.on { background: var(--gold); }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--gold); color: var(--gold-ink); padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) { .toast { transition: opacity .2s, transform .2s; } }

/* Party-Modus */
.party { text-align: center; margin: 26px 0 6px; }
.party .lead { margin: 6px 0 12px; }
.party .sub { margin: 0 auto 6px; }
.eyebrow-p { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.15rem; margin: 0; }
.party-q { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0 18px; margin: 14px 0 6px; }
.foot-p { font-family: var(--serif); font-style: italic; color: var(--muted); text-align: center; font-size: 1rem; margin: 6px 0 10px; }
.light { margin-top: 10px; }
.light .name { font-size: 1.6rem; margin: 0 0 4px; }
.sdesc.left { text-align: left; margin-left: 0; }
.ems-p { color: var(--muted); font-size: .8125rem; letter-spacing: .04em; margin: 10px 0 0; }
.ems-p::before, .ems-p::after { content: " ★ "; color: var(--gold); }
.search-btn { color: var(--gold); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 32px; border: 1px solid var(--line); border-radius: 999px; flex: none; align-self: center; }
.top-r { align-items: center; }
