/* One reusable CMS banner, scoped away from the existing homepage hero. */
.cms-megabanner{position:relative;isolation:isolate;display:grid;align-items:center;min-height:390px;width:100%;max-width:none;margin:0 0 32px;padding:48px max(24px,calc((100vw - 1360px)/2));overflow:hidden;background:#211b16;color:#fff;box-sizing:border-box}
.cms-megabanner>img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;object-position:center;z-index:-2}
.cms-megabanner:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(18,14,10,.85),rgba(18,14,10,.59) 47%,rgba(18,14,10,.12) 100%)}
.cms-megabanner .cms-banner-copy{width:min(100%,680px);padding:0;background:transparent}
.cms-megabanner h1,.cms-megabanner h2{color:#fff;margin:8px 0 18px;font-size:clamp(32px,3.3vw,52px);line-height:1.12;text-wrap:balance}
.cms-megabanner p{color:#fff;max-width:62ch;font-size:17px;line-height:1.65;margin:0 0 24px}
.cms-megabanner .eyebrow{color:#f0cfaa;font-size:12px;letter-spacing:.16em;margin-bottom:12px}
.cms-megabanner .button{display:inline-flex;color:#fff;background:#825228;border-color:#825228}
.cms-megabanner a:focus-visible{outline:3px solid white;outline-offset:5px}
.cms-megabanner+nav.occasion-links{margin-top:0}
.cms-builder-preview .cms-megabanner{min-height:280px;padding:28px}
@media(max-width:700px){.cms-megabanner{min-height:420px;padding:32px 22px;margin-bottom:22px}.cms-megabanner:before{background:linear-gradient(90deg,rgba(18,14,10,.85),rgba(18,14,10,.55))}.cms-megabanner h1,.cms-megabanner h2{font-size:34px}.cms-megabanner p{font-size:16px}.cms-megabanner .cms-banner-copy{width:100%}}
#ligniart-produkte,#ligniart-seiteninhalt{scroll-margin-top:150px}

/* The native media renderer wraps images in a responsive picture element. */
.cms-megabanner>picture{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;z-index:-2!important;overflow:hidden}
.cms-megabanner>picture>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;transform:none!important;z-index:auto!important}
.cms-megabanner>.cms-banner-copy{position:relative;z-index:1}
/* Compact catalogue controls; product tiles follow directly below. */
body[data-page="catalog"] .shop-filter{gap:8px;padding:8px 12px;margin:0}
body[data-page="catalog"] .shop-filter input,body[data-page="catalog"] .shop-filter select{min-height:42px;padding:8px 10px;font-size:14px}
body[data-page="catalog"] .shop-filter>.circle-button{width:42px;height:42px;min-width:42px}
body[data-page="catalog"] .shop-result-line{padding:6px 0 12px;font-size:14px;gap:16px}
body[data-page="catalog"] .shop-result-line>a{padding:0;white-space:nowrap}
body[data-page="catalog"] .cms-megabanner{margin-bottom:18px}
@media(min-width:1200px){
 body[data-page="catalog"] .shop-catalog{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:18px;row-gap:18px;align-items:center}
 body[data-page="catalog"] .shop-filter{grid-template-columns:minmax(160px,1fr) minmax(170px,260px) minmax(140px,170px) 42px}
 body[data-page="catalog"] .shop-result-line{padding:0;align-self:center;flex-wrap:wrap;justify-content:flex-end;max-width:280px;row-gap:6px}
 body[data-page="catalog"] .shop-catalog>.product-grid,body[data-page="catalog"] .shop-catalog>.shop-empty{grid-column:1/-1;margin-top:0}
}
@media(max-width:700px){
 body[data-page="catalog"] .shop-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;padding:8px;gap:6px}
 body[data-page="catalog"] .shop-search-field{grid-column:1/-1}
 body[data-page="catalog"] .shop-filter input,body[data-page="catalog"] .shop-filter select{min-height:44px;max-width:100%;font-size:16px}
 body[data-page="catalog"] .shop-filter>.circle-button{width:44px;height:44px}
 body[data-page="catalog"] .shop-filter>label{min-width:0}
 body[data-page="catalog"] .shop-result-line{padding:6px 0 12px}
}

/* Navigation belongs to the image; no separate white strip above the banner. */
main:has(>.cms-megabanner){padding-top:0!important;margin-top:0!important}
.cms-megabanner{border-top:1px solid rgba(240,207,170,.5);grid-template-rows:auto 1fr;row-gap:26px;padding-top:18px}
.cms-megabanner>.cms-banner-breadcrumb{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;width:100%;max-width:none;min-width:0;margin:0!important;padding:0!important;background:transparent!important;color:#fff;font-size:14px;line-height:1.5;box-sizing:border-box}
.cms-megabanner>.cms-banner-breadcrumb a,.cms-megabanner>.cms-banner-breadcrumb span{color:#fff}
.cms-megabanner>.cms-banner-breadcrumb a:hover{text-decoration:underline}
.cms-megabanner>.cms-banner-copy{align-self:center}
@media(max-width:700px){.cms-megabanner{padding-top:14px;row-gap:22px}.cms-megabanner>.cms-banner-breadcrumb{font-size:13px;gap:4px 8px}}

/* Keep search, filters and results together beneath the measured fixed header. */
body[data-page="catalog"] .shop-catalog{grid-template-columns:minmax(0,1fr)}
body[data-page="catalog"] .shop-catalog-tools{position:sticky;top:calc(var(--la-demo-height,0px) + var(--la-catalog-header-height,var(--la-header-height,92px)));z-index:40;align-self:start;grid-column:1/-1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0;background:#fffefa;padding:8px 0;box-shadow:0 6px 12px rgb(33 27 22 / 5%)}
body[data-page="catalog"] .shop-catalog-tools .shop-filter{min-width:0}
body[data-page="catalog"] .shop-catalog-tools .shop-result-line{margin:0}
@media(min-width:1200px){body[data-page="catalog"] .shop-catalog-tools{grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}}
@media(max-width:700px){body[data-page="catalog"] .shop-catalog-tools{padding:6px 0}body[data-page="catalog"] .shop-catalog-tools .shop-result-line{padding:6px 0 2px}}

/* One total 20px gap after the last product row, without stacked section spacing. */
body[data-page="catalog"] .shop-catalog{padding-bottom:20px!important;margin-bottom:0!important}
body[data-page="catalog"] .shop-catalog>.product-grid{padding-bottom:0!important;margin-bottom:0!important}
body[data-page="catalog"] .shop-catalog+.shop-group-cms{margin-top:0!important;padding-top:0!important;border-top:0!important}
body[data-page="catalog"] .shop-catalog+.shop-group-cms>:first-child{margin-top:0!important;padding-top:0!important}

/* Fill the visible viewport below the actual header, including breadcrumb and copy. */
body .cms-megabanner{min-height:calc(100vh - var(--la-demo-height,0px) - var(--la-catalog-header-height,var(--la-header-height,92px)));min-height:calc(100dvh - var(--la-demo-height,0px) - var(--la-catalog-header-height,var(--la-header-height,92px)));grid-template-rows:auto 1fr;box-sizing:border-box}
@media(max-height:600px){body .cms-megabanner{padding-top:12px;padding-bottom:20px;row-gap:16px}body .cms-megabanner h1{font-size:clamp(26px,4vw,40px);margin-bottom:12px}body .cms-megabanner p{margin-bottom:14px}}

/* Product gallery: original image ratio with rounded image corners, no padded tile. */
body[data-page="product"] .shop-product-visual .atelier-gallery{height:auto!important;max-height:none!important;min-height:0!important}
body[data-page="product"] .shop-product-visual .atelier-slides{flex:none;align-items:flex-start;height:auto!important;border:0;background:transparent;border-radius:0}
body[data-page="product"] .shop-product-visual .atelier-slide{height:auto!important;background:transparent}
body[data-page="product"] .shop-product-visual .atelier-slide>button{flex:none;display:block;height:auto!important;min-height:0;aspect-ratio:auto!important;padding:0;border:0;border-radius:var(--radius);background:transparent;overflow:hidden}
body[data-page="product"] .shop-product-visual .atelier-slide picture{display:block;width:100%;height:auto!important;aspect-ratio:auto!important;background:transparent}
body[data-page="product"] .shop-product-visual .atelier-slide img{display:block;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:var(--radius)}
body[data-page="product"] .shop-product-visual .atelier-slide figcaption{max-height:none;overflow:visible;background:transparent}

/* Compact footer navigation; disclosure indicator directly before the label. */
.site-footer .footer-grid>div:not(.footer-brand)>a{margin-bottom:2px;padding:3px 0;min-height:30px;line-height:1.5}
.site-footer .footer-category{margin-bottom:2px}
.site-footer .footer-category>summary{justify-content:flex-start;gap:7px;min-height:30px;padding:3px 0;line-height:1.5}
.site-footer .footer-category>summary>span{order:-1;flex:0 0 14px;text-align:center;margin:0}
.site-footer .footer-subcategories a{padding:4px 0;line-height:1.5}
.site-footer .footer-subcategories .footer-category-all{margin-bottom:4px;padding-bottom:6px}

/* Center the rail group when it fits; preserve reachable overflow on narrow screens. */
.la-global-product-rail .la-product-rail-head{text-align:center}
.la-global-product-rail .la-product-rail-head .eyebrow,.la-global-product-rail .la-product-rail-head h2{margin-left:auto;margin-right:auto}
.la-global-product-rail .la-product-rail-head [data-rail-pause]{margin-left:auto;margin-right:auto}
.la-global-product-rail .la-product-rail-track{justify-content:safe center}

/* Header/banner separator: three times the previous 1px. */
.cms-megabanner{border-top-width:3px}
/* Keep every category reachable while a footer submenu is open. */
@media(min-width:901px) and (hover:hover) and (pointer:fine){.site-footer .footer-category>.footer-subcategories{left:auto;right:100%;bottom:0;top:auto;width:min(300px,32vw);max-height:min(420px,65vh)}}
@media(max-width:900px){.site-footer .footer-category>.footer-subcategories{position:static;width:auto;max-width:100%;max-height:none;margin:4px 0 8px}}

/* Product cards: show the complete photograph at its natural proportions. */
.product-card .product-card-media{height:auto;min-height:0;aspect-ratio:auto;background:transparent;border:0;border-radius:0;overflow:visible}
.product-card .product-card-media>a{display:block;height:auto;min-height:0;aspect-ratio:auto;padding:0;background:transparent;border-radius:10px;overflow:hidden}
.product-card .product-card-media>a picture{display:block;width:100%;height:auto}
.product-card .product-card-media>a img{display:block!important;width:100%!important;height:auto!important;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain!important;border-radius:10px!important}
.product-card .product-card-media .favorite-button{position:absolute;top:12px;right:12px;z-index:2}
.product-card .product-card-image-caption{margin-top:6px;border-radius:10px}

/* One continuous product card: photograph, caption and purchase information. */
.product-card{border-radius:10px;overflow:hidden;background:var(--cream);padding:0;box-shadow:0 4px 16px rgba(42,34,26,.06)}
.product-card .product-card-media{border-radius:0}
.product-card .product-card-media>a{border-radius:0}
.product-card .product-card-media>a img{border-radius:0!important}
.product-card .product-card-image-caption{margin:0;border-radius:0}
.product-card .product-card-info{padding:18px 16px 22px;background:var(--cream);flex:1}

/* Equal-height cards keep their purchase action centered at the bottom. */
.product-grid{align-items:stretch}
.product-grid>.product-card{display:flex;flex-direction:column;height:100%}
.product-card .product-card-info{display:flex;flex-direction:column;align-items:center;flex:1}
.product-card .product-card-info>.product-link{margin-top:auto;align-self:center;flex-shrink:0}
.product-card .product-card-info>.shop-price-note{margin-bottom:18px}

.product-grid .product-card-image-caption{box-sizing:border-box;min-height:var(--la-caption-height,0px);display:flex;align-items:center;justify-content:center;text-align:center}

/* Mobile catalogue: normal-flow entry, full form in a side drawer. */
.la-catalog-filter-toggle,.la-catalog-filter-apply,.la-catalog-filter-reset,.la-catalog-current-value{display:none}
.la-catalog-filter-dialog{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #ddc9ad;border-radius:0;padding:0;background:#fffdfa;color:#2b241d;overflow:hidden;z-index:1000}
.la-catalog-filter-dialog[open]{display:flex;flex-direction:column}
.la-catalog-filter-dialog::backdrop{background:rgba(0,0,0,.5)}
.la-catalog-filter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #ddc9ad;flex:none;background:#fffdfa}
.la-catalog-filter-head h2{font:24px/1.2 Georgia,serif;margin:0}
.la-catalog-filter-close{flex:none;min-height:44px;padding:8px 12px;border:1px solid #ddc9ad;border-radius:8px;background:#fffdfa;color:#2b241d;font:inherit;cursor:pointer}
.la-catalog-filter-content{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:20px 20px calc(20px + env(safe-area-inset-bottom))}
body[data-page="catalog"] .la-catalog-filter-dialog .shop-filter{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;margin:0}
.la-catalog-filter-dialog .shop-filter>label{display:block!important;position:static!important;width:auto!important;height:auto!important;padding:0!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;margin:0}
.la-catalog-filter-dialog .shop-filter>label>span.sr-only{position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;display:block;margin:0 0 6px;font-weight:600}
.la-catalog-filter-dialog .shop-search-field{width:100%;min-width:0}
body[data-page="catalog"] .la-catalog-filter-dialog .shop-filter input,body[data-page="catalog"] .la-catalog-filter-dialog .shop-filter select{box-sizing:border-box;min-height:46px;width:100%;max-width:100%;font-size:16px;padding:10px 12px}
.la-catalog-filter-dialog .shop-filter>label.sr-only{margin-bottom:-14px;font-weight:600}
.la-catalog-filter-dialog .la-catalog-current-value{display:block;margin:7px 0 0;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:#6b5640}
.la-catalog-filter-dialog [data-la-mobile-hidden]{display:none!important}
.la-catalog-filter-dialog .la-catalog-filter-apply{display:block;min-height:48px;width:100%;padding:12px 18px;border:1px solid #99652f;background:#99652f;color:#fff;border-radius:6px 6px 22px 6px;font:inherit;font-weight:600;cursor:pointer}
.la-catalog-filter-dialog .la-catalog-filter-reset{display:block;align-self:flex-start;font-size:14px;color:inherit;text-decoration:underline;min-height:44px;padding:10px 0}
.la-catalog-filter-toggle:focus-visible,.la-catalog-filter-dialog button:focus-visible,.la-catalog-filter-dialog select:focus-visible,.la-catalog-filter-dialog input:focus-visible{outline:3px solid #754b24;outline-offset:3px}
@media(max-width:700px){
 body[data-page="catalog"] .shop-catalog-tools{position:static!important;top:auto!important;z-index:auto!important;box-shadow:none;padding:8px 0;display:block}
 body[data-page="catalog"] .shop-catalog-tools.la-mobile-filter-ready{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
 body[data-page="catalog"] .la-mobile-filter-ready>.la-catalog-filter-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border:1px solid #ddc9ad;border-radius:8px;background:#f6f0e7;color:#2b241d;font:inherit;font-weight:600;cursor:pointer}
 body[data-page="catalog"] .la-mobile-filter-ready>.shop-result-line{flex:1 1 130px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:0!important;margin:0;font-size:13px;line-height:1.4}
 body[data-page="catalog"] .la-mobile-filter-ready>.shop-result-line>a{min-height:24px;white-space:normal}
 .la-catalog-filter-head{padding:14px 16px}.la-catalog-filter-head h2{font-size:22px}.la-catalog-filter-content{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
}

.la-mobile-filter-ready>.shop-filter[hidden]{display:none!important}

/* One mobile control row: search, filters, reset. Counts are omitted. */
.shop-catalog-tools>.shop-result-line>span{display:none}
.la-catalog-search-toggle,.la-catalog-reset-icon{display:none}
@media(max-width:700px){
 body[data-page="catalog"] .shop-catalog-tools.la-mobile-filter-ready{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:8px 0}
 body[data-page="catalog"] .la-mobile-filter-ready>.shop-result-line{display:none!important}
 body[data-page="catalog"] .la-mobile-filter-ready>.la-catalog-search-toggle,
 body[data-page="catalog"] .la-mobile-filter-ready>.la-catalog-reset-icon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #ddc9ad;border-radius:8px;color:#2b241d;background:#f6f0e7;cursor:pointer}
 body[data-page="catalog"] .la-mobile-filter-ready>.la-catalog-filter-toggle{box-sizing:border-box;min-height:44px;height:44px;padding:8px 15px}
 .la-catalog-search-toggle:focus-visible,.la-catalog-reset-icon:focus-visible{outline:3px solid #754b24;outline-offset:3px}
}

.la-catalog-reset-icon[aria-disabled="true"]{opacity:.45;cursor:default!important}
