/* beev – gemeinsames Fundament für beev.shop und beev.manual.
   Tokens, Typografie, Kopf-/Fußzeile, Knöpfe, Chips, Formulare.
   Diese Datei wird 1:1 auch im Manual verwendet – Änderungen in beiden Repos nachziehen. */

:root {
  --bg: #f6f6f2;
  --bg-2: #eeeee7;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --ink: #1b1d1b;
  --ink-2: #3a3e3a;
  --muted: #6b706b;
  --line: #e3e4dc;
  --line-2: #d6d8ce;
  --stage: #eef0eb;
  --brand: #00a369;
  --brand-ink: #007a4f;
  --brand-soft: #e3f5ec;
  --accent: var(--brand);
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --warn: #b86e00;
  --warn-bg: #fff4df;
  --info: #3466c9;
  --info-bg: #edf2fd;
  --star: #f2a900;
  /* Linienfarben (ERP/Manual: bv_man_line.accent) */
  --l-sl: #00a369;
  --l-ml: #5b6ee1;
  --l-mc: #e2831e;
  --l-bl: #2b8a9e;
  --l-cr: #7c8794;

  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(22, 26, 22, .05), 0 10px 30px -16px rgba(22, 26, 22, .22);
  --shadow-lg: 0 30px 70px -30px rgba(22, 26, 22, .45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --top: 64px;
  --wrap: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fs-display: clamp(38px, 7.2vw, 76px);
  --fs-h1: clamp(30px, 5vw, 52px);
  --fs-h2: clamp(26px, 3.6vw, 40px);
  --fs-h3: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101210;
    --bg-2: #161916;
    --surface: #1a1d1a;
    --surface-2: #1f231f;
    --ink: #eff1ec;
    --ink-2: #cfd3cd;
    --muted: #979e97;
    --line: #2a2f2a;
    --line-2: #363c36;
    --stage: #e8ebe5;
    --brand-soft: #0f2d21;
    --brand-ink: #4fd49a;
    --danger-bg: #3a1714;
    --warn: #f0b04a;
    --warn-bg: #2b2213;
    --info: #8fb0f5;
    --info-bg: #161f33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -18px rgba(0, 0, 0, .8);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
@media (min-width: 768px) { :root { --gutter: 24px; --top: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 24px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; font-feature-settings: 'cv11', 'ss01';
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.num, .price { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Augenbraue über Überschriften */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-ink);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-2); }

/* ── Kopfzeile ─────────────────────────────────────────────── */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: 13.5px; font-weight: 500; padding: 8px var(--gutter); }
.announce p { margin: 0; }
.announce a { color: inherit; }
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--top);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__inner { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__logo { width: 34px; height: 34px; color: var(--ink); flex: none; display: inline-flex; }
.brand__logo svg { width: 100%; height: 100%; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; white-space: nowrap; }
.brand__name span { color: var(--brand-ink); }
.mainnav { display: none; margin-left: 28px; gap: 4px; }
.mainnav a { text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .2s var(--ease), color .2s; }
.mainnav a:hover { background: var(--bg-2); color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.topbar__burger { margin-left: -8px; }
@media (min-width: 900px) { .mainnav { display: flex; } .topbar__burger { display: none !important; } }

.iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: 22px; text-decoration: none; color: var(--ink);
  transition: background .2s var(--ease);
}
.iconbtn:hover { background: var(--bg-2); }

/* ── Knöpfe / Chips ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: 16px; cursor: pointer; line-height: 1.2;
  text-decoration: none; transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn .i { font-size: 20px; }
.btn--primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn--primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--brand)); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-busy { pointer-events: none; opacity: .7; }
.linkbtn { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand-ink); text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.textlink .i { transition: transform .2s var(--ease); }
.textlink:hover .i { transform: translateX(3px); }

.lchip {
  --accent: var(--brand);
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; line-height: 1;
  padding: 6px 10px 6px 8px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: color-mix(in srgb, var(--accent) 75%, var(--ink));
}
.lchip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lchip.lg { font-size: 14px; padding: 8px 14px 8px 11px; }
.ldots { display: inline-flex; gap: 4px; }
.ldots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.badge--brand { background: var(--brand-soft); color: var(--brand-ink); }

.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars i { width: 15px; height: 15px; background: color-mix(in srgb, var(--muted) 35%, transparent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12 2.8 2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12 2.8 2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z"/></svg>') center/contain no-repeat; }
.stars i.on { background: var(--star); }
.stars i.half { background: linear-gradient(90deg, var(--star) 50%, color-mix(in srgb, var(--muted) 35%, transparent) 50%); }

/* ── Brotkrumen ────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 550; }

/* ── Abschnitte ────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-2); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
.section__head h2 { font-size: var(--fs-h2); max-width: 18ch; }
.section__head p { max-width: 52ch; color: var(--ink-2); }
.section__head .eyebrow { margin-bottom: 12px; }

/* ── Formulare ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12.5px; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236b706b" stroke-width="2" stroke-linecap="round"><path d="m6 9 6 6 6-6"/></svg>'); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form-error { color: var(--danger); background: var(--danger-bg); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14.5px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span2 { grid-column: span 2; } }

/* ── Akkordeon / FAQ ───────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 650; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { font-size: 20px; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .faq__a { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
.faq .faq__a p + p, .faq .faq__a ul { margin-top: 10px; }

/* ── Fußzeile ──────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 0; font-size: 14.5px; }
.footer__grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; max-width: 36ch; color: var(--ink-2); }
.footer__rating { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h2 { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer__col a, .footer__col .linkbtn { color: var(--ink-2); text-decoration: none; text-align: left; }
.footer__col a:hover, .footer__col .linkbtn:hover { color: var(--ink); text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__facts { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }

/* ── Overlays (Menü, Suche, Schublade) ─────────────────────── */
.sheet, .search, .drawer, .consent { position: fixed; inset: 0; z-index: 100; background: rgba(12, 14, 12, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slideL { from { transform: translateX(-24px); opacity: 0; } }
@keyframes slideR { from { transform: translateX(24px); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.sheet__panel { position: absolute; inset: 0 auto 0 0; width: min(380px, 88vw); background: var(--bg); overflow-y: auto; animation: slideL .25s var(--ease); padding: 0 var(--gutter) 32px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; height: var(--top); }
.sheet__nav { display: flex; flex-direction: column; }
.sheet__nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: 17px; }
.sheet__nav a .i { color: var(--muted); }
.sheet__nav .sheet__sub { font-weight: 500; font-size: 15.5px; padding: 11px 0 11px 14px; color: var(--ink-2); }
.sheet__sub small { color: var(--muted); font-size: 13px; }

.search__panel { width: min(680px, calc(100% - 24px)); margin: 10vh auto 0; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .25s var(--ease); }
.search__bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); font-size: 20px; color: var(--muted); }
.search__bar input { flex: 1; min-width: 0; border: 0; background: none; font-size: 18px; padding: 12px 0; color: var(--ink); outline: none; }
.search__results { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; }
.search__results a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; }
.search__results a:hover, .search__results a[aria-selected="true"] { background: var(--bg-2); }
.search__results img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--stage); }
.search__results strong { display: block; font-size: 15.5px; }
.search__results small { color: var(--muted); font-size: 13px; }
.search__results .price { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.search__empty { padding: 18px 20px 22px; color: var(--muted); font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Warenkorb-Zähler */
.cartbtn__n {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg); animation: pop .3s var(--ease);
}
@keyframes pop { from { transform: scale(.4); } }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
