/* ============================================================
   40-shop.css  -  Shop-Seiten im Look des Altshops 1.0 (Ebene fuer Ebene, Kachel fuer Kachel)
   Stand: 2026-11-22 (Suchergebnisse)
   Kopf, Fuss und Startseite bleiben im 2.0-Look (Max 20.11.2026), nur die Shop-Ebenen folgen 1.0.

   Ebene 1 = Seite /produkte/ (templates/page-produkte.html), Vorbild 1.0 /index.php/rankgitter-rosenbogen-pergola,
   gemessen bei 1350 und 390 px:
   - 59 px Luft unter der blauen Leiste, Raster 2 Spalten je 549 px, 19 px Spalten- / 23 px Zeilenabstand
   - Bild 250 x 250 mittig, direkt darunter Titel 24 px / 700 / Zeile 1,2 in #006699 (= Navigationsblau), 8 px Abstand
   - Text 16 / 24 px #222, 70 % breit, zentriert
   - unter 768 px eine Spalte, Titel ca. 21,6 px
   ============================================================ */

.wp-site-blocks > main.bm-shop-ebene { margin-block-start: 0; }
.bm-shop-ebene {
  padding: 59px var(--wp--style--root--padding-right) 70px var(--wp--style--root--padding-left);
  background: var(--wp--preset--color--base);
}

/* Kacheln */
.bm-shop-ebene .bm-kacheln {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 19px;
  row-gap: 23px;
  max-width: 1117px;
  margin: 0 auto;
}
.bm-shop-ebene .bm-kacheln > *,
.bm-shop-ebene .bm-kachel > * { margin: 0; }
.bm-shop-ebene .bm-kachel { text-align: center; }
.bm-shop-ebene .bm-kachel-bild { width: 250px; max-width: 100%; margin: 0 auto; }
.bm-shop-ebene .bm-kachel-bild img { display: block; width: 250px; max-width: 100%; height: auto; aspect-ratio: 1; }
.bm-shop-ebene .bm-kachel-titel {
  margin: 0 0 8px;
  font-size: clamp(21.5px, 1.2rem + .6vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--bm-navblau);
  text-wrap: balance;
}
.bm-shop-ebene .bm-kachel-titel a { color: inherit; text-decoration: none; }
.bm-shop-ebene .bm-kachel-titel a:hover { text-decoration: underline; }
.bm-shop-ebene .bm-kachel-text {
  max-width: 70%;
  margin: 0 auto;
  font-size: 16px;
  line-height: 24px;
  color: #222;
}

/* Handy wie 1.0: 16 px Seitenrand, Kacheln mit wenig Luft untereinander */
@media (max-width: 767px) {
  .bm-shop-ebene { padding: 32px 16px 48px; }
  .bm-shop-ebene .bm-kacheln { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
}

/* ---------- Ebene 2: Kategorie mit Formen-Knoepfen und Systemen (Komplettsysteme aus 2.0, Look 1.0) ----------
   Vorlagen templates/taxonomy-product_cat-<slug>.html (komplettsysteme + sechs Formen), Inhalt parts/shop-komplettsysteme.html.
   Vorbild 1.0 /index.php/rankgitter-rosenbogen-pergola/komplettsysteme-fuer-wandbegruenung, gemessen bei 1350 px:
   - Hinweis 24 px / 700 #006699 zentriert, 48 px unter der Leiste, 52 px Luft bis zu den Knoepfen
   - Knoepfe 15 px / 700, Zeile 18 px, Innenabstand 10/20 px, Rahmen 1 px #006699, Ecken 5 px, 17 px Abstand;
     aktive Form gruen #008B52 mit weisser Schrift (aktiv = Seitenklasse term-<slug> von WordPress)
   - Raster 3 Spalten (339 px + 40 px Luft), Bild 250 x 400 hochkant, 25 px darunter Titel 17 px / 700 #006699 */
.bm-shop-ebene.bm-shop-kategorie { padding-top: 48px; }
.bm-shop-kategorie .bm-kategorie-inhalt { max-width: 1176px; margin: 0 auto; }
.bm-shop-kategorie .bm-kategorie-inhalt > * { margin-block: 0; }
.bm-shop-kategorie .bm-kategorie-hinweis {
  margin: 0 0 52px;
  font-size: clamp(19px, 1rem + .6vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--bm-navblau);
  text-align: center;
  text-wrap: balance;
}
.bm-shop-kategorie .bm-formen { gap: 17px; margin: 0 0 36px; }
.bm-shop-kategorie .bm-formen .bm-form .wp-block-button__link {
  padding: 10px 20px;
  border: 1px solid var(--bm-navblau);
  border-radius: 5px;
  background: #fff;
  color: var(--bm-navblau);
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}
.bm-shop-kategorie .bm-formen .bm-form .wp-block-button__link:hover { background: #eef5f9; color: var(--bm-navblau); }
body.term-faecher .bm-formen .bm-form-faecher .wp-block-button__link,
body.term-gitter-quadratisch .bm-formen .bm-form-gitter-quadratisch .wp-block-button__link,
body.term-gitter-rechteckig .bm-formen .bm-form-gitter-rechteckig .wp-block-button__link,
body.term-linear .bm-formen .bm-form-linear .wp-block-button__link,
body.term-linear-kombiniert .bm-formen .bm-form-linear-kombiniert .wp-block-button__link,
body.term-weitere-formen .bm-formen .bm-form-weitere-formen .wp-block-button__link { background: #008b52; color: #fff; }

/* Systeme-Raster (WooCommerce Product Collection, nur Bild + Titel wie 1.0) */
.bm-shop-kategorie .bm-systeme .wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bm-shop-kategorie .bm-systeme .wc-block-product { margin: 0; padding: 0; width: auto; max-width: none; }
.bm-shop-kategorie .bm-systeme .bm-system-bild { max-width: 250px; margin: 0 auto 25px; }
.bm-shop-kategorie .bm-systeme .bm-system-bild img { display: block; width: 100%; height: auto; object-fit: contain; }
.bm-shop-kategorie .bm-systeme .bm-system-titel {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--bm-navblau);
}
.bm-shop-kategorie .bm-systeme .bm-system-titel a { color: inherit; text-decoration: none; }
.bm-shop-kategorie .bm-systeme .bm-system-titel a:hover { text-decoration: underline; }
.bm-shop-kategorie .bm-keine-systeme { margin: 24px 0; color: #222; }

@media (max-width: 767px) {
  .bm-shop-ebene.bm-shop-kategorie { padding-top: 28px; }
  .bm-shop-kategorie .bm-kategorie-hinweis { margin-bottom: 24px; }
  .bm-shop-kategorie .bm-formen { gap: 8px; margin-bottom: 24px; justify-content: center; }
  .bm-shop-kategorie .bm-formen .bm-form .wp-block-button__link { padding: 8px 14px; font-size: 14px; }
  /* Handy: zwei Spalten statt einer, sonst sehr lange Liste mit 400 px hohen Bildern */
  .bm-shop-kategorie .bm-systeme .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 28px; }
  .bm-shop-kategorie .bm-systeme .bm-system-bild { margin-bottom: 12px; }
  .bm-shop-kategorie .bm-systeme .bm-system-titel { font-size: 15px; }
}

/* ---------- Ebene 2 mit Foto-Kacheln (Rosenbogen und Rankzaun, Pergolen und Lauben) ----------
   Vorlagen templates/taxonomy-product_cat-rosenbogen-und-rankzaun.html und -pergolen-und-lauben.html.
   Vorbild 1.0 (1350 px): gleiches Raster wie Ebene 1, Foto 400 px breit (400 x 240 bzw. 400 x 300) mittig,
   4 px darunter Titel 16 px / 700 / Zeile 25,6 px #006699, Text 16/24 px #222 auf 70 %, 25 px Zeilenabstand */
.bm-shop-ebene .bm-kacheln-foto { row-gap: 25px; }
.bm-shop-ebene .bm-kacheln-foto .bm-kachel-bild { width: 400px; }
.bm-shop-ebene .bm-kacheln-foto .bm-kachel-bild img { width: 400px; max-width: 100%; height: auto; aspect-ratio: auto; }
.bm-shop-ebene .bm-kacheln-foto .bm-kachel-titel { margin: 4px 0 0; font-size: 16px; line-height: 25.6px; }
@media (max-width: 767px) {
  .bm-shop-ebene .bm-kacheln-foto { row-gap: 20px; }
}

/* ---------- Ebene 2 mit vier Spalten (Bauteile: Halter, Gitter, Netze, Zubehoer) ----------
   Vorlage templates/taxonomy-product_cat-bauteile-fuer-begruenungssysteme.html.
   Vorbild 1.0 (1350 px): acht Kacheln, 4 Spalten je 271 px mit 11 px Luft (Bildschritt 282 px), Bild 250 x 250,
   4 px darunter Titel 16 px / 700 / Zeile 25,6 px #006699, eine Leerzeile, Text 16/24 px #222 ueber die Spalte, 45 px Zeilenabstand */
.bm-shop-ebene .bm-kacheln-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 11px; row-gap: 45px; }
.bm-shop-ebene .bm-kacheln-4 .bm-kachel-titel { margin: 4px 0 0; font-size: 16px; line-height: 25.6px; }
.bm-shop-ebene .bm-kacheln-4 .bm-kachel-text { max-width: none; margin-top: 25.6px; }
@media (max-width: 989px) {
  .bm-shop-ebene .bm-kacheln-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 767px) {
  /* Handy: zwei Spalten wie bei den Komplettsystemen (siehe offene Frage F-16) */
  .bm-shop-ebene .bm-kacheln-4 { column-gap: 12px; row-gap: 28px; }
  .bm-shop-ebene .bm-kacheln-4 .bm-kachel-titel { font-size: 15px; line-height: 1.35; }
  .bm-shop-ebene .bm-kacheln-4 .bm-kachel-text { margin-top: 6px; font-size: 14px; line-height: 1.45; }
}

/* Systeme-Raster ohne Preis (Max 20.11.2026): Germanized setzt "inkl. MwSt." / "zzgl. Versandkosten" unter jedes
   Produkt. Die Hinweise gehoeren zu einem angezeigten Preis, hier gibt es keinen, darum ausblenden. */
.bm-shop-kategorie .bm-systeme :is(.wc-gzd-additional-info, .wc-gzd-additional-info-placeholder, .wc-gzd-additional-wrapper, .wc-gzd-info) { display: none !important; }

/* Brotkrumen auf den Shop-Ebenen (WooCommerce-Block), beginnen bei "Produkte" (inc/shop.php) */
.bm-shop-ebene .bm-brotkrumen {
  max-width: 1176px;
  margin: 0 auto 28px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bm-grau);
}
.bm-shop-ebene .bm-brotkrumen a { color: var(--bm-navblau); text-decoration: none; }
.bm-shop-ebene .bm-brotkrumen a:hover { text-decoration: underline; }
.bm-shop-ebene.bm-shop-kategorie .bm-brotkrumen { margin-top: -20px; }
@media (max-width: 767px) {
  .bm-shop-ebene .bm-brotkrumen { margin-bottom: 18px; }
  .bm-shop-ebene.bm-shop-kategorie .bm-brotkrumen { margin-top: -8px; }
}
.bm-shop-ebene-2 .bm-brotkrumen { max-width: 1117px; }

/* ---------- Suchergebnisse (WooCommerce-Vorlage product-search-results, 22.11.2026) ----------
   Ueberschrift im Ton der 1.0-Produkttitel statt 76 px; Germanized-Hinweise (inkl. MwSt., zzgl. Versandkosten)
   klein und zentriert direkt unter dem Preis statt linksbuendig unter dem Knopf. */
.search-results .wp-block-query-title { margin-block: 8px 18px; font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--bm-navblau); }
.search-results .wc-block-product { display: flex; flex-direction: column; }
.search-results .wc-block-product > * { order: 3; }
.search-results .wc-block-product > :is(.wc-block-components-product-image, .wp-block-post-title, .wp-block-woocommerce-product-price) { order: 1; }
.search-results .wc-block-product > .wc-gzd-additional-info { order: 2; margin: 0; font-size: 12px; line-height: 1.5; color: #666; text-align: center; }
.search-results .wc-block-product > .wc-gzd-additional-info:last-of-type { margin-bottom: 12px; }
.search-results .wc-block-product > .wp-block-woocommerce-product-price { margin-bottom: 4px !important; }
/* Bilder ganz zeigen (Komplettsystem-Zeichnungen sind hochkant, quadratischer Zuschnitt schnitte sie ab); Inline-Stil von WooCommerce */
.search-results .wc-block-product .wc-block-components-product-image img { object-fit: contain !important; background: #fff; }

/* ---------- Ebene 3 wie 1.0 (22.11.2026): Halter fuer Waende, Zubehoer, Produktkacheln der Zubehoer-Gruppen ----------
   Vorlagen templates/taxonomy-product_cat-halter-fuer-waende.html, -seilspanner-edelstahlseil-befestigungsmittel.html
   und templates/taxonomy-product_cat.html (alle uebrigen Kategorien, z. B. die sechs Zubehoer-Gruppen).
   Vorbild 1.0 (1350 px): Halter 2 Spalten, Bild 250 x 250, Titel 16 px / 700 #006699, Text 15/24 px zentriert;
   Zubehoer 2 Spalten, Bild 300 x 300, Titel 16 px / 700; Gruppen: Einleitung 22 px / 700 #006699 links,
   darunter 4 Spalten mit Zeichnung, Name und Art.-Nr. zentriert in #006699. */
.bm-shop-ebene .bm-kacheln-halter,
.bm-shop-ebene .bm-kacheln-zubehoer { row-gap: 40px; }
.bm-shop-ebene :is(.bm-kacheln-halter, .bm-kacheln-zubehoer) .bm-kachel-titel { margin: 14px 0 0; font-size: 16px; line-height: 25.6px; }
.bm-shop-ebene .bm-kacheln-halter .bm-kachel-text { max-width: 400px; margin-top: 12px; font-size: 15px; line-height: 24px; }
.bm-shop-ebene .bm-kacheln-halter .bm-kachel-bild img { aspect-ratio: auto; }
.bm-shop-ebene .bm-kacheln-zubehoer .bm-kachel-bild { width: 300px; }
.bm-shop-ebene .bm-kacheln-zubehoer .bm-kachel-bild img { width: 300px; aspect-ratio: 1; object-fit: cover; }

.bm-produktkacheln .bm-kategorie-einleitung { max-width: 1176px; margin: 0 auto 36px; font-size: clamp(18px, 1rem + .5vw, 22px); font-weight: 700; line-height: 1.35; color: var(--bm-navblau); }
.bm-produktkacheln .bm-kategorie-einleitung p { margin: 0; }
.bm-produktkacheln .bm-produktraster { max-width: 1176px; margin: 0 auto; }
.bm-produktkacheln .bm-produktraster .wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bm-produktkacheln .bm-produktraster .wc-block-product { margin: 0; padding: 0; width: auto; max-width: none; text-align: center; }
.bm-produktkacheln .bm-produktraster .bm-produkt-bild { max-width: 250px; margin: 0 auto 14px; }
/* !important: der WooCommerce-Bildblock setzt object-fit:cover und Seitenverhaeltnis als Inline-Stil, das schnitte die Zeichnungen ab */
.bm-produktkacheln .bm-produktraster .bm-produkt-bild img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3 !important; object-fit: contain !important; background: #fff; }
.bm-produktkacheln .bm-produktraster .bm-produkt-name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: normal; color: var(--bm-navblau); text-wrap: balance; }
.bm-produktkacheln .bm-produktraster .bm-produkt-name a { color: inherit; text-decoration: none; }
.bm-produktkacheln .bm-produktraster .bm-produkt-name a:hover { text-decoration: underline; }
.bm-produktkacheln .bm-produktraster .bm-produkt-artnr { margin: 4px 0 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--bm-navblau); }
.bm-produktkacheln .bm-produktraster :is(.wc-gzd-additional-info, .wc-gzd-additional-info-placeholder, .wc-gzd-additional-wrapper, .wc-gzd-info) { display: none !important; }
@media (max-width: 989px) {
  .bm-produktkacheln .bm-produktraster .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bm-shop-ebene :is(.bm-kacheln-halter, .bm-kacheln-zubehoer) { row-gap: 28px; }
  .bm-produktkacheln .bm-kategorie-einleitung { margin-bottom: 24px; }
  .bm-produktkacheln .bm-produktraster .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 28px; }
  .bm-produktkacheln .bm-produktraster .bm-produkt-name { font-size: 15px; }
  .bm-produktkacheln .bm-produktraster .bm-produkt-artnr { font-size: 13.5px; }
}

/* Warenkorb, Mini-Warenkorb und Kasse (Bestelluebersicht): gekuerzte Produkt- bzw. Variantenbeschreibung ausblenden
   (Haupt 23.11.2026). Der Block zeigt nur den Anfang, bei den Komplettsystemen also nur "Das ist dabei" ohne Liste.
   Gewaehlte Merkmale (Ausfuehrung) und Lieferzeit stehen weiter darunter, die volle Liste steht auf der Produktseite. */
.wc-block-components-product-metadata .wc-block-components-product-metadata__description { display: none; }

/* Hinweisbox "Bestellen mit Kundenkonto" (bm-core 0.21.0, fuer Gaeste und nicht freigeschaltete Kunden; Haupt/Max
   23.11.2026): wie der Kassen-Kasten (hell, Rand links blau), Knoepfe blau bzw. als Rahmenknopf, am Handy untereinander.
   Steht auf Produktseiten unter der Auswahl (statt Menge/In den Warenkorb) und im Warenkorb ueber dem Warenkorb-Block.
   Im Kundenkonto traegt der bisherige Hinweis (div.woocommerce-info) dieselbe Klasse, siehe 42-konto.css. */
.bm-freigabe-hinweis {
  box-sizing: border-box; margin: 16px 0 0; padding: 16px 20px; border: 0; border-left: 4px solid var(--bm-blau);
  border-radius: 0 8px 8px 0; background: var(--bm-papier-2); color: var(--bm-tinte); font-size: 15px; line-height: 1.55; text-align: left;
}
.bm-freigabe-hinweis p { margin: 0; }
.bm-freigabe-hinweis .bm-freigabe-hinweis__titel { margin-bottom: 4px; font-size: 16px; line-height: 1.35; }
.bm-freigabe-hinweis .bm-freigabe-hinweis__titel strong { font-weight: 700; }
.bm-freigabe-hinweis .bm-freigabe-hinweis__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.bm-freigabe-hinweis .bm-freigabe-hinweis__knopf {
  display: inline-flex; flex: 0 1 auto; align-items: center; justify-content: center; box-sizing: border-box; margin: 0;
  padding: 11px 20px; border: 1px solid var(--bm-blau); background: var(--bm-blau); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
}
.bm-freigabe-hinweis .bm-freigabe-hinweis__knopf:hover { border-color: var(--bm-blau-dunkel); background: var(--bm-blau-dunkel); color: #fff; }
.bm-freigabe-hinweis .bm-freigabe-hinweis__knopf--zweit { background: #fff; color: var(--bm-blau); }
.bm-freigabe-hinweis .bm-freigabe-hinweis__knopf--zweit:hover { border-color: var(--bm-blau-dunkel); background: rgba(41, 101, 152, .08); color: var(--bm-blau-dunkel); }
/* Produktseite: Box direkt unter der Auswahl, Abstaende von WooCommerce (Formular 2em, Tabelle 1em) entfallen */
.wp-block-add-to-cart-form:has(+ .bm-freigabe-hinweis) form.cart,
.wp-block-add-to-cart-form:has(+ .bm-freigabe-hinweis) form.cart table.variations { margin-bottom: 0; }
/* Warenkorb: ueber dem Warenkorb-Block, gleich breit wie dieser */
.wp-block-post-content > .bm-freigabe-hinweis { max-width: var(--wp--style--global--wide-size); margin-top: 8px; margin-bottom: 26px; }
@media (max-width: 600px) {
  .bm-freigabe-hinweis { padding: 14px 16px; }
  .bm-freigabe-hinweis .bm-freigabe-hinweis__knoepfe { flex-direction: column; }
  .bm-freigabe-hinweis .bm-freigabe-hinweis__knopf { width: 100%; }
}

/* Grundpreis und Inhalt (inc/shop.php, brandmeier_preishinweis_nach_preis; PAngV, RE-07): eigene Zeile direkt unter
   dem Preis, leer ausgeblendet. Text kommt von Germanized, nach der Variantenwahl tauscht ihn dessen Skript. */
.bm-preishinweis :is(.price-unit, .product-units, .delivery-time-info) { display: block !important; flex-basis: 100%; margin-right: 0 !important; }
.bm-preishinweis :is(.price-unit, .product-units, .delivery-time-info):empty { display: none !important; }
.bm-produkt-10 .bm-p10-rechts .bm-preishinweis :is(.price-unit, .product-units, .delivery-time-info) { text-align: right; }

/* Seitenbreite (N-06): Brotkrumen und Kachel-Texte duerfen umbrechen */
.bm-brotkrumen, .bm-brotkrumen .woocommerce-breadcrumb { overflow-wrap: anywhere; white-space: normal; }
.bm-produkt-20 .bm-aehnlich .wc-block-product { min-width: 0; }
.bm-produkt-20 .bm-aehnlich h3 { overflow-wrap: anywhere; hyphens: auto; }

/* Hinweis "Lieferung nach Oesterreich oder in die Schweiz?" (bm-core, div.woocommerce-info.bm-lieferland-hinweis) in
   Warenkorb, Kasse und Konto: Satz laeuft durch, der Link steht im Text (nicht flex), Stil wie die Hinweisbox */
.woocommerce-info.bm-lieferland-hinweis,
.bm-kk .woocommerce-MyAccount-content .woocommerce-info.bm-lieferland-hinweis {
  display: block !important; padding: 14px 18px; border: 0; border-left: 4px solid var(--bm-blau); border-radius: 0 8px 8px 0;
  background: var(--bm-papier-2); color: var(--bm-tinte); font-size: 15px; line-height: 1.55;
}
.woocommerce-info.bm-lieferland-hinweis::before { content: none; display: none; }
.woocommerce-info.bm-lieferland-hinweis a { font-weight: 600; color: var(--bm-blau); text-decoration: underline; }
