/* ==========================================================================
   Weingut Männchen · shared by every page
   Loaded after each page's own stylesheet: one pair of typefaces, one
   paper, one header with the same links, one cart, one footer.
   ========================================================================== */

:root {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  --site-paper: #F2F0EB;
  --site-band: #E8E4DC;
  --site-ink: #1E1C19;
  --site-muted: #847C71;
  --site-oak: #7A5F45;
  --site-rule: rgba(30, 28, 25, .18);
  --site-ease: cubic-bezier(.22, .7, .2, 1);
}
body.p-weine { --page: var(--site-paper); --band: var(--site-band); }
body.p-besuch { --paper: var(--site-paper); }

/* ---------- header: the same wordmark and links everywhere ---------- */
.hdr__mark { font-family: var(--serif) !important; font-size: 22px !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: 1; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); font: 500 11px/1 var(--sans) !important; text-transform: uppercase; letter-spacing: .15em; }
.site-nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--site-ease); padding-bottom: 4px; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.site-cart { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .15em; white-space: nowrap; color: inherit; text-decoration: none; }
.site-cart .bag__n, .bag__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); font: 500 10px/1 var(--sans); letter-spacing: 0; }
[data-cart].bump { animation: site-bump .9s var(--site-ease); }
@keyframes site-bump { 0% { transform: translateY(-8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 1079px) { .site-nav { display: none !important; } }
@media (max-width: 599px) { .site-cart .bag__w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* the full-screen menu: same entries everywhere */
.site-menu-list a[aria-current="page"] { color: var(--site-oak); }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(96px, 17vh, 220px); background: var(--site-band); color: var(--site-ink); padding: clamp(48px, 6vw, 96px) clamp(20px, 3.4vw, 56px) 28px; font: 400 14px/1.6 var(--sans); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot__mark { margin: 0 0 clamp(32px, 4vw, 64px); font: 200 clamp(84px, 22vw, 420px)/.8 var(--serif); letter-spacing: -.035em; }
.site-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(12px, 1.6vw, 24px); }
.site-foot__cols p { margin: 0; }
.site-foot__label { display: block; margin-bottom: 8px !important; font: 500 10.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--site-muted); }
.site-foot__links a { display: block; width: max-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--site-ease); }
.site-foot__links a:hover { background-size: 100% 1px; }
.site-foot__row { display: flex; gap: 10px; border-bottom: 1px solid var(--site-ink); }
.site-foot__row input { flex: 1; min-width: 0; border: 0; background: none; font: 400 14.5px/1 var(--sans); padding: 10px 0; color: var(--site-ink); }
.site-foot__row input:focus { outline: none; }
.site-foot__row button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: 500 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .15em; white-space: nowrap; }
.site-foot__msg { min-height: 1.5em; margin-top: 6px !important; font-size: 12px; color: var(--site-oak); }
.site-foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 48px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--site-rule); font-size: 12px; color: var(--site-muted); }
@media (max-width: 999px) { .site-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .site-foot__cols { grid-template-columns: 1fr; } .site-foot__mark { font-size: 22vw; } }

/* ---------- per page: fitting the shared header in ---------- */
/* Das Jahr: links and cart on the right, the month index kept as "Monate" */
.p-jahr .hdr__nav { margin-left: auto; margin-right: clamp(18px, 2.2vw, 40px); }
.p-jahr .hdr__cartwrap { display: inline-flex; }
@media (max-width: 1079px) { .p-jahr .hdr__menu { display: block; margin-left: 22px; } .p-jahr .hdr__cartwrap { margin-left: auto; } }

/* Besuch: links, cart and a menu button on the right of the one-screen page */
.p-besuch .hdr__right { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.site-menu-btn { display: none; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .15em; }
@media (max-width: 1079px) { .site-menu-btn { display: block; } }
.site-menu { position: fixed; inset: 0; z-index: 100; background: var(--site-paper); color: var(--site-ink); display: flex; flex-direction: column; padding: 0 clamp(20px, 3.4vw, 56px); }
.site-menu[hidden] { display: none; }
.site-menu__top { height: 64px; display: flex; justify-content: space-between; align-items: center; font: 400 22px/1 var(--serif); }
.site-menu__top button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .15em; }
.site-menu__list { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.site-menu__list a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--site-rule); font: 300 32px/1.15 var(--serif); color: inherit; text-decoration: none; }
.site-menu__list a:last-child { border-bottom: 1px solid var(--site-rule); }
.site-menu__list span { font: 500 11px/1 var(--sans); letter-spacing: .15em; color: var(--site-oak); }
