:root {
  --ink: #071b24;
  --muted: #5f6f76;
  --line: #dfe6e7;
  --surface: #ffffff;
  --canvas: #f4f6f3;
  --accent: #e8ff70;
  --accent-strong: #d5f24c;
  --soft-blue: #eaf4f5;
  --warning: #fff4d8;
  --warning-ink: #4d3b00;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 70px rgba(7, 27, 36, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(232,255,112,.28), transparent 24rem),
    var(--canvas);
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(7,27,36,.22); outline-offset: 3px;
}
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-weight:800; font-size:20px; }
.brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:var(--ink); color:var(--accent); font-size:18px; }
.header-nav { display:flex; align-items:center; gap:18px; font-size:13px; font-weight:750; }
.header-nav a { text-decoration:none; color:var(--muted); }
.header-nav a:hover, .header-nav a[aria-current="page"] { color:var(--ink); }
.lang-link { padding:8px 11px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.68); }

.hero { max-width: 980px; padding: 64px 0 42px; }
.eyebrow, .step-label { font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#496067; }
.hero h1, .content-page h1 {
  font-size: clamp(44px, 7vw, 78px); letter-spacing: -.055em; line-height: .98;
  margin: 16px 0 22px;
}
.hero-copy { max-width:780px; font-size:clamp(18px,2vw,22px); line-height:1.55; color:var(--muted); margin:0; }
.hero-question { margin-top: 16px; font-weight: 800; color: var(--ink); font-size: 18px; }

.calculator-card, .result-section, .tool-card {
  background: var(--surface); border:1px solid rgba(7,27,36,.08);
  border-radius:var(--radius-xl); box-shadow:var(--shadow); overflow:hidden;
}
.calculator-panel { padding:42px; }
.panel-heading, .result-topline, .chart-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.panel-heading h2, .chart-heading h2, .section-heading h2 {
  font-size:clamp(28px,4vw,42px); letter-spacing:-.035em; margin:7px 0 0;
}
.panel-intro { margin:10px 0 28px; color:var(--muted); max-width:760px; line-height:1.55; }
.text-button { border:0; background:transparent; color:var(--ink); text-decoration:underline; text-underline-offset:4px; font-weight:700; padding:6px; white-space:nowrap; }

.form-section { margin-top: 30px; }
.form-section:first-of-type { margin-top: 0; }
.section-number { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--ink); color:#fff; font-weight:800; font-size:13px; margin-right:8px; }
.form-title { display:flex; align-items:center; margin-bottom:16px; font-weight:800; font-size:18px; }
.form-grid { display:grid; gap:18px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.field > span, fieldset.field legend { font-size:13px; font-weight:800; color:#354b53; margin-bottom:1px; }
fieldset.field { border:0; padding:0; margin:0; }
input, select { width:100%; min-height:52px; border:1px solid #ccd7d9; border-radius:12px; background:#fff; color:var(--ink); padding:0 14px; }
input:hover, select:hover { border-color:#9fb0b4; }
.input-unit { position:relative; }
.input-unit input { padding-right:50px; }
.input-unit b { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:13px; }
.segmented { display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:5px; border:1px solid #ccd7d9; border-radius:12px; min-height:52px; }
.segmented label { position:relative; }
.segmented input { position:absolute; opacity:0; pointer-events:none; }
.segmented span { height:100%; min-height:40px; display:grid; place-items:center; border-radius:8px; color:var(--muted); font-weight:700; }
.segmented input:checked + span { background:var(--ink); color:#fff; }
.field-help { color:var(--muted); line-height:1.4; font-size:12px; }
.divider { height:1px; background:var(--line); margin:30px 0; }

.preset-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:18px 0 20px; }
.preset { min-height:174px; border:1px solid var(--line); background:#fbfcfb; border-radius:17px; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; padding:17px; color:var(--ink); transition:.18s ease; }
.preset.selected { border-color:#a9b989; background:#f9fbe9; box-shadow:inset 0 0 0 1px rgba(7,27,36,.04); }
.preset-icon { font-size:27px; margin-bottom:10px; }
.preset > span:not(.preset-icon) { font-weight:800; font-size:15px; }
.preset small { color:var(--muted); margin-top:3px; }
.shop-stepper { width:100%; margin-top:auto; padding-top:14px; display:grid; grid-template-columns:42px 1fr 42px; gap:7px; align-items:center; }
.shop-stepper button { height:40px; border:1px solid #c9d4d6; border-radius:10px; background:#fff; color:var(--ink); font-size:22px; line-height:1; font-weight:700; }
.shop-stepper .shop-plus { background:var(--ink); color:#fff; border-color:var(--ink); }
.shop-count { min-width:38px; height:40px; display:grid; place-items:center; border:1px solid #d7dfe0; border-radius:10px; background:#fff; font-weight:800; font-size:16px; }
.custom-drink { border:1px dashed #aebcc0; background:#fff; }
.custom-controls { width:100%; margin-top:auto; padding-top:10px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.custom-controls input { min-height:40px; padding:0 9px; font-size:13px; }

.primary-button { width:100%; margin-top:28px; border:0; border-radius:14px; padding:18px 22px; background:var(--accent); color:var(--ink); font-weight:800; font-size:17px; display:flex; align-items:center; justify-content:center; gap:12px; transition:.18s ease; }
.primary-button:hover { background:var(--accent-strong); transform:translateY(-1px); }
.secondary-button { border:1px solid var(--ink); border-radius:12px; padding:11px 14px; background:white; color:var(--ink); font-weight:800; }
.disclosure { margin-top:14px; }
.disclosure summary { cursor:pointer; color:var(--ink); font-weight:800; font-size:14px; }
.disclosure .form-grid { margin-top:15px; }

.result-section { margin-top:28px; padding:42px; }
.result-topline { align-items:center; margin-bottom:18px; }
.result-grid { display:grid; grid-template-columns:1.6fr repeat(3,1fr); gap:14px; }
.result-hero-card { background:var(--ink); color:#fff; border-radius:var(--radius-lg); padding:30px; min-height:250px; display:flex; flex-direction:column; justify-content:center; }
.result-hero-card p { color:#b9c7c9; margin:0 0 8px; }
.promille-value { font-weight:800; letter-spacing:-.06em; line-height:1; font-size:clamp(58px,8vw,90px); }
.promille-value small { font-size:.38em; margin-left:7px; letter-spacing:0; }
.status-pill { align-self:flex-start; margin:18px 0 10px; border:1px solid #52686f; background:#15313b; padding:7px 10px; border-radius:999px; font-size:12px; font-weight:800; }
.result-note { font-size:13px; max-width:370px; line-height:1.45; color:#b9c7c9; }
.metric-card { border:1px solid var(--line); border-radius:var(--radius-lg); padding:22px; min-height:143px; display:flex; flex-direction:column; justify-content:center; background:#fbfcfb; }
.metric-card span { color:var(--muted); font-size:13px; font-weight:700; }
.metric-card strong { font-size:26px; letter-spacing:-.025em; margin:6px 0 2px; }
.metric-card small { color:var(--muted); line-height:1.4; }
.chart-card { margin-top:14px; border:1px solid var(--line); border-radius:var(--radius-lg); padding:25px; }
.chart-heading { align-items:center; }
.chart-heading h2 { font-size:27px; }
.chart-legend { color:var(--muted); font-size:12px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.legend-dot { width:10px; height:10px; border-radius:50%; background:var(--ink); display:inline-block; }
.chart-wrap { width:100%; overflow-x:auto; margin-top:18px; }
#bacChart { width:100%; height:350px; display:block; }
.safety-card { margin-top:14px; border-radius:var(--radius-lg); padding:22px; display:flex; gap:16px; background:var(--warning); color:var(--warning-ink); }
.safety-icon { flex:0 0 34px; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--warning-ink); color:#fff; font-weight:800; }
.safety-card h3 { margin:1px 0 5px; font-size:17px; }
.safety-card p { margin:0; line-height:1.5; font-size:14px; }

.content-section { padding:78px 0 10px; }
.section-heading { max-width:800px; }
.section-heading p { color:var(--muted); line-height:1.6; font-size:17px; }
.link-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:24px; }
.link-card { display:block; border:1px solid var(--line); border-radius:18px; background:#fff; padding:22px; text-decoration:none; min-height:160px; transition:.18s ease; }
.link-card:hover { transform:translateY(-2px); box-shadow:0 14px 35px rgba(7,27,36,.06); }
.link-card b { display:block; margin-bottom:8px; font-size:17px; }
.link-card span { color:var(--muted); font-size:14px; line-height:1.45; }
.fact-strip { margin-top:24px; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.fact-strip article { background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px; }
.fact-strip strong { display:block; font-size:32px; margin-bottom:8px; letter-spacing:-.04em; }
.fact-strip p { margin:0; color:var(--muted); line-height:1.5; font-size:14px; }

.method-box { margin:70px 0 20px; padding:30px; background:var(--soft-blue); border-radius:var(--radius-lg); }
.method-box h2 { margin:6px 0 10px; font-size:28px; letter-spacing:-.03em; }
.method-box p { color:var(--muted); line-height:1.6; }
.method-list { border:1px solid rgba(7,27,36,.12); border-radius:14px; overflow:hidden; margin:22px 0; background:#fff; }
.method-list div { display:flex; justify-content:space-between; gap:20px; padding:13px 15px; border-bottom:1px solid var(--line); font-size:14px; }
.method-list div:last-child { border-bottom:0; }
.method-list span { color:var(--muted); }

.content-page { max-width:860px; padding:55px 0 80px; }
.content-page h1 { max-width:820px; }
.content-page h2 { font-size:30px; letter-spacing:-.03em; margin:44px 0 13px; }
.content-page h3 { font-size:20px; margin:30px 0 8px; }
.content-page p, .content-page li { color:var(--muted); font-size:17px; line-height:1.65; }
.content-page strong { color:var(--ink); }
.content-page ul { padding-left:22px; }
.breadcrumb { font-size:13px; color:var(--muted); }
.fact-box { border:1px solid var(--line); background:#fff; border-radius:18px; padding:22px; margin:24px 0; }
.fact-box p { margin:0; }
.cta-box { background:var(--ink); color:#fff; border-radius:22px; padding:28px; margin:36px 0; }
.cta-box p { color:#c3ced1; margin:8px 0 20px; }
.cta-box a { display:inline-block; background:var(--accent); color:var(--ink); font-weight:800; text-decoration:none; border-radius:12px; padding:13px 17px; }
.source-list { font-size:14px; }
.source-list a { text-underline-offset:3px; word-break:break-word; }
.warning-inline { background:var(--warning); color:var(--warning-ink); border-radius:16px; padding:18px 20px; margin:24px 0; }
.warning-inline strong { color:var(--warning-ink); }
.mini-tool { background:#fff; border:1px solid var(--line); border-radius:20px; padding:24px; margin:26px 0; }
.mini-tool h2 { margin-top:0; }

.faq-list { display:grid; gap:10px; margin-top:20px; }
.faq-list details { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; }
.faq-list summary { cursor:pointer; font-weight:800; }
.faq-list p { color:var(--muted); line-height:1.55; margin:12px 0 0; }

footer { min-height:170px; border-top:1px solid #cbd4d5; display:flex; align-items:center; justify-content:space-between; gap:20px; color:var(--muted); font-size:13px; margin-top:60px; }
.footer-left { display:flex; flex-direction:column; gap:10px; }
.footer-brand { font-size:17px; }
.footer-links { display:flex; gap:14px; flex-wrap:wrap; }
.footer-links a { color:var(--muted); text-decoration:none; }
.footer-links a:hover { color:var(--ink); }

.hidden { display:none !important; }
.error-banner { margin-top:16px; padding:12px 14px; background:#fde7e7; color:#792323; border-radius:11px; font-size:14px; font-weight:600; }

@media (max-width: 960px) {
  .preset-grid { grid-template-columns:repeat(2,1fr); }
  .result-grid { grid-template-columns:repeat(2,1fr); }
  .result-hero-card { grid-column:1/-1; }
  .link-grid, .fact-strip { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .page-shell { width:min(100% - 20px,1180px); }
  .site-header { min-height:72px; }
  .header-nav { display:none; }
  .hero { padding:34px 4px 30px; }
  .hero h1, .content-page h1 { font-size:44px; }
  .calculator-panel, .result-section { padding:22px 16px; }
  .calculator-card, .result-section { border-radius:22px; }
  .preset-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .preset { min-height:166px; padding:13px; }
  .shop-stepper { grid-template-columns:38px 1fr 38px; gap:5px; }
  .form-grid.two, .form-grid.three { grid-template-columns:1fr; }
  .result-grid { grid-template-columns:1fr; }
  .chart-heading, .panel-heading { flex-direction:column; align-items:stretch; }
  #bacChart { width:760px; }
  footer { flex-direction:column; align-items:flex-start; justify-content:center; padding:35px 4px; }
  .custom-controls { grid-template-columns:1fr; }
}
@media (max-width: 460px) {
  .preset-grid { grid-template-columns:1fr; }
}
