/* GALELI Entwurf 1.3.45: lädt nur in der Vorschau (inc/entwurf.php). */

/* Vorschau-Hinweis */
.gl-vorschau-marke { position: fixed; left: 12px; bottom: 12px; z-index: 9990; background: #111; color: #fff; font-size: 12px; letter-spacing: .04em; padding: 7px 12px; border-radius: 50px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.gl-vorschau-marke a { color: #e2c891; }
body.gl-hat-kaufleiste .gl-vorschau-marke { bottom: 86px; }
/* Die Marke soll den Fuss nicht verdecken (gilt nur in der Vorschau). */
body:has(.gl-vorschau-marke) .gl-foot-zahl { padding-bottom: 52px; }

/* ---------- Punkt 1: nicht lieferbar ---------- */
.wc-block-product-template li.outofstock .wc-block-components-product-image { position: relative; }
.wc-block-product-template li.outofstock .wc-block-components-product-image::after { content: "Auf Anfrage"; position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.94); border: 1px solid var(--wp--preset--color--line); border-radius: 50px; padding: 5px 11px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #5c544a; line-height: 1.3; }
.wc-block-product-template li.outofstock .wc-block-components-product-button__button, .wc-block-product-template li.outofstock .wp-block-button__link { background: transparent !important; color: #111 !important; border: 0 !important; box-shadow: inset 0 0 0 1px #111; }

.gl-anfrage { background: #fff; border-radius: 18px; padding: 26px 26px 22px; margin: 6px 0 0; }
.gl-anfrage-status { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: #5c544a; display: flex; align-items: center; gap: 9px; }
.gl-anfrage-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--gold); flex: none; }
.gl-anfrage-text { margin: 0 0 6px; font-size: 17px; line-height: 1.5; color: #111; }
.gl-anfrage-varianten { margin: 0 0 4px; font-size: 14px; color: var(--wp--preset--color--mute); }
.gl-anfrage-knopf { display: flex; align-items: center; justify-content: center; margin-top: 14px; padding: 16px 26px; border-radius: 50px; background: #111; color: #fff !important; font-size: 16px; font-weight: 500; text-decoration: none !important; text-align: center; transition: transform .2s; }
.gl-anfrage-knopf:hover { transform: translateY(-1px); }
.gl-anfrage-knopf--linie { margin-top: 10px; background: transparent; color: #111 !important; border: 1px solid #111; padding: 15px 26px; }
.gl-anfrage-tel { margin: 14px 0 0; font-size: 14px; color: var(--wp--preset--color--mute); text-align: center; }
.gl-anfrage-tel a { color: #111; }
/* Punkt 1b: Anfrage-Formular im Fenster */
.gl-af { border: 0; padding: 0; border-radius: 22px; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: #fff; color: #111; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: auto; }
.gl-af::backdrop { background: rgba(17,17,17,.55); backdrop-filter: blur(3px); }
.gl-af-form, .gl-af-danke { position: relative; padding: 30px 30px 26px; }
.gl-af-zu { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3efe9; color: #111; font-size: 24px; line-height: 40px; cursor: pointer; padding: 0; }
.gl-af-caps { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: #5c544a; }
.gl-af-titel { margin: 0 48px 8px 0 !important; font-size: 26px !important; font-weight: 300 !important; line-height: 1.15; letter-spacing: -.01em; }
.gl-af-intro { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #5c544a; }
.gl-af-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.gl-af-feld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #5c544a; min-width: 0; }
.gl-af-breit { grid-column: 1 / -1; }
.gl-af-feld input, .gl-af-feld select, .gl-af-feld textarea { width: 100%; font: inherit; font-size: 16px; color: #111; background: #faf8f5; border: 1px solid #e4dfd6; border-radius: 12px; padding: 12px 14px; box-sizing: border-box; }
.gl-af-feld input:focus, .gl-af-feld select:focus, .gl-af-feld textarea:focus { outline: 2px solid #111; outline-offset: 1px; background: #fff; }
.gl-af-feld textarea { resize: vertical; min-height: 84px; }
.gl-af-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gl-af-ok { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 13px; line-height: 1.45; color: #5c544a; }
.gl-af-ok input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #111; }
.gl-af-ok a { color: #111; }
.gl-af-fehler { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #fbeceb; color: #8a1f1f; font-size: 14px; }
.gl-af-senden { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.gl-af-senden[disabled] { opacity: .6; cursor: wait; }
.gl-af-danke .gl-anfrage-knopf { border: 0; cursor: pointer; font-family: inherit; width: 100%; }
@media (max-width: 560px) {
	.gl-af-raster { grid-template-columns: 1fr; }
	.gl-af-form, .gl-af-danke { padding: 26px 20px 22px; }
	.gl-af-titel { font-size: 22px !important; }
}

/* Der Firmen-Knopf steckt schon in der Anfrage-Karte */
body:has(.gl-anfrage) .galeli-b2b-anpassen { display: none !important; }

/* ---------- Punkt 3: Kaufbereich ---------- */
.single-product .wp-block-woocommerce-product-meta { display: none !important; }
.gl-wahl-hinweis { margin: 10px 0 0; font-size: 14px; color: var(--wp--preset--color--mute); }
.gl-wahl-hinweis[hidden] { display: none; }
.gl-wahl-hinweis.is-wichtig { color: #9a5b12; font-weight: 500; }
.gl-wahl.is-fehlt .gl-wahl-name { color: #9a5b12; font-weight: 500; }
.gl-fakten.gl-fakten--neu a { color: inherit; }
.gl-zahlarten { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 0; }
.gl-zahlarten li { margin: 0; padding: 4px 10px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: #fff; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: #5c544a; line-height: 1.5; white-space: nowrap; }
.gl-zahlarten--dunkel { margin: 0; }
.gl-zahlarten--dunkel li { background: transparent; border-color: #3a362f; color: #b8b1a6; }

/* ---------- Punkt 13: Fuß ---------- */
.gl-foot .gl-foot-zahl { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; max-width: 1376px; margin: 22px auto 0 !important; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8c857b; }
.gl-foot .gl-foot-zahl .gl-zahlarten li { margin: 0; letter-spacing: .04em; text-transform: none; }

/* ---------- Punkt 13: „Ähnliche Produkte“ im Stil des Shops ---------- */
.single-product ul.wc-block-product-template.is-flex-container { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px !important; padding: 0; margin-top: 24px; }
.single-product ul.wc-block-product-template.is-flex-container > li.wc-block-product { width: auto !important; max-width: none !important; margin: 0 !important; background: #fff; border-radius: 20px; padding: 16px 16px 22px; text-align: left !important; transition: transform .35s, box-shadow .35s; }
.single-product ul.wc-block-product-template.is-flex-container > li.wc-block-product:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(60,40,20,.12); }
.single-product .wc-block-product-template .wc-block-components-product-image { border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #fbf8f3 0%, #ece4d8 85%); margin-bottom: 16px !important; aspect-ratio: 1 / 1.08; display: grid; place-items: center; }
.single-product .wc-block-product-template .wc-block-components-product-image img { width: 86% !important; height: 86% !important; object-fit: contain !important; mix-blend-mode: multiply; background: transparent !important; border-radius: 0 !important; }
.single-product .wc-block-product-template .wp-block-post-title { font-size: 19px !important; font-weight: 400; margin: 0 0 4px !important; text-align: left !important; line-height: 1.3 !important; }
.single-product .wc-block-product-template .wp-block-post-title a { text-decoration: none; color: #111; }
.single-product .wc-block-product-template .wc-block-components-product-price { text-align: left !important; font-size: 15px; color: #2b2824; margin-bottom: 12px !important; }
.single-product .wc-block-product-template .wc-block-components-product-price .woocommerce-Price-amount { font-size: 15px !important; }
.single-product .wc-block-product-template .wp-block-button, .single-product .wc-block-product-template .wc-block-components-product-button { justify-content: flex-start !important; text-align: left !important; }
.single-product .wc-block-product-template .wp-block-button__link, .single-product .wc-block-product-template .wc-block-components-product-button__button { border-radius: 50px !important; background: #111 !important; color: #fff !important; font-size: 14px !important; padding: 10px 20px !important; }
@media (max-width: 1000px) { .single-product ul.wc-block-product-template.is-flex-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Punkt 11: Kurztext ---------- */
.gl-kurztext { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px 56px; align-items: center; background: #fff; border-radius: 18px; padding: 48px 56px; margin-top: 64px !important; margin-bottom: 40px !important; }
.gl-kurztext .caps { margin: 0; }
.gl-kurztext h2 { font-weight: 300; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; margin: 12px 0 16px; }
.gl-kurztext-text p:last-child { margin: 0; font-size: 17px; line-height: 1.65; color: #5c544a; max-width: 600px; }
.gl-kurztext-punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; }
.gl-kurztext-punkte li { display: flex; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--wp--preset--color--line); }
.gl-kurztext-punkte li:last-child { border-bottom: 0; padding-bottom: 0; }
.gl-kurztext-punkte li::before { content: "✓"; color: var(--wp--preset--color--gold); }
@media (max-width: 900px) { .gl-kurztext { grid-template-columns: 1fr; padding: 30px 24px; margin-top: 40px !important; } }

/* ---------- Punkt 5: Produktraster am Handy zweispaltig ---------- */
@media (max-width: 560px) {
  .wc-block-product-template.wc-block-product-template__responsive, .single-product ul.wc-block-product-template.is-flex-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .wc-block-product-template > li.wc-block-product, .single-product ul.wc-block-product-template.is-flex-container > li.wc-block-product { padding: 8px 8px 14px; border-radius: 14px; display: flex; flex-direction: column; }
  .wc-block-product-template .wc-block-components-product-image { margin-bottom: 10px !important; border-radius: 9px; }
  .wc-block-product-template .wp-block-post-title, .single-product .wc-block-product-template .wp-block-post-title { font-size: 15px !important; line-height: 1.3 !important; padding: 0 4px; }
  .wc-block-product-template .wp-block-woocommerce-product-price { margin-bottom: 8px !important; padding: 0 4px; }
  .wc-block-product-template .wc-block-components-product-price { font-size: 13.5px; margin-bottom: 0 !important; }
  .wc-block-product-template .wp-block-woocommerce-product-button { margin: auto 0 0 !important; padding: 0 4px; }
  .wc-block-product-template .wp-block-button__link, .wc-block-product-template .wc-block-components-product-button__button, .single-product .wc-block-product-template .wp-block-button__link { font-size: 12.5px !important; padding: 8px 12px !important; white-space: nowrap; }
  .wc-block-product-template li.outofstock .wc-block-components-product-image::after { top: 7px; left: 7px; font-size: 9px; padding: 3px 8px; letter-spacing: .12em; }
  .gl-kat-knoepfe .gl-kat-knopf { padding: 12px 20px; font-size: 14px; }
}

/* ---------- Punkt 4: fester Kaufbalken am Handy ---------- */
.gl-kaufleiste { display: none; }
@media (max-width: 760px) {
  .gl-kaufleiste { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980; background: rgba(255,255,255,.97); border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 -8px 30px rgba(40,30,15,.10); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); transition: transform .28s ease; }
  .gl-kaufleiste.is-sichtbar { transform: translateY(0); }
  .gl-kaufleiste-info { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
  .gl-kaufleiste-name { font-size: 13px; color: #5c544a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gl-kaufleiste-preis { font-size: 17px; font-weight: 500; color: #111; }
  .gl-kaufleiste-knopf { flex: none; border: 0; border-radius: 50px; background: #111; color: #fff; font: inherit; font-size: 15px; font-weight: 500; padding: 13px 22px; cursor: pointer; }
  body.gl-hat-kaufleiste { padding-bottom: 74px; }
}

/* ---------- Punkt 12: Warenkorb und Kasse ---------- */
.wc-block-cart__submit::after, .wc-block-checkout__actions::after { content: "Sichere Zahlung · 14 Tage Widerrufsrecht · Fragen: +43 5572 386508"; display: block; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--wp--preset--color--mute); text-align: center; }
