/* ============================================
   Wein & Gesund — Public Stylesheet
   1:1 redesign matching wein-gesund.at
   ============================================ */

:root {
  --color-primary: #003232;
  --color-primary-alt: #003131;
  --color-accent: #78c071;
  --color-accent-dark: #4e9e3e;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-text-light: #8a8a8a;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f8f8;
  --color-border: #dedede;
  --color-border-light: #e8e8e8;

  --font-body: 'Open Sans', Verdana, sans-serif;

  --container-max: 1200px;
  --container-wide: 1460px;
  --header-height: 110px;
  --header-height-fixed: 74px;
  --banner-height: 320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 21px/1.7em var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 1250px) { body { font-size: 17px; } }
@media (max-width: 999px)  { body { font-size: 16px; } }
@media (max-width: 599px)  { body { font-size: 15px; } }

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

a { color: var(--color-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4, h5, h6 {
  margin: .75em 0 .5em;
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1.2em;
}
h1 { font-size: 2em; font-weight: 500; margin: 0 0 .5em; }
h2 { font-size: 2.4em; font-weight: 300; line-height: 1.2em; }
h3 { font-size: 1.6em; font-weight: 300; }
h4 { font-size: 1.15em; font-weight: 600; }
@media (max-width: 999px) { h1 { font-size: 1.6em } h2 { font-size: 1.5em } h3 { font-size: 1.2em } }

p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: -9999px; background: var(--color-primary); color: white; padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ============================================
   HEADER — flex: Logo left, Nav stack right
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  padding: 1.5em 6.8%;
  background: rgba(0, 0, 0, 0);
  color: #fff;
  transition: background-color .35s ease, padding .25s ease;
  gap: 2em;
}
.site-header.is-fixed {
  background-color: rgba(0, 0, 0, 0.6);
  /* kein backdrop-filter blur — Bild dahinter soll unverzerrt bleiben */
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
  padding: 0 6.8%;
  align-items: center;
  /* Bar matches the IDLE nav-text region (~150px) — not collapsed to a thin
     strip. Logo shrinks from 300px to 150px to fill the bar height instead. */
  height: 150px;
}
/* Nav-Schrift unverändert wie im Idle-State (kein extra Compact) */

/* Logo — sized via width on the link, height auto-scales (image 340x320) */
.brand {
  flex: 0 0 auto;
  display: block;
  width: 300px;
  transition: width .3s ease, height .3s ease;
}
.brand img { width: 100%; height: auto; display: block; }
/* Scrolled: logo shrinks to the bar height (matches idle nav-text area) */
.site-header.is-fixed .brand {
  width: auto;
  height: 150px;
  align-self: center;
  display: block;
}
.site-header.is-fixed .brand img {
  width: auto;
  height: 100%;
  display: block;
}

/* Right-side stack: row1 (main nav + lang) + row2 (anchor nav, home only) */
.header-navs {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25em;
  min-width: 0;
}

/* Top row: main nav left of lang toggle */
.header-row-top {
  display: flex;
  align-items: center;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Main navigation */
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: .35em 0;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,.95), 0 0 1px rgba(0,0,0,.6);
  transition: color .15s;
}
/* Pipe between EVERY item — including a trailing one after Kontakt — so the
   nav reads "Auszeichnungen | Einreichung | … | Kontakt |" and the lang-switch
   sits clearly on the other side of the trailing separator. */
.main-nav li::after {
  content: '|';
  margin: 0 .85em;
  color: rgba(255, 255, 255, .55);
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
}
.main-nav li:last-child::after { margin-right: 0; }
.main-nav a:hover,
.main-nav a.active { color: var(--color-accent); }

/* Lang nav — absolut oben rechts im Header, ausserhalb der normalen Nav-Fläche.
   Site-header ist der Positions-Anker (position: fixed = positioned). */
.lang-nav {
  position: absolute;
  top: 1em;
  right: 1.5em;
  z-index: 12;
}
.lang-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .25em;
}
.lang-nav li { display: flex; align-items: center; }
.lang-nav a {
  display: inline-flex; align-items: center; gap: .35em;
  color: #ffffff;
  font-size: .82em; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .35em .55em;
  border: 1px solid rgba(255,255,255,0);
  text-shadow: 0 1px 6px rgba(0,0,0,.95);
  opacity: .85;
  transition: opacity .15s, border-color .15s, color .15s;
}
.lang-nav li.is-current a {
  opacity: 1;
  border-color: rgba(255,255,255,.9);
  pointer-events: none;
}
.lang-nav a:hover { opacity: 1; color: var(--color-accent); }
.lang-flag-svg { width: 22px; height: 14px; display: block; border: 1px solid rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }

/* Anchor sub-nav (second row, home only) */
.anchor-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.anchor-nav li { display: flex; align-items: center; }
.anchor-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: .2em 0;
  font-size: 0.82em;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 6px rgba(0,0,0,.95);
  transition: color .15s;
}
.anchor-nav li:not(:last-child)::after {
  content: '|';
  margin: 0 .55em;
  color: rgba(255, 255, 255, .5);
  font-size: .82em;
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
}
.anchor-nav a:hover { color: var(--color-accent); }

/* Mobile menu */
.mobile-menu-trigger {
  display: none;
  position: absolute;
  top: 1em; right: 1em;
  background: rgba(0,0,0,.5);
  color: white;
  border: 1px solid rgba(255,255,255,.4);
  padding: .55em .9em;
  cursor: pointer;
  z-index: 13;
}
.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 1px;
}
.mobile-menu-close {
  position: absolute;
  top: 1em; right: 1em;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.4);
  width: 44px; height: 44px;
  font-size: 2em; line-height: 1;
  cursor: pointer;
  z-index: 210;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover { background: rgba(255,255,255,.1); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(0, 25, 30, 0.97);
  z-index: 200;
  padding: 4em 2em 2em;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu-list { list-style: none; padding: 0; margin: 0; }
.mobile-menu-list > li > a {
  display: block;
  padding: 1em 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: white;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.1em;
}
.mobile-menu-list > li > a:hover { color: var(--color-accent); }
.mobile-menu-divider {
  height: 1px;
  background: rgba(255,255,255,.18);
  margin: 1em 0 .5em;
}
.mobile-menu-anchor > a {
  display: block;
  padding: .65em 0;
  color: rgba(255,255,255,.85);
  font-size: .92em;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu-anchor > a:hover { color: var(--color-accent); }
.mobile-lang-row { padding: 1.5em 0 0; }
.mobile-lang-row .lang-row { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5em; justify-content: center; }
.mobile-lang-row .lang-row a {
  display: inline-flex; align-items: center; gap: .5em;
  color: white; padding: .5em 1em;
  border: 1px solid rgba(255,255,255,.3);
  font-size: .9em;
}
.mobile-lang-row .lang-row .is-current a { border-color: white; }

@media (max-width: 999px) {
  .header-navs { display: none; }
  .lang-nav { display: none; }  /* mobile uses lang inside hamburger menu */
  .mobile-menu-trigger { display: inline-block; margin-left: auto; align-self: center; }
  .site-header { padding: .5em 1em; align-items: center; }
  .site-header.is-fixed { padding: .5em 1em; min-height: 0; }
  .brand, .site-header.is-fixed .brand { width: 60px; height: auto; }
  .site-header.is-fixed .brand img { width: 100%; height: auto; }
}

.is-home main, .is-inner main { padding-top: 0; }

/* INNER PAGES: Idle = großes Logo (220px), Scroll = 150px (wie Home-Scrolled).
   Idle bg transparent, Scroll dunkel. Nur Desktop. */
@media (min-width: 1000px) {
  .is-inner .site-header {
    padding: 0 6.8%;
    align-items: center;
    height: 220px;
  }
  .is-inner .site-header .brand {
    width: auto;
    height: 220px;
    align-self: center;
    display: block;
  }
  .is-inner .site-header .brand img {
    width: auto;
    height: 100%;
    display: block;
  }
  /* Scrolled state: shrink to 150px (matches home-scrolled) */
  .is-inner .site-header.is-fixed {
    height: 150px;
  }
  .is-inner .site-header.is-fixed .brand {
    height: 150px;
  }
}

/* ============================================
   PAGE BANNER (inner pages — gleicher Hero-Bildausschnitt wie Hauptseite)
   ============================================ */
.page-banner {
  width: 100%;
  /* Match the inner-page header IDLE height (220px desktop) so the logo
     doesn't extend below the banner image */
  height: 220px;
  background-image: url('/images/design/hero-wein-und-gesund.jpg');
  background-size: cover;
  background-position: 50% 35%;
  position: relative;
  margin-top: 0;
}
@media (max-width: 999px) { .page-banner { height: 160px; } }
@media (max-width: 599px) { .page-banner { height: 120px; } }

/* ============================================
   SECTIONS
   ============================================ */
.site-main { min-height: 60vh; }

.section { position: relative; background: 50% 50% no-repeat; background-size: cover; }
.section-inner {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 4em 1em;
}
.section-inner-wide { max-width: var(--container-wide); padding-left: 3em; padding-right: 3em; }
.section-narrow .section-inner { max-width: 920px; }

@media (max-width: 999px) {
  .section-inner { padding-left: 2em; padding-right: 2em; }
  .section-inner-wide { padding-left: 2em; padding-right: 2em; }
}
@media (max-width: 599px) { .section-inner { padding: 2.5em 1em; } }

.section-text-center { text-align: center; }
.section-bg-light { background-color: var(--color-bg-alt); }
.section-bg-dark { background-color: var(--color-primary-alt); color: white; }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3, .section-bg-dark a { color: white; }
.section-bg-dark a { border-bottom: 1px solid rgba(255,255,255,.4); }

/* Image background section + parallax — matches the original Contao
   (.centered-wrapper-background) treatment: bg image rendered as-is, then a
   subtle vertical gradient (transparent top → 40% blue-grey at 75%) softens
   the bottom and gives the text-box natural contrast. No brightness filter —
   the original site does not use one either. Templates pass the URL via
   the --bg-image custom property so the pseudo can read it. */
.section-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.section-image > .section-inner,
.section-image > .section-split-inner { position: relative; z-index: 2; }

/* Parallax (JS toggles this — fallback uses fixed-attachment on the pseudo) */
@media (min-width: 1000px) {
  .section-parallax::before { background-attachment: fixed; }
}

/* Section height utilities — match Contao's .centered-wrapper.-height-* spec
   from the original site (medium = 450/350px, large = 800/600px). */
.section-h-medium { min-height: 450px; }
.section-h-large  { min-height: 800px; }
@media (max-width: 599px) {
  .section-h-medium { min-height: 350px; }
  .section-h-large  { min-height: 600px; }
}
/* Vertical-centering wrapper — equivalent to original .-vertical-centered */
.section-vcenter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* SPLIT 50/50 SECTIONS (image-bg with text-box on one half) */
.section-split { padding: 6em 0; }
.section-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  /* Match original .centered-wrapper.-height-medium = 450px exactly */
  min-height: 450px;
  position: relative;
  z-index: 2;
}
.section-split .text-box {
  margin: 0;
  /* Match original .whiteTextBox padding so the box doesn't push the section taller */
  padding: 1.8em 2em;
  background-color: rgba(255, 255, 255, 0.5);
}
.section-split-right .text-box {
  grid-column: 2;
  margin-right: 6.8%;
}
.section-split-left .text-box {
  grid-column: 1;
  margin-left: 6.8%;
}
@media (max-width: 800px) {
  .section-split-inner { grid-template-columns: 1fr; padding: 2em 1em; min-height: 0; }
  .section-split .text-box,
  .section-split-right .text-box,
  .section-split-left .text-box {
    grid-column: 1;
    margin: 0;
    padding: 1.75em 1.5em;
  }
}

/* GESUNDHEIT 2-col (text + image) */
.health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}
.health-text { padding-right: 1em; }
.health-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
@media (max-width: 800px) {
  .health-grid { grid-template-columns: 1fr; gap: 1.5em; }
  .health-text { padding-right: 0; }
}

/* White text-box overlay (centered, semi-transparent) */
.text-box {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2em 2.2em;
  max-width: 720px;
  margin: 0 auto;
}
.text-box-centered { text-align: center; }
.text-box-centered .headline-box { margin: 0 0 1em; }
.text-box-centered .headline-box h1,
.text-box-centered .headline-box h2 { font-size: 2em; }

/* Headline box (the centered title pattern) */
.headline-box { margin: 2.4em 0 1em; text-align: center; }
.headline-box h1, .headline-box h2 {
  margin: 0;
  font-size: 2.4em;
  font-weight: 400;
  line-height: 1em;
  color: var(--color-primary);
}
@media (max-width: 999px) {
  .headline-box h1, .headline-box h2 { font-size: 1.8em; }
}

/* ============================================
   HERO (startpage) — full-viewport, header sits over it
   ============================================ */
/*
 * HERO height calculation:
 * Logo width 300px (on home), aspect ratio 340:320 → height 282px
 * Header padding-top ~24px → logo bottom edge at viewport-y = ~306px
 * News-box height varies (~260-300px), needs ~60px gap below logo
 * → Hero must be at least: 306 + 60 + 280 + 40 (bottom-margin) = 686px
 * We use 720px minimum for safety, OR 70vh (whichever is larger)
 */
.start-header {
  position: relative;
  width: 100%;
  min-height: max(80vh, 840px);
  margin-top: 0;
  background-image: url('/images/design/hero-wein-und-gesund.jpg');
  background-size: cover;
  background-position: 50% 50%;
}
@media (min-width: 1000px) { .start-header { background-attachment: fixed; } }
@media (max-width: 999px) { .start-header { min-height: 55vh; } }
@media (max-width: 599px) { .start-header { min-height: 50vh; } }

.start-news {
  position: absolute;
  bottom: 2.5em;
  left: 6.8%;
  width: 24%;
  min-width: 320px;
  max-width: 440px;
  /* Hard ceiling: news-box must NEVER reach past logo+gap (300px logo + 60px gap = 360px from top) */
  max-height: calc(100% - 360px);
  background-color: rgba(255, 255, 255, 0.78);
  padding: 1.5em 1.8em;
  font-size: .9em;
  overflow: hidden;
}
.start-news h2 { margin: 0 0 .5em; font-size: 1.4em; font-weight: 600; color: var(--color-primary); }
.start-news .news-date { display: block; font-size: .9em; color: var(--color-text-muted); margin-bottom: .6em; letter-spacing: .08em; }
.start-news .news-date .month, .start-news .news-date .year { color: var(--color-primary); font-weight: 600; }
.start-news .news-title { font-size: 1.05em; font-weight: 600; color: var(--color-primary); margin: 0 0 .5em; line-height: 1.3em; }
.start-news p { margin: 0 0 .75em; line-height: 1.55em; }
.start-news .more { text-align: right; margin: 0; font-size: .9em; font-style: italic; }
.start-news .more a { color: var(--color-primary); font-weight: 600; }

@media (max-width: 999px) {
  /* Hero is a flex column that pushes the news-box to the BOTTOM, with 20px
     above the section floor. padding (not margin) keeps the bg image
     anchored to the top of the section (no margin-collapse). */
  .start-header {
    min-height: 600px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .start-news {
    position: relative;
    top: auto; left: auto; bottom: auto; right: auto;
    margin: 0 auto;
    width: 90%;
    min-width: 0;
    max-width: 500px;
    max-height: none;
  }
}

/* ============================================
   COUNTER BOXES
   ============================================ */
.counter-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-bg);
  max-width: var(--container-wide);
  margin: 2.5em auto;
  padding: 0 1em;
  gap: 1em;
}
.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 1.5em 1em 2em;
  color: var(--color-text);
  text-decoration: none !important;
  min-height: 220px;
}
.counter-box:hover { color: var(--color-primary); }
.counter-box:hover .counter-num { color: var(--color-accent-dark); }
.counter-box .counter-num {
  font-size: 4.7em;
  font-weight: 300;
  line-height: 0.8em;
  color: var(--color-primary);
  margin: 0 0 .15em;
}
.counter-box .counter-img { height: 100px; margin-bottom: .25em; display: flex; align-items: flex-end; justify-content: center; }
.counter-box .counter-img img { max-height: 100px; width: auto; }
.counter-box h3 { margin: .35em 0 0; font-size: 1.4em; font-weight: 400; color: var(--color-primary); }

@media (max-width: 999px) {
  .counter-boxes { grid-template-columns: 1fr; gap: 0; }
  .counter-box { min-height: auto; padding: 2em 1em; border-bottom: 1px solid var(--color-border-light); }
  .counter-box:last-child { border-bottom: 0; }
}

/* ============================================
   AUSZEICHNUNG (Home) — text+points links, großes Bild rechts
   ============================================ */
.awards-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}
@media (max-width: 800px) { .awards-section-grid { grid-template-columns: 1fr; gap: 1.5em; } }

.awards-section-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 4px;
}

.awards-points-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin: 1.5em 0;
}
.awards-points-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6em;
  padding: 1em 0;
  border-bottom: 1px solid var(--color-border-light);
}
.awards-points-row:last-child { border-bottom: 0; }
.awards-points-desc {
  margin: 0;
  font-size: .95em;
  color: var(--color-text);
  line-height: 1.5em;
  max-width: 480px;
}
.awards-points-img {
  display: block;
  height: 36px;
  line-height: 36px;
}
.awards-points-img img {
  height: 36px !important;
  width: auto !important;
  max-width: none !important;
  display: inline-block;
}
.awards-points-label {
  margin: 0;
  font-size: 1.05em;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: .03em;
}

/* ============================================
   WINZER (Home, BG-Image, Inline-Pipe-Liste)
   ============================================ */
.winery-section {
  color: white;
  /* -height-large per original spec */
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 599px) {
  .winery-section { min-height: 600px; }
}
/* Same universal gradient as other section-image elements is enough; white
   text gets a subtle shadow so it stays legible against the busy photo. */
.winery-section .headline-box h1,
.winery-section .headline-box h2 {
  color: white;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.winery-section .headline-box p,
.winery-section .winery-pipe-list,
.winery-section .winery-pipe-list a {
  text-shadow: 0 1px 5px rgba(0, 0, 0, .6);
}

.winery-pipe-list {
  text-align: center;
  font-size: 1.15em;
  line-height: 2.2em;
  max-width: 1100px;
  margin: 0 auto;
  color: white;
}
.winery-pipe-list a {
  color: white;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 599px) {
  .winery-pipe-list a { white-space: normal; overflow-wrap: anywhere; }
}
.winery-pipe-list a:hover { color: var(--color-accent); }
.winery-pipe-list .sep { opacity: .55; padding: 0 .15em; }

/* ============================================
   NEWSLETTER CTA (auf Home)
   ============================================ */
.newsletter-cta { padding: 2em 1em; }
.newsletter-cta .section-inner { padding-top: 2em; padding-bottom: 2em; }
.newsletter-heading { font-size: 2em; font-weight: 300; color: var(--color-primary); margin: 0 0 .25em; }
.newsletter-sub {
  font-size: .85em;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--color-primary);
  margin: 0 0 1.5em;
  text-transform: uppercase;
}
.newsletter-cta .btn { padding: .9em 2em; }
.newsletter-info { margin-top: 1.2em; font-size: .95em; color: var(--color-text-muted); }
.newsletter-unsub { margin-top: 1em; font-size: .85em; }
.newsletter-unsub a { color: var(--color-text-muted); text-decoration: underline; }

/* ============================================
   POINTS / BUTTONS (already covered above, keep)
   ============================================ */
.btn {
  display: inline-block;
  padding: .65em 1.4em;
  font-weight: 500;
  text-align: center;
  font-size: .95em;
  cursor: pointer;
  border: 0;
  text-decoration: none !important;
  transition: all .15s;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-accent-dark); color: white; }
.btn-ghost { background: transparent; color: white; border: 1px solid white; }
.btn-ghost:hover { background: white; color: var(--color-primary); }
.btn-secondary { background: white; color: var(--color-primary); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-bg-alt); }

.link-arrow { display: inline-block; font-weight: 600; color: var(--color-primary); font-size: .95em; font-style: italic; }
.link-arrow:hover { color: var(--color-accent-dark); }

.back-link { display: inline-block; margin-bottom: 1.5em; color: var(--color-text-muted); font-size: .9em; }
.back-link:hover { color: var(--color-primary); }

/* ============================================
   STATIC PAGES — 2-col layout for analyse/health/viticulture
   ============================================ */
.static-two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3em;
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
}
@media (max-width: 800px) { .static-two-col { grid-template-columns: 1fr; gap: 1.5em; } }

.static-two-col-text { line-height: 1.7em; }
.static-two-col-image {
  position: sticky;
  top: 130px;
}
.static-two-col-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.studies-list {
  margin: 1.5em 0;
  padding-left: 1.2em;
  list-style: disc;
}
.studies-list li { margin-bottom: .5em; }

/* ============================================
   BLOG, AWARDS, WINERIES, FORMS — kept similar
   ============================================ */
.page-header { text-align: center; margin-bottom: 2.5em; }
.page-title { color: var(--color-primary); }
.page-intro { font-size: 1em; color: var(--color-text-muted); max-width: 720px; margin: 0 auto; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2em; }
@media (max-width: 359px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  background: white; border: 1px solid var(--color-border-light);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  font-size: .85em;
}
.article-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.article-thumb { display: block; aspect-ratio: 16/10; background: var(--color-bg-alt); overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-body { padding: 1.5em; flex: 1; display: flex; flex-direction: column; }
.article-date-block { display: inline-block; margin-bottom: .8em; color: var(--color-primary); font-size: .9em; }
.article-date-block .date-month { font-weight: 600; }
.article-date-block .date-year { color: var(--color-text-muted); padding: 0 0.05em; }
.article-body h2, .article-body h3 { margin: 0 0 .6em; font-size: 1.4em; font-weight: 500; }
.article-body h2 a, .article-body h3 a { color: var(--color-primary); }
.article-body p { color: var(--color-text-muted); margin-bottom: 1em; flex: 1; }

.article-detail .article-image { margin: 2em 0; }
.article-image img { width: 100%; }
.article-pager {
  margin-top: 3em; padding-top: 2em;
  border-top: 1px solid var(--color-border-light);
  display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap;
}
.pager-prev, .pager-next { flex: 1; display: flex; align-items: center; gap: .5em; padding: 1em 1.5em; background: var(--color-bg-alt); font-weight: 500; color: var(--color-primary); font-size: .9em; }
.pager-next { justify-content: flex-end; text-align: right; }
.pager-prev:hover, .pager-next:hover { background: var(--color-border-light); }

.rich-text { font-size: 1em; line-height: 1.7em; }
.rich-text h1, .rich-text h2 { margin: 1.2em 0 .5em; font-size: 1.8em; font-weight: 400; }
.rich-text h3 { margin: 1.2em 0 .5em; font-size: 1.3em; }
.rich-text p { margin-bottom: 1em; }
.rich-text img { margin: 1em auto; max-width: 100%; height: auto; }
.rich-text ul, .rich-text ol { margin-bottom: 1em; padding-left: 1.5em; }
.rich-text blockquote { border-left: 3px solid var(--color-accent); padding-left: 1.5em; font-style: italic; font-size: 1.05em; color: var(--color-primary); margin: 1.5em 0; }
.rich-text a { color: var(--color-primary); }
.rich-text a:hover { color: var(--color-accent-dark); }

/* Studien/Quellen-Block: Titel + sichtbare URL darunter, deutlicher Abstand */
.rich-text .study-entry { margin: 0 0 1.6em; line-height: 1.5; }
.rich-text .study-entry strong { display: block; font-weight: 600; }
.rich-text .study-entry a { word-break: break-all; font-size: .92em; color: var(--color-primary); text-decoration: underline; }

/* Studies-Section: server-side gerenderter Block am Ende einer Page */
.studies-section { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--color-border); }
.studies-heading { margin: 0 0 1.2em; font-size: 1.4em; font-weight: 600; letter-spacing: .03em; text-align: left; }

/* Jeder Studien-Eintrag ist ein klarer Block:
   - Titel und URL eng zusammen (ca. 6 px)
   - großer Abstand zum nächsten Block (ca. 28 px)
   - Titel kräftig in W&G-Dunkelgrün, URL etwas kleiner+kursiv darunter        */
.studies-section .study-entry { margin: 0 0 28px; }
.studies-section .study-entry:last-child { margin-bottom: 0; }

.studies-section .study-entry-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.35;
  color: var(--color-primary);
}

.studies-section .study-entry-url {
  margin: 0;
  font-size: .9em;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.studies-section .study-entry-url a {
  color: var(--color-primary);
  text-decoration: underline;
  font-style: italic;
}
.studies-section .study-entry-url a:hover { color: var(--color-accent-dark); }

/* Awards grid + cards */
.filter-bar { display: flex; gap: 1em; flex-wrap: wrap; background: var(--color-bg-alt); padding: 1.5em; margin-bottom: 2.5em; align-items: end; font-size: .9em; }
.filter-field { display: flex; flex-direction: column; gap: .35em; flex: 1; min-width: 140px; }
.filter-field span { font-size: .8em; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.filter-field select, .filter-field input { padding: .55em .75em; border: 1px solid var(--color-border); background: white; font-family: inherit; font-size: .95em; }
.filter-reset { align-self: end; padding: .55em 1em; background: white; border: 1px solid var(--color-border); font-size: .9em; color: var(--color-text-muted); }
.filter-submit { align-self: end; padding: .55em 1.2em; font-size: .9em; }

.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5em 1.5em; margin-top: 2em; }
@media (max-width: 1199px) { .awards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 799px)  { .awards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 499px)  { .awards-grid { grid-template-columns: 1fr; } }

.awards-card { display: flex; flex-direction: column; text-align: center; font-size: .92em; }
.awards-bottle { display: block; width: 100%; aspect-ratio: 258 / 387; background: transparent; overflow: hidden; margin-bottom: 1em; }
.awards-bottle img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.awards-card:hover .awards-bottle img { transform: scale(1.04); }
.awards-bottle-empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--color-bg-alt); }
.awards-bottle-empty img { max-width: 50%; height: auto; }
.awards-meta { text-align: center; line-height: 1.5em; }
.awards-points { margin: 0 0 .5em; }
.awards-points img { height: 32px; width: auto; display: inline-block; }
.awards-name { margin: 0 0 .15em; font-weight: 600; font-size: 1em; color: var(--color-primary); line-height: 1.3em; }
.awards-name a { color: var(--color-primary); }
.awards-vintage { margin: 0 0 .25em; color: var(--color-text-muted); font-size: .92em; }
.awards-winery { margin: 0; font-size: .92em; }
.awards-winery a { color: var(--color-primary); border-bottom: 1px solid var(--color-accent); }

/* ============================================
   AWARDS TEXT SECTION (3-Spalten-Liste für Weine ohne Foto)
   Original-Look: helle Rosé-Fläche, zentrierte Spalten ohne Trennlinien
   ============================================ */
.awards-text-section {
  background: #fff2ee;
  margin-top: 4em;
  padding: 3em 1em 4em;
  /* Full-bleed: break out of section-inner so the bg spans the entire viewport
     width regardless of container constraints */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
}
.awards-text-section-heading {
  text-align: center;
  font-size: 1.6em;
  font-weight: 300;
  color: var(--color-primary);
  margin: 0 0 2em;
}
.awards-text-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3em;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 999px) { .awards-text-columns { grid-template-columns: 1fr; gap: 2em; } }

.awards-text-col {
  text-align: center;
}
.awards-text-col-head {
  margin-bottom: 1.5em;
  padding: 0;
  border: 0;
  text-align: center;
}
.awards-text-col-head img {
  height: 36px;
  width: auto;
  margin: 0 auto;
  display: inline-block;
}

.awards-text-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.awards-text-list li {
  padding: .35em 0;
  border: 0;
  font-size: .92em;
  line-height: 1.5em;
  text-align: center;
}
.awards-text-list a {
  color: var(--color-primary);
  text-decoration: none;
}
.awards-text-list a:hover { color: var(--color-accent-dark); }
.awards-text-list span { color: var(--color-text); }

/* Wine detail rosa box */
.wine-info-box { background: #fbf3f1; border: 1px solid #f0d8d4; padding: 2.5em 2em 1.5em; margin: 1em 0 2em; }
.wine-info-heading { margin: 0 0 1.2em; font-size: 1.6em; font-weight: 400; color: var(--color-primary); text-align: left; }
.wine-info-grid { display: grid; grid-template-columns: 350px 1fr; gap: 2.5em; align-items: start; }
@media (max-width: 800px) { .wine-info-grid { grid-template-columns: 1fr; gap: 1.5em; } .wine-info-box { padding: 1.5em 1.25em; } }
.wine-info-image { text-align: center; }
.wine-info-image > img { width: 100%; max-width: 350px; height: auto; display: block; margin: 0 auto; background: white; }
.wine-info-image .awards-bottle-empty { aspect-ratio: 350 / 525; max-width: 350px; margin: 0 auto; }
.wine-info-points { margin-top: 1em; text-align: center; }
.wine-info-points img { height: 40px; width: auto; display: inline-block; }
.wine-info-table { display: flex; flex-direction: column; gap: .3em; }
.wine-info-row { display: grid; grid-template-columns: 140px 1fr; gap: 1em; padding: .5em 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.wine-info-row:last-child { border-bottom: 0; }
.wine-info-label { color: var(--color-text-muted); font-weight: 500; font-size: .95em; }
.wine-info-value { color: var(--color-text); font-weight: 500; line-height: 1.5em; }
.wine-info-value strong { color: var(--color-primary); font-weight: 600; }
.wine-info-value a { color: var(--color-primary); }
@media (max-width: 500px) { .wine-info-row { grid-template-columns: 1fr; gap: .15em; } }
.wine-info-summary { margin-top: 2em; padding-top: 1.5em; border-top: 1px solid rgba(0,0,0,.08); text-align: center; font-size: .95em; color: var(--color-text); }
.wine-info-summary strong { color: var(--color-primary); }
.wine-info-summary p { margin: 0; }

/* Forms */
.form-card { background: white; padding: 2em; border: 1px solid var(--color-border-light); display: flex; flex-direction: column; gap: 1em; margin-top: 2em; }
.form-field { display: flex; flex-direction: column; gap: .35em; }
.form-label { font-size: .85em; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: .04em; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1em; }

/* Multi-Wine Submission */
.wines-fieldset { border: 1px solid var(--color-border-light); padding: 1.2em 1.4em; margin: .5em 0; }
.wines-fieldset legend { padding: 0 .5em; font-weight: 600; color: var(--color-primary); }
.wine-block { padding: 1em 1.2em; margin: 0 0 1em; background: #fafaf6; border: 1px solid var(--color-border-light); border-radius: 4px; }
.wine-block:last-child { margin-bottom: 1em; }
.wine-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8em; }
.wine-block-num { font-size: .9em; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: .04em; }
.wine-block-remove { background: transparent; border: 1px solid #c5b1d6; color: #6e3a1f; padding: .35em .8em; font-size: .82em; border-radius: 3px; cursor: pointer; }
.wine-block-remove:hover { background: #f3e8e0; }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=datetime-local], input[type=password],
select, textarea {
  font-family: inherit;
  font-size: .95em;
  padding: .65em .8em;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); }
textarea { resize: vertical; min-height: 110px; }

/* Winery cards/list */
.winery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5em; margin-top: 2em; }
.winery-card { background: white; border: 1px solid var(--color-border-light); padding: 1.5em; transition: box-shadow .2s; }
.winery-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.winery-card-name { margin: 0 0 .35em; font-size: 1.25em; }
.winery-card-name a { color: var(--color-primary); }
.winery-card-region { margin: 0 0 .5em; color: var(--color-text-muted); font-size: .9em; }
.winery-card-meta { margin: 0 0 .5em; font-size: .85em; color: var(--color-text-muted); }
.winery-card-link { margin: 0; font-size: .85em; }

.winery-list { list-style: none; margin: 2em 0 0; padding: 0; columns: 3; column-gap: 3em; }
.winery-list li { break-inside: avoid; padding: .55em 0; border-bottom: 1px solid var(--color-border-light); font-size: .95em; }
.winery-list li a { color: var(--color-primary); font-weight: 600; }
.winery-region { display: block; font-size: .85em; color: var(--color-text-muted); font-weight: 400; margin-top: .15em; }
@media (max-width: 999px) { .winery-list { columns: 2; } }
@media (max-width: 599px) { .winery-list { columns: 1; } }

/* Experts */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5em; margin: 2em 0; }
@media (max-width: 999px) { .expert-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5em; } }
@media (max-width: 599px) { .expert-grid { grid-template-columns: 1fr; } }
.expert-card { display: flex; flex-direction: column; background: var(--color-bg); }
.expert-photo { position: relative; width: 100%; height: 0; padding-bottom: 105%; background-size: cover; background-position: 50% 30%; overflow: hidden; margin: 0; }
.expert-photo .expert-quote {
  position: absolute;
  inset: 0;
  padding: 1.5em 1.25em;
  background: rgba(0, 50, 50, 0.88);
  color: white;
  font-size: .95em;
  line-height: 1.5em;
  font-style: italic;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.expert-card:hover .expert-photo .expert-quote,
.expert-card:focus-within .expert-photo .expert-quote { opacity: 1; }
.expert-photo { cursor: pointer; }
.expert-photo .expert-quote p { margin: 0; }
.expert-meta { text-align: center; padding: 1em .5em 0; font-size: .9em; line-height: 1.45em; }
.expert-name { margin: 0 0 .25em; font-weight: 600; color: var(--color-primary); }
.expert-role { margin: 0 0 .35em; color: var(--color-text-muted); }
.expert-email { margin: 0; font-size: .9em; }
.expert-email a { color: var(--color-primary); border-bottom: 1px solid var(--color-accent); }
.expert-extra { text-align: center; margin-top: 2em; padding-top: 1.5em; border-top: 1px solid var(--color-border-light); }
.expert-extra h3 { font-size: 1.4em; font-weight: 400; margin: 0 0 .8em; }
.expert-extra-entry { margin: 0 0 .5em; line-height: 1.5; }
.expert-extra-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: .6em; }

/* Tighter padding for experts section so it doesn't stack with newsletter-cta */
#experten.section .section-inner,
#experts.section .section-inner { padding-bottom: 2em; }
.newsletter-cta .section-inner { padding-top: 1.5em !important; padding-bottom: 1.5em !important; }
.newsletter-cta .share-buttons { margin-top: 1.5em; padding-top: 1.5em; border-top: 1px solid var(--color-border-light); border-bottom: 0; }

/* Flash */
.flash { padding: .9em 1.25em; margin: 1em auto; max-width: var(--container-max); font-weight: 500; font-size: .95em; border-left: 4px solid; }
.flash-success { background: #dcf3db; color: #2a5d2a; border-left-color: var(--color-accent-dark); }
.flash-error { background: #fbeaea; color: #851b1b; border-left-color: #b22222; }
.flash-info { background: #e0eef0; color: #1a4f54; border-left-color: var(--color-primary); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .5em; margin-top: 3em; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: .5em .9em; border: 1px solid var(--color-border); background: white; color: var(--color-text); font-size: .9em; font-weight: 500; }
.page-link:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.page-link.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
@media (max-width: 599px) {
  .pagination { gap: .35em; }
  .page-link { min-width: 36px; padding: .4em .55em; font-size: .85em; }
}

/* ============================================
   FOOTER — dunkelgrün, weiße Schrift
   ============================================ */
.site-footer {
  background: var(--color-primary);
  color: white;
  padding: 4em 5% 1.5em;
  margin-top: 0;
}
.footer-grid {
  max-width: var(--container-wide);
  margin: 0 auto 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3em;
  font-size: .92em;
}
.footer-col { color: rgba(255,255,255,.85); }
.footer-title { font-size: .9em; font-weight: 600; color: white; margin: 0 0 .8em; text-transform: uppercase; letter-spacing: .1em; }
.footer-address { color: rgba(255,255,255,.85); }
.footer-address a { color: rgba(255,255,255,.85); }
.footer-address a:hover { color: white; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .25em 0; }
.footer-list a { color: rgba(255,255,255,.85); }
.footer-list a:hover { color: white; }
.footer-social { display: flex; gap: .65em; align-items: center; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.4); color: rgba(255,255,255,.9); background: transparent; transition: all .15s; }
.footer-social a:hover { background: var(--color-accent); color: white; border-color: var(--color-accent); }

.footer-bottom { text-align: center; padding-top: 2em; margin-top: 1em; border-top: 1px solid rgba(255,255,255,.12); font-size: .85em; color: rgba(255,255,255,.7); }

/* ============================================
   BACK TO TOP, COOKIE BANNER, SHARE — kept
   ============================================ */
.back-to-top { position: fixed; right: 1.25em; bottom: 1.25em; z-index: 90; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: white; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.18); transition: opacity .25s, transform .2s, background .15s; }
.back-to-top:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.back-to-top[hidden] { display: none !important; }
@media (max-width: 600px) { .back-to-top { right: .8em; bottom: .8em; width: 40px; height: 40px; } }

.cookie-banner { position: fixed; left: 1em; right: 1em; bottom: 1em; z-index: 9999; background: var(--color-primary); color: white; padding: 1em 1.25em; box-shadow: 0 6px 28px rgba(0,0,0,.25); max-width: 980px; margin: 0 auto; }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner { display: flex; align-items: center; gap: 1.5em; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 260px; font-size: .9em; }
.cookie-banner-text strong { display: block; margin-bottom: .25em; font-size: 1em; }
.cookie-banner-text p { margin: 0; line-height: 1.5em; opacity: .92; }
.cookie-banner-text a { color: white; border-bottom: 1px solid rgba(255,255,255,.5); }
.cookie-banner-btn { background: var(--color-accent) !important; color: white !important; flex-shrink: 0; }
.cookie-banner-btn:hover { background: var(--color-accent-dark) !important; }

.share-buttons { display: flex; gap: .5em; align-items: center; margin: 1em 0 0; padding: 1em 0 0; border-top: 1px solid var(--color-border-light); flex-wrap: wrap; justify-content: center; }
.share-buttons-label { font-size: .85em; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .08em; margin-right: .25em; }
.share-btn { display: inline-flex; align-items: center; gap: .35em; padding: .45em .85em; background: var(--color-bg-alt); color: var(--color-primary); border: 1px solid var(--color-border-light); font-size: .85em; font-weight: 500; border-radius: 4px; text-decoration: none !important; transition: all .15s; }
.share-btn:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Equal-height card flex */
.article-grid, .points-grid, .expert-grid, .winery-grid, .awards-grid { align-items: stretch; }
.article-card, .points-card, .expert-card, .winery-card, .awards-card { display: flex; flex-direction: column; height: 100%; }
.article-body, .expert-meta, .awards-meta { flex: 1; }
.winery-card-meta { margin-top: auto; }

/* Utils */
.dev-error { background: #fbeaea; color: #851b1b; padding: 1em; font-size: .85em; overflow-x: auto; text-align: left; white-space: pre-wrap; }
.muted, .text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

.contact-info-block p { margin: 0; }
.contact-info-block a { color: var(--color-primary); }
