/*
Theme Name: GALELI
Theme URI: https://www.mikegaleli.com
Description: Schlankes Shop-Theme für MiKE GALELi auf Basis von Twenty Twenty-Five. Beige, Schwarz, DM Sans. Header und Fuß nach den B2B-Entwürfen.
Author: LEVEL21
Template: twentytwentyfive
Version: 1.3.44
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: galeli
*/

/* Volle Breite der Muster (100vw) ohne waagrechten Scrollbalken */
html, body { overflow-x: clip; }

/* Kopf: schwarze, abgerundete Leiste wie im Entwurf */
.gl-head .wp-block-navigation-item__content { color: #fff; }
.gl-head { margin: 16px 32px 0; border-radius: 16px; }
.gl-head .wp-block-navigation a { text-decoration: none; }
.gl-head .wp-block-navigation .wp-block-navigation-item__content:hover { opacity: .75; }
.gl-head .gl-logo img { height: 38px; width: auto; }
.gl-head .wc-block-mini-cart__button { color: #fff; }
.gl-head .wc-block-mini-cart__badge { background: #fff; color: #111; }
.gl-head .wp-block-navigation__responsive-container.is-menu-open { background: #000; color: #fff; padding: 24px; }
.gl-cta .wp-block-button__link { background: #fff; color: #111; border-radius: 50px; padding: 11px 22px; font-size: 15px; white-space: nowrap; }
.gl-cta .wp-block-button__link:hover { background: #e9dfcf; color: #111; }
/* „Projekt anfragen“ als Knopf nur im geöffneten Handy-Menü */
.gl-head .wp-block-navigation-item.gl-nav-cta { display: none; }
.gl-head .is-menu-open .wp-block-navigation-item.gl-nav-cta { display: flex; margin-top: 18px; }
.gl-head .is-menu-open .gl-nav-cta .wp-block-navigation-item__content { background: #fff; color: #111; border-radius: 50px; padding: 12px 24px; }

/* Fuß */
.gl-foot a { text-decoration: none; color: #d8d2c8; }
.gl-foot a:hover { color: #fff; }
.gl-foot .gl-caps { text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px; color: #8c857b; }
.gl-foot ul { list-style: none; padding: 0; margin: 0; }
.gl-foot li { margin: 0 0 6px; }

/* Text-Hilfen aus den Entwürfen */
.caps, .is-style-gl-caps { text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px; font-weight: 400; color: var(--wp--preset--color--mute); }
.serif { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; }

/* WooCommerce: ruhiger, markengerecht */
.woocommerce-store-notice, p.demo_store { background: #111; }
.wc-block-components-product-price, .woocommerce-Price-amount { font-weight: 400; }
.wp-block-woocommerce-product-image-gallery img, .wc-block-components-product-image img { border-radius: 12px; background: #fff; }
.wc-block-components-button:not(.is-link), .single_add_to_cart_button, .woocommerce .button.alt { border-radius: 50px !important; background: #000 !important; color: #fff !important; }

/* Tablet / Handy */
@media (max-width: 1100px) { .gl-head { margin: 12px 16px 0; } }
@media (max-width: 760px) {
  .gl-head { margin: 12px 12px 0; border-radius: 14px; }
  .gl-head .gl-logo img { height: 26px; }
  .gl-cta .wp-block-button__link { padding: 9px 14px; font-size: 14px; }
  .gl-head .gl-cta { display: none; }
}

/* Cookie-Banner (Complianz) in Markenoptik */
.cmplz-cookiebanner { border-radius: 16px !important; font-family: var(--wp--preset--font-family--dm-sans) !important; }
.cmplz-cookiebanner .cmplz-btn { border-radius: 50px !important; font-weight: 400 !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: #000 !important; border-color: #000 !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny, .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences, .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background: #fff !important; border: 1px solid #111 !important; color: #111 !important; }
.cmplz-cookiebanner .cmplz-link, .cmplz-cookiebanner a { color: #111 !important; }

/* Muster über die volle Breite: WordPress setzt in Constrained-Layouts margin:auto !important – hier gezielt überschreiben */
.is-layout-constrained > .gm-sec.gm-volle-breite { margin-left: calc(50% - var(--gm-vw, 100vw) / 2) !important; margin-right: calc(50% - var(--gm-vw, 100vw) / 2) !important; }

/* Unterseiten Unser Anspruch / Individuelle Lösungen (Muster-Bausteine, ergänzt) */
.gm-sec .gl-karten > .gm-kachel { grid-column: auto !important; }
.gm-sec .gl-karten .gm-karte__bild img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.gm-sec .gl-textkarte { padding: 30px 28px 34px; display: flex; flex-direction: column; }
.gm-sec .gl-textkarte .gm-karte__text { padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gm-sec .gl-textkarte h3 { font-size: 22px; }
.gm-sec .gl-textkarte .gm-nr { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; font-size: 26px; color: var(--wp--preset--color--gold); line-height: 1; }
.gm-sec .gm-split--manufaktur.gl-split-links .gm-split__text { order: 0; }
.gm-sec .gm-split--manufaktur.gl-split-links .gm-split__bildfeld { order: 3; }
@media (max-width: 900px) { .gm-sec .gm-split--manufaktur.gl-split-links .gm-split__text { order: 2; } .gm-sec .gm-split--manufaktur.gl-split-links .gm-split__bildfeld { order: 0; } }

/* Logostreifen der Referenzen auf Unterseiten ([galeli_logos]) */
.gm-sec .gl-logos { padding: 8px 0 4px; }
.gm-sec .gl-logos .gl-logos-titel { display: block; text-align: center; font-size: 11.5px; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: #7c756c; margin: 0 0 30px !important; }
.gl-logos-fenster { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gl-logos-band { display: flex; align-items: center; width: max-content; animation: gl-logos-laufen 42s linear infinite; }
.gl-logos-band:hover { animation-play-state: paused; }
.gl-logos-kopie { display: flex; align-items: center; }
.gm-sec .gl-logos-band img { display: block; height: 40px !important; width: auto !important; max-width: none !important; margin: 0 40px; filter: grayscale(1) brightness(0); opacity: .45; transition: opacity .3s; }
.gl-logos-band img:hover { opacity: .85; }
@keyframes gl-logos-laufen { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gl-logos-band { animation: none; } }
@media (max-width: 700px) { .gm-sec .gl-logos-band img { height: 30px !important; margin: 0 26px; } }

/* Kartenbilder füllen die Fläche ganz aus (kein heller Streifen darunter) */
.gm-sec .gl-karten .gm-karte__bild { aspect-ratio: 4 / 3; height: auto !important; overflow: hidden; }
.gm-sec .gl-karten .gm-karte__bild img { display: block; height: 100% !important; aspect-ratio: auto; }

/* Fallbeispiele (Startseite): freigestellte Bilder wie auf Referenzen, 16:10 über die volle Kartenbreite (1.3.23) */
.gm-sec .gm-faelle .gm-fall .gm-fall__bild { position: relative; aspect-ratio: 16 / 10 !important; overflow: hidden; background: #f3efe9; }
.gm-sec .gm-faelle .gm-fall .gm-fall__bild .wp-block-image { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
.gm-sec .gm-faelle .gm-fall .gm-fall__bild .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Firmengeschenke: drei Wege gleich hoch (26.11.2026) */
.gm-sec .gm-wege .gm-karte__bild { height: clamp(220px, 20vw, 300px) !important; aspect-ratio: auto !important; }
.gm-sec .gm-wege .gm-karte__bild img { height: 100% !important; width: 100%; object-fit: cover; }

/* Referenzen: Branchen-Logos als ruhige Dreierreihe, alle Felder gleich groß (Bilder in assets/img/referenzen/logos, schon einfarbig normiert) */
.gm-sec .gm-gruppe__logos { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 10px; padding: 0 0 16px; border-bottom: 1px solid rgba(0,0,0,.08); }
.gm-sec .gm-gruppe__logos .gm-logo { display: flex; align-items: center; justify-content: center; height: 70px; overflow: hidden; margin: 0; background: #faf8f5; border-radius: 10px; }
.gm-sec .gm-gruppe__logos .gm-logo img { width: auto !important; max-width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain; filter: none !important; opacity: .85 !important; }
@media (max-width: 600px) { .gm-sec .gm-gruppe__logos .gm-logo { height: 56px; } }

/* Referenzen: Fallbeispiele ohne Bezeichnungen (Aufgabe/Lösung), Text über die volle Breite */
.gm-sec .gm-fall .gm-zeile { display: block !important; grid-template-columns: none !important; }
.gm-sec .gm-fall .gm-zeile__wert { max-width: none !important; width: auto !important; text-align: left !important; font-size: 16px; line-height: 1.55; color: #4a453f; }

/* Referenzen: Fallbeispiele kompakt, Bilder kleiner, ohne Beschreibung (26.11.2026) */
.gm-sec .gm-fall .gm-fall__bild { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; flex: none !important; }
.gm-sec .gm-fall .gl-slider { height: auto !important; aspect-ratio: 16 / 10 !important; }
.gm-sec .gm-fall .gl-slide img { object-fit: cover !important; }
.gm-sec .gm-fall { overflow: hidden; }

/* Firmengeschenke, Anfrage-Spalte: zwei Termin-Knöpfe (Calendly) unter „Lieber direkt?“ (1.3.25) */
.gm-sec .gm-kontakt.gl-termin-links { margin-top: 22px !important; }
.gm-sec .gl-termin-links br { display: none; }
.gm-sec .gl-termin-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 11px 18px; border: 1px solid rgba(255,255,255,.32); border-radius: 50px; color: #fff !important; text-decoration: none !important; font-size: 14px; transition: background .2s, border-color .2s; }
.gm-sec .gl-termin-links a::after { content: "→"; color: #e2c891; }
.gm-sec .gl-termin-links a:hover, .gm-sec .gl-termin-links a:focus-visible { background: rgba(255,255,255,.08); border-color: #e2c891; }

/* Kein Rahmen beim Anklicken (Maus), Tastatur-Fokus bleibt sichtbar (1.3.27) */
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none !important; box-shadow: none; }
.wc-block-product-template a:focus-visible { outline: 2px solid #b8955a !important; outline-offset: 3px; border-radius: 12px; }

/* Über Mike: zwei Porträts unter „Wo der erste Eindruck zählt“ (1.3.28) */
.gl-portraets { display: grid !important; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px !important; }
.gl-portraets .wp-block-image { margin: 0 !important; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; }
.gl-portraets .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 25%; display: block; }
@media (max-width: 600px) { .gl-portraets { gap: 12px; margin-top: 32px !important; } }

/* Showroom: Besuch und Termin in einem Block, Tafel mit Foto (Lederproben), Route als Textlink (1.3.29) */
.gm-sec .gm-raum__tafel { position: relative; overflow: hidden; }
.gm-sec .gm-raum__tafel .gm-raum__foto { position: absolute !important; inset: 0; margin: 0 !important; z-index: 0; }
.gm-sec .gm-raum__tafel .gm-raum__foto img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.gm-sec .gm-raum__tafel::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.08) 32%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.78) 100%); pointer-events: none; }
.gm-sec .gm-raum__tafel > *:not(.gm-raum__foto) { position: relative; z-index: 2; }
.gm-sec .gm-termin-hinweis { margin: 22px 0 0 !important; font-size: 14.5px; color: #6f685f; }
.gm-sec .gm-raum__info .wp-block-buttons { margin-top: 12px !important; }
.gm-sec .gm-route { margin: 16px 0 0 !important; font-size: 14.5px; }
.gm-sec .gm-route a { color: #15151b; text-decoration: none; border-bottom: 1px solid #b8955a; padding-bottom: 2px; }

/* Startseite Ansprechpartner: Porträt mit Kopf im Bild (1.3.30) */
.gm-sec .gm-person__bild.gm-pos-oben img { object-position: 50% 8% !important; }

/* Startseite: Fallbeispiel-Karten ganz klickbar, führen zum Fall auf Referenzen (1.3.36) */
.gm-sec .gm-faelle .gm-fall { position: relative; transition: transform .35s, box-shadow .35s; }
.gm-sec .gm-faelle .gm-fall:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(60,40,20,.12); }
.gm-sec .gm-faelle .gm-fall h3 a { color: inherit !important; text-decoration: none !important; }
.gm-sec .gm-faelle .gm-fall h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.gm-sec .gm-fall[id] { scroll-margin-top: 120px; }

/* Referenzen: Gruppen mit vier Logos (z. B. Reisen und Mobilität mit ABT) in einer Reihe (1.3.39) */
.gm-sec .gm-gruppe__logos:has(> figure:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gm-sec .gm-gruppe__logos .gm-logo img[src$=".svg"] { height: 46% !important; width: auto !important; }
/* Showroom-Tafel: weißes Logo ohne Kasten */
.gm-sec .gm-raum__logo img { background: transparent !important; max-width: 120px; height: auto !important; }

/* Freigestellte Referenzbilder in Kacheln immer ganz zeigen (kein Beschnitt) */
.gm-sec .gm-karte__bild img[src*="/referenzen/frei-"] { object-fit: contain !important; background: #f3efe9; }
