/* Shop (Isotope 3), mobile-first. Produktlisten als Karten, Produktseite mit Eigenschaften-Tabelle. */
.product_list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); margin: 0; padding: 0; }
.product_list__item { min-width: 0; }
@media (min-width: 768px)  { .product_list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px)  { .product_list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product_list--onecolumn { grid-template-columns: minmax(0, 1fr); }

/* Karte: Kauf ist die Hauptaktion (ink wie .btn der Website), Details als ruhiger Link darunter;
   verlinkte Karte hebt sich 2px beim Hover (Bewegungsschicht, Taste-Regel 5) */
.product--card .card { position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: var(--space-s); border: 1px solid #eee; background: #fff; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
/* Auszeichnungs-Plakette (Praemierung) in der Uebersicht: Bild kommt aus --bg-praemierung, gesetzt im Listen-Template */
.product--card .card[style*="--bg-praemierung"]::before { content: ''; position: absolute; top: 0; right: 0; z-index: 2; width: 100px; height: 100px; background-image: var(--bg-praemierung); background-size: contain; background-repeat: no-repeat; background-position: center; pointer-events: none; }
@media (max-width: 767px) { .product--card .card[style*="--bg-praemierung"]::before { top: 2%; right: 2%; width: 80px; height: 80px; } }
.product--card:hover .card, .product--card:focus-within .card { box-shadow: 0 10px 22px rgba(0, 0, 0, .09); }
@media (prefers-reduced-motion: no-preference) {
  .product--card:hover .card { transform: translateY(-2px); }
}
.product--card .card h3 { color: #563e34; margin: .4em 0; font-size: 1.15rem; line-height: 1.3; text-transform: uppercase; }
.product--card .card h3 a { color: inherit; text-decoration: none; }
.product--card .geschmack { margin-bottom: .4em; }
.product--card .price { font-size: 1.25rem; line-height: 1.2; }
.product .price { font-size: 1.6rem; line-height: 1.2; }
.product .baseprice, .product .fuellmenge2, .product .steuer, .product .steuerlink { font-size: .8rem; color: #666; }
.product .fuellmenge2 { display: inline; }
.product .fuellmenge2 + .baseprice { display: inline; }
.product .steuerlink a { color: inherit; }
.product-actions { margin-top: auto; padding-top: var(--space-s); display: flex; flex-direction: column; gap: .5rem; }
.product-actions .btn { min-width: 10rem; }
.product-actions .submit.add_to_cart { width: 100%; min-height: 48px; padding: .6em 1.25em; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: #fff; font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  transition: background-color .25s ease, color .25s ease; }
.product-actions .submit.add_to_cart:hover, .product-actions .submit.add_to_cart:focus-visible { background: #fff; color: var(--ink); }
.product-actions .btn--details { min-height: auto; padding: .35em .6em; background: transparent; border: 0; color: #563e34;
  font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: .15em; }
.product-actions .btn--details:hover, .product-actions .btn--details:focus-visible { background: transparent; color: #36424a; }
.product-actions .quantity_container { justify-content: center; margin: 0 0 .2rem; }
.product .image_container, .product figure { margin: 0 0 .5em; }
.product img { max-width: 100%; height: auto; }

/* Kategorien (Gesamtliste): mobil als scrollbare Reihe, ab 1200px als linke Spalte (Sidebar), darunter waere neben dem Warenkorb zu wenig Platz */
.cat-chips { margin: 0 0 var(--space-m); }
.cat-chips__list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .4rem; padding: 0 0 .3rem; scrollbar-width: none; }
.cat-chips__list::-webkit-scrollbar { display: none; }
.cat-chips__title { margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #563e34; }
.cat-chips__chip { display: inline-flex; align-items: center; min-height: 38px; padding: .25rem .8rem; border: 1px solid var(--line);
  border-radius: 3px; background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .04em; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .25s ease, color .25s ease; }
.cat-chips__chip:hover, .cat-chips__chip:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chips__chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chips__group { display: none; }
@media (min-width: 1200px) {
  .content-iso-productlist:has(.cat-chips) { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 0 2.5rem; align-items: start; }
  .content-iso-productlist:has(.cat-chips) > *:not(.cat-chips) { grid-column: 2; }
  /* Sidebar: ruhige Textliste mit Gruppen, aktive Kategorie mit Balken, bleibt beim Scrollen sichtbar */
  /* overflow:hidden der Vorlage verhindert das Mitlaufen und schiebt die Spalte nach unten */
  .mod_article:has(.cat-chips) { overflow: visible !important; display: flow-root; }
  .content-iso-productlist:has(.cat-chips) .cat-chips { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 125px; margin: 0; max-height: calc(100vh - 160px); overflow-y: auto; }
  .content-iso-productlist:has(.cat-chips) .cat-chips__list { flex-direction: column; overflow: visible; gap: 0; padding: 0; }
  .cat-chips__title { margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 2px solid #563e34; font-size: .95rem; }
  .cat-chips__group { display: block; margin: 1.1rem 0 .3rem; padding: 0 .75rem; color: #8a7a72; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
  .cat-chips__list > .cat-chips__group:first-child { margin-top: .2rem; }
  .content-iso-productlist:has(.cat-chips) .cat-chips__chip { justify-content: flex-start; min-height: 36px; padding: .3rem .75rem; border: 0; border-left: 3px solid transparent; border-radius: 0; background: transparent; color: #563e34; font-weight: 400; font-size: .92rem; text-transform: none; letter-spacing: 0; white-space: normal; line-height: 1.3; }
  .content-iso-productlist:has(.cat-chips) .cat-chips__chip:hover, .content-iso-productlist:has(.cat-chips) .cat-chips__chip:focus-visible { background: #f3efec; border-left-color: #c9b9ae; color: var(--ink); }
  .content-iso-productlist:has(.cat-chips) .cat-chips__chip.is-active { background: #f3efec; border-left-color: #563e34; color: var(--ink); font-weight: 700; }
}

/* Einspaltige Liste */
.product--row .produktbox { display: grid; gap: var(--space-s); grid-template-columns: minmax(0, 1fr); padding: var(--space-s) 0; border-bottom: 1px solid #eee; }
@media (min-width: 768px) { .product--row .produktbox { grid-template-columns: 8rem minmax(0, 1fr) 14rem; align-items: center; } }

/* Breadcrumb: klein und ruhig wie Meta-Text, Link in Braun */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; margin: 0 0 var(--space-s); font-size: .85rem; color: #666; }
.breadcrumb a { color: #563e34; text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.breadcrumb [aria-current] { font-weight: 600; color: var(--ink); }
.breadcrumb__sep { color: #999; }

/* Produktseite: Bild links; rechts Name, Kurzangaben, Beschreibung, Kauf. Mobil: Name, Bild, Kauf, Beschreibung */
.wine-reader { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "buy" "text"; gap: var(--space-s); align-items: start; }
.wine-reader__head { grid-area: head; }
.wine-reader__media { grid-area: media; position: relative; display: flex; justify-content: center; padding: .75rem; border: 1px solid #eee; border-radius: 6px; background: #fff; }
.wine-reader__text { grid-area: text; }
.wine-reader .buybox { grid-area: buy; }
.product .wine-reader h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.2; }
.wine-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.wine-facts li { margin: 0; padding: .25rem .7rem; border: 1px solid #d9cec7; border-radius: 3px; background: #f7f3f0; color: #563e34; font-size: .9rem; font-weight: 600; }
.product .imgbox { margin-bottom: 0; text-align: center; }
.wine-reader .imgbox img { width: auto; max-height: 300px; }
.product .awards { position: absolute; top: .75rem; right: .75rem; display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.product .awards img { width: 84px; height: auto; }
/* Beschreibung: das Verkaufsargument, deshalb groesser und abgesetzt */
.product .wine-reader__text { margin: 0; padding: .9rem 1.1rem; border-left: 4px solid #563e34; background: #f7f3f0; color: #2f2723; font-size: 1.15rem; line-height: 1.6; }
.product .wine-reader__text, .product .wine-reader__text * { font-style: normal; }
.product .wine-reader__text p { margin: 0 0 .5em; }
.product .wine-reader__text > :last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .wine-reader { grid-template-columns: minmax(12rem, 2fr) minmax(0, 3fr); grid-template-areas: "media head" "media text" "media buy"; grid-template-rows: auto auto 1fr; column-gap: var(--space-m); }
  .wine-reader__media { align-self: stretch; align-items: center; }
  .wine-reader .imgbox img { max-height: 440px; }
  .product .awards img { width: 104px; }
}
/* Eigenschaften und Naehrwerte nebeneinander, damit die Seite am PC kurz bleibt */
.product .productinfos { margin-top: var(--space-m); }
@media (min-width: 1100px) {
  .product .productinfos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 var(--space-m); align-items: start; }
}

/* Kaufbox: schlichte weisse Karte wie die Produktkarten, Preis in der Serifen-Schrift der Website */
.buybox { display: flex; flex-direction: column; gap: .6rem; padding: var(--space-s); border: 1px solid #eee; border-radius: 3px; background: #fff; }
.buybox .offer { text-align: center; padding-bottom: .4rem; border-bottom: 1px solid #eee; }
.buybox .offer .price { font-family: Cinzel, serif; font-size: 2.1rem; color: #563e34; }
.buybox__trust { list-style: none; margin: .2rem 0 0; padding: 0; font-size: .9rem; color: #4d4d4d; }
.buybox__trust li { margin: .15rem 0; }
.buybox__trust li::before { content: "\2713\00a0\00a0"; color: #2e7d32; font-weight: 700; }
.product .quantity_container { display: flex; align-items: center; gap: .5rem; margin: 0; }
.product .quantity_container label { font-weight: 700; }
.product .quantity_container input { width: 5rem; min-height: var(--tap); padding: 0 .5rem; font-size: 1rem; }
.product .submit_container { margin: 0; }
.product .submit_container .button, .product .submit_container button, .product .submit_container input[type=submit] { width: 100%; min-height: var(--tap); }
@media (min-width: 768px) { .product .submit_container .button, .product .submit_container button { width: auto; min-width: 14rem; } }
.buybox .submit_container .button, .buybox .submit_container button { width: 100%; min-height: 52px; padding: .6em 1.25em; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer;
  transition: background-color .25s ease, color .25s ease; }
.buybox .submit_container .button:hover, .buybox .submit_container button:hover, .buybox .submit_container button:focus-visible { background: #fff; color: var(--ink); }

/* Eigenschaften + Nährwerte unter der Kaufbox */
.details-table { width: 100%; border-collapse: collapse; margin: var(--space-s) 0; font-size: .95rem; }
.details-table th, .details-table td { padding: .55em .7em; text-align: left; vertical-align: top; border-bottom: 1px solid #eee; }
.details-table th { width: 38%; font-weight: 700; }
.details-table tr:nth-child(odd) { background: #f9f9f9; }
.naehrwerthinweis { margin: var(--space-s) 0; font-size: .9rem; border: 1px solid #eee; border-radius: 3px; background: #fafafa; }
.naehrwerthinweis > summary::after { color: #563e34; }
.naehrwerthinweis > summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7em .9em; font-weight: 700; cursor: pointer; list-style: none; }
.naehrwerthinweis > summary::-webkit-details-marker { display: none; }
.naehrwerthinweis > summary::after { content: "+"; font-size: 1.2em; color: #2f5d48; }
.naehrwerthinweis[open] > summary::after { content: "–"; }
.naehrwerthinweis .naehrwerthinweis__hint { font-weight: 400; font-size: .8em; color: #666; }
.naehrwerthinweis .details { padding: 0 .9em .7em; }
.nutrition-table { width: 100%; margin: 0 0 .6rem; border-collapse: collapse; background: #fff; }
.nutrition-table caption { padding: 0 0 .4rem; text-align: left; font-weight: 600; }
.nutrition-table th, .nutrition-table td { padding: .5em .7em; border: 1px solid #e6e0dc; text-align: left; vertical-align: top; }
.nutrition-table td { text-align: right; white-space: nowrap; }
.nutrition-table th { font-weight: 400; }
.nutrition-table tr.zucker th { padding-left: 1.6em; }
.naehrwerthinweis .detail { padding: .15em 0; }

/* Wertgutschein kaufen (Content-Element erl_voucher_buy) */
.voucher-buy { max-width: 36rem; margin: var(--space-m) 0; padding: var(--space-m); border: 1px solid #e3d9d2; background: #fff; }
.voucher-buy__title { margin: 0 0 .5rem; color: #563e34; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; }
.voucher-buy__intro { margin: 0 0 1rem; color: #6b574d; font-size: .95rem; }
.voucher-buy__error { margin: 0 0 1rem; padding: .6rem .8rem; border-left: 4px solid #c62828; background: #fdf1f1; color: #8e1b1b; }
.voucher-buy__row { display: grid; gap: .35rem; margin-bottom: .9rem; }
.voucher-buy__row label { font-weight: 600; font-size: .9rem; color: #563e34; }
.voucher-buy__row input, .voucher-buy__row textarea { width: 100%; box-sizing: border-box; padding: .6rem .7rem; border: 1px solid #cdbfb6; border-radius: 3px; font: inherit; background: #fff; }
.voucher-buy__row input:focus, .voucher-buy__row textarea:focus { outline: 2px solid #8fa89b; outline-offset: 1px; }
.voucher-buy__suggest { display: flex; gap: .4rem; flex-wrap: wrap; }
.voucher-buy__chip { padding: .3rem .8rem; border: 1px solid #cdbfb6; border-radius: 3px; background: #faf7f5; color: #563e34; font: inherit; font-size: .9rem; cursor: pointer; }
.voucher-buy__chip:hover, .voucher-buy__chip:focus-visible { background: #563e34; border-color: #563e34; color: #fff; }
.voucher-buy__button { min-height: 48px; padding: .6rem 1.4rem; border: 0; border-radius: 3px; background: #35444f; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.voucher-buy__button:hover, .voucher-buy__button:focus-visible { background: #1f2a32; }
.coupon-form__vouchers { margin: 0 0 .8rem; padding: 0; list-style: none; }
.coupon-form__vouchers li { padding: .5rem 0; border-bottom: 1px solid #eee; font-size: .92rem; }

/* Gesamtliste ab 1200px: breitere Seite, Kategorien in eigener Spalte und drei Artikel je Reihe wie im Altshop */
@media (min-width: 1200px) {
  /* die Vorlage setzt feste Breiten (900/970px), daher !important */
  #container:has(.cat-chips) { box-sizing: border-box; width: 100% !important; max-width: 1480px !important; margin-inline: auto !important; padding-inline: 10px; }
  #container:has(.cat-chips) > #main { flex: 1 1 0; width: auto !important; max-width: none !important; min-width: 0; margin: 0 !important; }
  #container:has(.cat-chips) > #main > .inside { width: auto !important; max-width: none; }
  #container:has(.cat-chips) > #main .mod_article, #container:has(.cat-chips) .content-iso-productlist { width: auto !important; max-width: none !important; }
  .content-iso-productlist:has(.cat-chips) { grid-template-columns: 13rem minmax(0, 1fr); gap: 0 2rem; }
  .content-iso-productlist:has(.cat-chips) .product_list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Karten-Knoepfe wie im Altshop: "Details sehen" dunkel links, "In den Warenkorb" gruen rechts (dunkler als alt: lesbar mit weisser Schrift) */
.product--card .product-actions { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.product--card .product-actions > * { flex: 1 1 100%; }
.product--card .product-actions > .btn--details { order: 1; flex: 2 1 0; min-width: 0; }
.product--card .product-actions > .submit_container { order: 2; flex: 3 1 0; min-width: 0; display: flex; margin: 0; }
.product--card .product-actions .btn--details, .product--card .product-actions .submit_container .submit.add_to_cart {
  box-sizing: border-box; min-width: 0; white-space: normal; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 0; padding: 8px 10px;
  border: 1.5px solid transparent; border-radius: 4px; color: #fff; font-size: .95rem; font-weight: 400; line-height: 1.35; text-align: center; text-decoration: none; }
.product--card .product-actions .btn--details { background: #36424a; border-color: #36424a; }
.product--card .product-actions .submit.add_to_cart { background: #4f6b5e; border-color: #4f6b5e; }
.product--card .product-actions .btn--details:hover, .product--card .product-actions .btn--details:focus-visible { background: #fff; color: #36424a; }
.product--card .product-actions .submit.add_to_cart:hover, .product--card .product-actions .submit.add_to_cart:focus-visible { background: #fff; border-color: #4f6b5e; color: #36424a; }
.product--card .product-actions .submit_container .submit.add_to_cart:hover, .product--card .product-actions .submit_container .submit.add_to_cart:focus-visible { background: #fff; color: #36424a; }
.product--card .product-actions .submit_container .submit.add_to_cart { background: #4f6b5e; border-color: #4f6b5e; color: #fff; }
.product--card .product-actions .submit_container .submit.add_to_cart:hover, .product--card .product-actions .submit_container .submit.add_to_cart:focus-visible { background: #fff; color: #36424a; }

/* Schmale Karten: Knoepfe untereinander statt abgeschnitten */
.product--card .product-actions { container-type: inline-size; }
@container (max-width: 194px) {
  .product--card .product-actions > .btn--details, .product--card .product-actions > .submit_container { flex-basis: 100%; }
}
/* uebliche Laptopbreiten: schmalere Raender, damit drei Artikel nebeneinander Platz haben */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  #container:has(.cat-chips) > #main > .inside { padding-inline: 10px; }
  .content-iso-productlist:has(.cat-chips) { grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0 1rem; }
  .content-iso-productlist:has(.cat-chips) .product_list--grid { gap: 12px; }
  .content-iso-productlist:has(.cat-chips) .product--card .card { padding: 10px; }
}

/* Karten einer Reihe gleich hoch, Knoepfe auf einer Linie */
.product_list--grid .product--card, .product_list--grid .product--card > form, .product_list--grid .product--card .formbody { height: 100%; }

/* Kategoriespalte laeuft beim Scrollen mit: "overflow: hidden" der Vorlage am body macht ihn zum Scrollbereich,
   in dem position:sticky nicht greift. "clip" schneidet seitlich genauso ab, ohne das. */
@media (min-width: 1200px) {
  body:has(.cat-chips) { overflow-x: clip !important; overflow-y: visible !important; }
}

/* Artikelseite kompakt halten: am PC soll wenig gescrollt werden */
.product .wine-reader h1 { padding: 0; }
.product .wine-reader .buybox { gap: .5rem; }
.product .wine-reader .quantity_container input { box-sizing: border-box; border: 1.5px solid #8a8a8a; border-radius: 3px; background: #fff; text-align: center; }
.wine-reader .buybox__trust { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.product .productinfos .details-table { margin-top: 0; font-size: .9rem; }
.product .productinfos .details-table :is(th, td) { padding: .32em .7em; line-height: 1.4; }
.product .productinfos .naehrwerthinweis { margin-top: 0; }

/* Artikelseite: Mengenwahl wie im Warenkorb, so breit wie "In den Warenkorb" */
.product .buybox .quantity_container { flex-direction: column; align-items: stretch; gap: .2rem; width: 100%; }
.product .buybox .quantity_container .qty-stepper { display: flex; width: 100%; height: 52px; }
.product .buybox .quantity_container .qty-stepper input.qty-stepper__input { flex: 1 1 0; width: 100%; min-width: 0; margin: 0; border-radius: 0; font-size: 1.15rem; -moz-appearance: textfield; appearance: textfield; }
.product .buybox .submit_container .qty-stepper button.qty-stepper__btn { display: grid; place-items: center; flex: none; width: 56px; min-width: 0; min-height: 52px; margin: 0; padding: 0;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; transform: none; }
.product .buybox .submit_container .qty-stepper button.qty-stepper__minus { border-radius: 3px 0 0 3px; }
.product .buybox .submit_container .qty-stepper button.qty-stepper__plus { border-radius: 0 3px 3px 0; }
.product .buybox .submit_container .qty-stepper button.qty-stepper__btn:hover, .product .buybox .submit_container .qty-stepper button.qty-stepper__btn:focus-visible { background: var(--ink); color: #fff; }
.product .buybox .submit_container .qty-stepper button.qty-stepper__btn:disabled { border-color: #c8c8c8; background: #fff; color: #a8a8a8; cursor: default; }
