/* Scoped to the reference gallery; keep the site's existing BeTheme grid. */
:is(.mcb-section-stagebau-refs, .stagebau-reference-section) {
    padding-block: clamp(60px, 7vw, 120px);
    padding-inline: 100px;
    background: #1a1c1d;
}
:is(.mcb-section-stagebau-refs, .stagebau-reference-section) .mcb-wrap-inner,
:is(.mcb-section-stagebau-refs, .stagebau-reference-section) .mcb-column-inner {
    margin: 0;
    padding: 0;
}
.stagebau-references {
    width: 100%;
    box-sizing: border-box;
}
.stagebau-references h2 {
    margin: 0 0 clamp(28px, 4vw, 56px);
    color: #76b828;
}
#Content .stagebau-references__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    margin: 0;
    list-style: none;
    background: #d8dcde;
}
#Content .stagebau-references__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 150px;
    box-sizing: border-box;
    padding: 32px 24px;
    margin: 0;
    background: #fff;
}
.stagebau-references__canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 84px;
    min-width: 0;
}
.stagebau-references__item img {
    display: block;
    width: var(--stagebau-logo-width, 190px);
    height: var(--stagebau-logo-height, 84px);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .8;
    transition: filter 250ms ease, opacity 250ms ease, transform 250ms ease;
}
.stagebau-references__item:hover img {
    filter: grayscale(0);
    opacity: 1;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .stagebau-references__item:hover img {
        transform: scale(1.08);
    }
}
@media (max-width: 1239px) {
    #Content .stagebau-references__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 959px) {
    :is(.mcb-section-stagebau-refs, .stagebau-reference-section) { padding-inline: 62px; }
}
@media (max-width: 767px) {
    :is(.mcb-section-stagebau-refs, .stagebau-reference-section) { padding-inline: 33px; }
    #Content .stagebau-references__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #Content .stagebau-references__item {
        min-height: 125px;
        padding: 24px 18px;
    }
    .stagebau-references__canvas { height: 72px; }
}
@media (hover: none), (pointer: coarse) {
    .stagebau-references__item img { filter: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .stagebau-references__item img { transition: none; }
}
