/* ==========================================================================
   Wein aus Mannersdorf – Stylesheet
   Modern reconstruction with refined typography & vine ornaments
   ========================================================================== */

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ink); }

/* ---------- Design tokens ---------- */
:root {
  /* Authentic but refined wine palette */
  --green:        #95ad32;   /* primary apple/olive green */
  --green-dark:   #7c9128;
  --green-deep:   #5d6e1f;
  --green-darker: #6b8023;   /* footer */
  --green-soft:   #c8d878;
  --green-pale:   #eef2d7;
  --green-mist:   #f5f7e8;

  --cream:        #faf7ee;
  --cream-soft:   #fdfbf5;
  --paper:        #ffffff;

  --ink:          #3b3d33;
  --ink-soft:     #6f7066;
  --ink-mute:     #a8a8a0;

  --line:         #e5e3d6;
  --line-soft:    #efeee3;

  --gold:         #b08c54;

  /* Typography */
  --display: "Marcellus", "Cormorant Garamond", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --serif:   "Cormorant Garamond", "Iowan Old Style", "Baskerville", "Georgia", serif;
  --script:  "Allura", "Tangerine", "Marcellus", "Georgia", serif;
  --sans:    "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --header-h:  82px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 500;
}

p { margin: 0 0 1em; }

/* Display title (used for section heads & page heros) */
.display-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-deep);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
}

.display-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  margin: 0;
}

.section-head {
  margin-bottom: 2.75rem;
  position: relative;
}

.section-head.center { text-align: center; }

/* Ornamental flourish above section title */
.section-head .flourish {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
  color: var(--green);
}

.section-head .flourish::before,
.section-head .flourish::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head .flourish .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  transform: rotate(45deg);
  margin: 0 0.1rem;
}

.section-head .flourish .leaf {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--green);
}

.section-head.center .flourish {
  margin-left: auto;
  margin-right: auto;
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--green-dark);
  font-size: 0.74rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.section-wide { padding: 7rem 0; }

/* Decorative vine divider */
.vine-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--green);
  opacity: 0.7;
  max-width: 360px;
  padding: 1.5rem 0;
}

.vine-divider svg {
  width: 100%;
  height: auto;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle leaf watermark on the right of the header */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 220px;
  background-image: url("../img/weinblatt.svg");
  background-repeat: no-repeat;
  background-position: 60% center;
  background-size: 170px auto;
  opacity: 0.06;
  color: #fff;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  line-height: 1;
  padding: 0;
}

.brand .brand-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: 3.4rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
  position: relative;
  top: 0.06em;
}

.brand .brand-bar {
  display: inline-block;
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.55);
  align-self: center;
}

.brand .brand-sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Navigation — flat, centered, with discreet underline only */
.nav-wrap {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: flex;
  align-items: center;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.3rem;
  height: 1px;
  background: #fff;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-list a:hover {
  color: #fff;
}

.nav-list a:hover::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.nav-list a.is-active {
  color: #fff;
}

.nav-list a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 48px;
  height: 48px;
  align-self: center;
  cursor: pointer;
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .nav-toggle span {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--green);
    flex-direction: column;
    z-index: 49;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0s linear 0.3s;
  }
  .nav-wrap.is-open {
    max-height: calc(100vh - var(--header-h));
    opacity: 1;
    visibility: visible;
    transition: max-height 0.35s ease, opacity 0.25s ease 0.05s, visibility 0s linear 0s;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.15rem;
    padding: 0 1rem;
    align-items: stretch;
  }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: flex;
    justify-content: center;
    padding: 1rem 1.4rem;
    font-size: 0.85rem;
  }
  .nav-list a::after {
    display: none;
  }
  .nav-list a:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-list a.is-active {
    background: rgba(255, 255, 255, 0.14);
  }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(460px, 65vh, 680px);
  overflow: hidden;
  background: #2b3a14;
  color: #fff;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.08);
}

/* Subtle vignette overlay */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
}

.hero-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 5rem;
}

.hero-body h1 {
  max-width: 700px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.hero h1 .small {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 0.55em;
  line-height: 1.3;
  letter-spacing: 0;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-desc {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
  margin: 1.5rem 0 0;
  line-height: 1.65;
}

/* Decorative leaf in hero corner */
.hero-leaf {
  position: absolute;
  z-index: 1;
  top: 7%;
  right: 4%;
  width: 140px;
  height: 140px;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transform: rotate(-18deg);
}

.hero-arrows {
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-arrows .container {
  display: flex;
  gap: 0.4rem;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(149, 173, 50, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(149, 173, 50, 0.05) 0%, transparent 60%),
    var(--cream);
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Large faded grape leaf in upper right */
.page-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 340px;
  height: 360px;
  background-image: url("../img/weinblatt.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.09;
  color: var(--green-deep);
  filter: drop-shadow(0 6px 10px rgba(93, 110, 31, 0.18));
  transform: rotate(-18deg);
  z-index: 0;
  pointer-events: none;
}

/* Smaller secondary leaf in lower left for balance */
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -70px;
  left: -50px;
  width: 220px;
  height: 240px;
  background-image: url("../img/weinblatt-tilt.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.06;
  color: var(--green-deep);
  transform: rotate(38deg);
  z-index: 0;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

/* A small ornament above the heading on page heroes */
.page-hero .hero-ornament {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--green-dark);
  margin: 0 0 1.4rem;
}
.page-hero .hero-ornament .line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.page-hero .hero-ornament .leaf-icon {
  display: inline-block;
  width: 22px;
  height: 24px;
  color: currentColor;
  flex-shrink: 0;
}
.page-hero .hero-ornament .label {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--green-dark);
  font-size: 0.74rem;
}

.page-hero .eyebrow {
  color: var(--green-dark);
  font-size: 0.78rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--green-deep);
  margin: 0.3rem 0 0.6rem;
  line-height: 1.08;
}

.page-hero h1 .small {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 0.55em;
  margin-top: 0.55rem;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.page-hero .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 64ch;
  margin: 0;
  font-style: italic;
  line-height: 1.55;
}

/* ---------- Main 3-column layout ---------- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 5rem 0;
  align-items: start;
}

@media (max-width: 980px) {
  .main-layout { grid-template-columns: 1fr; gap: 3rem; padding: 3.5rem 0; }
}

/* ---------- Winzer cards (refined etiquette style) ---------- */
.winzer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 1.75rem;
}

@media (max-width: 760px) { .winzer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .winzer-grid { grid-template-columns: 1fr; } }

.winzer-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 0 1.6rem;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.winzer-card:hover {
  border-color: var(--green-soft);
  box-shadow: 0 18px 36px -20px rgba(95, 110, 31, 0.28);
  transform: translateY(-4px);
}

/* Winzer card media (photo at top) */
.winzer-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--green-mist);
  margin: 0;
}

.winzer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
  filter: saturate(1.02);
}

.winzer-card:hover .winzer-card-media img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* Subtle inner glow on photo */
.winzer-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

/* Monogram placeholder (used when there is no photo) */
.winzer-card-media .monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  z-index: 1;
}

.winzer-card h3 {
  margin: 1.5rem 1.5rem 0.55rem;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  font-size: 1.05rem;
  line-height: 1.25;
}

.winzer-card h3 a {
  color: inherit;
  text-decoration: none;
}

.winzer-card h3 a:hover {
  color: var(--green-dark);
}

.winzer-card p {
  margin: 0 1.5rem 1.05rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.65;
}

.winzer-card-divider {
  width: 36px;
  height: 1px;
  background: var(--green);
  opacity: 0.5;
  margin: 0.4rem 1.5rem 0;
}

/* Whole-card link overlay: the card is fully clickable, "Mehr erfahren" is
   just a visual cue and is intentionally not its own link. */
.winzer-card-fill {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.winzer-card-media,
.winzer-card h3 {
  position: relative;
  z-index: 2;
}

.winzer-card-more {
  display: inline-block;
  margin: 0.7rem 1.5rem 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-deep);
}

/* Wappen / crest on top of each card */
.winzer-card-crest {
  width: 70px;
  height: 82px;
  margin: 0 auto 1.1rem;
  color: var(--green);
  display: block;
}

.winzer-card-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
}

.winzer-card-role {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.winzer-card-rule {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--green);
  margin: 0 auto 1.05rem;
  opacity: 0.5;
}

.winzer-card-desc {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.winzer-card-meta {
  font-family: var(--sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

.winzer-card a {
  color: inherit;
}

.winzer-card a:hover .winzer-card-name {
  color: var(--green-dark);
}

/* ---------- Sidebar ---------- */
.sidebar > * + * { margin-top: 3.5rem; }

.sidebar .section-head { text-align: right; margin-bottom: 1.5rem; }
.sidebar .section-head .flourish { justify-content: flex-end; margin-left: auto; }

.sidebar .display-title { font-size: 1.55rem; }
.sidebar .display-sub { font-size: 0.92rem; }

/* Termine entry */
.termin {
  text-align: right;
  padding: 1.1rem 1.4rem 1.25rem 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.termin:last-child { border-bottom: 0; }

.termin::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1.1rem;
  bottom: 1.25rem;
  width: 3px;
  background: var(--green);
  border-radius: 2px;
}

.termin-date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-dark);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.termin h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.55rem;
}

.termin p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* Wein bottle */
.weine-bottle {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem 0;
}

.weine-bottle svg {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.14));
}

.weine-bottle .bottle-caption {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Generic prose ---------- */
.prose p {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.78;
}

.prose .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-narrow { grid-template-columns: 5fr 7fr; }
.split-wide   { grid-template-columns: 7fr 5fr; }

@media (max-width: 900px) {
  .split, .split-narrow, .split-wide { grid-template-columns: 1fr; gap: 2rem; }
}

.figure { overflow: hidden; position: relative; }
.figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.4s ease; }
.figure:hover img { transform: scale(1.03); }
.figure-tall img { aspect-ratio: 3/4; }
.figure-wide img { aspect-ratio: 16/10; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 3rem 0;
}

.stat {
  padding: 1.85rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.3rem;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.stat span {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Wein list (Weine page) ---------- */
.wein-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
}

@media (max-width: 720px) { .wein-list { grid-template-columns: 1fr; } }

.wein-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.wein-item-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-dark);
  font-size: 1rem;
}

.wein-item h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.wein-item p {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.wein-item .wein-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* ---------- Termine page (full list) ---------- */
.termin-list-full { border-top: 1px solid var(--line); }

.termin-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  grid-template-areas:
    "text date"
    "action date";
  column-gap: 2.5rem;
  row-gap: 0.6rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
}

.termin-row .termin-body { grid-area: text; }

.termin-row .termin-action-slot {
  grid-area: action;
  align-self: start;
  margin: 0;
}

.termin-row .date-block { grid-area: date; align-self: start; font-family: var(--display); }

.termin-row .date-block .day {
  display: block;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--green-deep);
  line-height: 1;
}

.termin-row .date-block .month {
  display: block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
}

.termin-row h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.25rem;
  color: var(--green-deep);
}

.termin-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 60ch;
}

.termin-pill {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.05rem 0.5rem;
  background: var(--green-pale);
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
}

.termin-more-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-deep);
  border-bottom: 1px solid var(--green-soft);
}
.termin-more-link:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 720px) {
  .termin-row {
    grid-template-columns: 1fr;
    grid-template-areas: "date" "text" "action";
    gap: 0.6rem;
  }
  .termin-row .date-block { align-self: auto; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--green);
}
.btn-ghost:hover { background: var(--green); color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-info li {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.contact-info li span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ink-mute);
}

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; }

.form-field label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--green);
}

.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-darker);
  color: #fff;
  padding: 4rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  bottom: -130px;
  left: -80px;
  width: 420px;
  height: 440px;
  background-image: url("../img/weinblatt.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.07;
  color: #fff;
  filter: brightness(0) invert(1);
  transform: rotate(18deg);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 230px;
  background-image: url("../img/weinblatt-tilt.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  transform: rotate(-30deg);
  pointer-events: none;
}

.site-footer > .container { position: relative; z-index: 1; }

.site-footer a { color: rgba(255, 255, 255, 0.95); }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h5 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 1.2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li {
  font-family: var(--sans);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  padding: 0.42rem 0;
}

.footer-col li::before {
  content: "›";
  display: inline-block;
  margin-right: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.footer-contact p {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.75;
  color: #fff;
  margin: 0;
}

.footer-contact .label {
  display: inline-block;
  width: 70px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }

.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }

.section-cream { background: var(--cream); }
.section-mist  { background: var(--green-mist); }

/* ---------- Grape feature (über uns page) ---------- */
.grape-feature {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 0;
  align-items: stretch;
  background: var(--cream);
  border: 1px solid var(--line);
  margin-top: 1rem;
}

@media (max-width: 880px) {
  .grape-feature { grid-template-columns: 1fr; }
}

.grape-feature-img {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.grape-feature-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.grape-feature:hover .grape-feature-img img {
  transform: scale(1.04);
}

/* Subtle dark gradient at the bottom of the image */
.grape-feature-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.grape-feature-caption {
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Decorative leaf behind the caption */
.grape-feature-caption::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 130px;
  height: 140px;
  background-image: url("../img/weinblatt.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.08;
  color: var(--green-deep);
  transform: rotate(18deg);
  pointer-events: none;
}

.grape-feature-caption .eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--green-dark);
  font-size: 0.72rem;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.grape-feature-caption h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--green-deep);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.grape-feature-caption p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
}

/* Page intro before main content */
.intro-band {
  background: var(--cream);
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.intro-band .display-title { color: var(--green-deep); }
.intro-band p { max-width: 64ch; margin: 1rem auto 0; color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

/* ---------- Image fallback placeholder ---------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 30%, rgba(149,173,50,0.10), transparent 65%),
    linear-gradient(135deg, var(--green-mist) 0%, var(--cream) 100%);
  color: var(--green);
  border: 1px solid var(--line);
}

.img-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.55;
}

/* ---------- Quote block ---------- */
.quote-block {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 3.5rem 3rem;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.quote-block::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-block .quote-mark {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--green);
  z-index: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-block blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  quotes: "„" "“" "‚" "‘";
}

.quote-block blockquote::before { content: open-quote; margin-right: 0.05em; }
.quote-block blockquote::after  { content: close-quote; margin-left: 0.05em; }

.quote-block cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--green-dark);
}

@media (max-width: 600px) {
  .quote-block { padding: 2.5rem 1.5rem 2rem; }
}

/* ---------- Members grid (winemaker links on über-uns) ---------- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 880px) { .members-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .members-grid { grid-template-columns: 1fr; } }

.member-link {
  display: block;
  padding: 1.4rem 1.2rem;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--display);
  letter-spacing: 0.08em;
  color: var(--green-deep);
  text-transform: uppercase;
  font-size: 0.92rem;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.member-link .website {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 0.45rem;
}

.member-link::after {
  content: "↗";
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-mute);
  transition: color 0.25s ease, transform 0.25s ease;
}

.member-link:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-2px);
}
.member-link:hover .website { color: rgba(255, 255, 255, 0.85); }
.member-link:hover::after { color: #fff; transform: translate(2px, -2px); }

/* ---------- Partner list ---------- */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.partner-link {
  font-family: var(--sans);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.partner-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.partner-link:hover { color: var(--green-deep); }
.partner-link:hover::after { transform: scaleX(1); }

/* =================================================================
   Sticky side-navigation (shared: Winzer list / Termine months)
   ================================================================= */
.side-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .side-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-right: 0.5rem;
  border-right: 1px solid var(--line);
}

@media (max-width: 900px) {
  .side-nav {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }
}

.side-nav-label {
  display: block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}

.side-nav ul { list-style: none; margin: 0; padding: 0; }

.side-nav li { border-bottom: 1px solid var(--line-soft); }
.side-nav li:last-child { border-bottom: 0; }

.side-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.side-nav a:hover { color: var(--green-deep); padding-left: 0.4rem; }

.side-nav a.is-active {
  color: var(--green-deep);
  font-weight: 600;
  padding-left: 0.4rem;
}

@media (max-width: 900px) {
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 0; }
  .side-nav li { border-bottom: 0; }
  .side-nav a {
    padding: 0.4rem 0.8rem;
    margin: 0.25rem 0.4rem 0.25rem 0;
    border: 1px solid var(--line);
    font-size: 0.85rem;
  }
  .side-nav a.is-active { background: var(--green); color: #fff; border-color: var(--green); }
}

/* Anchor targets need an offset so the sticky header doesn't cover the heading */
.anchor-offset {
  display: block;
  position: relative;
  top: calc(-1 * (var(--header-h) + 24px));
  visibility: hidden;
}

/* =================================================================
   Winzer full profiles
   ================================================================= */
.winzer-profile {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.winzer-profile:first-child { padding-top: 0.5rem; }
.winzer-profile:last-child { border-bottom: 0; }

.winzer-profile-head { margin-bottom: 2rem; }

.winzer-profile-head h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 2rem;
  color: var(--green-deep);
  margin: 0 0 0.4rem;
}

.winzer-profile-sub {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.winzer-profile-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 780px) {
  .winzer-profile-body { grid-template-columns: 1fr; }
}

.winzer-profile-text .prose p { margin: 0 0 1.1rem; }
.winzer-profile-text .prose p:last-child { margin-bottom: 0; }

/* ---------- Contact box (uniform, highlighted) ---------- */
.winzer-contact-box {
  margin-top: 1.75rem;
  background: var(--bg-soft, var(--cream));
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  padding: 1.5rem 1.75rem;
}

.winzer-contact-box h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin: 0 0 0.9rem;
}

.winzer-contact-box ul { list-style: none; margin: 0; padding: 0; }

.winzer-contact-box li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.winzer-contact-box li:last-child { border-bottom: 0; }

.winzer-contact-box li span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--ink-mute);
  padding-top: 0.15rem;
}

.winzer-contact-box li strong { font-weight: 600; color: var(--ink); }
.winzer-contact-box a { color: var(--green-deep); }
.winzer-contact-box a:hover { color: var(--ink); }

/* =================================================================
   Winzer gallery slider (big image + thumbnails + zoom)
   ================================================================= */
.winzer-gallery { position: relative; }

.winzer-gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green-mist);
  border: 1px solid var(--line);
  cursor: zoom-in;
  touch-action: pan-y;
}

.winzer-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Zoom icon, centered, generous click padding */
.winzer-gallery-zoom {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 61, 51, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  cursor: zoom-in;
}

.winzer-gallery-zoom svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }

.winzer-gallery-main:hover .winzer-gallery-zoom,
.winzer-gallery-main:focus-within .winzer-gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

.winzer-gallery-zoom:hover { background: var(--green-deep); }

/* Prev/next arrows on the big image, only when >1 photo */
.winzer-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 61, 51, 0.45);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  z-index: 2;
}

.winzer-gallery-main:hover .winzer-gallery-arrow,
.winzer-gallery-main:focus-within .winzer-gallery-arrow { opacity: 1; }

.winzer-gallery-arrow:hover { background: var(--green-deep); }
.winzer-gallery-arrow.prev { left: 10px; }
.winzer-gallery-arrow.next { right: 10px; }
.winzer-gallery-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Overlay thumbnail strip along the bottom edge of the big image */
.winzer-gallery-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  overflow-x: auto;
  z-index: 1;
}

.winzer-gallery-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.winzer-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.winzer-gallery-thumb:hover { opacity: 1; }

.winzer-gallery-thumb.is-active {
  opacity: 1;
  border-color: #fff;
}

/* Single-photo galleries: hide thumbnail strip and arrows entirely */
.winzer-gallery.is-single .winzer-gallery-thumbs,
.winzer-gallery.is-single .winzer-gallery-arrow { display: none; }

/* =================================================================
   Lightbox (global, reused by winzer galleries and Termine images)
   ================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 21, 15, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
}
.lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox-nav.prev { left: 1.25rem; }
.lightbox-nav.next { right: 1.25rem; }
.lightbox-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.lightbox-nav[hidden] { display: none; }

.lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--sans);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-close { width: 38px; height: 38px; top: 0.75rem; right: 0.75rem; }
}

/* =================================================================
   Termine: image column in each row
   ================================================================= */
.termin-row {
  grid-template-columns: 96px 1fr 160px;
  grid-template-areas:
    "image text date"
    "action text date";
}

.termin-row .termin-image,
.termin-row .termin-image-placeholder {
  grid-area: image;
}

.termin-row .termin-image {
  width: 96px;
  aspect-ratio: 1/1;
  display: block;
  overflow: hidden;
  background: var(--green-mist);
  border: 1px solid var(--line);
  position: relative;
  cursor: zoom-in;
}

.termin-row .termin-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.termin-row .termin-image:hover img { transform: scale(1.05); }

.termin-row .termin-image-placeholder {
  width: 96px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceae0;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.4rem;
  cursor: default;
}

@media (max-width: 720px) {
  .termin-row {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "image date"
      "image text"
      "action action";
  }
  .termin-row .termin-image,
  .termin-row .termin-image-placeholder { width: 72px; }
}

.termin-month-heading {
  margin: 2.5rem 0 0.5rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.termin-month-heading:first-child { margin-top: 0; }

.termin-past-toggle-wrap {
  margin: 3rem 0 0;
}

.termin-past-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 1.1rem 0;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--green);
  text-align: left;
  cursor: pointer;
}

.termin-past-toggle:hover {
  color: var(--ink);
}

.termin-past-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--green);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--green);
  transition: transform 0.2s ease;
}

.termin-past-toggle[aria-expanded="true"] .termin-past-toggle-icon {
  transform: rotate(135deg);
}

.termin-past-panel {
  padding-top: 0.5rem;
}

.termin-past-panel .termin-month-heading {
  opacity: 0.85;
}

.termin-past-panel .termin-row {
  opacity: 0.85;
}

/* =================================================================
   Homepage: "nächster Termin" highlight (styled like a Termine row)
   ================================================================= */
/* White tile floating on the hero photo, right after the teaser text */
.hero-next-termin {
  background: #fff;
  color: var(--ink);
  max-width: 800px;
  width: 100%;
  margin-top: 2rem;
  padding: 1.5rem 1.75rem 1.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .hero-next-termin { max-width: 100%; padding: 1.25rem 1.35rem 1.1rem; }
}

.hero-next-termin-label {
  display: block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}

.hero-next-termin .termin-row {
  gap: 1.5rem;
  padding: 0;
  border-bottom: 0;
  grid-template-areas:
    "image text date"
    "image text action";
}

.hero-next-termin .termin-row .termin-action-slot {
  align-self: start;
}
.hero-next-termin .termin-row .termin-action-slot .btn {
  text-align: center;
  padding: 0.85rem;
  width: 100%;
}

@media (max-width: 560px) {
  .hero-next-termin .termin-row {
    grid-template-columns: 1fr;
    grid-template-areas: "date" "text" "action";
    gap: 0.5rem;
  }
  .hero-next-termin .termin-image-placeholder,
  .hero-next-termin .termin-image { display: none; }
}

.hero-next-termin .termin-row h3 { font-size: 1.1rem; }
.hero-next-termin .termin-row p { font-size: 0.9rem; }

/* ===============================================================
   Additions for the PHP version
   =============================================================== */

/* Smaller note paragraph inside prose blocks (Winzer profiles) */
.prose small {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* ---------- Contact form feedback ---------- */

/* Honeypot: kept out of view for people, still reachable for bots.
   display:none is avoided because some bots skip hidden inputs. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  border-left: 3px solid var(--green);
  background: var(--green-mist);
  color: var(--ink);
}

.form-note-error {
  border-left-color: #b3452f;
  background: #fbf0ed;
  color: #7d301f;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #b3452f;
}

.form-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-mute);
}

.form-hint a { color: var(--ink-soft); }
