/* [cbee_home]: tiles on a grid of square units, 4 wide (2 on a phone). 1x1 = one unit, 1x2 = two wide and one high, 2x2 = two by two. */
.cbee-home-wrap { container-type: inline-size; }
.cbee-home { --gap: 12px; --cols: 2; --u: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols)); display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap); margin: 0 0 var(--cbee-home-gap, 40px); }
.cbee-home__t { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--cbee-home-bg, #f4f1ec); color: #2b2b2b; text-decoration: none; height: var(--u); min-width: 0; }
.cbee-home__t--1x2 { grid-column: span 2; }
.cbee-home__t--1x1 .cbee-home__title { overflow-wrap: break-word; width: fit-content; max-width: 100%; font-size: clamp(1.15rem, 2.6cqw, 1.5rem); }
.cbee-home__t--2x2 { grid-column: span 2; height: calc(var(--u) * 2 + var(--gap)); }
.cbee-home__t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cbee-home__t:hover img { transform: scale(1.03); }

.cbee-home__t--p { background: var(--cbee-home-bg, #fff); }
.cbee-home--tint .cbee-home__t img { mix-blend-mode: multiply; }
.cbee-home__cap { position: absolute; left: 8px; bottom: 14%; max-width: calc(100% - 16px); box-sizing: border-box; padding: 3px 9px; border-radius: var(--cbee-home-cap-r, 999px); background: rgba(255, 255, 255, .88); background: color-mix(in srgb, var(--cbee-home-bg, #f4f1ec), #000 9%); font-size: 13px; line-height: 1.3; }
.cbee-home__name { display: block; overflow: hidden; text-overflow: clip; white-space: nowrap; font-weight: 600; }

.cbee-home__body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; padding: clamp(14px, 3cqw, 28px); box-sizing: border-box; }
.cbee-home__t--1x2 .cbee-home__body { justify-content: center; }
.cbee-home__title { font-size: clamp(1.25rem, 4.2cqw, 2rem); font-weight: 700; line-height: 1.15; }
.cbee-home__t--2x2 .cbee-home__title { font-size: clamp(1.5rem, 5cqw, 2.6rem); }
.cbee-home__arrow::before { content: "→"; margin-left: .35em; }
.cbee-home__text { font-size: clamp(.95rem, 1.8cqw, 1.1rem); line-height: 1.4; }
.cbee-home__t.has-img .cbee-home__body { justify-content: flex-end; align-items: flex-start; }
.cbee-home__t.has-img .cbee-home__title,
.cbee-home__t.has-img .cbee-home__text { background: rgba(255, 255, 255, .92); background: color-mix(in srgb, var(--cbee-home-bg, #f4f1ec), #000 9%); padding: 4px 12px; border-radius: min(var(--cbee-home-cap-r, 12px), 14px); }
.cbee-home__t.has-img .cbee-home__text { margin-top: -2px; }
/* a wide tile is twice as wide as high: the photo keeps its shape and sits right of centre (its left edge at about 40% of the tile), the words are on the left */
.cbee-home__t--1x2.has-img img { left: 30%; width: 70%; object-fit: contain; object-position: center; }
.cbee-home__t--1x2.has-img .cbee-home__body { justify-content: center; max-width: 42%; }

@container (min-width: 640px) {
	.cbee-home { --cols: 4; grid-auto-rows: var(--u); }
	.cbee-home__t, .cbee-home__t--2x2 { height: auto; }
	.cbee-home__t--2x2 { grid-row: span 2; }
	.cbee-home__t.is-right.cbee-home__t--1x1 { grid-column: 4; }
	.cbee-home__t.is-right.cbee-home__t--1x2, .cbee-home__t.is-right.cbee-home__t--2x2 { grid-column: 3 / span 2; }
	.cbee-home__t.is-right .cbee-home__arrow::before { content: "←"; }
}
/* phones: a text tile without a photo is a slim bar, not a square; the last of an odd group of products would stand alone */
@container (max-width: 639.98px) {
	.cbee-home__t--1x1.no-img, .cbee-home__t--1x2.no-img { grid-column: span 2; height: auto; min-height: 3.5rem; }
	.cbee-home__t--1x1.no-img .cbee-home__body, .cbee-home__t--1x2.no-img .cbee-home__body { justify-content: center; padding: 14px 18px; }
	.cbee-home__t--p.is-odd { display: none; }
}
/* a shelf / category row: a small title with "Alle ansehen" above its own grid; a phone shows four products */
.cbee-home__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 2px 12px; }
.cbee-home__head h2 { margin: 0; font-size: clamp(1.1rem, 2.4cqw, 1.5rem); line-height: 1.2; font-weight: 700; }
.cbee-home__head a { flex: 0 0 auto; color: inherit; font-size: .95rem; text-decoration: none; opacity: .75; white-space: nowrap; }
.cbee-home__head a:hover { opacity: 1; text-decoration: underline; }
@container (max-width: 639.98px) {
	.cbee-home__t--p.is-extra { display: none; }
}
/* experimental layouts */
.cbee-home__pills { display: flex; gap: 8px; margin: 0 0 20px; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; }
.cbee-home__pills a { flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; background: #f4f1ec; color: inherit; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background .15s ease; }
.cbee-home__pills a:hover { background: #e8e2d9; }
.cbee-home__pills a.is-design { background: #e3d3bf; font-weight: 600; }
.cbee-home__panel { margin: 0 0 var(--cbee-home-gap, 40px); padding: clamp(12px, 2.4cqw, 24px); border-radius: 24px; background: var(--cbee-home-bg, #f4f1ec); }
.cbee-home__panel .cbee-home { margin-bottom: 0; }
.cbee-home__panel .cbee-home__t--p { background: #fff; }
.cbee-home--swipe { grid-auto-flow: column; grid-template-columns: none; grid-auto-rows: auto; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4.4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.cbee-home--swipe .cbee-home__t { height: auto; aspect-ratio: 1; scroll-snap-align: start; }
@container (max-width: 639.98px) {
	.cbee-home--swipe { grid-auto-columns: calc((100% - var(--gap)) / 2.3); }
	.cbee-home--swipe .cbee-home__t--p.is-extra { display: block; }
	.cbee-home__t--2x2.cbee-home__t--feat { height: calc(var(--u) * .9); }
}
@container (min-width: 640px) {
	.cbee-home__t--span4 { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
	.cbee-home__t img { transition: none; }
	.cbee-home__t:hover img { transform: none; }
}

/* a scene photo (a styled still life, not a cut-out on white) fills the whole tile and is not blended with the tile colour */
.cbee-home__t.is-scene img { left: 0 !important; width: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; }
.cbee-home__t.is-scene .cbee-home__title, .cbee-home__t.is-scene .cbee-home__text { background: rgba(255, 255, 255, .92); }
