/* Keep the storefront chrome deliberately simple. */
header .wp-block-woocommerce-customer-account,
header .wp-block-woocommerce-mini-cart {
    display: none !important;
}

footer a {
    color: #fff !important;
}

.mbg-logo {
    display: block;
    width: min(245px, 34vw);
    height: auto;
}

@media (max-width: 782px) {
    .mbg-logo {
        width: 180px;
        max-width: 58vw;
    }
}

.mbg-hero h1,
.mbg-page-hero h1 {
    max-width: 900px;
}

.mbg-hero p:not(.mbg-eyebrow),
.mbg-page-hero p:not(.mbg-eyebrow) {
    max-width: 780px;
}

.mbg-eyebrow {
    margin-bottom: .75rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mbg-card-grid {
    gap: 1.25rem;
    margin-top: 2rem;
}

.mbg-service-card,
.mbg-contact-card,
.mbg-facts {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid #dce4eb;
    background: #fff;
}

.mbg-service-card {
    min-height: 250px;
}

.mbg-service-card h2,
.mbg-service-card h3 {
    margin-top: 0;
}

.mbg-service-card a,
.mbg-contact-card a {
    color: #075aa8;
    font-weight: 750;
}

.mbg-facts {
    border-left: 4px solid #075aa8;
}

.mbg-process {
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: #f2f4f5;
}

.mbg-process li {
    margin-bottom: .65rem;
}

.mbg-hero .is-style-outline .wp-block-button__link,
.mbg-cta .is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid currentColor !important;
}

.mbg-hero .is-style-outline .wp-block-button__link {
    color: #fff !important;
}

.mbg-cta .is-style-outline .wp-block-button__link {
    color: #075aa8 !important;
}

@media (max-width: 782px) {
    .mbg-service-card {
        min-height: 0;
    }
}

.mbg-guide-section {
    background: #fff;
    padding-inline: clamp(1.5rem, 3vw, 3.5rem) !important;
}

.mbg-guide-section .wp-block-columns {
    gap: clamp(2rem, 6vw, 6rem);
    align-items: stretch;
}

.mbg-guide-section li {
    margin-bottom: .7rem;
}

.mbg-guide-card {
    padding: clamp(1.75rem, 4vw, 3.25rem);
    border-radius: 14px;
    background: #f2f4f5;
    border: 1px solid #dce4eb;
}

.mbg-guide-card a {
    color: #075aa8;
    font-weight: 750;
}

/* Cohesive, industrial hero composition. */
.mbg-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 760px) 1fr;
    align-content: center;
    row-gap: 1.25rem;
    min-height: clamp(540px, 54vw, 720px);
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 5rem) !important;
    background-image:
        linear-gradient(90deg, rgba(6, 49, 91, .16), rgba(7, 90, 168, .04)),
        url('../images/mbg-panorama.jpg');
    background-position: center center;
}

.mbg-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: min(920px, 66vw);
    background: linear-gradient(120deg, rgba(5, 43, 77, .98), rgba(7, 90, 168, .9));
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}

.mbg-hero > * {
    grid-column: 1;
    width: 100% !important;
    max-width: 720px !important;
    margin-inline: 0 !important;
    position: relative;
    z-index: 1;
}

.mbg-hero .mbg-eyebrow {
    width: fit-content !important;
    margin: 0 0 .35rem !important;
    padding: .5rem .75rem;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.mbg-hero h1 {
    margin-block: 0;
    font-size: clamp(2.5rem, 4.6vw, 4.8rem) !important;
    line-height: 1.02;
    text-wrap: balance;
}

.mbg-hero p.has-medium-font-size {
    margin-block: .3rem .5rem;
    font-size: clamp(1.05rem, 1.45vw, 1.25rem) !important;
    line-height: 1.65;
}

.mbg-hero .wp-block-buttons {
    gap: .85rem;
    margin-top: .5rem;
}

.mbg-hero .wp-block-button__link {
    padding-inline: 1.4rem;
}

@media (max-width: 781px) {
    .mbg-hero {
        display: block;
        min-height: 0;
        padding: 4.5rem 1.25rem !important;
        background-position: 62% center;
    }

    .mbg-hero::before {
        width: 100%;
        clip-path: none;
        background: linear-gradient(120deg, rgba(5, 43, 77, .96), rgba(7, 90, 168, .78));
    }

    .mbg-hero > * + * {
        margin-top: 1.1rem !important;
    }

    .mbg-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.5rem) !important;
    }

    .mbg-section {
        padding-inline: 1.25rem !important;
    }

    .mbg-section .mbg-card-grid {
        display: block !important;
        width: 100% !important;
        margin-inline: 0 !important;
    }

    .mbg-section .mbg-service-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 1.25rem !important;
    }

    .mbg-section .mbg-service-card h3,
    .mbg-section .mbg-service-card p,
    .mbg-section .mbg-service-card a {
        overflow-wrap: anywhere;
    }

    .mbg-guide-section {
        padding-block: 2.75rem !important;
        padding-inline: 1.25rem !important;
    }

    .mbg-guide-section .wp-block-columns {
        display: block !important;
        width: 100% !important;
        margin-inline: 0 !important;
    }

    .mbg-guide-section .wp-block-column {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 1.5rem !important;
    }

    .mbg-guide-section h2,
    .mbg-guide-section p,
    .mbg-guide-section li {
        overflow-wrap: anywhere;
    }
}

/* Service navigator: compact comparison instead of a conventional card grid. */
.mbg-section {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(540px, 1.28fr);
    grid-template-rows: auto 1fr;
    gap: 1rem clamp(2.5rem, 6vw, 7rem);
    align-items: start;
    padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 4vw, 5rem) !important;
    background-color: #0f2233 !important;
    background-image: linear-gradient(135deg, #0f2233 0%, #06355f 100%) !important;
    color: #fff !important;
}

.mbg-section > h2,
.mbg-section > p,
.mbg-section > .mbg-card-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.mbg-section > h2 {
    grid-column: 1;
    grid-row: 1;
    color: #fff;
    text-align: left !important;
    font-size: clamp(2rem, 3.4vw, 3.6rem);
    line-height: 1.08;
    text-wrap: balance;
}

.mbg-section > p {
    grid-column: 1;
    grid-row: 2;
    max-width: 520px !important;
    color: rgba(255, 255, 255, .76);
    text-align: left !important;
    font-size: 1.05rem;
}

.mbg-section > .mbg-card-grid {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: .85rem;
}

.mbg-section .mbg-service-card {
    min-height: 0;
    padding: 1.6rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .98);
    color: #12202d !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.mbg-section .mbg-service-card h3,
.mbg-section .mbg-service-card p {
    color: #12202d !important;
}

.mbg-section .mbg-service-card::before {
    position: absolute;
    top: 1.75rem;
    left: 1.75rem;
    margin: 0;
}

.mbg-section .mbg-service-card::after {
    width: 5px;
}

.mbg-section .mbg-service-card h3 {
    margin-bottom: .55rem;
}

.mbg-section .mbg-service-card p {
    margin-block: .35rem;
}

.mbg-section .mbg-service-card p:last-child {
    margin-top: .9rem;
}

@media (max-width: 980px) {
    .mbg-section {
        display: block;
        padding: 3.75rem 1.25rem !important;
    }

    .mbg-section > h2,
    .mbg-section > p {
        max-width: 720px !important;
    }

    .mbg-section > p {
        margin-top: 1rem !important;
    }

    .mbg-section > .mbg-card-grid {
        margin-top: 2.25rem !important;
    }
}

/* Final image placement inside the selected service navigator. */
.mbg-section .mbg-service-card {
    min-height: 185px;
    padding: 1.5rem 1.75rem 1.5rem calc(35% + 1.75rem);
}

.mbg-section .mbg-service-card::before {
    content: '' !important;
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 35%;
    margin: 0;
    border-radius: 9px 0 0 9px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mbg-section .mbg-service-card:nth-child(1)::before {
    background-image: linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-balkone-v1.png');
}

.mbg-section .mbg-service-card:nth-child(2)::before {
    background-image: linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-konstruktionsbau-v1.png');
}

.mbg-section .mbg-service-card:nth-child(3)::before {
    background-image: linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-reparatur-v1.png');
}

@media (max-width:680px) {
    .mbg-section .mbg-service-card {
        padding: 175px 1.25rem 1.4rem;
    }

    .mbg-section .mbg-service-card::before {
        inset: 0 0 auto;
        width: 100%;
        height: 145px;
        border-radius: 9px 9px 0 0;
    }
}

/* Decorative service imagery; these are category visuals, not project references. */
.mbg-section .mbg-service-card {
    min-height: 185px;
    padding: 1.5rem 1.75rem 1.5rem calc(35% + 1.75rem);
}

.mbg-section .mbg-service-card::before {
    content: '' !important;
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 35%;
    margin: 0;
    border-radius: 9px 0 0 9px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mbg-section .mbg-service-card:nth-child(1)::before {
    background-image: linear-gradient(rgba(7, 90, 168, .08), rgba(7, 90, 168, .08)), url('../images/service-balkone-v1.png');
}

.mbg-section .mbg-service-card:nth-child(2)::before {
    background-image: linear-gradient(rgba(7, 90, 168, .08), rgba(7, 90, 168, .08)), url('../images/service-konstruktionsbau-v1.png');
}

.mbg-section .mbg-service-card:nth-child(3)::before {
    background-image: linear-gradient(rgba(7, 90, 168, .08), rgba(7, 90, 168, .08)), url('../images/service-reparatur-v1.png');
}

@media (max-width: 680px) {
    .mbg-section .mbg-service-card {
        padding: 175px 1.25rem 1.4rem;
    }

    .mbg-section .mbg-service-card::before {
        inset: 0 0 auto;
        width: 100%;
        height: 145px;
        border-radius: 9px 9px 0 0;
    }
}

/* Alternative editorial service layout: open, quiet and without card chrome. */
.mbg-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    grid-template-rows: auto auto;
    gap: 1.5rem clamp(3rem, 8vw, 9rem);
    padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 4vw, 5rem) !important;
    background-color: #f5f8fb !important;
    background-image: none !important;
    color: #12202d !important;
}

.mbg-section > h2 {
    grid-column: 1;
    grid-row: 1;
    max-width: 850px !important;
    color: #12202d !important;
    font-size: clamp(2.25rem, 4vw, 4.25rem);
}

.mbg-section > p {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    max-width: 560px !important;
    color: #40505e !important;
    font-size: 1.05rem;
}

.mbg-section > .mbg-card-grid {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3.5rem);
    margin-top: clamp(2rem, 4vw, 4rem) !important;
}

.mbg-section .mbg-service-card {
    display: block;
    min-height: 0;
    padding: clamp(1.5rem, 2.5vw, 2.25rem) 0 0;
    border: 0;
    border-top: 4px solid #075aa8;
    border-radius: 0;
    background: transparent;
    color: #12202d !important;
    box-shadow: none;
    overflow: visible;
}

.mbg-section .mbg-service-card::after {
    display: none;
}

.mbg-section .mbg-service-card::before {
    position: static;
    display: block;
    margin: 0 0 clamp(2rem, 4vw, 4rem);
    color: rgba(7, 90, 168, .28);
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: .8;
    letter-spacing: -.05em;
}

.mbg-section .mbg-service-card:hover {
    transform: none;
    border-color: #f2b705;
    box-shadow: none;
}

.mbg-section .mbg-service-card h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.mbg-section .mbg-service-card p {
    max-width: 500px;
    color: #40505e !important;
}

.mbg-section .mbg-service-card p:last-child {
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .mbg-section {
        display: block;
        padding: 3.75rem 1.25rem !important;
    }

    .mbg-section > p {
        margin-top: 1rem !important;
    }

    .mbg-section > .mbg-card-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .mbg-section .mbg-service-card::before {
        margin-bottom: 1.5rem;
    }
}

/* Selected concept: dark service navigator. */
.mbg-section {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(540px, 1.28fr);
    grid-template-rows: auto 1fr;
    gap: 1rem clamp(2.5rem, 6vw, 7rem);
    align-items: start;
    padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 4vw, 5rem) !important;
    background-color: #0f2233 !important;
    background-image: linear-gradient(135deg, #0f2233 0%, #06355f 100%) !important;
    color: #fff !important;
}

.mbg-section > h2 {
    grid-column: 1;
    grid-row: 1;
    max-width: none !important;
    color: #fff !important;
    text-align: left !important;
    font-size: clamp(2rem, 3.4vw, 3.6rem);
    line-height: 1.08;
}

.mbg-section > p {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    max-width: 520px !important;
    color: rgba(255, 255, 255, .76) !important;
    text-align: left !important;
    font-size: 1.05rem;
}

.mbg-section > .mbg-card-grid {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: .85rem;
    margin: 0 !important;
}

.mbg-section .mbg-service-card {
    position: relative;
    display: block;
    min-height: 0;
    padding: 1.6rem 1.75rem 1.6rem 5.25rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .98);
    color: #12202d !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
    overflow: hidden;
}

.mbg-section .mbg-service-card::after {
    display: block;
    width: 5px;
}

.mbg-section .mbg-service-card::before {
    display: none;
}

.mbg-section .mbg-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .3);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .2);
}

.mbg-section .mbg-service-card h3 {
    margin-bottom: .55rem;
    color: #12202d !important;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.mbg-section .mbg-service-card p {
    max-width: none;
    margin-block: .35rem;
    color: #40505e !important;
}

.mbg-section .mbg-service-card p:last-child {
    margin-top: .9rem;
}

@media (max-width: 980px) {
    .mbg-section {
        display: block;
        padding: 3.75rem 1.25rem !important;
    }

    .mbg-section > p {
        margin-top: 1rem !important;
    }

    .mbg-section > .mbg-card-grid {
        grid-template-columns: 1fr !important;
        margin-top: 2.25rem !important;
    }
}

/* Use the available viewport width while retaining comfortable edge spacing. */
.mbg-shop-header .alignwide,
main .alignwide,
footer .alignwide {
    width: 100% !important;
    max-width: none !important;
}

.mbg-shop-header > .wp-block-group,
main > .wp-block-group:not(.alignfull),
footer > .wp-block-columns {
    padding-inline: clamp(1rem, 3vw, 3.5rem);
}

.mbg-hero > *,
.mbg-page-hero > * {
    width: 100%;
    max-width: none;
}

.mbg-hero h1,
.mbg-page-hero h1,
.mbg-hero p:not(.mbg-eyebrow),
.mbg-page-hero p:not(.mbg-eyebrow) {
    max-width: 980px;
}

.mbg-hero {
    min-height: clamp(440px, 58vw, 680px);
    background-color: #075aa8 !important;
    background-image:
        linear-gradient(90deg, rgba(6, 49, 91, .94) 0%, rgba(7, 90, 168, .82) 48%, rgba(7, 90, 168, .28) 100%),
        url('../images/mbg-panorama.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 782px) {
    .mbg-hero {
        min-height: 520px;
        background-image:
            linear-gradient(90deg, rgba(6, 49, 91, .94), rgba(7, 90, 168, .72)),
            url('../images/mbg-panorama.jpg');
        background-position: 62% center;
    }
}

/* Modern service overview. */
.mbg-section {
    background: linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
}

.mbg-section > h2 {
    margin-bottom: .45rem;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.mbg-card-grid {
    gap: clamp(1rem, 2vw, 1.75rem);
}

.mbg-service-card {
    position: relative;
    min-height: 300px;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border: 1px solid rgba(7, 90, 168, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 35px rgba(18, 32, 45, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
}

.mbg-service-card::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #075aa8;
}

.mbg-service-card::before {
    display: block;
    margin-bottom: 2.4rem;
    color: #075aa8;
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.mbg-card-grid > .mbg-service-card:nth-child(1)::before { content: '01'; }
.mbg-card-grid > .mbg-service-card:nth-child(2)::before { content: '02'; }
.mbg-card-grid > .mbg-service-card:nth-child(3)::before { content: '03'; }

.mbg-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(7, 90, 168, .34);
    box-shadow: 0 20px 45px rgba(18, 32, 45, .13);
}

.mbg-service-card h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.mbg-service-card p:last-child {
    margin-top: 1.8rem;
}

.mbg-service-card a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}

.mbg-service-card a:hover {
    text-decoration: underline;
}

.mbg-facts {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, #075aa8, #06355f);
    color: #fff;
    box-shadow: 0 18px 40px rgba(18, 32, 45, .14);
}

.mbg-facts h3 {
    color: #fff;
}

.mbg-cta {
    margin-block: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 4rem) !important;
    border-radius: 16px;
    background: linear-gradient(120deg, #06355f 0%, #075aa8 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(18, 32, 45, .16);
}

.mbg-cta h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.mbg-cta > p {
    margin-bottom: 1.75rem;
}

.mbg-cta .wp-block-buttons {
    gap: 1rem;
}

.mbg-cta .is-style-outline .wp-block-button__link {
    color: #fff !important;
}

@media (max-width: 782px) {
    .mbg-service-card {
        min-height: 0;
    }

    .mbg-service-card::before {
        margin-bottom: 1.4rem;
    }

    .mbg-cta {
        border-radius: 10px;
        padding-block: 2.75rem !important;
    }
}

/* Generated category visuals in the final cascade. */
.mbg-section .mbg-service-card{min-height:185px;padding:1.5rem 1.75rem 1.5rem calc(35% + 1.75rem)}
.mbg-section .mbg-service-card::before{content:''!important;position:absolute;inset:0 auto 0 0;display:block;width:35%;margin:0;border-radius:9px 0 0 9px;background-position:center;background-size:cover;background-repeat:no-repeat}
.mbg-section .mbg-service-card:nth-child(1)::before{background-image:linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-balkone-v1.png')}
.mbg-section .mbg-service-card:nth-child(2)::before{background-image:linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-konstruktionsbau-v1.png')}
.mbg-section .mbg-service-card:nth-child(3)::before{background-image:linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-reparatur-v1.png')}
@media(max-width:680px){.mbg-section .mbg-service-card{padding:175px 1.25rem 1.4rem}.mbg-section .mbg-service-card::before{inset:0 0 auto;width:100%;height:145px;border-radius:9px 9px 0 0}}

/* Alternating service rows with identical dimensions and content rhythm. */
.mbg-section .mbg-service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 210px;
}

.mbg-section .mbg-service-card:nth-child(1),
.mbg-section .mbg-service-card:nth-child(3) {
    transform: translateX(-24px);
}

.mbg-section .mbg-service-card:nth-child(2) {
    padding: 1.5rem calc(35% + 1.75rem) 1.5rem 1.75rem;
    transform: translateX(24px);
}

.mbg-section .mbg-service-card:nth-child(2)::before {
    inset: 0 0 0 auto;
    border-radius: 0 9px 9px 0;
}

.mbg-section .mbg-service-card:nth-child(1):hover,
.mbg-section .mbg-service-card:nth-child(3):hover {
    transform: translate(-24px,-4px);
}

.mbg-section .mbg-service-card:nth-child(2):hover {
    transform: translate(24px,-4px);
}

@media(max-width:980px) {
    .mbg-section .mbg-service-card,
    .mbg-section .mbg-service-card:nth-child(1),
    .mbg-section .mbg-service-card:nth-child(2),
    .mbg-section .mbg-service-card:nth-child(3),
    .mbg-section .mbg-service-card:nth-child(1):hover,
    .mbg-section .mbg-service-card:nth-child(2):hover,
    .mbg-section .mbg-service-card:nth-child(3):hover {
        transform: none;
    }
}

/* Helpful service copy in the open side of each zigzag row. */
.mbg-section > .mbg-card-grid {
    align-items: center !important;
    row-gap: clamp(2.75rem,5vw,5.5rem) !important;
}

.mbg-section .mbg-service-note {
    align-self: center;
    min-width: 0;
    max-width: 620px;
    padding: clamp(.5rem,2vw,1.5rem) clamp(.25rem,2.5vw,2.25rem);
    color: rgba(255,255,255,.84);
}

.mbg-section .mbg-service-note .mbg-eyebrow {
    display: none !important;
}

.mbg-section .mbg-service-note h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.55rem,2.2vw,2.15rem);
    line-height: 1.16;
    text-wrap: balance;
}

.mbg-section .mbg-service-note p:not(.mbg-eyebrow) {
    margin: 0 0 .85rem;
    color: rgba(255,255,255,.82) !important;
    font-size: clamp(1rem,1.15vw,1.1rem);
    line-height: 1.7;
}

.mbg-section .mbg-note-1 { grid-column: 1; grid-row: 1; }
.mbg-section .mbg-card-1 { grid-column: 2 !important; grid-row: 1 !important; }
.mbg-section .mbg-card-2 { grid-column: 1 !important; grid-row: 2 !important; }
.mbg-section .mbg-note-2 { grid-column: 2; grid-row: 2; }
.mbg-section .mbg-note-3 { grid-column: 1; grid-row: 3; }
.mbg-section .mbg-card-3 { grid-column: 2 !important; grid-row: 3 !important; }

.mbg-section .mbg-card-1,
.mbg-section .mbg-card-3 {
    min-height: 260px;
    padding: 1.5rem 1.75rem 1.5rem calc(35% + 1.75rem) !important;
}

.mbg-section .mbg-card-2 {
    min-height: 260px;
    padding: 1.5rem calc(35% + 1.75rem) 1.5rem 1.75rem !important;
}

.mbg-section .mbg-card-1::before,
.mbg-section .mbg-card-3::before {
    inset: 0 auto 0 0 !important;
    border-radius: 9px 0 0 9px !important;
}

.mbg-section .mbg-card-2::before {
    inset: 0 0 0 auto !important;
    border-radius: 0 9px 9px 0 !important;
}

.mbg-section .mbg-card-1::before {
    background-image: linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-balkone-v1.png') !important;
}

.mbg-section .mbg-card-2::before {
    background-image: linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-konstruktionsbau-v1.png') !important;
}

.mbg-section .mbg-card-3::before {
    background-image: linear-gradient(rgba(7,90,168,.08),rgba(7,90,168,.08)),url('../images/service-reparatur-v1.png') !important;
}

@media(max-width:980px) {
    .mbg-section .mbg-note-1 { grid-row: 1 !important; }
    .mbg-section .mbg-card-1 { grid-row: 2 !important; }
    .mbg-section .mbg-note-2 { grid-row: 3 !important; }
    .mbg-section .mbg-card-2 { grid-row: 4 !important; }
    .mbg-section .mbg-note-3 { grid-row: 5 !important; }
    .mbg-section .mbg-card-3 { grid-row: 6 !important; }

    .mbg-section .mbg-service-note,
    .mbg-section .mbg-card-1,
    .mbg-section .mbg-card-2,
    .mbg-section .mbg-card-3 {
        grid-column: 1 !important;
    }
}

@media(max-width:680px) {
    .mbg-section .mbg-card-1,
    .mbg-section .mbg-card-2,
    .mbg-section .mbg-card-3 {
        min-height: 0;
        padding: 175px 1.25rem 1.4rem !important;
    }

    .mbg-section .mbg-card-1::before,
    .mbg-section .mbg-card-2::before,
    .mbg-section .mbg-card-3::before {
        inset: 0 0 auto !important;
        width: 100% !important;
        height: 145px !important;
        border-radius: 9px 9px 0 0 !important;
    }
}

/* Subtle interactive lift for the service elements. */
@media (hover:hover) and (pointer:fine) {
    .mbg-section .mbg-service-card {
        transition: transform .28s ease, box-shadow .28s ease !important;
        will-change: transform;
    }

    .mbg-section .mbg-service-card:hover {
        transform: translateY(-6px) !important;
        box-shadow: 0 20px 42px rgba(0,0,0,.22) !important;
    }
}

/* Cohesive planning and company transition below the service area. */
.mbg-guide-section {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(3.75rem,6vw,6rem) clamp(1.25rem,4vw,5rem) !important;
    background: linear-gradient(135deg,#edf4fa 0%,#f8fbfd 100%);
}

.mbg-guide-section > .wp-block-columns {
    gap: clamp(1.25rem,3vw,2.5rem) !important;
    align-items: stretch !important;
}

.mbg-guide-section > .wp-block-columns > .wp-block-column {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 !important;
    padding: clamp(2rem,3vw,3rem) !important;
    border: 1px solid rgba(12,75,128,.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15,34,51,.08);
}

.mbg-guide-section .mbg-guide-card {
    border-color: rgba(255,255,255,.12) !important;
    background: linear-gradient(135deg,#0d416f 0%,#0866b6 100%) !important;
    color: #fff;
    box-shadow: 0 20px 48px rgba(4,63,111,.22) !important;
}

.mbg-guide-section .mbg-eyebrow {
    margin-bottom: 1rem;
    color: #0866b6;
}

.mbg-guide-section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.55rem,2.1vw,2.05rem);
    line-height: 1.2;
}

.mbg-guide-section p,
.mbg-guide-section li {
    line-height: 1.65;
}

.mbg-guide-section ul,
.mbg-guide-section ol {
    margin: 1.35rem 0 0;
    padding-left: 1.4rem;
}

.mbg-guide-section li + li {
    margin-top: .75rem;
}

.mbg-guide-section .mbg-guide-card .mbg-eyebrow,
.mbg-guide-section .mbg-guide-card h2,
.mbg-guide-section .mbg-guide-card p,
.mbg-guide-section .mbg-guide-card li,
.mbg-guide-section .mbg-guide-card a {
    color: #fff !important;
}

.mbg-guide-section .mbg-guide-card a {
    text-decoration-color: rgba(255,255,255,.65);
    text-underline-offset: .25em;
}

.mbg-guide-section + .wp-block-group.alignfull {
    box-sizing: border-box;
    padding: clamp(3.75rem,6vw,6rem) clamp(1.25rem,4vw,5rem) !important;
    background: #fff !important;
}

.mbg-guide-section + .wp-block-group.alignfull > .wp-block-columns {
    gap: clamp(2rem,5vw,6rem) !important;
    align-items: center !important;
}

.mbg-guide-section + .wp-block-group.alignfull .mbg-eyebrow {
    color: #0866b6;
}

.mbg-guide-section + .wp-block-group.alignfull h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.7rem,2.4vw,2.35rem);
}

.mbg-guide-section + .wp-block-group.alignfull p {
    max-width: 780px;
    line-height: 1.7;
}

.mbg-guide-section + .wp-block-group.alignfull .mbg-facts {
    box-sizing: border-box;
    padding: clamp(2rem,3vw,3rem) !important;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: linear-gradient(135deg,#0d416f 0%,#0866b6 100%) !important;
    color: #fff;
    box-shadow: 0 20px 48px rgba(4,63,111,.2);
}

.mbg-guide-section + .wp-block-group.alignfull .mbg-facts h3,
.mbg-guide-section + .wp-block-group.alignfull .mbg-facts p {
    color: #fff !important;
}

@media (hover:hover) and (pointer:fine) {
    .mbg-guide-section > .wp-block-columns > .wp-block-column,
    .mbg-guide-section + .wp-block-group.alignfull .mbg-facts {
        transition: transform .28s ease, box-shadow .28s ease;
    }

    .mbg-guide-section > .wp-block-columns > .wp-block-column:hover,
    .mbg-guide-section + .wp-block-group.alignfull .mbg-facts:hover {
        transform: translateY(-6px);
    }
}

@media(max-width:780px) {
    .mbg-guide-section > .wp-block-columns,
    .mbg-guide-section + .wp-block-group.alignfull > .wp-block-columns {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

@media(max-width:680px) {
    .mbg-section .mbg-service-card:nth-child(2) {
        padding: 175px 1.25rem 1.4rem;
    }

    .mbg-section .mbg-service-card:nth-child(2)::before {
        inset: 0 0 auto;
        border-radius: 9px 9px 0 0;
    }
}

/* True two-column zigzag: right, left, right. */
.mbg-section {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(4rem,7vw,7rem) clamp(1.25rem,4vw,5rem) !important;
    overflow: hidden;
}

.mbg-section > h2,
.mbg-section > p {
    display: none !important;
}

.mbg-section > .mbg-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 1.35rem clamp(2rem,5vw,5rem) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.mbg-section .mbg-service-card,
.mbg-section .mbg-service-card:hover {
    min-width: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transform: none !important;
}

.mbg-section .mbg-service-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.mbg-section .mbg-service-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.mbg-section .mbg-service-card:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
}

@media(max-width:980px) {
    .mbg-section > .mbg-card-grid {
        grid-template-columns: 1fr !important;
    }

    .mbg-section .mbg-service-card:nth-child(1),
    .mbg-section .mbg-service-card:nth-child(2),
    .mbg-section .mbg-service-card:nth-child(3) {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

/* Final hover state: must follow the zigzag reset above. */
@media (hover:hover) and (pointer:fine) {
    .mbg-section .mbg-service-card {
        transition: transform .28s ease, box-shadow .28s ease !important;
        will-change: transform;
    }

    .mbg-section .mbg-service-card:hover {
        transform: translateY(-7px) !important;
        box-shadow: 0 22px 46px rgba(0,0,0,.26) !important;
    }
}

/* Technical details for the planning cards. */
.mbg-guide-section > .wp-block-columns > .wp-block-column {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.mbg-guide-section > .wp-block-columns > .wp-block-column > * {
    position: relative;
    z-index: 2;
}

.mbg-guide-section > .wp-block-columns > .wp-block-column:first-child::after {
    content: '';
    position: absolute;
    z-index: 1;
    right: -35px;
    bottom: -45px;
    width: 230px;
    height: 230px;
    opacity: .42;
    background-image:
        linear-gradient(rgba(8,102,182,.09) 1px,transparent 1px),
        linear-gradient(90deg,rgba(8,102,182,.09) 1px,transparent 1px);
    background-size: 22px 22px;
    transform: rotate(-8deg);
    mask-image: linear-gradient(135deg,transparent 5%,#000 75%);
}

.mbg-guide-section .mbg-guide-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    right: -85px;
    bottom: -105px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow:
        0 0 0 38px rgba(255,255,255,.035),
        0 0 0 78px rgba(255,255,255,.025);
}

.mbg-guide-section > .wp-block-columns > .wp-block-column::before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 0;
    left: clamp(2rem,3vw,3rem);
    width: 76px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: #0873ce;
}

.mbg-guide-section .mbg-guide-card::before {
    background: #73baff !important;
}

.mbg-guide-section ul {
    list-style: none;
    padding-left: 0;
}

.mbg-guide-section ul li {
    position: relative;
    padding-left: 1.85rem;
}

.mbg-guide-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: .08em;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: rgba(8,102,182,.11);
    color: #0866b6;
    font-size: .72rem;
    font-weight: 900;
}

.mbg-guide-section .mbg-guide-card ol {
    list-style: none;
    counter-reset: mbg-step;
    padding-left: 0;
}

.mbg-guide-section .mbg-guide-card ol li {
    position: relative;
    counter-increment: mbg-step;
    padding-left: 2.65rem;
}

.mbg-guide-section .mbg-guide-card ol li::before {
    content: counter(mbg-step);
    position: absolute;
    left: 0;
    top: -.12em;
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.mbg-guide-section .mbg-guide-card p:last-child {
    display: inline-flex;
    margin-top: 1.15rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 7px;
    background: rgba(255,255,255,.08);
}

/* Shop-first MBG header. */
.mbg-shop-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    margin: 0 !important;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15,34,51,.08);
}

.admin-bar .mbg-shop-header { top: 32px; }

.mbg-header-service {
    background: #0f2233;
    color: rgba(255,255,255,.82);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .035em;
}

.mbg-header-service-inner,
.mbg-header-main,
.mbg-header-nav-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-inline: clamp(1rem,4vw,5rem);
}

.mbg-header-service-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
    gap: 1.5rem;
}

.mbg-header-service p { margin: 0; }
.mbg-header-contact { display: flex; align-items: center; gap: .75rem; }
.mbg-header-contact a { color: #fff; text-decoration: none; }
.mbg-header-contact a:hover { text-decoration: underline; }

.mbg-header-main {
    display: grid;
    grid-template-columns: minmax(210px,280px) minmax(300px,1fr) auto;
    align-items: center;
    gap: clamp(1.5rem,3vw,3.5rem);
    min-height: 104px;
    padding-block: .85rem;
}

.mbg-header-main .mbg-brand,
.mbg-header-main .mbg-brand a { display: flex; align-items: center; }
.mbg-header-main .mbg-logo { width: min(100%,250px); height: auto; display: block; }

.mbg-product-search {
    display: grid;
    grid-template-columns: 1fr auto;
    min-width: 0;
    height: 50px;
    border: 1px solid #cdd9e3;
    border-radius: 8px;
    background: #f6f9fb;
    overflow: hidden;
    transition: border-color .2s ease,box-shadow .2s ease;
}

.mbg-product-search:focus-within {
    border-color: #0873ce;
    box-shadow: 0 0 0 3px rgba(8,115,206,.12);
}

.mbg-product-search input[type='search'] {
    min-width: 0;
    padding: 0 1.15rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: #12202d;
    font: inherit;
}

.mbg-product-search button {
    min-width: 104px;
    padding: 0 1.25rem;
    border: 0;
    background: #0873ce;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.mbg-product-search button:hover { background: #075da6; }

.mbg-header-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.mbg-header-actions > a {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 50px;
    padding: .45rem .75rem;
    border-radius: 8px;
    color: #12202d;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    transition: background .2s ease,color .2s ease;
}

.mbg-header-actions > a:hover { background: #edf5fc; color: #075aa8; }
.mbg-header-actions small { display: block; margin-bottom: .18rem; color: #6b7b89; font-size: .68rem; font-weight: 650; }
.mbg-action-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e6f1fa; color: #075aa8; font-size: 1.25rem; }

.mbg-header-nav-row {
    border-top: 1px solid #e1e8ee;
    border-bottom: 1px solid #d8e1e8;
    background: #fff;
}

.mbg-header-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    gap: 2rem;
}

.mbg-header-nav-inner .mbg-primary-nav { flex: 1; }
.mbg-header-nav-inner .wp-block-navigation__container { gap: clamp(1.25rem,2.5vw,2.75rem); }
.mbg-header-nav-inner .wp-block-navigation-item__content { position: relative; padding: 1rem 0; color: #12202d; font-size: .92rem; font-weight: 750; }
.mbg-header-nav-inner .wp-block-navigation-item__content::after { content: ''; position: absolute; right: 0; bottom: .65rem; left: 0; height: 2px; background: #0873ce; transform: scaleX(0); transition: transform .2s ease; }
.mbg-header-nav-inner .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.mbg-header-nav-inner .mbg-shop-nav-link .wp-block-navigation-item__content { color: #075aa8; }

.mbg-header-cta {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 38px;
    padding: .55rem 1rem;
    border-radius: 6px;
    background: #0f416d;
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.mbg-header-cta:hover { background: #0873ce; }

@media(max-width:1050px) {
    .mbg-header-main { grid-template-columns: 210px minmax(250px,1fr) auto; gap: 1rem; }
    .mbg-header-actions small { display: none; }
    .mbg-header-actions > a { padding-inline: .5rem; }
}

@media(max-width:820px) {
    .admin-bar .mbg-shop-header { top: 46px; }
    .mbg-shop-header { position: relative !important; top: auto !important; }
    .mbg-header-service-inner { justify-content: center; }
    .mbg-header-contact { display: none; }
    .mbg-header-main { grid-template-columns: 1fr auto; min-height: 82px; }
    .mbg-header-main .mbg-logo { width: 190px; }
    .mbg-product-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: .65rem; }
    .mbg-account-action { display: none !important; }
    .mbg-header-nav-inner { min-height: 52px; }
    .mbg-header-cta { display: none; }
    .mbg-header-nav-inner .wp-block-navigation__responsive-container-open { display: flex; }
}

@media(max-width:480px) {
    .mbg-header-main .mbg-logo { width: 160px; }
    .mbg-header-actions > a { font-size: .78rem; }
    .mbg-action-icon { width: 30px; height: 30px; }
    .mbg-product-search button { min-width: 82px; padding-inline: .8rem; }
}

/* Sticky positioning belongs to the outer WordPress template part. */
header.wp-block-template-part {
    position: relative;
    top: auto;
    z-index: 1100;
    width: 100%;
}

.admin-bar header.wp-block-template-part {
    top: auto;
}

header.wp-block-template-part .mbg-shop-header {
    position: relative !important;
    top: auto !important;
}

@media(max-width:782px) {
    .admin-bar header.wp-block-template-part {
        top: auto;
    }
}

/* Header scrolls normally with the page. */
.mbg-shop-header,
header.wp-block-template-part {
    position: relative !important;
    top: auto !important;
}
