@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/big-shoulders-display-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2');}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Atkinson Hyperlegible';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2');}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');}
/* Layout: eine Spalte wie eine Verkostungsliste – Tisch-Schilder gliedern, jede Zeile ein Wein mit Farbstreifen,
   unten der Bestellschein als feste Summenleiste. Flaschengrün als Grund, Rubin für Handlungen und eigene Sterne. */
:root {
  color-scheme: light;
  --bg: #edf1ec;
  --surface: #f9fbf8;
  --surface-2: #e2e9e2;
  --ink: #14201a;
  --muted: #55655b;
  --line: #cdd7ce;
  --accent: #8b1c34;
  --accent-ink: #ffffff;
  --accent-soft: #f4e0e4;
  --glass: #1d4636;
  --glass-ink: #eef5ef;
  --glass-muted: #a9c3b5;
  --ok: #2d7a4c;
  --ok-soft: #dcefe2;
  --warn: #9a5f00;
  --star: #8b1c34;
  --star-off: #bcc7bf;
  --wine-weiss: #d6ad3b;
  --wine-rose: #e2897a;
  --wine-rot: #7e1730;
  --wine-schaum: #c8b75f;
  --wine-suess: #c98b2a;
  --wine-spirit: #a5611d;
  --wine-alkfrei: #4b9883;
  --mark-wine: #c8435f;
  --ok-ink: #ffffff;
  --placard: #1d4636;
  --placard-ink: #eef5ef;
  --placard-muted: #a9c3b5;
  --grp: #1d4636;
  --box: #8a988f;
  --shadow: 0 1px 0 rgba(20, 32, 26, .06), 0 8px 24px -16px rgba(20, 32, 26, .35);
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 12px;
  --r-s: 8px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --sticky-h: 98px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1712;
    --surface: #13201a;
    --surface-2: #1a2a22;
    --ink: #e5ede7;
    --muted: #97a99e;
    --line: #26382e;
    --accent: #e7647c;
    --accent-ink: #1a080d;
    --accent-soft: #3a1820;
    --glass: #0a120e;
    --glass-ink: #e5ede7;
    --glass-muted: #8fa99b;
    --ok: #6cc391;
    --ok-soft: #173326;
    --warn: #e0a64a;
    --star: #ef7d92;
    --star-off: #3a4c42;
    --wine-weiss: #e4c25a;
    --wine-rose: #ef9d8f;
    --wine-rot: #c23b5a;
    --wine-schaum: #d9ca7a;
    --wine-suess: #e0a24a;
    --wine-spirit: #cc8540;
    --wine-alkfrei: #62b49d;
    --ok-ink: #0d1712;
    --placard: #1f3c30;
    --placard-ink: #e5ede7;
    --placard-muted: #a3bdb0;
    --grp: #8fc3a8;
    --box: #5f7268;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 26px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1712;
  --surface: #13201a;
  --surface-2: #1a2a22;
  --ink: #e5ede7;
  --muted: #97a99e;
  --line: #26382e;
  --accent: #e7647c;
  --accent-ink: #1a080d;
  --accent-soft: #3a1820;
  --glass: #0a120e;
  --glass-ink: #e5ede7;
  --glass-muted: #8fa99b;
  --ok: #6cc391;
  --ok-soft: #173326;
  --warn: #e0a64a;
  --star: #ef7d92;
  --star-off: #3a4c42;
  --wine-weiss: #e4c25a;
  --wine-rose: #ef9d8f;
  --wine-rot: #c23b5a;
  --wine-schaum: #d9ca7a;
  --wine-suess: #e0a24a;
  --wine-spirit: #cc8540;
  --wine-alkfrei: #62b49d;
  --ok-ink: #0d1712;
  --placard: #1f3c30;
  --placard-ink: #e5ede7;
  --placard-muted: #a3bdb0;
  --grp: #8fc3a8;
  --box: #5f7268;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 26px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--glass);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopf ---------- */
.masthead {
  background: var(--glass);
  color: var(--glass-ink);
  padding: 14px var(--gutter-r) 12px var(--gutter-l);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand > div { min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand h1 {
  margin: 0;
  font: 800 26px/1 var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand p { margin: 2px 0 0; font-size: 12.5px; color: var(--glass-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--glass-muted);
  border-color: color-mix(in srgb, var(--glass-ink) 25%, transparent);
  background: transparent; color: var(--glass-ink);
  border-radius: 999px; padding: 5px 10px; font-size: 12.5px; white-space: nowrap;
}
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glass-muted); }
.sync[data-s="ok"] .dot { background: #6fd39a; }
.sync[data-s="syncing"] .dot, .sync[data-s="pending"] .dot { background: #f2c14e; }
.sync[data-s="offline"] .dot, .sync[data-s="error"] .dot { background: #f08a5d; }
.sync[data-s="local"] .dot { background: #9cc6ff; }

/* ---------- Sticky-Leiste ---------- */
.sticky {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter-r) 8px var(--gutter-l);
  display: grid;
  gap: 8px;
}
.tabs { display: grid; grid-template-columns: repeat(5, auto); justify-content: stretch; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.tab {
  border: 0; background: transparent; border-radius: 8px; padding: 7px 4px;
  font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
@media (max-width: 400px) { .tab { font-size: 12.5px; padding: 7px 2px; } .tab .cnt { margin-left: 2px; } }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tab .cnt { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; margin-left: 4px; color: var(--accent); }
.tools { display: flex; gap: 8px; align-items: stretch; }
.search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 0 34px 0 36px; font-size: 15px;
}
.search .clear { position: absolute; right: 4px; border: 0; background: transparent; width: 32px; height: 32px; color: var(--muted); border-radius: 8px; }
.jump {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 0 8px; max-width: 120px; font-weight: 700; font-size: 14px;
}
.btn-filter {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; font-weight: 700; font-size: 14px; position: relative;
}
.btn-filter[data-n]:not([data-n="0"])::after {
  content: attr(data-n); position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 600 11px/18px var(--font-mono); text-align: center; padding: 0 4px;
}
.activebar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.activebar:empty { display: none; }
.chip-x { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 9px; font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; }

/* ---------- Ansichten ---------- */
main { padding: 12px var(--gutter-r) calc(120px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); max-width: 760px; margin: 0 auto; }
.view[hidden] { display: none !important; }

/* Tisch-Schild */
.tbl { margin: 0 0 22px; scroll-margin-top: calc(var(--sticky-h) + env(safe-area-inset-top, 0px) + 8px); }
.placard {
  margin: 0 0 10px;
  display: flex; align-items: baseline; gap: 10px;
  background: var(--placard); color: var(--placard-ink);
  border-radius: var(--r); padding: 8px 14px 9px;
}
.placard .pl-label { font: 700 15px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--placard-muted); }
.placard .pl-num { font: 800 34px/0.9 var(--font-display); letter-spacing: .01em; }
.placard .pl-word { font: 800 26px/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; }
.placard .pl-count { margin-left: auto; font-size: 12.5px; color: var(--placard-muted); white-space: nowrap; }
.placard .pl-count b { color: var(--placard-ink); font-weight: 700; }

/* Weingut */
.prod { margin: 0 0 14px; }
.prod-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 2px 2px 6px; }
.prod-head h3 { margin: 0; font-size: 16px; line-height: 1.25; text-wrap: balance; }
.prod-head .place { color: var(--muted); font-size: 13px; }
.linkbtn { border: 0; background: none; color: var(--accent); padding: 2px 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.prod-desc { margin: 0 2px 10px; font-size: 13.5px; color: var(--muted); max-width: 65ch; }

/* Wein-Zeile */
.wine {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px 10px 14px;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 6px;
  align-items: start;
  scroll-margin-top: calc(var(--sticky-h) + env(safe-area-inset-top, 0px) + 12px);
}
.wine::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 5px; border-radius: 0 4px 4px 0;
  background: var(--stripe, var(--line));
}
.wine[data-k="weiss"] { --stripe: var(--wine-weiss); }
.wine[data-k="rose"] { --stripe: var(--wine-rose); }
.wine[data-k="rot"] { --stripe: var(--wine-rot); }
.wine[data-k="suess"] { --stripe: var(--wine-suess); }
.wine[data-k="spirit"] { --stripe: var(--wine-spirit); }
.wine[data-k="alkfrei"] { --stripe: var(--wine-alkfrei); }
.wine[data-k="schaum"] { --stripe: repeating-linear-gradient(180deg, var(--wine-schaum) 0 5px, transparent 5px 8px); }
.wine.is-tasted { background: var(--surface); background: color-mix(in srgb, var(--surface) 82%, var(--ok-soft)); border-color: var(--line); border-color: color-mix(in srgb, var(--line) 60%, var(--ok)); }
.wine.is-flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

.w-top, .w-rate, .w-ctl, .w-more { grid-column: 1 / -1; }
.w-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.w-art { font: 500 12px/1 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.w-cat { font-size: 12px; color: var(--muted); }
.w-price { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; font: 600 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-price s { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.wish {
  border: 0; background: none; padding: 4px; margin: -4px -4px -4px 0; color: var(--muted); display: inline-flex; border-radius: 6px;
}
.wish[aria-pressed="true"] { color: var(--accent); }
.wish[aria-pressed="true"] svg { fill: currentColor; }
.w-name {
  grid-column: 2;
  border: 0; background: none; text-align: left; padding: 4px 0 0; margin: 0;
  font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ink);
  display: flex; gap: 6px; align-items: flex-start; width: 100%; min-height: 44px;
}
.w-name .chev { margin-top: 1px; margin-left: auto; color: var(--muted); transition: transform .15s; }
.w-name[aria-expanded="true"] .chev { transform: rotate(90deg); }
.w-name .nm { flex: 1; min-width: 0; text-wrap: pretty; }

.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  font-size: 11.5px; line-height: 1; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line);
  color: var(--ink); background: var(--bg); white-space: nowrap;
}
.badge.stop { background: var(--placard); color: var(--placard-ink); border-color: var(--placard); font-weight: 700; }
.badge.pl { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.badge.promo { border-color: var(--accent); color: var(--accent); font-weight: 700; font-family: var(--font-mono); }
.badge.rank { font-family: var(--font-mono); }
.badge.award { border-style: dashed; }
.badge.unclear { border-style: dashed; color: var(--warn); border-color: var(--warn); }

.w-rate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.rv {
  display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; padding: 3px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--ink); white-space: nowrap;
}
.rv b { font-family: var(--font-mono); font-size: 13px; }
.rv small { font-size: 11.5px; color: var(--muted); }
.rv.none { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
a.rv:hover { background: var(--accent-soft); background: color-mix(in srgb, var(--surface-2) 70%, var(--accent-soft)); }
.rv .src { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.grp { display: inline-flex; gap: 4px; align-items: baseline; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--grp); color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.grp b { font-family: var(--font-mono); }

.w-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tick {
  grid-column: 1; align-self: start;
  border: 0; background: none; padding: 2px 0 0; width: 44px; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted);
}
.tick .box {
  width: 28px; height: 28px; border: 2px solid var(--box); border-radius: 7px; background: var(--surface);
  display: grid; place-items: center; transition: background .12s, border-color .12s;
}
.tick .box svg { width: 18px; height: 18px; stroke: var(--ok-ink); stroke-width: 3; opacity: 0; }
.tick .cap { font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.tick[aria-pressed="true"] { color: var(--ok); }
.tick[aria-pressed="true"] .box { background: var(--ok); border-color: var(--ok); }
.tick[aria-pressed="true"] .box svg { opacity: 1; }
.w-ctl { justify-content: space-between; row-gap: 4px; }
.rate-col { display: grid; justify-items: start; min-width: 0; }
.stars { display: inline-flex; align-items: center; margin-left: -4px; }
.star { border: 0; background: none; width: 30px; height: 38px; padding: 0; display: grid; place-items: center; color: var(--star-off); }
.star svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.star.on { color: var(--star); }
.rlabel { font-size: 11.5px; line-height: 1.1; color: var(--star); font-weight: 700; margin: -3px 0 0 1px; }
.qty { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); height: 40px; overflow: hidden; }
.stepper button { border: 0; background: none; width: 36px; height: 100%; font-size: 20px; line-height: 1; color: var(--ink); }
.stepper button:disabled { color: var(--star-off); cursor: default; }
.stepper output { min-width: 26px; text-align: center; font: 600 15px/1 var(--font-mono); }
.has-qty .stepper { border-color: var(--accent); }
.has-qty .stepper output { color: var(--accent); }
.ltotal { font: 600 12.5px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; min-width: 0; }
.has-qty .ltotal { color: var(--ink); }
.ltotal small { display: block; font: 700 11px/1.2 var(--font-body); color: var(--accent); }

/* Details */
.w-more { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 10px; font-size: 14px; }
.w-more p { margin: 0; max-width: 65ch; }
.w-more .desc { font-style: italic; }
/* Flaschenfoto aus Molinas Shop: hochkant, quadratische Shop-Bilder werden seitlich beschnitten */
.w-media { display: flex; gap: 12px; align-items: flex-start; }
.w-media .desc { flex: 1; min-width: 0; }
.shot {
  flex: none; width: 92px; height: 128px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; overflow: hidden; cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shot img.sq { object-fit: cover; }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: 13px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.facts a { color: var(--accent); }
.note-wrap label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.note-wrap textarea {
  width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 8px 10px; font-size: 15px;
}
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.quick button, .pill {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700;
}
.quick button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.raters { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.raters span b { font-family: var(--font-mono); color: var(--star); letter-spacing: -1px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* Summenleiste */
.sumbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--glass); color: var(--glass-ink);
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .6);
}
.sumbar[hidden] { display: none; }
.sumbar button { all: unset; cursor: pointer; display: grid; gap: 6px; width: 100%; max-width: 760px; margin: 0 auto; }
.sumbar button:focus-visible { outline: 2px solid var(--glass-ink); outline-offset: 4px; border-radius: 6px; }
.sum-row { display: flex; align-items: baseline; gap: 10px; }
.sum-row .b { font: 600 14px/1 var(--font-mono); color: var(--glass-muted); white-space: nowrap; }
.sum-row .t { margin-left: auto; font: 600 20px/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-row .lbl { font-size: 12.5px; color: var(--glass-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prog { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--glass-muted); }
.prog .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--glass-muted); background: color-mix(in srgb, var(--glass-ink) 18%, transparent); overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #f2c14e; border-radius: 3px; transition: width .25s; }
.prog.done .bar i { background: #6fd39a; }
.prog span { white-space: nowrap; }

/* Karten in Bestellung/Gruppe/Info */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0 0 12px; }
.card h2 { margin: 0 0 8px; font: 800 22px/1.05 var(--font-display); letter-spacing: .03em; text-transform: uppercase; }
.card h3 { margin: 14px 0 6px; font-size: 15px; }
.card p { margin: 0 0 8px; max-width: 65ch; }
.card p:last-child { margin-bottom: 0; }
.order { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.order td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.order td.q { font: 600 14px/1.3 var(--font-mono); white-space: nowrap; width: 1%; }
.order td.s { font: 600 13.5px/1.3 var(--font-mono); text-align: right; white-space: nowrap; width: 1%; }
.order .nm { font-weight: 700; }
.order .sub { font-size: 12px; color: var(--muted); }
.order .free { color: var(--accent); font-weight: 700; font-size: 12px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0 0; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font: 600 14px/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.totals .grand dt, .totals .grand dd { color: var(--ink); font-size: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.progcard .bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 8px 0 6px; }
.progcard .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--warn); }
.progcard.done .bar i { background: var(--ok); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
a.btn { text-decoration: none; color: var(--ink); }
a.btn.primary { color: var(--accent-ink); }
.btn.danger { color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.switch { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.switch:first-of-type { border-top: 0; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.switch span { flex: 1; }
.members { list-style: none; margin: 0; padding: 0; }
.members li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.members li:first-child { border-top: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--font-display); background: var(--placard); color: var(--placard-ink); flex: none; }
.members .who { flex: 1; min-width: 0; }
.members .who b { display: block; }
.members .who small { color: var(--muted); }
.fav { list-style: none; margin: 0; padding: 0; counter-reset: fav; }
.fav li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.fav li:first-child { border-top: 0; }
.fav .avg { font: 600 15px/1 var(--font-mono); color: var(--star); }
.fav .nm { font-weight: 700; }
.fav .sub { grid-column: 2 / 4; font-size: 12.5px; color: var(--muted); }
.fav button { all: unset; cursor: pointer; }
.fav button:focus-visible { outline: 2px solid var(--accent); }
.legend { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 14px; margin: 0; }
.legend dt { font-weight: 700; font-family: var(--font-mono); }
.legend dd { margin: 0; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.callout { border-left: 4px solid var(--accent); padding: 8px 12px; background: var(--accent-soft); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 14px; }
.inline-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* Filterblatt */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 12, 9, .5); display: flex; align-items: flex-end; justify-content: center; }
.scrim[hidden] { display: none; }
.sheet {
  width: 100%; max-width: 760px; max-height: 86vh; overflow: auto; background: var(--surface); color: var(--ink);
  border-radius: 16px 16px 0 0; padding: 16px var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
}
.sheet h2 { margin: 0 0 4px; font: 800 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.sheet h3 { margin: 16px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sheet-foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); background: var(--surface); display: flex; gap: 8px; padding: 14px 0 0; margin-top: 16px; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; justify-content: center; }
.sheet .hint { margin: 8px 0 0; }

/* Flaschenfoto groß */
.scrim.photo { align-items: center; padding: 16px; background: rgba(5, 12, 9, .82); }
.photo-box {
  width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--ink);
  border-radius: 16px; padding: 12px; display: grid; gap: 10px;
}
.photo-box .pic { background: #fff; border-radius: 10px; overflow: hidden; height: min(62vh, 115vw, 560px); }
.photo-box .pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (orientation: portrait) { .photo-box .pic img.sq { object-fit: cover; } }
.photo-box .cap { margin: 0; font-size: 14px; }
.photo-foot { display: flex; gap: 8px; }
.photo-foot .btn { flex: 1; justify-content: center; }

/* App-Installation */
.inst-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.inst-head img { border-radius: 12px; flex: none; }
.inst-head h2 { margin: 0 0 2px; }
.inst-head p { margin: 0; }
#installSheet > p { margin: 0 0 10px; max-width: 60ch; }
.steps { margin: 4px 0 12px; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; max-width: 60ch; }
.steps svg.i { width: 17px; height: 17px; vertical-align: -3px; }
#installSheet .callout { margin: 0 0 4px; }

/* Anmeldung */
.login { position: fixed; inset: 0; z-index: 50; background: var(--glass); color: var(--glass-ink); overflow: auto; }
.login[hidden] { display: none; }
.login-inner { max-width: 440px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top, 0px)) var(--gutter-r) 32px var(--gutter-l); display: grid; gap: 16px; }
.login h1 { margin: 0; font: 800 52px/0.9 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.login .lead { margin: 0; color: var(--glass-muted); font-size: 15px; }
.login form { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.login label { font-size: 13px; font-weight: 700; color: var(--muted); display: grid; gap: 6px; }
.login input { height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 17px; background: var(--bg); }
.login input.pin { letter-spacing: .3em; font-family: var(--font-mono); }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.names button { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.names button[aria-pressed="true"] { background: var(--placard); color: var(--placard-ink); border-color: var(--placard); }
.msg { font-size: 14px; border-radius: 10px; padding: 10px 12px; }
.msg.err { background: var(--accent-soft); color: var(--accent); }
.msg.info { background: var(--surface-2); color: var(--ink); }
.login .fine { font-size: 13px; color: var(--glass-muted); margin: 0; }
.preview-note { background: rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--glass-ink) 12%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }

/* Hinweisleiste */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  background: var(--ink); color: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: 14px; max-width: calc(100% - 32px);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }
.banner { background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner[hidden] { display: none; }

@media (max-width: 374px) {
  .star { width: 26px; }
  .star svg { width: 21px; height: 21px; }
  .stepper button { width: 32px; }
  .stepper output { min-width: 22px; }
  .jump { max-width: 96px; }
}
@media (min-width: 640px) {
  .wine { padding: 12px 14px 12px 16px; }
  .w-name { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Tipps */
.tips-head .prof { margin: 6px 0 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 6px 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.switch .knob { width: 40px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: transform .15s; }
.switch[aria-checked="true"] .knob { background: var(--accent); }
.switch[aria-checked="true"] .knob::after { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.tips { list-style: none; margin: 12px 0 0; padding: 0; }
.tips li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 12px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tips .fit { font: 600 15px/1 var(--font-mono); color: var(--accent); min-width: 3.4em; }
.tips .nm { all: unset; cursor: pointer; font-weight: 700; overflow-wrap: anywhere; }
.tips .nm:focus-visible { outline: 2px solid var(--accent); }
.tips .wish { border: 0; background: none; padding: 4px; color: var(--muted); cursor: pointer; align-self: start; }
.tips .wish[aria-pressed="true"] { color: var(--accent); }
.tips .wish[aria-pressed="true"] .i { fill: currentColor; }
.tips .sub, .tips .why { grid-column: 2 / 4; font-size: 12.5px; color: var(--muted); }
.tips .why { color: var(--ink); }
.tips-foot { margin-top: 4px; }
