/* JPB Winemaking · Wein-Landingpages · gemeinsame Basis
   Jede Seite setzt ihr eigenes Theme über CSS-Variablen und eigene Komponenten.
   Konstant über alle Seiten: Barlow als UI-Schrift (wie im Shop), Wortmarke,
   Shop-Button (Farbe pro Seite über --btn-bg/--btn-fg), Fakten-Liste, Weinleiste, Footer. */

:root {
  --jpb-green: #4E8428;
  --jpb-green-ink: #F8F5F2;
  --jpb-olive: #958E09;
  --ui: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #F6F7F4;          /* Stellar White */
  --fg: #1C1E22;          /* Orbit Black */
  --muted: rgba(28, 30, 34, .68);
  --line: rgba(28, 30, 34, .14);
  --hdr-fg: var(--fg);
  --mark-accent: var(--jpb-green);
  --price: var(--jpb-olive);
  --btn-bg: var(--jpb-green);   /* Fallback, jede Weinseite setzt eigene Farbe */
  --btn-fg: var(--jpb-green-ink);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.prose { max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ── Kopfzeile ─────────────────────────────── */
.jpb-hdr {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px clamp(16px, 4vw, 40px);
  color: var(--hdr-fg);
}
.jpb-mark { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1.15; }
.jpb-mark b { font-weight: 400; letter-spacing: .08em; font-size: 15px; text-transform: uppercase; }
.jpb-mark i {
  font-style: normal; font-weight: 300; letter-spacing: .46em; font-size: 9.5px;
  text-transform: uppercase; color: var(--mark-accent); padding-left: .25em;
}
.jpb-nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.jpb-nav a { text-decoration: none; opacity: .85; }
.jpb-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ── Kaufen ───────────────────────────────── */
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.price { font-size: 24px; font-weight: 500; color: var(--price); font-variant-numeric: tabular-nums; }
.price s { opacity: .55; font-size: .75em; margin-right: 8px; font-weight: 400; }
/* Grundpreis pro Liter (Pflichtangabe), direkt am Preis */
.price .lp { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; letter-spacing: 0; line-height: 1.3; opacity: .82; }
.price .vat { display: block; }
.price .vat a { color: inherit; text-underline-offset: 2px; }
.btn-shop {
  display: inline-block;
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; font: 600 13px/1 var(--ui);
  letter-spacing: 3px; text-transform: uppercase;
  padding: 15px 22px; border-radius: 3px;
  transition: filter .2s, transform .2s;
}
.btn-shop:hover { filter: brightness(1.12); }
.btn-shop:active { transform: translateY(1px); }
.btn-shop[aria-disabled="true"] { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; cursor: default; }
.buy-note { flex-basis: 100%; font-size: 14px; color: var(--muted); margin: 0; }

/* ── Fakten ───────────────────────────────── */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; margin: 0; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* ── Weitere Weine ────────────────────────── */
.more { padding: 72px 0 8px; }
.more-title { font: 500 15px/1.3 var(--ui); margin: 0 0 18px; color: var(--muted); }
.more-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 16px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.more-strip a {
  flex: 0 0 88px; text-align: center; text-decoration: none; font-size: 13px; line-height: 1.25;
  scroll-snap-align: start; padding: 6px 2px; border-radius: 6px;
}
.more-strip img { height: 190px; width: auto; margin: 0 auto 10px; transition: transform .25s ease; }
.more-strip a:hover img, .more-strip a:focus-visible img { transform: translateY(-8px) rotate(-2deg); }

/* ── Fußzeile ─────────────────────────────── */
.jpb-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding: 28px 0 44px; margin-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.jpb-foot p { margin: 0; }
/* Impressum, Datenschutz, AGB (Pflicht auf jeder Seite) */
.jpb-foot .legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.jpb-foot .legal a { color: inherit; text-underline-offset: 3px; padding: 6px 0; }
.draft { display: inline-block; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; font-size: 11px; letter-spacing: .04em; }

/* ── Bestellen per WhatsApp (alle Seiten) ──────
   Kisten-Regel 3, 6 oder 12 Flaschen, persönlicher Kontakt zu Jan.
   Farben erben vom Abschnitt, gedämpfter Text über opacity, damit er auf hellen
   und dunklen Abschnitten lesbar bleibt. */
.btn-wa { display: inline-flex; align-items: center; gap: 10px; }
.btn-wa svg { width: 17px; height: 17px; flex: none; fill: currentColor; }
.btn-big.btn-wa svg { width: 20px; height: 20px; }
.buy p.order-hint { flex-basis: 100%; margin: 0; font-size: 14px; color: inherit; opacity: .82; }
.order { display: grid; gap: 20px; justify-items: start; }
.order-rule { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.6; }
.order-rule .k {
  display: inline-block; min-width: 1.9em; padding: 0 .28em; margin: 0 .05em;
  border: 1.5px solid currentColor; border-radius: 4px;
  text-align: center; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums;
}
.order-contact { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 15px; line-height: 1.45; max-width: 44ch; }
.order-contact img { width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px var(--btn-bg); }
.order-contact span, .order-ship { opacity: .82; }
.order-ship { margin: 0; font-size: 14px; line-height: 1.5; max-width: 52ch; }
.order-more { font-size: 15px; font-weight: 600; text-underline-offset: 4px; }
.order-more:hover { text-decoration-thickness: 2px; }
@media (max-width: 480px) {
  .btn-big.btn-wa { font-size: 13px; letter-spacing: 1.6px; padding-left: 20px; padding-right: 20px; }
}

/* ── Cookie-Einwilligung (assets/consent.js) ──────
   Feste helle Karte, auf jeder Seite gleich gut lesbar. „Ablehnen“ und „Alle erlauben“ sehen gleich aus (gleich einfach). */
.cc { position: fixed; z-index: 200; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; pointer-events: none; }
.cc [hidden] { display: none !important; }
.cc-in {
  pointer-events: auto; width: min(640px, 100%); max-height: calc(100vh - 24px); overflow: auto;
  background: #FFFDF8; color: #1C1E22; border-radius: 14px; padding: 18px 20px 16px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(28, 30, 34, .08);
  font: 400 15px/1.5 var(--ui); text-align: left;
}
.cc-t { margin: 0 0 6px; font-weight: 600; font-size: 17px; line-height: 1.3; }
.cc-d { margin: 0 0 14px; font-size: 14px; color: rgba(28, 30, 34, .84); }
.cc-d a { color: inherit; text-underline-offset: 3px; }
.cc-set { display: grid; gap: 10px; margin: 0 0 14px; padding-top: 12px; border-top: 1px solid rgba(28, 30, 34, .12); }
.cc-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.cc-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #1C1E22; }
.cc-opt b { display: block; font-weight: 600; }
.cc-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cc-b {
  flex: 1 1 140px; min-height: 46px; padding: 12px 16px; border: 0; border-radius: 6px;
  background: #1C1E22; color: #FFFDF8; font: 600 14px/1.2 var(--ui); letter-spacing: .04em; cursor: pointer;
}
.cc-b:hover { background: #3A3D44; }
.cc-more { flex-basis: 100%; background: none; border: 0; padding: 4px 0 0; color: inherit; font: 400 14px/1.4 var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc :focus-visible { outline: 2px solid #1C1E22; outline-offset: 2px; }
.jpb-foot .cc-open { background: none; border: 0; padding: 6px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 480px) {
  .cc { left: 8px; right: 8px; bottom: 8px; }
  .cc-in { padding: 16px 16px 14px; }
  .cc-d { font-size: 13.5px; }
}
