/* =========================================================
   HERSTELLER NACHHALTIGKEIT 2026
   Datei: /wp-content/themes/mueller/css/nachhaltigkeit.css
   Wiederverwendbarer Zertifikats-/Verantwortungsblock
   ========================================================= */


/* =========================================================
   BASIS / FULLWIDTH
========================================================= */

#top .mueller-nachhaltigkeit-2026 {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #ffffff;

    padding: 66px 0 78px;

    overflow: hidden;
    box-sizing: border-box;
}

#top .mueller-nachhaltigkeit-inner {
    width: 100%;
    max-width: 1480px;

    margin: 0 auto;
    padding: 0 32px;

    box-sizing: border-box;
}


/* =========================================================
   HEAD
========================================================= */

#top .mueller-nachhaltigkeit-head {
    max-width: 980px;
    margin: 0 auto 52px;

    text-align: center;
}

#top .mueller-nachhaltigkeit-head div {
    color: var(--mueller-red);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 14px;
}

#top .mueller-nachhaltigkeit-head h2 {
    color: var(--mueller-black) !important;
    background: transparent !important;

    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.1;
    font-weight: 800;

    letter-spacing: -0.035em;

    margin: 0 0 22px 0;
}

#top .mueller-nachhaltigkeit-head p {
    max-width: 920px;

    margin: 0 auto;

    color: rgba(17,17,17,0.78) !important;

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   GRID
========================================================= */

#top .mueller-nachhaltigkeit-grid {
    display: grid;
    gap: 0;
}

#top .mueller-nachhaltigkeit-grid.is-3 {
    grid-template-columns: repeat(3, 1fr);
}

#top .mueller-nachhaltigkeit-grid.is-4 {
    grid-template-columns: repeat(4, 1fr);
}

#top .mueller-nachhaltigkeit-grid.is-5 {
    grid-template-columns: repeat(5, 1fr);
}

#top .mueller-nachhaltigkeit-grid.is-6 {
    grid-template-columns: repeat(6, 1fr);
}

#top .mueller-nachhaltigkeit-grid.is-8 {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 52px;
}


/* =========================================================
   ITEM
========================================================= */

#top .mueller-nachhaltigkeit-item {
    position: relative;

    text-align: center;

    padding: 10px 24px 0;

    box-sizing: border-box;
}

#top .mueller-nachhaltigkeit-item:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 8px;
    right: 0;

    width: 1px;
    height: 236px;

    background: rgba(0,0,0,0.10);
}

#top .mueller-nachhaltigkeit-grid.is-8 .mueller-nachhaltigkeit-item:nth-child(4)::after {
    display: none;
}


/* =========================================================
   LOGO
========================================================= */

#top .mueller-nachhaltigkeit-logo {
    height: 76px;

    margin-bottom: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#top .mueller-nachhaltigkeit-logo img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 142px !important;
    max-height: 66px !important;

    object-fit: contain !important;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

#top .mueller-nachhaltigkeit-item:hover .mueller-nachhaltigkeit-logo img {
    transform: translateY(-2px) scale(1.035);
}


/* =========================================================
   TEXT
========================================================= */

#top .mueller-nachhaltigkeit-item h3 {
    color: var(--mueller-black) !important;
    background: transparent !important;

    font-size: 20px;
    line-height: 1.18;
    font-weight: 800;

    letter-spacing: -0.025em;

    margin: 0 0 16px 0;
}

#top .mueller-nachhaltigkeit-item p {
    color: rgba(17,17,17,0.78) !important;

    font-size: 14px;
    line-height: 1.65;

    margin: 0 0 20px 0;
}


/* =========================================================
   LINKS
========================================================= */

#top .mueller-nachhaltigkeit-link,
#top .mueller-nachhaltigkeit-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--mueller-red) !important;
    background: transparent !important;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;

    text-decoration: none !important;
}

#top .mueller-nachhaltigkeit-link::after {
    content: "→";

    display: inline-block;

    margin-left: 7px;

    transition: transform .25s ease;
}

#top .mueller-nachhaltigkeit-link:hover {
    color: var(--mueller-black) !important;
}

#top .mueller-nachhaltigkeit-link:hover::after {
    transform: translateX(4px);
}

#top .mueller-nachhaltigkeit-label {
    color: rgba(17,17,17,0.56) !important;
}


/* =========================================================
   VARIANTE: SOFT BACKGROUND
========================================================= */

#top .mueller-nachhaltigkeit-2026.is-soft {
    background: var(--mueller-gray-50);
}


/* =========================================================
   VARIANTE: DARK
========================================================= */

#top .mueller-nachhaltigkeit-2026.is-dark {
    background:
        radial-gradient(circle at 12% 8%, rgba(225,37,27,0.14) 0%, rgba(225,37,27,0.04) 20%, transparent 40%),
        linear-gradient(180deg, #050505 0%, #0b0b0b 52%, #050505 100%);
}

#top .mueller-nachhaltigkeit-2026.is-dark .mueller-nachhaltigkeit-head h2,
#top .mueller-nachhaltigkeit-2026.is-dark .mueller-nachhaltigkeit-item h3 {
    color: #ffffff !important;
}

#top .mueller-nachhaltigkeit-2026.is-dark .mueller-nachhaltigkeit-head p,
#top .mueller-nachhaltigkeit-2026.is-dark .mueller-nachhaltigkeit-item p {
    color: rgba(255,255,255,0.78) !important;
}

#top .mueller-nachhaltigkeit-2026.is-dark .mueller-nachhaltigkeit-item:not(:last-child)::after {
    background: rgba(255,255,255,0.14);
}

#top .mueller-nachhaltigkeit-2026.is-dark .mueller-nachhaltigkeit-logo img {
    filter: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media only screen and (max-width: 1280px) {

    #top .mueller-nachhaltigkeit-inner {
        max-width: 1320px;
        padding: 0 28px;
    }

    #top .mueller-nachhaltigkeit-item {
        padding-left: 20px;
        padding-right: 20px;
    }

    #top .mueller-nachhaltigkeit-item h3 {
        font-size: 19px;
    }

}

@media only screen and (max-width: 1100px) {

    #top .mueller-nachhaltigkeit-grid.is-5,
    #top .mueller-nachhaltigkeit-grid.is-6,
    #top .mueller-nachhaltigkeit-grid.is-8 {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 46px;
    }

    #top .mueller-nachhaltigkeit-grid.is-4 {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 46px;
    }

    #top .mueller-nachhaltigkeit-item:nth-child(3)::after,
    #top .mueller-nachhaltigkeit-grid.is-4 .mueller-nachhaltigkeit-item:nth-child(2)::after,
    #top .mueller-nachhaltigkeit-grid.is-8 .mueller-nachhaltigkeit-item:nth-child(4)::after {
        display: none;
    }

    #top .mueller-nachhaltigkeit-grid.is-5 .mueller-nachhaltigkeit-item:nth-child(3)::after,
    #top .mueller-nachhaltigkeit-grid.is-6 .mueller-nachhaltigkeit-item:nth-child(3)::after,
    #top .mueller-nachhaltigkeit-grid.is-8 .mueller-nachhaltigkeit-item:nth-child(3)::after,
    #top .mueller-nachhaltigkeit-grid.is-8 .mueller-nachhaltigkeit-item:nth-child(6)::after {
        display: none;
    }

    #top .mueller-nachhaltigkeit-grid.is-5 .mueller-nachhaltigkeit-item:nth-child(4)::after,
    #top .mueller-nachhaltigkeit-grid.is-6 .mueller-nachhaltigkeit-item:nth-child(4)::after,
    #top .mueller-nachhaltigkeit-grid.is-8 .mueller-nachhaltigkeit-item:nth-child(4)::after {
        display: block;
    }

}

@media only screen and (max-width: 767px) {

    #top .mueller-nachhaltigkeit-2026 {
        padding: 52px 0 62px;
    }

    #top .mueller-nachhaltigkeit-inner {
        padding: 0 22px;
    }

    #top .mueller-nachhaltigkeit-head {
        margin-bottom: 42px;
    }

    #top .mueller-nachhaltigkeit-head h2 {
        font-size: 34px;
    }

    #top .mueller-nachhaltigkeit-head p {
        font-size: 15px;
        line-height: 1.65;
    }

    #top .mueller-nachhaltigkeit-grid,
    #top .mueller-nachhaltigkeit-grid.is-3,
    #top .mueller-nachhaltigkeit-grid.is-4,
    #top .mueller-nachhaltigkeit-grid.is-5,
    #top .mueller-nachhaltigkeit-grid.is-6,
    #top .mueller-nachhaltigkeit-grid.is-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px 0;
    }

    #top .mueller-nachhaltigkeit-item {
        padding: 0 18px;
    }

    #top .mueller-nachhaltigkeit-item::after {
        display: none !important;
    }

    #top .mueller-nachhaltigkeit-logo {
        height: 68px;
        margin-bottom: 20px;
    }

    #top .mueller-nachhaltigkeit-logo img {
        max-width: 128px !important;
        max-height: 58px !important;
    }

    #top .mueller-nachhaltigkeit-item h3 {
        font-size: 18px;
    }

    #top .mueller-nachhaltigkeit-item p {
        font-size: 14px;
        line-height: 1.58;
    }

}

@media only screen and (max-width: 520px) {

    #top .mueller-nachhaltigkeit-grid,
    #top .mueller-nachhaltigkeit-grid.is-3,
    #top .mueller-nachhaltigkeit-grid.is-4,
    #top .mueller-nachhaltigkeit-grid.is-5,
    #top .mueller-nachhaltigkeit-grid.is-6,
    #top .mueller-nachhaltigkeit-grid.is-8 {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    #top .mueller-nachhaltigkeit-item {
        max-width: 420px;
        margin: 0 auto;
        padding: 0;
    }

}