/* GastroKalko — "Kalkulationsblock": warm kitchen-office paper, black ink, the black/red/gold brush strokes of the original logo.
   Bricolage Grotesque (headings) + Figtree (text), both OFL and self-hosted. Tabular figures for every price. */
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 650 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 750 900; font-style: normal; font-display: swap; }

:root {
  --flag-black: #17140f;
  --flag-red: #d4211a;
  --flag-gold: #f2b300;
  --paper: #faf7f1;
  --surface: #ffffff;
  --sunk: #f3eee4;
  --tint: #fff3cf;
  --ink: #17140f;
  --ink-2: #4a4338;
  --ink-3: #6b6254;
  --line: #e6dece;
  --line-2: #d3c8b4;
  --accent: #17140f;
  --accent-2: #3a3226;
  --gold: #f2b300;
  --gold-ink: #8a5d00;
  --red: #c21a14;
  --green: #1d6b3f;
  --on-accent: #ffffff;
  --focus: #b07800;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 20, 15, .05), 0 10px 26px -14px rgba(23, 20, 15, .25);
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --flag-black: #f4efe6;
    --paper: #14120e;
    --surface: #1d1a15;
    --sunk: #181510;
    --tint: #2c2410;
    --ink: #f4efe6;
    --ink-2: #d2c9b9;
    --ink-3: #a99e8b;
    --line: #2f2a21;
    --line-2: #40382b;
    --accent: #f2b300;
    --accent-2: #ffd257;
    --gold-ink: #f2c040;
    --red: #ff6a5f;
    --green: #6fd39a;
    --on-accent: #17140f;
    --focus: #f2c040;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scrollbar-color: var(--line-2) transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; caret-color: var(--gold-ink); }
::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); color: inherit; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--gold) 80%, transparent); }
a:hover { text-decoration-color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; margin: 0; font-family: var(--display); }
h1 { font-size: clamp(1.95rem, 1.2rem + 2.7vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: .35em 0 .45em; }
h2 { font-size: clamp(1.4rem, 1.12rem + .95vw, 1.8rem); font-weight: 700; margin: 2.3em 0 .65em; }
h3 { font-size: 1.14rem; font-weight: 700; margin: 1.6em 0 .5em; }
p, ul, ol { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
small { font-size: .82em; }
b, strong { font-weight: 700; }
code { font: 500 .9em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.num, .t td, .big strong, .kv dd, .peek b, .formula { font-variant-numeric: tabular-nums; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 60; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 38; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line); }
.top__in { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 44px; height: 40px; flex: none; }
.brand__name { font: 800 1.32rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.brand__name span { color: var(--gold-ink); }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav > a, .dd summary { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav > a:hover { background: var(--sunk); color: var(--ink); }
.nav > a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.menu { display: none; margin-left: auto; align-items: center; gap: 8px; font: 650 .95rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.dd { position: relative; }
.dd summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary:hover, .dd[open] summary { background: var(--sunk); color: var(--ink); }
.dd[data-current] summary { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 2px 2px; }
.dd__i { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.dd[open] .dd__i { transform: rotate(180deg); }
.dd__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 310px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 40; }
.dd__menu a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: .93rem; }
.dd__menu a:hover, .dd__menu a[aria-current="page"] { background: var(--tint); }
.dd__menu .i { color: var(--gold-ink); margin-top: 2px; }
.dd__menu span { display: flex; flex-direction: column; }
.dd__menu small { color: var(--ink-3); font-weight: 500; }
@media (max-width: 1020px) {
  .menu { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 8px 12px 14px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 70px); overflow: auto; }
  .nav.is-open { display: flex; }
  .nav > a, .dd summary { padding: 12px; font-size: 1rem; width: 100%; justify-content: space-between; }
  .dd__menu { position: static; box-shadow: none; border: 0; padding: 0 0 6px 8px; min-width: 0; }
}

/* ---------- Layout ---------- */
.layout { max-width: 1320px; margin: 0 auto; padding: 8px 20px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.content { min-width: 0; max-width: 920px; width: 100%; margin: 0 auto; overflow-wrap: break-word; }
.layout--narrow .content { max-width: 760px; }
.rail { display: none; }
@media (min-width: 1240px) {
  .layout:not(.layout--narrow) { grid-template-columns: minmax(0, 1fr) 270px; }
  .layout:not(.layout--narrow) .content { margin: 0; }
  .rail { display: block; position: sticky; top: 88px; align-self: start; padding-top: 24px; }
}
.content > p, .sec > p, .sec > ul, .sec > ol, .legal { max-width: 72ch; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink-3); margin-top: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); }
.crumbs .i { width: 14px; height: 14px; }
.lead { font-size: 1.14rem; color: var(--ink-2); line-height: 1.55; }
.lead strong { color: var(--ink); }
.meta { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-3); margin: -.2em 0 1.4em; flex-wrap: wrap; }
.meta .i { width: 15px; height: 15px; }
.answer { display: flex; gap: 12px; align-items: flex-start; background: var(--tint); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 18px; }
.answer > .i { color: var(--green); width: 22px; height: 22px; margin-top: 2px; }
.answer p { margin: 0; max-width: 78ch; }

/* ---------- Calculator ---------- */
/* The calculator is the one object on every page that must be recognised at a glance:
   a dark "Kassenkopf" band that asks the page's question, a white form, and a receipt ("Bon") that answers it. */
.calc { --band: #17140f; --band-ink: #f4efe6; --band-ink-2: #cfc5b3; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(23, 20, 15, .06), 0 24px 48px -28px rgba(23, 20, 15, .45); margin: 8px 0 30px; scroll-margin-top: 80px; overflow: clip; }
@media (prefers-color-scheme: dark) { .calc { --band: #0c0a07; } }
.calc__head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; padding: 20px 22px; background: var(--band); color: var(--band-ink); position: relative; }
.calc__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #f4efe6 0 33.3%, var(--flag-red) 0 66.6%, var(--flag-gold) 0); opacity: .9; }
.calc--tabs .calc__head { padding-bottom: 0; }
.calc--tabs .calc__head::after { display: none; }
.calc__badge { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--flag-gold); color: #17140f; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.calc__badge .i { width: 26px; height: 26px; }
.calc__ht { flex: 1; min-width: 220px; }
.calc__title { margin: 0; font: 800 clamp(1.2rem, 1rem + .8vw, 1.5rem)/1.15 var(--display); letter-spacing: -.02em; color: var(--band-ink); }
.calc__sub { margin: 4px 0 0; color: var(--band-ink-2); font-size: .93rem; line-height: 1.4; }
.modes { flex-basis: 100%; display: flex; gap: 4px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.modes button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255, 255, 255, .07); color: var(--band-ink-2); font: 700 .95rem var(--font); padding: 12px 18px; border-radius: 14px 14px 0 0; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s; }
.modes button:hover { background: rgba(255, 255, 255, .14); color: var(--band-ink); }
.modes button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.modes button[aria-selected="true"] .i { color: var(--red); }
.modes .i { width: 18px; height: 18px; }
.calc__pane { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .calc__pane { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc__form { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.calc__out { padding: 22px; background: var(--sunk); border-top: 1px solid var(--line); min-width: 0; }
@media (min-width: 820px) { .calc__out { border-top: 0; border-left: 1px solid var(--line); } }
.fgroup { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 6px 0 -4px; font: 750 .78rem var(--font); letter-spacing: .02em; color: var(--ink-3); }
.fgroup:first-child { margin-top: 0; }
.fgroup::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Range slider synced with the number field */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 2px 0 0; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--flag-gold) var(--p), var(--line) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--flag-gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); box-shadow: 0 2px 6px rgba(23, 20, 15, .25); transition: transform .15s var(--ease); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 45%, transparent); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide, .seg, .list { grid-column: 1 / -1; }
label, legend { font-weight: 650; font-size: .9rem; color: var(--ink-2); }
input[type="text"], select { width: 100%; height: 46px; font: 500 1rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; transition: border-color .15s, box-shadow .15s; font-variant-numeric: tabular-nums; }
input[type="text"]:hover, select:hover { border-color: var(--ink-3); }
input[type="text"]:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.select { position: relative; display: block; }
.select select { appearance: none; padding-right: 36px; cursor: pointer; }
.select__i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); width: 18px; height: 18px; }
.affix { position: relative; display: block; }
.affix input { padding-right: 46px; }
.affix > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 650; font-size: .92rem; pointer-events: none; }
.affix--lg input { height: 56px; font-size: 1.4rem; font-weight: 700; }
.hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 650 .84rem var(--font); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--tint); }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg--4 { grid-template-columns: repeat(4, 1fr); }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg legend { margin-bottom: 6px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg label span { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink-2); font-weight: 650; font-size: .92rem; cursor: pointer; background: var(--surface); text-align: center; padding: 0 6px; }
.seg input:checked + span { border-color: var(--ink); background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
@media (max-width: 520px) { .calc__form { grid-template-columns: 1fr; } .calc__form > * { grid-column: 1 / -1; } }

/* Ingredient lists */
.list { border: 0; padding: 0; margin: 0; min-width: 0; }
.list legend { margin-bottom: 8px; padding: 0; }
.list__rows { display: grid; gap: 8px; }
.lrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 8px; align-items: end; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.lrow .lcell--n { grid-column: 1 / 4; }
.lrow__x { grid-column: 4; grid-row: 1; justify-self: end; }
.lrow:has(.lcell--cl) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lrow:has(.lcell--cl) .lcell--n { grid-column: 1 / 3; }
.lrow:has(.lcell--cl) .lrow__x { grid-column: 3; }
.lcell { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-weight: 600; }
.lrow__l { font-size: .74rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow input[type="text"], .lrow select { height: 40px; font-size: .95rem; padding: 0 8px; border-radius: 8px; }
.lrow .affix input { padding-right: 26px; }
.lrow .affix > span { right: 8px; font-size: .8rem; }
.lrow .select select { padding-right: 24px; }
.lrow .select__i { right: 6px; width: 15px; height: 15px; }
.lrow__x { height: 40px; width: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink-3); cursor: pointer; }
.lrow__x:hover { color: var(--red); border-color: var(--red); }
.list__add { margin-top: 8px; }


/* Output: the receipt */
.bon { --bon-mask: radial-gradient(circle 8px at 50% 100%, #0000 96%, #000) 0 100% / 18px 9px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 8px) no-repeat; background: var(--surface); border-radius: 16px 16px 0 0; padding: 18px 18px 28px; color: var(--ink); -webkit-mask: var(--bon-mask); mask: var(--bon-mask); }
.bon__say { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line-2); font-weight: 650; font-size: 1.02rem; line-height: 1.45; text-wrap: pretty; }
.bon__say:empty { display: none; }
.bon__way { margin-top: 12px; border-top: 1.5px dashed var(--line-2); }
.bon__way summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 12px 0 2px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.bon__way summary::-webkit-details-marker { display: none; }
.bon__way summary .i { color: var(--gold-ink); }
.bon__way summary:hover { color: var(--ink); }
.bon__i { margin-left: auto; transition: transform .2s var(--ease); }
.bon__way[open] .bon__i { transform: rotate(180deg); }
.is-error .bon__say { display: none; }
/* Quote meter */
.meter { margin: 14px 0 4px; }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.meter__head b { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 1rem; }
.meter__track { position: relative; height: 10px; border-radius: 99px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.meter__zone { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, var(--green) 30%, transparent); }
.meter__pin { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); transition: left .5s var(--ease); }
.meter--high .meter__pin { background: var(--red); }
.meter--low .meter__pin { background: var(--gold-ink); }
.meter__scale { position: relative; height: 18px; font-size: .72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meter__scale span { position: absolute; top: 3px; transform: translateX(-50%); }
.meter__scale span:first-child { left: 0; transform: none; }
.meter__scale span:last-child { right: 0; transform: none; }
.meter__note { margin: 2px 0 0; font-size: .84rem; font-weight: 600; }
.meter--ok .meter__note { color: var(--green); }
.meter--high .meter__note { color: var(--red); }
.meter--low .meter__note { color: var(--gold-ink); }
/* Servings */
.glasses { margin: 10px 0 6px; }
.glasses__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; }
.g { width: 30px; height: 30px; }
.g__line { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g__fill { fill: var(--flag-red); opacity: .85; }
.g--beer .g__fill { fill: var(--flag-gold); opacity: 1; }
.g--shot .g__fill { fill: var(--gold-ink); }
.g--part .g__line { stroke-dasharray: 2 2; }
.glasses__x { font: 800 1.4rem var(--display); margin-left: 4px; }
.glasses__cap { margin: 4px 0 0; font-size: .86rem; color: var(--ink-2); }
.glasses__cap b { font-variant-numeric: tabular-nums; color: var(--ink); }
.glasses__cap small { color: var(--ink-3); }
/* Profit waterfall */
.wf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 10px 0 6px; }
.wf__c { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.wf__plot { position: relative; width: 100%; height: 120px; }
.wf__b { position: absolute; left: 12%; right: 12%; border-radius: 4px; transition: top .5s var(--ease), height .5s var(--ease); }
.wf__b--rev { background: var(--ink); }
.wf__b--cost { background: color-mix(in srgb, var(--flag-red) 70%, var(--surface)); }
.wf__b--win { background: var(--green); }
.wf__b--loss { background: var(--red); }
.wf__v { font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; }
.wf__l { font-size: .68rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Event shopping list */
.shop { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shop li { display: grid; grid-template-columns: 30px auto 1fr; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--sunk); }
.shop li b { font: 800 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; }
.shop li span { font-size: .8rem; line-height: 1.2; font-weight: 600; color: var(--ink-2); }
.shop li small { display: block; font-weight: 500; color: var(--ink-3); }
.g--soft .g__line, .g--water .g__line, .g--ice .g__line, .g--sekt .g__line { stroke: var(--ink-2); }
/* Conversion chain */
.chain { list-style: none; padding: 0; margin: 12px 0 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chain li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--sunk); min-width: 0; }
.chain li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: translateY(-50%) rotate(45deg); }
.chain li.is-key { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--flag-gold); }
.chain small { font-size: .7rem; color: var(--ink-3); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain b { font-variant-numeric: tabular-nums; font-size: .98rem; white-space: nowrap; }
@media (max-width: 460px) { .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chain li:nth-child(3)::before { display: none; } }
.big { margin: 0 0 14px; display: flex; flex-direction: column; gap: 2px; }
.big__label { font-size: .86rem; font-weight: 700; color: var(--ink-3); }
.big strong { font: 800 clamp(2.6rem, 2rem + 2.2vw, 3.5rem)/1.02 var(--display); letter-spacing: -.035em; color: var(--ink); width: fit-content; background: linear-gradient(transparent 68%, color-mix(in srgb, var(--gold) 55%, transparent) 0); }
.big__sub { color: var(--ink-2); font-size: .95rem; }
.is-error .big strong { background: none; color: var(--ink-3); }
.is-error .big__sub { color: var(--red); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .big strong.tick { animation: tick .5s var(--ease); } }
@keyframes tick { from { opacity: .35; transform: translateY(5px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.pbar { margin: 4px 0 14px; }
.pbar__track { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line); gap: 2px; }
.pbar__s { display: block; height: 100%; transition: width .5s var(--ease); }
.pbar__s--a, .pbar__dot--a { background: var(--flag-black); }
.pbar__s--b, .pbar__dot--b { background: var(--flag-gold); }
.pbar__s--c, .pbar__dot--c { background: var(--flag-red); }
.pbar__s--d, .pbar__dot--d { background: var(--green); }
.pbar__legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--ink-2); }
.pbar__legend li { display: inline-flex; align-items: center; gap: 6px; }
.pbar__legend b { font-variant-numeric: tabular-nums; color: var(--ink); }
.pbar__legend small { color: var(--ink-3); }
.pbar__dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.assume { padding-left: 18px; font-size: .88rem; color: var(--ink-2); margin: 10px 0; }
.assume li { margin-bottom: 4px; }
.deeper { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--ink); text-decoration: none; font-size: .92rem; }
.deeper span { flex: 1; }
.deeper .i { color: var(--gold-ink); }
.deeper:hover { background: color-mix(in srgb, var(--tint) 75%, var(--gold) 25%); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 .9rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 13px; cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); }
.btn--quiet { background: transparent; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.toast { margin: 10px 0 0; font-size: .88rem; color: var(--green); font-weight: 650; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
.t caption { text-align: left; font-weight: 700; font-size: .9rem; color: var(--ink-2); padding: 12px 14px; caption-side: top; border-bottom: 1px solid var(--line); }
.t th, .t td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.t thead th { font-size: .8rem; font-weight: 700; color: var(--ink-3); background: var(--sunk); white-space: nowrap; }
.t tbody th { font-weight: 650; }
.t tr:last-child > * { border-bottom: 0; }
.t .num { text-align: right; white-space: nowrap; }
.t .strong { font-weight: 750; color: var(--ink); background: color-mix(in srgb, var(--tint) 60%, transparent); }
.t tr.total > * { font-weight: 750; border-top: 1.5px solid var(--ink); }
.t--fill tbody tr { cursor: pointer; transition: background .12s; }
.t--fill tbody tr:hover, .t--fill tbody tr:focus-visible { background: var(--tint); }
.t--fill tbody tr:focus-visible { outline-offset: -2px; }
.t--result { font-size: .9rem; background: transparent; }
.t--result th, .t--result td { padding: 7px 2px; }
.t--result th { font-weight: 500; color: var(--ink-2); }
.t--result .total th, .t--result .total td { font-weight: 750; color: var(--ink); }

/* Content blocks */
.sec { scroll-margin-top: 84px; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: .7em; padding-left: .3em; }
.steps li::marker { color: var(--red); font-weight: 800; font-family: var(--display); }
.formula { font: 600 1rem/1.5 var(--font); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 16px; color: var(--ink); max-width: none !important; }
.note { display: flex; gap: 10px; font-size: .93rem; color: var(--ink-2); background: var(--sunk); border-radius: 12px; padding: 12px 14px; }
.note .i { color: var(--gold-ink); margin-top: 3px; }
.cta { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 650; box-shadow: var(--shadow); transition: border-color .15s, transform .2s var(--ease); }
.cta span { flex: 1; }
.cta > .i:first-child { color: var(--red); width: 22px; height: 22px; }
.cta:hover { border-color: var(--ink); transform: translateY(-1px); }
.kv { margin: 0 0 18px; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
@media (max-width: 560px) { .kv div { grid-template-columns: 1fr; } .kv dd { text-align: left; } }
.tools { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.tools a { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tools a > .i:first-child { color: var(--gold-ink); width: 24px; height: 24px; }
.tools span { flex: 1; display: flex; flex-direction: column; }
.tools small { color: var(--ink-3); font-size: .86rem; }
.i--go { color: var(--ink-3); transition: transform .2s var(--ease); }
.tools a:hover .i--go, .hub a:hover .i--go { transform: translateX(3px); color: var(--red); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 16px; }
.pc__h { display: flex; align-items: center; gap: 8px; font-weight: 750; margin-bottom: 6px; }
.pc__col ul { list-style: none; padding: 0; margin: 0; }
.pc__col li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: .95rem; }
.pc__col li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; }
.pc__col--pro .pc__h, .pc__col--pro .pc__h .i { color: var(--green); }
.pc__col--con .pc__h, .pc__col--con .pc__h .i { color: var(--red); }
.pc__col--pro li::before { background: var(--green); }
.pc__col--con li::before { background: var(--red); }
@media (max-width: 560px) { .pc { grid-template-columns: 1fr; } }
.pfig { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pfig figcaption { font-size: .86rem; color: var(--ink-3); }
.chart { margin: 0 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.chart svg { width: 100%; height: auto; }
.ch__grid { stroke: var(--line); stroke-width: 1; }
.ch__t { fill: var(--ink-3); font: 500 12px var(--font); }
.ch__t--axis { font-weight: 650; }
.ch__line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ch__line--m { stroke: var(--flag-gold); }
.ch__line--q { stroke: var(--flag-red); }
.ch__dot { stroke: var(--surface); stroke-width: 2; }
.ch__dot--m { fill: var(--gold-ink); }
.ch__dot--q { fill: var(--red); }
.ch__lbl { fill: var(--ink); font: 700 12px var(--font); }
.chart figcaption { font-size: .86rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.lg { display: inline-block; width: 18px; height: 4px; border-radius: 2px; }
.lg--m { background: var(--flag-gold); }
.lg--q { background: var(--flag-red); margin-left: 10px; }
.dl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); margin: 0 0 18px; }
.dl > div { flex: 1; min-width: 200px; }
.dl__i { width: 40px; height: 40px; color: var(--green); }
.dl__t { margin: 0; font-weight: 750; }
.dl__d { margin: 0; color: var(--ink-3); font-size: .9rem; }

/* FAQ */
.faq { margin-top: 2.4em; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 14px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { margin: 0; font: 650 1.04rem/1.35 var(--font); letter-spacing: 0; }
.faq__i { color: var(--ink-3); transition: transform .25s var(--ease); }
.faq__item[open] .faq__i { transform: rotate(180deg); color: var(--red); }
.faq__a { padding: 0 0 14px; color: var(--ink-2); max-width: 72ch; }
.faq__a p:last-child { margin: 0; }

/* Share, hub, sources, TOC */
.share { margin: 3em 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share__t { font-size: 1.05rem; margin: 0 0 10px; }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font: 650 .88rem var(--font); cursor: pointer; transition: color .15s, border-color .15s; }
.share__a .i { width: 16px; height: 16px; }
.share__a:hover { border-color: var(--ink); }
.share__a--whatsapp:hover { color: #1a8f48; border-color: #1a8f48; }
.share__a--facebook:hover { color: #1877f2; border-color: #1877f2; }
.share__a--xing:hover { color: #0a6e6e; border-color: #0a6e6e; }
.share__a--telegram:hover { color: #1b8ac9; border-color: #1b8ac9; }
.share__a--pinterest:hover { color: #e60023; border-color: #e60023; }
.hub h2 { font-size: 1.3rem; }
.hub ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.hub a { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hub a > .i:first-child { color: var(--gold-ink); width: 22px; height: 22px; }
.hub a span { flex: 1; display: flex; flex-direction: column; }
.hub small { color: var(--ink-3); }
.hub__h { font: 700 .82rem var(--font); color: var(--ink-3); margin: 18px 0 2px; letter-spacing: .01em; }
.hub__home { margin-bottom: 4px !important; }
.sources h2 { font-size: 1.1rem; }
.sources ul { font-size: .9rem; padding-left: 1.2em; }
.sources p { font-size: .9rem; color: var(--ink-3); }
.sources a, .legal a { overflow-wrap: anywhere; }
.toc__t { font-size: .78rem; font-weight: 750; color: var(--ink-3); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 20px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--red); font-weight: 650; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.todo { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); padding: 0 4px; border-radius: 4px; }

/* Ads — integrated like content blocks, space reserved to avoid layout shift (CLS). */
.ad { margin: 30px 0; padding-top: 8px; border-top: 1px solid var(--line); min-height: 290px; text-align: center; }
.ad__label { display: block; text-align: left; font: 650 .68rem var(--font); letter-spacing: .04em; color: var(--ink-3); margin: 0 0 6px; }
.noads .ad { display: none; }
.ad--empty { min-height: 0; height: 0; margin: 0; padding: 0; border: 0; overflow: hidden; visibility: hidden; }
/* Inside the calculator: below the receipt and its buttons, on the same surface. */
.ad--calc-side { margin: 26px 0 0; overflow: hidden; padding: 10px 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 280px; }
.ad--rail { display: none; min-height: 280px; margin: 0 0 22px; padding: 0; border: 0; }
@media (min-width: 1280px) {
  .layout:not(.layout--narrow) { grid-template-columns: minmax(0, 1fr) 336px; gap: 40px; }
  .layout:not(.layout--narrow) .content { margin: 0; }
  .rail { display: block; position: sticky; top: 88px; align-self: start; padding-top: 24px; }
  .ad--rail { display: block; }
}

/* Footer */
.foot { background: #17140f; color: #d9d0c0; margin-top: 40px; }
@media (prefers-color-scheme: dark) { .foot { background: #0e0c09; border-top: 1px solid var(--line); } }
.foot__in { max-width: 1320px; margin: 0 auto; padding: 44px 20px 20px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.foot a, .foot .linkbtn { color: #fff; text-decoration-color: rgba(242, 179, 0, .5); }
.foot__in > div:not(.foot__about) { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: .93rem; }
.foot__h { font-weight: 750; color: #fff; margin: 0 0 4px; font-size: .95rem; }
.brand--foot { margin-bottom: 10px; color: #f4efe6; --flag-black: #f4efe6; }
.brand--foot .brand__name { color: #fff; }
.brand--foot .brand__name span { color: #f2b300; }
.foot__about p { font-size: .93rem; max-width: 46ch; }
.disclaimer { max-width: 1320px; margin: 0 auto; padding: 18px 20px; display: flex; gap: 10px; font-size: .86rem; color: #cfc5b3; border-top: 1px solid rgba(255, 255, 255, .14); }
.disclaimer .i { margin-top: 3px; }
.foot__small { max-width: 1320px; margin: 0 auto; padding: 0 20px 28px; font-size: .8rem; color: #a99e8b; }
@media (max-width: 1100px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot__in { grid-template-columns: 1fr; } }
.nojs { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 10px 16px; background: var(--tint); text-align: center; font-size: .9rem; }

/* Mobile result peek */
.peek { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-radius: 14px; background: #17140f; color: #fff; text-decoration: none; box-shadow: 0 14px 34px -10px rgba(23, 20, 15, .6); border-bottom: 3px solid var(--flag-gold); }
.peek span:first-child { display: flex; flex-direction: column; line-height: 1.15; }
.peek small { opacity: .8; font-size: .75rem; font-weight: 650; }
.peek b { font: 800 1.4rem var(--display); letter-spacing: -.02em; }
.peek__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: .9rem; }
@media (min-width: 800px) { .peek { display: none !important; } }
@media (max-width: 520px) {
  .calc__head { padding: 12px 14px; }
  .modes { width: 100%; }
  .modes button { flex: 1; justify-content: center; padding: 9px 8px; }
  .calc__form, .calc__out { padding: 16px; }
  .seg--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .top__in { gap: 10px; padding: 10px 14px; }
  .menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu { padding: 9px; }
  .brand__name { font-size: 1.18rem; }
  .layout { padding-left: 16px; padding-right: 16px; }
  .modes button span { font-size: .85rem; }
}

/* Motion & print */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .top, .rail, .ad, .share, .hub, .actions, .modes, .chips, .deeper, .foot__in, .crumbs, .skip, .peek, .list__add, .lrow__x, .nojs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .calc { box-shadow: none; border: 1px solid #999; }
  .calc__pane[hidden] { display: none !important; }
  .calc__pane { grid-template-columns: 1fr 1fr !important; }
  .foot { background: none; color: #000; }
  .disclaimer { color: #000; }
  .sec, .faq, .sources { display: none; }
}
