/*
Theme Name:   WeinKG Vinum – Storefront Child
Theme URI:    https://weinkg.de
Description:  Verkaufsförderndes, barrierefreies WooCommerce-Child-Theme für den Weinvertrieb Matthias Esser. WCAG 2.1 AA / BFSG-konform gestaltet: Kontraste, Fokus-Zustände, Skip-Links, reduzierte Bewegung, Mindest-Touchflächen. Inkl. Widerrufsbutton, Altersabfrage und Trust-Elementen.
Author:       WeinKG / erstellt mit Claude
Template:     storefront
Version:      1.1.20
License:      GNU General Public License v2 or later
Text Domain:  weinkg-vinum
*/

/* =========================================================
   1. DESIGN-TOKENS  („Weinkarte“-Designsystem)
   Palette: Spätburgunder / Kreidepapier / Rebgold / Schiefer
   Alle Textfarben erfüllen WCAG-AA-Kontrast auf ihrem Hintergrund.
   ========================================================= */
:root {
  --wkg-bordeaux:      #6E2230;  /* Primär – Navigation/Preise (aus Logo)   */
  --wkg-bordeaux-dark: #551925;  /* Hover / aktiver Zustand                 */
  --wkg-teal:          #2F6E6E;  /* CTA-Buttons „In den Warenkorb“ (Bestand)*/
  --wkg-teal-dark:     #245656;  /* Button-Hover                            */
  --wkg-sand:          #CFB78C;  /* Holz-/Sandhintergrund (Seitenrand)      */
  --wkg-paper:         #F5F3F0;  /* Heller Content-Bereich                  */
  --wkg-ink:           #33291F;  /* Fließtext / Überschriften               */
  --wkg-gold:          #9A7A2E;  /* Eyebrow-Akzent (AA-safe)                */
  --wkg-gold-soft:     #C9A85C;  /* dekorative Linien                       */
  --wkg-green:         #3F5233;  /* Bio/Vegan-Badges                        */
  --wkg-white:         #FFFFFF;
  --wkg-line:          #E6DECF;

  --wkg-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wkg-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wkg-radius: 10px;
  --wkg-shadow: 0 2px 12px rgba(43, 36, 32, 0.08);
  --wkg-focus: 3px solid #1A4FA0; /* deutlich sichtbarer Fokusring */
  --wkg-maxw: 1200px;             /* gemeinsame Breite: Header-Menü = Content */
}

/* Header, Navigation und Content teilen sich exakt dieselbe Breite (Punkt 4) */
.col-full {
  max-width: var(--wkg-maxw) !important;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* =========================================================
   2. BASIS & TYPOGRAFIE
   rem-basiert: Text bleibt bis 200 % zoombar (BFSG/WCAG 1.4.4)
   ========================================================= */
body {
  background: var(--wkg-sand);
  color: var(--wkg-ink);
  font-family: var(--wkg-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Inhaltsflächen auf hellem „Papier“ vom Sandhintergrund abheben.
   Panel sitzt auf .content-area innerhalb von .col-full -> gleiche Breite wie das Menü.
   Punkt 1: content-area füllt col-full komplett aus (kein 68%-Spaltenlayout). */
.content-area,
.site-main > .storefront-full-width-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: var(--wkg-paper);
  border-radius: var(--wkg-radius);
  box-shadow: 0 6px 20px rgba(58, 42, 34, 0.15);
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
/* Falls eine Sidebar vorhanden ist: unter den Content statt daneben */
#secondary.widget-area {
  width: 100% !important;
  float: none !important;
  margin-top: 1.5rem;
}

h1, h2, h3, .site-title, .woocommerce-loop-product__title {
  font-family: var(--wkg-font-display);
  color: var(--wkg-ink);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

a { color: var(--wkg-bordeaux); text-decoration-thickness: from-font; }
a:hover { color: var(--wkg-bordeaux-dark); }

/* Eyebrow-Label (Kellerbuch-Stil) */
.wkg-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wkg-gold);
  border-bottom: 1px solid var(--wkg-gold-soft);
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}

/* =========================================================
   3. BARRIEREFREIHEIT (BFSG / WCAG 2.1 AA)
   ========================================================= */

/* 3.1 Sichtbarer Fokus für ALLE interaktiven Elemente (2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--wkg-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* 3.2 Skip-Link sichtbar bei Tastaturfokus (2.4.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--wkg-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* 3.3 Mindest-Touchfläche 44×44 px (2.5.5) */
button, .button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button,
.site-header-cart .cart-contents {
  min-height: 44px;
  min-width: 44px;
}

/* 3.4 Reduzierte Bewegung respektieren (2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3.5 Nur-Screenreader-Text */
.wkg-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   4. HEADER & NAVIGATION
   ========================================================= */
.site-header {
  background: var(--wkg-white);
  border-bottom: none;
  position: relative;
  margin-bottom: 2em;
}
/* Storefront-Homepage-spezifische Regel gezielt überschreiben */
.home.page:not(.page-template-template-homepage) .site-header {
  margin-bottom: 2em !important;
}
/* Footer-Infozeile ohne oberen/unteren Innenabstand */
.site-info {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 4.1 Menüleiste als durchgehende Bordeaux-Bar (volle Breite), Inhalt auf
   Content-Breite zentriert. Flexbox, EINZEILIG: Menü links, Warenkorb rechts,
   alles vertikal mittig; Hover/Active füllen die gesamte Bar-Höhe. */
.storefront-primary-navigation {
  background: var(--wkg-bordeaux);   /* ruhiges, sattes Bordeaux – kein Aquarell-Wash */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: none;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-left: max(2rem, calc((100vw - var(--wkg-maxw)) / 2 + 2rem));
  padding-right: max(2rem, calc((100vw - var(--wkg-maxw)) / 2 + 2rem));
}
/* Menü & Warenkorb sauber über dem Bordeaux */
.storefront-primary-navigation .main-navigation,
.storefront-primary-navigation .site-header-cart {
  position: relative;
  z-index: 2;
}
.main-navigation {
  background: transparent;
  width: auto;
  position: static;
  left: auto;
  transform: none;
  box-shadow: none;
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}
.main-navigation > div {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}
/* Nur die oberste Menüebene ist die horizontale Leiste (einzeilig) */
.main-navigation > div > ul,
.main-navigation > ul {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.main-navigation > div > ul > li,
.main-navigation > ul > li {
  display: flex;
  align-items: stretch;
  position: relative;
}
.main-navigation ul li a {
  color: #F3E7DA;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
  padding: 0 1.15rem;
  display: flex;
  align-items: center;
  min-height: 60px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 0 transparent;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
/* Dropdowns wieder vertikal und normal gepolstert */
.main-navigation ul.sub-menu {
  display: block;
  background: var(--wkg-bordeaux-dark);
}
.main-navigation ul.sub-menu li { display: block; }
.main-navigation ul.sub-menu li a {
  min-height: 0;
  padding: 0.55rem 1.15rem;
  white-space: normal;
}
/* Hover/Focus & aktive Seite: gemalter Pinselstrich-Rahmen rund um den Menüpunkt.
   Der Ring ist eine Maske -> Farbe je Zustand steuerbar (Hover: Trauben-Rosé,
   Active: gedecktes Bordeaux). Form variiert pro Menüpunkt (nth-child). */
.main-navigation ul li a { position: relative; }
.main-navigation ul li a::after {
  content: "";
  position: absolute;
  inset: 3px 0;                       /* etwas weiter um den Punkt herum */
  background-color: #E4A7C6;          /* Standard = Hover-Farbe (helles Trauben-Rosé) */
  opacity: 0;
  transform: rotate(-0.6deg);
  transition: opacity 0.18s ease;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.6' d='M8,9 C40,3 84,4 112,9 C117,18 116,29 110,36 C78,41 40,41 10,35 C4,27 3,17 8,9'/%3E%3Cpath stroke-width='1.5' opacity='0.6' d='M12,7 C42,12 80,3 108,10 C114,19 113,30 108,34 C78,38 40,42 12,33 C6,25 7,15 12,7'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.6' d='M8,9 C40,3 84,4 112,9 C117,18 116,29 110,36 C78,41 40,41 10,35 C4,27 3,17 8,9'/%3E%3Cpath stroke-width='1.5' opacity='0.6' d='M12,7 C42,12 80,3 108,10 C114,19 113,30 108,34 C78,38 40,42 12,33 C6,25 7,15 12,7'/%3E%3C/g%3E%3C/svg%3E");
}
/* pro Menüpunkt eine andere Pinsel-/Wackel-Form + leicht andere Drehung */
.main-navigation ul li:nth-child(5n+2) a::after {
  transform: rotate(0.9deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.7' d='M7,11 C36,4 70,13 100,6 C114,4 118,16 114,27 C116,35 92,40 60,37 C34,41 10,39 6,31 C2,24 3,16 7,11'/%3E%3Cpath stroke-width='1.5' opacity='0.55' d='M14,8 C40,14 78,5 104,12 C112,20 110,31 104,35 C80,39 44,41 16,34 C7,27 8,14 14,8'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.7' d='M7,11 C36,4 70,13 100,6 C114,4 118,16 114,27 C116,35 92,40 60,37 C34,41 10,39 6,31 C2,24 3,16 7,11'/%3E%3Cpath stroke-width='1.5' opacity='0.55' d='M14,8 C40,14 78,5 104,12 C112,20 110,31 104,35 C80,39 44,41 16,34 C7,27 8,14 14,8'/%3E%3C/g%3E%3C/svg%3E");
}
.main-navigation ul li:nth-child(5n+3) a::after {
  transform: rotate(-1.2deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.5' d='M9,8 C44,5 82,6 111,10 C116,20 114,29 108,35 C74,41 38,39 11,36 C4,28 4,15 9,8'/%3E%3Cpath stroke-width='1.6' opacity='0.6' d='M10,6 C48,11 76,2 106,9 C114,18 112,30 106,33 C74,39 40,41 12,32 C4,24 6,13 10,6'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.5' d='M9,8 C44,5 82,6 111,10 C116,20 114,29 108,35 C74,41 38,39 11,36 C4,28 4,15 9,8'/%3E%3Cpath stroke-width='1.6' opacity='0.6' d='M10,6 C48,11 76,2 106,9 C114,18 112,30 106,33 C74,39 40,41 12,32 C4,24 6,13 10,6'/%3E%3C/g%3E%3C/svg%3E");
}
.main-navigation ul li:nth-child(5n+4) a::after {
  transform: rotate(1.4deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.8' d='M6,10 C38,2 84,11 114,7 C118,17 117,30 111,36 C76,42 36,40 9,36 C2,28 2,16 6,10'/%3E%3Cpath stroke-width='1.4' opacity='0.5' d='M13,7 C44,13 82,4 107,11 C114,20 112,30 107,35 C78,40 42,43 15,33 C6,26 7,14 13,7'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.8' d='M6,10 C38,2 84,11 114,7 C118,17 117,30 111,36 C76,42 36,40 9,36 C2,28 2,16 6,10'/%3E%3Cpath stroke-width='1.4' opacity='0.5' d='M13,7 C44,13 82,4 107,11 C114,20 112,30 107,35 C78,40 42,43 15,33 C6,26 7,14 13,7'/%3E%3C/g%3E%3C/svg%3E");
}
.main-navigation ul li:nth-child(5n+5) a::after {
  transform: rotate(-0.4deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.5' d='M8,9 C42,4 80,12 110,6 C116,15 116,29 109,35 C80,41 40,40 10,36 C3,27 3,16 8,9'/%3E%3Cpath stroke-width='1.6' opacity='0.55' d='M11,7 C46,12 78,3 105,10 C113,19 111,30 106,34 C76,39 38,42 13,33 C6,25 7,14 11,7'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='2.5' d='M8,9 C42,4 80,12 110,6 C116,15 116,29 109,35 C80,41 40,40 10,36 C3,27 3,16 8,9'/%3E%3Cpath stroke-width='1.6' opacity='0.55' d='M11,7 C46,12 78,3 105,10 C113,19 111,30 106,34 C76,39 38,42 13,33 C6,25 7,14 11,7'/%3E%3C/g%3E%3C/svg%3E");
}
.main-navigation ul li a:hover,
.main-navigation ul li a:focus,
.main-navigation ul li a:focus-visible {
  color: #FFFFFF;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}
/* Hover: helles Trauben-Rosé */
.main-navigation ul li a:hover::after,
.main-navigation ul li a:focus::after,
.main-navigation ul li a:focus-visible::after {
  opacity: 1;
  background-color: #E4A7C6;
}
/* Aktive Seite: gedecktes Bordeaux, dauerhaft markiert */
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-parent > a,
.main-navigation ul li.current_page_item > a {
  color: #FFFFFF;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}
.main-navigation ul li.current-menu-item > a::after,
.main-navigation ul li.current-menu-parent > a::after,
.main-navigation ul li.current_page_item > a::after {
  opacity: 1;
  background-color: #9E5A68;
}
.site-header .main-navigation ul.menu ul.sub-menu {
  background: var(--wkg-bordeaux-dark);
}

/* Punkt 2: Warenkorb sitzt in der Bordeaux-Navigationsleiste -> helle Schrift.
   Kontrast helle Creme (#F3E7DA) auf Bordeaux (#6E2230): ~8:1 (WCAG AA erfüllt).
   Punkt 4: Warenkorb doppelt so groß. */
/* Warenkorb: als Flex-Element vertikal mittig in der Bar (kein Float). */
.storefront-primary-navigation .site-header-cart {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  float: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.storefront-primary-navigation .site-header-cart li { list-style: none; margin: 0; }
.storefront-primary-navigation .site-header-cart .cart-contents,
.site-header-cart .cart-contents {
  color: #F3E7DA !important;
  font-weight: 600;
  font-size: 1.0625rem !important;   /* = Menüpunkte */
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.storefront-primary-navigation .site-header-cart a,
.site-header-cart a { color: #F3E7DA !important; }
/* Warenkorb-Icon dezent größer als der Text, aber in der Linie */
.site-header-cart .cart-contents::before {
  font-size: 1.35rem !important;
  vertical-align: middle;
  line-height: 1;
}
.site-header-cart .amount,
.site-header-cart .cart-contents .amount {
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.0625rem !important;
}
/* Artikelanzahl als kompakter heller Badge */
.site-header-cart .count,
.site-header-cart .cart-contents .count {
  background: #F3E4C4 !important;
  color: #6E2230 !important;
  border-color: #F3E4C4 !important;
  font-weight: 700;
  font-size: 0.9rem !important;
}
.site-header-cart .count::after { border-top-color: #F3E4C4 !important; }

/* 4.2b Weinglas – unten rechts, gebunden an .site-content (Positionierung per JS).
   pointer-events:none -> blockiert nie Klicks. Auf Mobil ausgeblendet. */
.wkg-wine-glass {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 92px;
  z-index: 50;
  line-height: 0;
  pointer-events: none;
}
.wkg-wine-glass svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(58, 42, 34, 0.28));
}
@media (max-width: 767px) {
  .wkg-wine-glass { display: none !important; }
}

/* 4.2c Header-Bild – füllt die volle Breite zwischen Logo und Produktsuche.
   overflow:hidden erzeugt einen eigenen Block-Formatierungskontext, der genau
   den Raum zwischen dem links schwebenden Logo und der rechts schwebenden Suche
   einnimmt. Ausgabe im Markup NACH der Suche -> beide Floats stehen fest. */
.site-header .site-branding {
  width: auto !important;
  max-width: none;
  float: left;
  margin-right: 1.25rem;
}
.site-header .site-search,
.site-header .storefront-search {
  float: right;
}
.wkg-header-beside {
  overflow: hidden;
  display: block;
  margin: 0 1.25rem;
  line-height: 0;
}
.wkg-header-beside img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 767px) {
  .site-header .site-branding { float: none; margin-right: 0; }
  .site-header .site-search,
  .site-header .storefront-search { float: none; }
  .wkg-header-beside { margin: 0.5rem 0; }
  .wkg-header-beside img { max-height: 90px; }
}

/* 4.3 Breadcrumb entschlacken (Punkt 1) + Abstand Header→Breadcrumb ~1/4 */
.site-content {
  padding-top: 0.9em !important;   /* Storefront-Default ~3.7em -> ca. ein Viertel */
}
.woocommerce-breadcrumb,
.storefront-breadcrumb .woocommerce-breadcrumb,
nav.woocommerce-breadcrumb {
  margin: 0.4rem 0 0.4rem !important;
  padding: 0 !important;
  font-size: 0.85rem;
  color: #6E6152;
}
.storefront-breadcrumb {
  padding: 0 !important;
  margin: 0 !important;
}

/* Versand-/Trustleiste über dem Header */
.wkg-topbar {
  background: var(--wkg-ink);
  color: #F6EFE3;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.wkg-topbar strong { color: var(--wkg-gold-soft); }

/* =========================================================
   5. STARTSEITE
   ========================================================= */
.wkg-hero {
  background: linear-gradient(120deg, var(--wkg-bordeaux) 0%, var(--wkg-bordeaux-dark) 100%);
  color: #FDF9F2;
  border-radius: var(--wkg-radius);
  padding: clamp(2rem, 6vw, 4.5rem);
  margin: 1.5rem 0 2.5rem;
  display: flex;
  align-items: stretch;
  gap: 2rem;
}
.wkg-hero > div:first-child { flex: 2.5 1 0; min-width: 0; }
.wkg-hero-media {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wkg-hero-media img {
  height: 100%;            /* exakt so hoch wie die Textspalte */
  width: auto;             /* Seitenverhältnis bleibt erhalten */
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--wkg-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
@media (max-width: 820px) {
  .wkg-hero { flex-direction: column; }
  .wkg-hero-media img { height: auto; width: 100%; }
}
.wkg-hero h1 { color: #FDF9F2; margin-top: 0.4rem; }
.wkg-hero .wkg-eyebrow { color: var(--wkg-gold-soft); border-color: rgba(255,255,255,.35); }
.wkg-hero p { font-size: 1.15rem; max-width: 34rem; }

.wkg-btn,
.wkg-hero .button {
  display: inline-block;
  background: var(--wkg-teal);
  color: #fff !important;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
}
.wkg-btn:hover { background: var(--wkg-teal-dark); color: #fff !important; }
.wkg-btn--outline {
  background: transparent;
  color: #FDF9F2 !important;
  border-color: rgba(255,255,255,.6);
  margin-left: 0.75rem;
}

/* USP-Leiste */
.wkg-usps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.wkg-usps li {
  background: var(--wkg-white);
  border: 1px solid var(--wkg-line);
  border-radius: var(--wkg-radius);
  padding: 0.6rem 0.8rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  box-shadow: none;
}
.wkg-usps .wkg-usp-icon {
  color: var(--wkg-bordeaux);
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 0.85rem;
}
.wkg-usps strong { display: block; font-size: 0.9rem; }
.wkg-usps span { font-size: 0.8rem; color: #6A6153; line-height: 1.35; }

/* Kategorie-Kacheln – kompakt, mit kleiner Illustration */
.wkg-cats-head { text-align: center; margin-bottom: 1.25rem; }
.wkg-cats-head h2 { margin: 0.2rem 0 0; }
.wkg-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.wkg-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: var(--wkg-white);
  border: 1px solid var(--wkg-line);
  border-radius: var(--wkg-radius);
  padding: 1.1rem 0.75rem;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--wkg-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.wkg-cat-card:hover,
.wkg-cat-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(43,36,32,.14);
  border-color: var(--wkg-gold-soft);
}
.wkg-cat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #F3ECDD;
  color: var(--wkg-bordeaux);
}
.wkg-cat-name {
  font-family: var(--wkg-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--wkg-ink);
}
.wkg-cat-card:hover .wkg-cat-ico { background: var(--wkg-bordeaux); color: #fff; }

/* Tierhilfe-Band – das Alleinstellungsmerkmal */
.wkg-charity {
  background: var(--wkg-white);
  border: 1px solid var(--wkg-line);
  border-left: 6px solid var(--wkg-gold-soft);
  border-radius: var(--wkg-radius);
  padding: 2rem;
  margin: 3rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 700px) { .wkg-charity { grid-template-columns: 1fr; } }

/* =========================================================
   6. PRODUKTLISTEN – „Weinkarten“-Signatur
   Preis mit gepunkteter Führungslinie wie auf einer Weinkarte
   ========================================================= */

/* 6.0 Gleichmäßiges Raster: alle Kacheln gleich hoch (Punkt 4).
   Grid streckt Zeilen automatisch auf die höchste Kachel. */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  list-style: none;
}
ul.products::before,
ul.products::after { content: none !important; display: none !important; }

ul.products li.product {
  position: relative;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  background: var(--wkg-white);
  border: 1px solid var(--wkg-line);
  border-radius: var(--wkg-radius);
  padding: 1.1rem 1.1rem 1.4rem;
  box-shadow: var(--wkg-shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Titel und Preis bekommen festen Raum, damit Zeilen bündig laufen */
ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.05rem;
  min-height: 2.8em;
}
/* Button ans unterste Ende der gesamten Kachel schieben (Punkt 2) */
ul.products li.product .button,
ul.products li.product .added_to_cart {
  margin-top: auto;
}

ul.products li.product img {
  border-radius: 6px;
  margin-bottom: 0.9rem;
  width: 100%;
  height: 220px;             /* alle Bilder gleich hoch (Punkt 5) */
  object-fit: contain;       /* Seitenverhältnis bleibt erhalten, keine Verzerrung */
  object-position: center;
  background: #fff;
}
ul.products li.product .price {
  text-align: right;             /* rechtsbündig */
  color: var(--wkg-ink);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
/* Angebot: alter Preis grau/durchgestrichen, Angebotspreis bordeaux & fett.
   WICHTIG: keine eigenen Labels und kein display:block hier – die Beschriftung
   ("Alter Preis:", "Angebot:") liefert der Shop (Germanized) selbst inline. */
ul.products li.product .price del {
  color: #6B6259;
  font-weight: 400;
  font-size: 0.9rem;
}
ul.products li.product .price ins {
  color: var(--wkg-bordeaux);
  text-decoration: none;
  font-weight: 700;                  /* Angebot fett */
  font-size: 1.2rem;
}
/* WooCommerce-Screenreader-Preistexte zuverlässig unsichtbar halten
   (verhinderte sonst die doppelte/dreifache Anzeige der Preise) */
ul.products li.product .price .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Grundpreis (€/l), Steuer- und Versandhinweis kompakt & rechtsbündig.
   Kein eigenes Label – "Preis pro Liter" liefert der Shop selbst. */
ul.products li.product .price-unit,
ul.products li.product .wc-gzd-additional-info,
ul.products li.product .wc-gzd-additional-info-placeholder,
ul.products li.product .shipping-costs-info,
ul.products li.product small.tax,
ul.products li.product .woocommerce-price-suffix {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  line-height: 1.3;
  margin: 0;
  color: #6A6153;
}
/* Innerhalb des Grundpreises alte/neue Zahl inline lassen (nicht umbrechen) */
ul.products li.product .price-unit del,
ul.products li.product .price-unit ins {
  display: inline;
  font-size: inherit;
}
ul.products li.product .price-unit ins { font-weight: 600; }

/* Button-Text zentrieren */
ul.products li.product .button,
ul.products li.product .added_to_cart {
  text-align: center;
  justify-content: center;
}

/* Angebots-Badge: hübsches, leicht angeschrägtes Fähnchen über der
   oberen rechten Ecke des Produktbilds */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  position: absolute;
  top: 16px;
  right: 4px;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0.28rem 0.75rem;
  background: var(--wkg-bordeaux);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transform: rotate(7deg);
  box-shadow: 0 4px 10px rgba(58, 42, 34, 0.28);
  z-index: 4;
}
/* kleines gefaltetes Eck für den Fähnchen-Look */
.woocommerce span.onsale::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -5px;
  border-width: 5px 6px 0 0;
  border-style: solid;
  border-color: var(--wkg-bordeaux-dark) transparent transparent transparent;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--wkg-teal);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--wkg-teal-dark);
  color: #fff;
}

/* Grundpreis & Steuerhinweis (PAngV) gut lesbar */
.wkg-price-meta, .wc-gzd-additional-info, .price-unit {
  font-size: 0.85rem;
  color: #5A5148;
}

/* =========================================================
   7. PRODUKT-EINZELSEITE
   ========================================================= */
.single-product div.product .summary {
  background: var(--wkg-white);
  border: 1px solid var(--wkg-line);
  border-radius: var(--wkg-radius);
  padding: 1.75rem;
  box-shadow: var(--wkg-shadow);
}
.single-product div.product p.price {
  color: var(--wkg-bordeaux);
  font-size: 1.7rem;
  font-weight: 800;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--wkg-bordeaux); }

/* Sommelier-Notiz (Kurzbeschreibung) */
.woocommerce-product-details__short-description {
  border-left: 4px solid var(--wkg-gold-soft);
  padding-left: 1rem;
  font-family: var(--wkg-font-display);
  font-style: italic;
  font-size: 1.1rem;
}

/* 18+-Hinweis am Produkt */
.wkg-age-note {
  margin-top: 1rem;
  padding: .6rem .9rem;
  background: #F3ECDD;
  border-radius: 6px;
  font-size: .85rem;
}

/* =========================================================
   8. FOOTER inkl. Widerrufsbutton & Barrierefreiheit
   ========================================================= */
.site-footer,
.footer-widgets,
.site-footer .col-full {
  background: var(--wkg-ink) !important;
  color: #EDE3D4 !important;
}
.site-footer {
  padding-top: 1.5em !important;
  padding-bottom: 1.5em !important;
}
/* Widget-Texte, Überschriften und Listen mit sicherem Kontrast */
.site-footer .widget,
.site-footer .widget-title,
.site-footer p,
.site-footer li,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 {
  color: #EDE3D4 !important;
}
/* Links: kein Underline (auch nicht im Default), heller Kontrast ~11:1 */
.site-footer a,
.footer-widgets a {
  color: #F3E4C4 !important;
  text-decoration: none !important;
}
.site-footer a:hover,
.site-footer a:focus,
.footer-widgets a:hover,
.footer-widgets a:focus {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Widerrufs-/Rechtsbereich: eigener dunkler Block mit garantiertem Kontrast
   (Kontrastwerte gegen #33291F: Text ~11:1, Links ~11:1 -> WCAG AA erfüllt) */
.wkg-footer-legal {
  background: var(--wkg-ink);
  color: #EDE3D4 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 0;
  padding-top: 1.25rem;
  font-size: 0.9rem;
}
.wkg-footer-legal p,
.wkg-footer-legal .col-full { color: #EDE3D4 !important; }
.wkg-footer-legal a {
  color: #F3E4C4 !important;
  text-decoration: none !important;
}
.wkg-footer-legal a:hover,
.wkg-footer-legal a:focus { color: #FFFFFF !important; text-decoration: none !important; }

/* Zahlungsarten-Leiste über den Footer-Widgets */
.wkg-payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.wkg-pay {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #EDE3D4;
}
.wkg-pay svg { border-radius: 5px; display: block; }

/* Gesetzlicher Widerrufsbutton – dauerhaft, unübersehbar, beschriftet.
   Heller Button (#F5F3F0) mit Bordeaux-Text: Kontrast ~7:1 (AA). */
.wkg-withdraw-button,
.wkg-footer-legal a.wkg-withdraw-button,
.site-footer a.wkg-withdraw-button {
  display: inline-block;
  background: #F5F3F0;
  color: #33291F !important;   /* dunkler Farbton – schlägt .site-footer a */
  border: 2px solid #F5F3F0;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  text-decoration: none !important;
}
.wkg-withdraw-button:hover,
.wkg-withdraw-button:focus-visible,
.wkg-footer-legal a.wkg-withdraw-button:hover,
.wkg-footer-legal a.wkg-withdraw-button:focus-visible,
.site-footer a.wkg-withdraw-button:hover,
.site-footer a.wkg-withdraw-button:focus-visible {
  background: #FFFFFF;
  color: #33291F !important;
  border-color: #FFFFFF;
}

/* =========================================================
   9. ALTERSABFRAGE (barrierefreier Dialog)
   ========================================================= */
.wkg-age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 24, 21, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 1rem;
}
.wkg-age-dialog {
  background: var(--wkg-paper);
  border-radius: var(--wkg-radius);
  max-width: 30rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.wkg-age-dialog h2 { margin-top: 0; }
.wkg-age-dialog .wkg-btn {
  background: var(--wkg-bordeaux);
  color: #fff !important;
  margin: 0.5rem 0.35rem 0;
}
.wkg-age-dialog .wkg-btn--ghost {
  background: transparent;
  color: var(--wkg-ink) !important;
  border: 2px solid var(--wkg-line);
}

/* =========================================================
   MOBILE (bis 768px) – Layout & Burger-Menü
   Setzt die Desktop-Flex-Navigation zurück, damit Storefronts
   Burger-Menü wieder funktioniert; Navigation + Content auf 100%.
   ========================================================= */
@media (max-width: 768px) {

  /* Navigation & Content über die volle Breite */
  .col-full {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .content-area,
  .site-main > .storefront-full-width-content {
    border-radius: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* --- Navigationsleiste: Desktop-Flex/Full-Bleed zurücksetzen --- */
  .storefront-primary-navigation {
    display: block;
    width: 100%;
    left: auto;
    transform: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: var(--wkg-bordeaux);
    -webkit-mask: none;
    mask: none;
  }
  .main-navigation {
    display: block;
    width: 100%;
    flex: none;
    min-width: 0;
    background: transparent;
  }
  .main-navigation > div {
    display: block;
    flex: none;
    min-width: 0;
  }

  /* Burger-Verhalten: Menü eingeklappt, nur bei .toggled sichtbar */
  .main-navigation > div > ul,
  .main-navigation > ul,
  .main-navigation ul.menu,
  .main-navigation ul.nav-menu {
    display: none;
    flex-wrap: initial;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .main-navigation.toggled > div > ul,
  .main-navigation.toggled > ul,
  .main-navigation.toggled .menu,
  .main-navigation.toggled .nav-menu {
    display: block;
  }
  .main-navigation > div > ul > li,
  .main-navigation > ul > li,
  .main-navigation li {
    display: block;
    float: none;
    width: 100%;
  }
  .main-navigation ul li a {
    display: block;
    min-height: 0;
    padding: 0.9rem 1rem;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }
  .main-navigation ul li a:hover,
  .main-navigation ul li a:focus,
  .main-navigation ul li.current-menu-item > a {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
  }
  .main-navigation ul.sub-menu {
    position: static;
    width: 100%;
    background: var(--wkg-bordeaux-dark);
  }
  .main-navigation ul.sub-menu li a { padding-left: 2rem; }

  /* Menü-Umschalter (Burger) sichtbar & passend zur Bar */
  .main-navigation .menu-toggle,
  button.menu-toggle {
    display: block;
    width: 100%;
    margin: 0;
    background: var(--wkg-bordeaux);
    color: #F3E7DA;
    border: none;
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.3;
  }
  .main-navigation .menu-toggle:hover,
  .main-navigation .menu-toggle:focus {
    background: var(--wkg-bordeaux-dark);
    color: #fff;
  }

  /* Warenkorb zurück in den normalen Fluss, gut lesbar */
  .storefront-primary-navigation .site-header-cart,
  .site-header-cart {
    display: block;
    float: none;
    width: 100%;
    padding: 0;
  }
  .storefront-primary-navigation .site-header-cart .cart-contents,
  .site-header-cart .cart-contents {
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    font-size: 1.0625rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Kopfbereich: Logo, Bild und Suche gestapelt statt gefloatet */
  .site-header .site-branding,
  .wkg-header-beside,
  .site-header .site-search,
  .site-header .storefront-search {
    float: none !important;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }
  .wkg-header-beside { overflow: visible; margin: 0.5rem 0; }
  .wkg-header-beside img { max-height: 120px; width: auto; }

  /* Hero: Text und Bild untereinander, Schrift etwas kompakter */
  .wkg-hero { flex-direction: column; padding: 1.5rem; }
  .wkg-hero-media img { height: auto; width: 100%; max-height: 300px; }
  .wkg-hero p { font-size: 1.05rem; }

  /* Produktkacheln: zwei Spalten, kompaktere Schrift */
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  ul.products li.product { padding: 0.8rem 0.8rem 1rem; }
  ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    min-height: 0;
  }
  ul.products li.product img { height: 150px; }
  ul.products li.product .price { font-size: 1rem; }
  ul.products li.product .price ins { font-size: 1.05rem; }
}

/* Sehr schmale Geräte: Produkte einspaltig */
@media (max-width: 430px) {
  ul.products {
    grid-template-columns: 1fr !important;
  }
  ul.products li.product img { height: 200px; }
}
