/*
Theme Name: Weingut Ubl-Doschek
Author: LAGOTA werbeagentur – Michael Hudritsch
Author URI: https://www.lagota.at
Description: Responsives, DSGVO-freundliches WordPress-Theme (Bootstrap-ready) – Rotwein-Edition.
Version: 1.2.0
License: GPL-2.0-or-later
Text Domain: weingut-ubl-doschek
*/

/* =======================
   Root Variablen
   ======================= */
:root{
  --salbei: #BFC5A1;        /* Menü & Footer */
  --dunkelgruen: #1E3C31;
  --offwhite: #F7F6ED;      /* Seitenhintergrund */
  --text: #222222;
  --header-bg-rgb: 191, 197, 161; /* entspricht #BFC5A1 in RGB */
  --header-bottom-gap: 0.4rem;    /* unteres Padding vom Header */
  --dropdown-gap: 0.40rem;        /* Desktop: Abstand Link → Dropdown */
}

/* =======================
   Basislayout & Typografie
   ======================= */
html{
  scroll-behavior:smooth;
  overflow-y: scroll; /* Scrollbar immer reserviert */
}
body{
  background-color: var(--offwhite);
  color: var(--text);
  font-family: "Lato", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.85;
  font-size: 17px;
  letter-spacing: 0.01em;
}

/* H5 Footer-Schrift */
h5 {
  font-family: "Lato", Arial, sans-serif;
  font-weight: 300;
  color: var(--text);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.8em;
  text-align: center;
}

h4 { font-size: 1.6rem; font-weight: 100; color: #3f3f3f; letter-spacing: 0.1em; margin-top: .5rem; margin-bottom: .5rem; 
}

/* Überschriften */
h1, h2, h3, h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.8em;
}
h1 {
  font-weight: 300;
  color: rgba(30,60,49,0.9);
  font-size: 3.1rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h2 { font-size: 2.1rem; color: #2f4739; margin-bottom: 1.2rem; letter-spacing: 0.03em; }
h3 { font-size: 1.5rem; color: #334d3b; margin-bottom: 1rem; letter-spacing: 0.02em; }
h6 /* Footer Brand Name */ 
{ font-weight: 600;
  font-size: 0.95rem;
  color: #111;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased; }

/* Absatz */
p {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.67;
  letter-spacing: 0.08em;
  color: #4f4f4f;
  margin-bottom: 1.5rem;
}

/* Container */
.container{ width:min(1200px, 92%); margin-inline:auto; }
.container-narrow{ width:min(900px, 92%); margin-inline:auto; }

/* Responsive Typo */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
}

/* =======================
   Header & Navigation
   ======================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  background: rgba(161, 171, 117, 0.65);
  backdrop-filter: saturate(120%);
  -webkit-backdrop-filter: saturate(120%);
  border-bottom: 0px solid rgba(0,0,0,0.05);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.03); }

/* Gruppe im Header */
.header-container {
  display: flex;
  justify-content: center;
  padding: 5.4rem 0 0.4rem;
}
.header-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

/* Titel */
.weingut-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: #1E3C31;
  margin: 0;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  margin-bottom: -6.4rem;
}

/* Menüzeile */
.menu-row {
  display: flex;
  align-items: flex-end;
  gap: 3rem;             /* Desktop: Abstand Menü ↔ Logo */
  position: relative;    /* Referenz für Dropdown-Position */
}

/* Menü */
.nav-main {
  display: flex;
  align-items: flex-end;
  gap: 3rem;             /* Desktop: Abstand zwischen Hauptpunkten */
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-main > li { position: static; }
.nav-main > li > a {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.85;
  padding: 0.1rem 0 0.12rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

 /* Nur der wirklich aktive Menüpunkt soll grün sein */
.nav-main > li.current-menu-item > a {
  color: #2f4739;
}

/* Elternpunkte (Weingut etc.) wieder neutral */
.nav-main > li.current_page_parent > a,
.nav-main > li.current_page_ancestor > a,
.nav-main > li.current-menu-ancestor > a {
  color: #fff;
}

/* Unterseiten im Dropdown ebenfalls grün */
.nav-main li ul li.current-menu-item > a,
.nav-main li ul li.current_page_item > a {
  color: #2f4739;
}


/* Desktop: Dropdown */
.nav-main > li{ position: relative; }
.nav-main > li::after{
  content:"";
  position:absolute;
  left:0; right:0;
  top:100%;
  height: var(--dropdown-gap);
  pointer-events: auto;
}

/* Nur Desktop Hover & Dropdown */
@media (min-width: 901px) {
  .nav-main > li > a:hover,
  .nav-main li ul li a:hover { color: #2f4739; }

  .nav-main li ul {
    display: none;
    position: absolute;
    top: calc(100% + var(--dropdown-gap));
    left: 50%;
    transform: translateX(-50%);
    background-color: #AFB78A;
    border: none;
    list-style: none;
    padding: 0.8rem 1.1rem;
    margin: 0;
    min-width: 9rem;
    width: max-content;
    max-width: 80vw;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 3000;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-main > li:hover > ul,
  .nav-main li ul:hover {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .nav-main li ul li{ margin: 0.25rem 0; }
  .nav-main li ul li a{
    display:block;
    padding: 0.25rem 0.3rem;
    line-height: 1;
    font-size: 1rem;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s ease, color .2s ease;
  }
}

/* =======================
   Language Switcher Styling
   ======================= */

.lang-item img {
    width: 18px;      
    height: auto;
    filter: grayscale(100%);
}

.lang-item.current-lang img {
    filter: grayscale(0%) !important;
}

.lang-item img:hover{
  filter: grayscale(0%)
}

@media (min-width: 1200px) {
  .menu-item-1021-en, .menu-item-1022-en{
      margin-left: calc(-3rem + 14px) !important;
  }
}

@media (min-width: 901px) {
  .menu-item-1021-en, .menu-item-1022-en{
    margin-left: calc(-1.5rem + 14px);
}
}

/* Logo */
.logo-wrap { display: flex; align-items: flex-end; }
.logo-ud {
  height: 133px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}

/* feine Linie unter Header */
.site-header + .hero,
.site-header + * { border-top: 1px solid rgba(255,255,255,0.6); }

/* =======================
   Hero / Sections
   ======================= */
.hero{
  margin-top: 4px;
  position:relative;
  min-height:70vh;
  overflow:hidden;
  background-color: var(--offwhite);
}
.hero .slide{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1s ease; }
.hero .slide.active{ opacity:1; }
.hero h1{
  font-family:"Cormorant Garamond", serif;
  font-weight:400;
  font-size:2.6rem;
  letter-spacing:0.02em;
  color:#3d3d3d;
  text-align:center;
  margin-top:3rem;
  margin-bottom:2rem;
}
.section{ padding:4rem 0; }
.section-lg{ padding:6rem 0; }
.lead-quiet{ color:#4b4b4b; }
.img-soft{ display:block; width:100%; height:auto; border-radius:0; }

/* =======================
   Footer
   ======================= */
.footer {
  background: rgba(161, 171, 117, 0.65);
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgba(0,0,0,.05);
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 0.84rem;
  line-height: .4;
  letter-spacing: 0.01em;
  text-align: center;
}
.footer .footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 0 2rem;
  align-items: center;
}
.footer .footer-inner::before,
.footer .footer-inner::after {
  content: "";
  position: absolute;
  top: 5%;
  bottom: 5%;
  width: 1px;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.footer .footer-inner::before { left: calc((100% / 3)); }
.footer .footer-inner::after  { left: calc((2 * (100% / 3))); }
.footer p, .footer a, .footer strong, .footer h5 {
  font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; margin: 0 0 0.7rem;
}
.footer .brand-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
.footer a { text-decoration: none; transition: opacity .2s ease; }
.footer a:hover { opacity: .7; text-decoration: underline; }
.footer .logos { display: flex; align-items: right; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.footer .logos img { height: 34px; width: auto; opacity: 0.95; }

@media (max-width: 900px) {
  .footer .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem; }
  .footer .footer-inner::before, .footer .footer-inner::after { display: none; }
  .footer .logos { justify-content: center; }
  .footer { text-align: center; }
}

/* ===== FINAL FIX: Footer Letterspacing kompakter ===== */
.footer,
.footer * {
  letter-spacing: 0.03em !important;  /* deutlich enger, sichtbar kompakter */
}

/* =======================
   Accessibility
   ======================= */
.skip-link{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ position: static; width:auto; height:auto; padding:.5rem 1rem; background:#000; color:#fff; }

/* =======================
   Static Hero (Gutenberg)
   ======================= */
.page .entry-title,
.page h1.entry-title,
.entry-header .entry-title,
.wp-block-post-title,
h1.mb-4 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hero-static { margin-top: 0; border-top: 1px solid rgba(255,255,255,0.6); }
.hero-static.wp-block-cover {
  width: 100vw;
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  padding: 0;
  min-height: 70vh;
  border-top: 1px solid rgba(255,255,255,0.6);
}
.hero-static img, .hero-static .wp-block-cover__image-background {
  object-fit: cover; object-position: center center;
}
.hero-static::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), rgba(0,0,0,0.05));
  z-index: 1;
}
.page .entry-content { margin-top: 0 !important; padding-top: 0 !important; }
.page .entry-content > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
.site-content { margin-top: 0 !important; padding-top: 0 !important; }
.site-content > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
.site-header + .site-content > *:first-child { margin-top: 2px !important; }

@media (max-width: 900px) {
  .site-header + .site-content > *:first-child { margin-top: 6px !important; }
}
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.wp-block-image.alignfull img { width: 100%; height: auto; object-fit: contain; object-position: center; }
.site-header + .wp-block-image.alignfull:first-child { margin-top: 4px !important; border-top: 1px solid rgba(255,255,255,0.6); }

/* ===============================
   HERO SLIDER
   =============================== */
.hero-slider {
  position: relative; width: 100vw; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw; overflow: hidden; height: 50vw; max-height: 600px;
}
.hero-slider .slides { display: flex; height: 100%; width: 100%; transition: transform 1s ease-in-out; }
.hero-slider .slide { flex: 0 0 100%; height: 100%; background-size: cover; background-position: center center; }
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; opacity: 0.8; transition: opacity 0.3s ease; z-index: 10;
}
.hero-prev svg, .hero-next svg { width: 80px; height: 70px; stroke-width: 0.8; }
.hero-prev { left: 4.5rem; } .hero-next { right: 4.5rem; }

/* =======================================================
   RESPONSIVE NAVIGATION 
   ======================================================= */
@media (max-width: 900px) {

  /* Titel / Stack */
  .site-header .weingut-title{
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
    text-align: center;
    color: #1E3C31;
    margin-top: -3.2rem;
  }
  .site-header .header-stack{
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }

  /* Menüzeile (behalte deinen optischen Shift) */
  .site-header .menu-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.4rem 1rem;
    box-sizing: border-box;
    transform: translateX(-1px) !important;
  }

/* Burger fixiert an seiner Position – keine horizontale Verschiebung */
.site-header .menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: 0.3rem;       
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  color: transparent;  
  font-size: 0;        
  transform-origin: center center;
  will-change: transform;
  position: relative;
  flex-shrink: 0;           
}

/* Linienelement zentriert, ohne Layout-Effekt */
.site-header .menu-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 -6px 0 0 #fff, 0 6px 0 0 #fff;
}

/* Drehung exakt zentriert */
.site-header .menu-toggle.open {
  transform: rotate(90deg);
  opacity: 0.85;
}

  /* Logo mobil */
  .logo-ud{ height: 74px; width: auto; }

  /* Panel (geschlossen) */
  .nav-main{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(175,183,138,0.96);
    align-items: center;
    text-align: center;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    gap: 0.6rem !important;   
    transform: translateY(-6px);
    pointer-events: none;
    z-index: 3000;
  }
  /* Panel (offen) */
  .nav-main.active{
    opacity: 1;
    transform: translateY(0);
    max-height: 80vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 15rem);
    pointer-events: auto;
    padding: 0.5rem 0;
  }

  /* Hauptpunkte */
  .nav-main > li{
    list-style: none;
    width: 100%;
    max-width: 520px;
    padding: 0rem 0;
    position: relative;
    border: none;
  }
  .nav-main > li > a{
    display: inline-block;
    width: 100%;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 300;
    text-decoration: none;
  }

  /* Pfeil rechts (ohne Sprung) */
  .submenu-toggle{
    position: absolute;
    right: 0.5rem;
    top: 1rem; 
    transform: translateY(-50%) rotate(-270deg);
    background: none; border: none; color: #fff; cursor: pointer;
    width: 4rem; height: 4rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0;
  }
  .submenu-toggle svg{
    width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none;
  }
  .nav-main li.open > .submenu-toggle{ transform: translateY(-50%) rotate(270deg); }

  /* Untermenüs (kein Rahmen/Box, zentriert, nur via .open sichtbar) */
  .nav-main li ul{
    position: static !important;
    display: none;
    margin: 0.1rem 0 0rem;
    padding: 0;
    list-style: none;
  }
  .nav-main li.open > ul{ display: block !important; }
  .nav-main li ul li{ margin: -0.2rem 0; }
  .nav-main li ul li a{
    display: block; color: #ffffff; font-size: 1rem; font-weight: 300;
    text-decoration: none; text-align: center; padding: 0rem 0;
    transition: color 0.2s ease;
  }

}

@media (max-width: 900px) {
    .nav-main {
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    
    /* Alle normalen Menüpunkte weiterhin volle Breite = simuliert column */
    .nav-main > li {
        flex: 0 0 100% !important;
    }
    
    /* Nur die Flaggen: schmale Breite = passen nebeneinander */
    .nav-main > li.lang-item {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 6px !important;
    }

.nav-main > li.lang-item-de {
    margin-left: auto !important;
}
.nav-main > li.lang-item-en {
    margin-right: auto !important;
}
}

/* =======================
   Desktop-Sicherheit
   ======================= */
@media (min-width: 901px) {
  .menu-toggle { display: none !important; }
  .nav-main {
    transition: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: static !important;
    padding: 0 !important;
    gap: 1.5rem !important;     
    display: flex !important;
  }
  .submenu-toggle { display: none !important; }
}

@media (min-width: 1200px) {
  .menu-toggle { display: none !important; }
  .nav-main {
    gap: 3rem !important;   
  }

}

.logo-desktop { display: block; }
.logo-mobile  { display: none; }
@media (max-width: 900px) {
  .logo-desktop { display: none; }
  .logo-mobile  { display: block; }
}

/* =======================
   Footer Widget
   ======================= */

.footer .footer-col { 
  display: block;
}

.footer .widget { margin: 0; }
.footer .widget + .widget { margin-top: 1rem; } 

.footer .widget-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
  letter-spacing: 0.04em;
  margin: 0 0 0.7rem;
}

/* Navigations-Widget im linken Bereich (z. B. Bezugsquellen, Downloads …) */
.footer .widget_nav_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;            
}
.footer .widget_nav_menu a {
  text-decoration: none;
}

/* Bilder/Logos im rechten Bereich – nutzt deine bestehende .logos-Klasse */
.footer .logos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.footer .logos img { height: 34px; width: auto; opacity: .95; }

/* Mobile bleibt wie bei dir: eine Spalte, keine Trennlinien */
@media (max-width: 900px) {
  .footer .footer-inner::before,
  .footer .footer-inner::after { display: none; }
}

/* =======================
   Kontaktformular - Contact Form 7 - css
   ======================= */

.contact-form-grid p {
  width: 100%;
}

.contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: #1E3C31;
  letter-spacing: 0.01em;
}

.contact-form-grid .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-form-grid .form-col {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form-grid label {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  color: #1E3C31;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Eingabefelder */
.contact-form-grid input[type="text"],
.contact-form-grid input[type="email"],
.contact-form-grid input[type="tel"],
.contact-form-grid textarea {
  background: rgba(175, 183, 138, 0.4);
  border: none;
  padding: 0.3rem 1rem;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  color: #1E3C31;
  border-radius: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
  outline: none;
  background: rgba(175, 183, 138, 0.6);
  box-shadow: inset 0 0 0 1px rgba(30, 60, 49, 0.25);
}

/* CONTACT FORM BUTTON – Weingut-Stil (ohne Bewegung)*/

.contact-form-grid input[type="submit"] {
  display: inline-block;
  width: auto;
  min-width: 180px;
  background-color: var(--salbei);
  border: 1px solid rgba(30, 60, 49, 0.3);
  color: var(--dunkelgruen);
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 2rem;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border-radius: 0;
}

/* Schatten des buttons weg*/
input.wpcf7-submit {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hover-Effekt (ruhig, keine Bewegung) */
.contact-form-grid input[type="submit"]:hover {
  background-color: rgba(161,171,117,0.8);
  color: var(--dunkelgruen);
}


/* Mobile: volle Breite */
@media (max-width: 900px) {
  .contact-form-grid input[type="submit"] {
    width: 100%;
  }
}

/* Textarea */
.contact-form-grid textarea {
  min-height: 100px;
  height: 120px;
  resize: vertical;
}

/* Mobile: 1 Spalte */
@media (max-width: 900px) {
  .contact-form-grid .form-row {
    flex-direction: column;
  }
}

/* MESSAGE-FELD – volle Breite trotz Flexbox */
.contact-form-grid .form-row:last-child,
.contact-form-grid .form-row:nth-last-child(2),
.contact-form-grid textarea {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Sicherstellen, dass die Wrapper-Spans keine Breite begrenzen */
.wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Optional: Abstand zum Button */
.wpcf7-form .form-row:last-child {
  margin-bottom: 1.2rem;
}

/* Einheitliche Schrift im Kontaktformular */

.contact-form-grid,
.contact-form-grid * {
  font-family: "Lato", Arial, sans-serif !important;
  font-weight: 300 !important;
  font-size: 1rem !important;
  letter-spacing: 0.01em !important;
  color: #4f4f4f !important; /* identisch mit deinem Fließtext */
  line-height: 1.85 !important;
}

/*   Kontaktformular – Felder im Mobile zentrieren */
@media (max-width: 900px) {
  .contact-form-grid .form-col {
    align-items: center !important;
    text-align: center !important;
  }

  .contact-form-grid label {
    text-align: center !important;
  }

  .contact-form-grid input[type="text"],
  .contact-form-grid input[type="email"],
  .contact-form-grid input[type="tel"],
  .contact-form-grid input[type="text"],
  .contact-form-grid input[type="url"],
  .contact-form-grid input[type="number"],
  .contact-form-grid select {
    text-align: center !important;
  }
}

/*   Kein horizontaler scrollbar */
html {
    overflow-x:hidden;
}

/* ============================================
   Trennerlinien weniger Abstand vorher und nachher
   ============================================ */

hr.wp-block-separator.trenner-klein {
  border-top: 1px solid;
}


/* ============================================
   Weniger weißer Rand um die Wein- und Saftblöcke
   ============================================ */


.tight-column {
  padding: 1.4rem;         
}

/* ============================================
   Hyperlinks sind nicht blau sonder grün und nicht unterstrichen
   ============================================ */

.gruene-linkfarbe a {
  color: #1E3C31;
  text-decoration: none;
}

.gruene-linkfarbe a:hover {
  color: #BFC5A1;
}


/* ============================================
   BaguetteBox Lightbox – Weingut-Stil mit Rahmen
   ============================================ */

/* Hintergrundfarbe der Lightbox */
#baguetteBox-overlay {
  background-color: #F7F6ED !important; /* Cremefarben wie Body */
  transition: background-color 0.3s ease !important;
}

/* Nur das Bild mit Margin für Rahmen-Effekt */
#baguetteBox-overlay img {
  margin: 70px !important; /* Erzeugt den "Rahmen" - reduziert auf 70px */
  max-width: calc(100% - 140px) !important;
  max-height: calc(100vh - 140px) !important;
  width: auto !important;
  height: auto !important;
}

/* Container bleibt unverändert */
#baguetteBox-overlay .full-image {
  background: transparent !important;
  box-shadow: none !important;
}

/* Pfeile und Buttons einfärben */
.baguetteBox-button {
  color: #2F4739 !important; /* dunkles Weingut-Grün */
  background: none !important;
  opacity: 0.8 !important;
}

.baguetteBox-button:hover {
  opacity: 1 !important;
}

/* Mobile Anpassung - kleinerer Rahmen */
@media (max-width: 900px) {
  #baguetteBox-overlay img {
    margin: 40px !important;
    max-width: calc(100% - 80px) !important;
    max-height: calc(100vh - 80px) !important;
  }
}

/* Sehr kleine Bildschirme */
@media (max-width: 600px) {
  #baguetteBox-overlay img {
    margin: 20px !important;
    max-width: calc(100% - 40px) !important;
    max-height: calc(100vh - 40px) !important;
  }
}


/* ============================================
   CPT Weine Layout
   ============================================ */


.wein-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  background-color: #ffffff;
  margin-bottom: 4rem;
  padding: 1.5rem;
}

.wein-bild img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.wein-text {
  color: #000000;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  text-align: center;
}

.wein-name {
  color: #BFC5A1;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

.wein-sub {
  color: #BFC5A1;
  font-size: 1rem;
  margin-bottom: 0rem;
}

.wein-jahrgang{
  color: #BFC5A1;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.wein-beschreibung {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.wein-daten {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.wein-pdf a {
  color: #7a8462;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.wein-pdf a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .wein-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wein-bild img {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* ============================================
   Gutenberg Saft Box
   ============================================ */


/* Gutenberg: Box wie die CPT-Weinbox */
.wp-block-columns.saft-box {
  /* Rahmenfläche / Weißraum wie .wein-card */
  background-color: #ffffff;
  padding: 1.5rem;
  margin-bottom: 4rem;

  /* Grid-Feeling: gleiche Abstände und vertikale Mitte */
  gap: 2.5rem;
  align-items: center;
}

/* Linke Spalte: Bild soll genauso laufen wie in .wein-card */
.wp-block-columns.saft-box > .wp-block-column:first-child img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* Rechte Spalte: Zentriert und gleiche Schriftführung */
.wp-block-columns.saft-box > .wp-block-column:last-child {
  text-align: center;
  font-family: "Lato", Arial, sans-serif;
  font-weight: 300;
  color: #000; /* wie .wein-text */
}

/* H2 (Titel) – exakt wie deine .wein-name */
.wp-block-columns.saft-box .saft-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 2.1rem;
  letter-spacing: 0.03em;
  color: #BFC5A1 !important; /* gleiche Salbei-Farbe */
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

/* Subline (z. B. „Alles Holler“, „2024“, „naturtrüb“ …) */
.wp-block-columns.saft-box .saft-sub {
  color: #BFC5A1;
  font-size: 1rem;
  margin: 0 0 1.5rem;
  line-height: 1.4;
}

/* Fließtext rechts – gleiche Optik wie in .wein-card */
.wp-block-columns.saft-box p {
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #4f4f4f;
  margin-bottom: 1.2rem;
}

/* Optional: Datenliste wie bei Wein (falls du dort <ul> nutzt) */
.wp-block-columns.saft-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile identisch zur Weinbox: Bild über Text */
@media (max-width: 900px) {
  .wp-block-columns.saft-box {
    gap: 1.5rem;
  }
  .wp-block-columns.saft-box > .wp-block-column:first-child img {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Gutenberg: engerer Abstand für Wein-/Saft-Boxen */
.wp-block-columns.saft-box,
.wp-block-columns.saftblock,
.wp-block-columns.tight-column {
  display: flex !important;           /* überschreibt das Grid-Verhalten */
  align-items: center !important;     /* vertikale Ausrichtung wie bei .wein-card */
  justify-content: center;
  column-gap: 3.5rem !important;      /* Sicherheitshalber */
}


/* ============================================
   Anchor Links Scroll Margin
   ============================================ */


[id] {
    scroll-margin-top: 262px;
}