/* ==========================================================================
   Quellenhof – Familie Unkelbach
   Weinbau · Hofrestaurant · Obstverkauf
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette: vineyard green, wine red, warm cream */
  --ink: #22201c;
  --ink-soft: #5b5549;
  --ink-faint: #8b8577;

  --green-900: #17240f;
  --green-800: #1f3318;
  --green-700: #2c4626;
  --green-600: #3d5f35;
  --green-300: #8aa17f;

  --wine: #7a2e40;
  --wine-600: #92384e;
  --wine-300: #c48d9a;

  --gold: #ac7f43;

  --cream: #faf7f0;
  --cream-200: #f3ede1;
  --cream-300: #e7dccb;
  --cream-400: #d5c7b0;
  --white: #fff;

  --surface: var(--cream);
  --surface-alt: var(--white);

  /* Typography */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.15rem, 0.9rem + 0.8vw, 1.35rem);
  --fs-h3: clamp(1.25rem, 1rem + 0.9vw, 1.55rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.4vw, 2.85rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 5vw, 4.5rem);

  /* Spacing */
  --sp-2xs: 0.25rem;
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  --section-y: clamp(4rem, 2rem + 7vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Layout */
  --measure: 62ch;
  --width-narrow: 46rem;
  --width-content: 72rem;
  --width-wide: 84rem;

  /* Effects */
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(34, 32, 28, 0.08),
    0 6px 16px -6px rgba(34, 32, 28, 0.12);
  --shadow: 0 4px 12px rgba(34, 32, 28, 0.08),
    0 18px 40px -18px rgba(34, 32, 28, 0.22);
  --shadow-lg: 0 8px 24px rgba(34, 32, 28, 0.1),
    0 40px 80px -32px rgba(34, 32, 28, 0.3);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4.5rem;
}

@media (min-width: 60rem) {
  :root {
    --header-h: 5.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.hero :focus-visible,
.site-footer :focus-visible,
.contact :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--white);
}

/* Screen-reader-only, still focusable */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--sp-sm);
  left: 50%;
  z-index: 200;
  padding: 0.65rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--wine);
  border-radius: var(--radius);
  transform: translate(-50%, -150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.headline {
  font-size: var(--fs-h2);
  color: var(--green-700);
}

.subhead {
  font-size: var(--fs-h3);
  color: var(--green-700);
}

.lead {
  font-size: var(--fs-xl);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--sp-md);
}

.prose {
  max-width: var(--measure);
}

/* Eyebrow label with a short rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--sp-sm);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.eyebrow.is-centered {
  justify-content: center;
}

.eyebrow.is-centered::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.on-dark .eyebrow,
.hero .eyebrow,
.contact .eyebrow,
.page-hero .eyebrow {
  color: var(--cream-400);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.is-wide {
  max-width: var(--width-wide);
}

.container.is-narrow {
  max-width: var(--width-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section.is-tight {
  padding-block: calc(var(--section-y) * 0.6);
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--sp-2xl);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   5. Brand logo
   The traced SVG is painted with mask-image so a single file can be tinted
   to any colour. An <img> would not inherit currentColor from the page.
   -------------------------------------------------------------------------- */

.brand-logo,
.brand-mark {
  display: block; /* spans are inline, which would ignore aspect-ratio */
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.brand-logo {
  aspect-ratio: 2512 / 1660;
  -webkit-mask-image: url("../assets/logo/logo.svg");
  mask-image: url("../assets/logo/logo.svg");
}

.brand-mark {
  aspect-ratio: 1292 / 948;
  -webkit-mask-image: url("../assets/logo/logo-mark.svg");
  mask-image: url("../assets/logo/logo-mark.svg");
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Solid state: after scrolling, on subpages, or while the drawer is open */
.site-header.is-solid,
.site-header.is-opaque,
.site-header.nav-open {
  color: var(--ink);
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--cream-300);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.brand .brand-mark {
  width: 2.4rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-name span {
  display: none;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.28rem;
}

@media (min-width: 22rem) {
  .brand-name {
    font-size: 1.3rem;
    letter-spacing: 0.16em;
  }

  .brand-name span {
    display: block;
  }
}

/* Desktop nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav-link {
  position: relative;
  display: block;
  padding-block: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.28s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--wine);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--wine-600);
  transform: translateY(-1px);
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline-end: -0.5rem;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.435rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.435rem) rotate(-45deg);
}

@media (max-width: 60rem) {
  .nav-toggle {
    display: flex;
  }

  /* Positioned against the header rather than the viewport: the header's
     backdrop-filter makes it a containing block, which would collapse a
     fixed-position drawer to the header's own height. */
  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    height: calc(100dvh - var(--header-h));
    padding: var(--sp-xl) var(--gutter) var(--sp-3xl);
    color: var(--ink);
    background: var(--cream);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 26rem;
    margin-inline: auto;
  }

  .main-nav li + li {
    border-top: 1px solid var(--cream-300);
  }

  .nav-link {
    padding-block: var(--sp-md);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"],
  .nav-link.is-active {
    color: var(--wine);
  }

  .main-nav li:has(.nav-cta) {
    border-top: 0;
    margin-top: var(--sp-lg);
  }

  .nav-cta {
    display: block;
    padding-block: 0.9rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--wine-600);
  border-color: var(--wine-600);
  box-shadow: var(--shadow);
}

.btn-secondary {
  color: var(--green-700);
  background: transparent;
  border-color: var(--green-600);
}

.btn-secondary:hover {
  color: var(--white);
  background: var(--green-700);
  border-color: var(--green-700);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  color: var(--green-800);
  background: var(--white);
  border-color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wine);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.15rem;
  transition: gap 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 0.85rem;
}

.link-arrow .icon {
  width: 1em;
  height: 1em;
}

/* --------------------------------------------------------------------------
   8. Icons
   -------------------------------------------------------------------------- */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------------------
   9. Media / figures
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-200);
}

/* <picture> is inline by default, so the image could not stretch to the box */
.media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keeps faces in frame when a portrait crop is applied to group photos */
.media.focus-top img {
  object-position: center 28%;
}

.media.is-portrait {
  aspect-ratio: 3 / 4;
}

.media.is-landscape {
  aspect-ratio: 4 / 3;
}

.media.is-wide {
  aspect-ratio: 16 / 9;
}

.media.is-square {
  aspect-ratio: 1;
}

.media.has-frame {
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 54rem);
  padding-block: calc(var(--header-h) + var(--sp-3xl)) var(--sp-3xl);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(23, 36, 15, 0.55) 0%,
      rgba(23, 36, 15, 0.22) 30%,
      rgba(23, 36, 15, 0.5) 66%,
      rgba(23, 36, 15, 0.8) 100%
    ),
    radial-gradient(
      120% 80% at 50% 40%,
      transparent 45%,
      rgba(23, 36, 15, 0.32) 100%
    );
}

.hero-inner {
  display: grid;
  gap: var(--sp-2xl);
  align-items: end;
}

.hero-content {
  max-width: 40rem;
}

.hero .brand-logo {
  width: min(17rem, 62vw);
  margin-bottom: var(--sp-xl);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: var(--sp-md);
}

.hero h1 em {
  display: block;
  font-style: normal;
  font-size: 0.42em;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-400);
  margin-bottom: var(--sp-md);
}

.hero-text {
  font-size: var(--fs-xl);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--sp-xl);
  max-width: 34rem;
}

/* Quick facts card in the hero */
.hero-facts {
  display: grid;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  background: rgba(23, 36, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  align-self: end;
  max-width: 22rem;
}

.hero-fact {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.hero-fact .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  color: var(--cream-400);
}

.hero-fact strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-400);
  margin-bottom: 0.15rem;
}

@media (min-width: 62rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-3xl);
  }
}

.scroll-cue {
  position: absolute;
  inset-block-end: var(--sp-lg);
  inset-inline-start: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: cue 2.4s var(--ease) infinite;
}

.scroll-cue .icon {
  width: 1.1rem;
  height: 1.1rem;
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@media (max-width: 62rem) {
  .scroll-cue {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   11. Story section (Über uns)
   -------------------------------------------------------------------------- */

.story-grid {
  display: grid;
  gap: var(--sp-2xl);
  align-items: center;
}

@media (min-width: 60rem) {
  .story-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--sp-4xl);
  }
}

/* Two overlapping photos */
.story-media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
}

.story-media .media:first-child {
  grid-column: 1 / -1;
}

.story-media .media:nth-child(2) {
  grid-column: 1 / 2;
}

.story-media .media:nth-child(3) {
  grid-column: 2 / 3;
}

@media (min-width: 60rem) {
  .story-media {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    aspect-ratio: 1 / 1;
    gap: 0;
  }

  .story-media .media {
    aspect-ratio: auto;
  }

  .story-media .media:first-child {
    grid-area: 1 / 1 / 6 / 6;
    box-shadow: var(--shadow);
  }

  .story-media .media:nth-child(2) {
    grid-area: 3 / 4 / 7 / 7;
    border: 6px solid var(--surface-alt);
    box-shadow: var(--shadow-lg);
    height: 254px;
    margin-top: 70px;
  }

  .section:not(.section-alt) .story-media .media:nth-child(2) {
    border-color: var(--surface);
  }

  .story-media .media:nth-child(3) {
    display: none;
  }
}

/* Value props – full width beneath the story so three cards fit in one row */
.value-grid {
  display: grid;
  gap: var(--sp-md);
  margin-top: var(--sp-3xl);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.value {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-lg);
  background: var(--surface);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.section-alt .value {
  background: var(--cream);
}

.value:hover {
  transform: translateY(-3px);
  border-color: var(--cream-400);
  box-shadow: var(--shadow-sm);
}

.value .icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--wine);
  stroke-width: 1.4;
}

.value h3 {
  font-size: 1.15rem;
  color: var(--green-700);
}

.value p {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   12. Split sections (Gutsausschank / Hofladen)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--sp-2xl);
  align-items: center;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  /* Media moves to the right column without reordering the DOM */
  .split.is-flipped .split-media {
    order: 2;
  }
}

.split-media {
  position: relative;
}

.split-media .media {
  box-shadow: var(--shadow);
}

/* Small floating badge on the image */
.media-badge {
  position: absolute;
  inset-block-end: var(--sp-lg);
  inset-inline-start: calc(-1 * var(--sp-md));
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-badge .icon {
  width: 1rem;
  height: 1rem;
  color: var(--wine);
}

.is-flipped .media-badge {
  inset-inline-start: auto;
  inset-inline-end: calc(-1 * var(--sp-md));
}

@media (max-width: 34rem) {
  .media-badge {
    inset-inline-start: var(--sp-md);
    inset-inline-end: auto;
  }

  .is-flipped .media-badge {
    inset-inline-start: var(--sp-md);
    inset-inline-end: auto;
  }
}

/* Checked feature list */
.feature-list {
  display: grid;
  gap: var(--sp-sm);
  margin-block: var(--sp-lg) var(--sp-xl);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-base);
  line-height: 1.5;
}

.feature-list .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  color: var(--wine);
  stroke-width: 2;
}

/* --------------------------------------------------------------------------
   13. Panorama band
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 26rem;
  padding-block: var(--sp-4xl);
  color: var(--white);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shows the vines rather than the sky, so it reads differently to the hero */
  object-position: center 85%;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(23, 36, 15, 0.72),
    rgba(23, 36, 15, 0.58)
  );
}

.band blockquote {
  max-width: 42rem;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  font-style: italic;
}

.band cite {
  display: block;
  margin-top: var(--sp-lg);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-400);
}

/* --------------------------------------------------------------------------
   14. Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(2, 1fr);
}

.gallery .media,
.gallery .wp-block-image {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-200);
  margin: 0;
}

.gallery .media img,
.gallery .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery .media:hover img,
.gallery .wp-block-image:hover img {
  transform: scale(1.04);
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(9rem, 13vw, 12.5rem);
  }

  /* Rows drive the height here, so the per-tile ratio is dropped */
  .gallery .media,
  .gallery .wp-block-image {
    aspect-ratio: auto;
  }

  /* Lead tile spans a 2x2 block for a less monotonous rhythm */
  .gallery .media:first-child,
  .gallery .wp-block-image:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* --------------------------------------------------------------------------
   14a. Aktuelles (news cards, sourced from regular posts)
   -------------------------------------------------------------------------- */

.news-grid {
  display: grid;
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.section-alt .news-card {
  background: var(--cream);
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--cream-400);
  box-shadow: var(--shadow-sm);
}

.news-card .media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-lg);
}

.news-date {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
}

.news-card h3 {
  font-size: 1.2rem;
  color: var(--green-700);
}

.news-card p {
  flex: 1;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}

.news-card .link-arrow {
  margin-top: var(--sp-2xs);
}

.news-empty {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */

.contact {
  color: var(--white);
  background: var(--green-800);
}

.contact-grid {
  display: grid;
  gap: var(--sp-2xl);
}

@media (min-width: 60rem) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4xl);
  }
}

.contact .headline {
  color: var(--white);
}

.contact .lead {
  color: rgba(255, 255, 255, 0.8);
}

.contact-list {
  display: grid;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.contact-item {
  display: flex;
  gap: var(--sp-md);
}

.contact-item .icon-badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.contact-item .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-item h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-400);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item address {
  font-style: normal;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.contact-item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Opening hours card */
.hours-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}

.hours-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-lg);
}

.hours-group + .hours-group {
  margin-top: var(--sp-xl);
}

.hours-group h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-400);
  padding-bottom: var(--sp-xs);
  margin-bottom: var(--sp-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hours-period {
  margin-top: -0.1rem;
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-xs);
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-block: 0.45rem;
  font-size: var(--fs-sm);
}

.hours-row + .hours-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-row dt {
  color: rgba(255, 255, 255, 0.75);
}

.hours-row dd {
  font-weight: 600;
  text-align: right;
}

.hours-row.is-closed dd {
  color: var(--wine-300);
  font-weight: 500;
}

.hours-note {
  margin-top: var(--sp-lg);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  color: rgba(255, 255, 255, 0.65);
  background: var(--green-900);
  padding-block: var(--sp-3xl) var(--sp-lg);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--sp-3xl);
  }
}

.site-footer .brand-logo {
  width: 11rem;
  margin-bottom: var(--sp-md);
  color: var(--white);
  opacity: 0.9;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-400);
  margin-bottom: var(--sp-md);
}

.footer-links {
  display: grid;
  gap: var(--sp-xs);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-sm) var(--sp-lg);
  padding-top: var(--sp-lg);
  font-size: var(--fs-xs);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   17. Page hero (subpages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + var(--sp-2xl)) var(--sp-2xl);
  color: var(--white);
  background: var(--green-800);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(23, 36, 15, 0.86),
    rgba(23, 36, 15, 0.72)
  );
}

.page-hero .brand-mark {
  width: 4rem;
  margin: 0 auto var(--sp-lg);
  color: var(--cream-400);
}

.page-hero h1 {
  font-size: var(--fs-h2);
  color: var(--white);
  margin-bottom: var(--sp-md);
}

.page-hero p {
  max-width: 38rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.82);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   18. Menu page
   -------------------------------------------------------------------------- */

/* Sticky jump nav */
.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-300);
}

.menu-nav ul {
  display: flex;
  gap: var(--sp-xs);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: var(--sp-sm);
}

.menu-nav ul::-webkit-scrollbar {
  display: none;
}

.menu-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.menu-nav a:hover {
  color: var(--wine);
  background: var(--cream-200);
}

.menu-nav a.is-active {
  color: var(--white);
  background: var(--wine);
}

/* Menu layout */
.menu-body {
  padding-block: var(--section-y);
}

.menu-columns {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .menu-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.menu-section + .menu-section {
  margin-top: var(--sp-3xl);
}

.menu-section-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.menu-section-head h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.95rem);
  color: var(--green-700);
  white-space: nowrap;
}

/* Decorative rule filling the remaining space */
.menu-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cream-400);
}

.menu-list {
  display: grid;
}

.menu-entry {
  padding-block: var(--sp-sm);
  border-bottom: 1px solid var(--cream-300);
}

.menu-entry-top {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
}

.menu-entry-name {
  font-weight: 600;
}

/* Dotted leader between name and price */
.menu-entry-top .leader {
  flex: 1;
  height: 0.5em;
  border-bottom: 1px dotted var(--cream-400);
  min-width: 1.5rem;
}

.menu-entry-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-entry-desc {
  margin-top: 0.2rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

.menu-entry-note {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Drinks table */
.drink-table {
  font-variant-numeric: tabular-nums;
}

.drink-table caption {
  text-align: left;
}

.drink-table th {
  padding-block: var(--sp-xs);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  border-bottom: 1px solid var(--cream-400);
  white-space: nowrap;
}

.drink-table th:first-child {
  text-align: left;
}

.drink-table td {
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--cream-300);
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wine);
}

.drink-table td:first-child {
  text-align: left;
  white-space: normal;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--ink);
  padding-right: var(--sp-md);
}

.drink-table tbody tr:last-child td {
  border-bottom-color: var(--cream-400);
}

/* Notes / callouts */
.note {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-lg);
  margin-top: var(--sp-lg);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--cream-200);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  color: var(--gold);
}

/* Practical guest notes, also evens out the two menu columns */
.menu-aside {
  margin-top: var(--sp-3xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface-alt);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
}

.menu-aside h2 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--sp-md);
}

.menu-aside ul {
  display: grid;
  gap: var(--sp-sm);
}

.menu-aside li {
  position: relative;
  padding-left: var(--sp-lg);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}

.menu-aside li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
  border-radius: 50%;
}

.menu-footnote {
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--cream-300);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  text-align: center;
}

/* CTA strip */
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  margin-top: var(--sp-3xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  background: var(--green-700);
  border-radius: var(--radius-lg);
}

.cta-strip h2 {
  font-size: var(--fs-h3);
  color: var(--white);
  margin-bottom: 0.25rem;
}

.cta-strip p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   19. Legal / text pages
   -------------------------------------------------------------------------- */

.legal {
  padding-block: var(--section-y);
}

.legal h2 {
  font-size: var(--fs-h3);
  color: var(--green-700);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.legal p + p {
  margin-top: var(--sp-md);
}

.legal ul {
  display: grid;
  gap: var(--sp-2xs);
  margin-top: var(--sp-sm);
  padding-left: var(--sp-lg);
  list-style: disc;
}

.legal a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal address {
  font-style: normal;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   20. Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-cue {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   21. Print (the menu is the likely candidate)
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .menu-nav,
  .site-footer,
  .cta-strip,
  .scroll-cue,
  .page-hero-media,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .page-hero {
    padding-block: 0 1.5rem;
    color: #000;
    background: none;
  }

  .page-hero::after {
    display: none;
  }

  .page-hero h1,
  .page-hero p {
    color: #000;
  }

  .page-hero .brand-mark {
    background-color: #000;
  }

  .menu-body {
    padding-block: 0;
  }

  .menu-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .menu-section {
    break-inside: avoid;
  }

  .menu-entry-price,
  .drink-table td {
    color: #000;
  }
}
