/* Wiederverwendbare Inhalts- und Bildelemente. */

.site-image {
    display: block;
    width: 100%;
    background: #dfe8d5;
}

.site-image--alpha {
    background: transparent;
}

.image-frame {
    margin: 0;
    background: #e6eadc;
}

.image-frame__image {
    min-height: 270px;
}

.image-frame--small {
    margin-bottom: 16px;
}

.image-frame--small .image-frame__image {
    min-height: 190px;
}

.teaser-card,
.icon-card {
    min-height: 215px;
    margin-top: 24px;
    padding: 0 10px;
    background: transparent;
}

.cards-section {
    background: #eef3e5;
}

.teaser-card__icon,
.icon-card__icon {
    display: block;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    color: #5f7f45;
}

.teaser-card p,
.icon-card p {
    margin-bottom: 0;
}

.section-icon-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 24px;
}

.section-icon-grid--tight {
    margin-top: 20px;
}

.section-icon-grid__item {
    position: relative;
    width: 33.3333%;
    min-width: 0;
    padding: 0 12px 0 34px;
    margin-bottom: 16px;
}

.section-icon-grid__icon {
    position: absolute;
    top: 1px;
    left: 0;
    width: 22px;
    height: 22px;
    color: #5f7f45;
}

.section-icon-grid__item span {
    display: block;
    color: #314139;
    font-weight: 700;
    line-height: 1.35;
}

.icon {
    width: 22px;
    height: 22px;
    overflow: visible;
}

.icon-external-swap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

/* Externe Farbvarianten liegen uebereinander. */
.icon-external {
    display: block;
    width: 100%;
    height: 100%;
}

.icon-external--hover {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
}

.icon-external--default {
    visibility: visible;
}

.icon--small {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 7px;
    vertical-align: -3px;
}

.icon--logo {
    width: 34px;
    height: 34px;
}

.hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #849b73;
}

.hero .moduletable {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-slider__window {
    position: relative;
    overflow: hidden;
}

.hero-slider__track {
    position: relative;
}

.hero-slide,
.hero-static {
    position: relative;
    min-height: 430px;
    background-position: center center;
    background-size: cover;
}

.hero-slide:after,
.hero-static:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(49, 65, 57, 0.32);
    pointer-events: none;
}

/* Hero-Text liegt ueber dem Overlay. */
.hero-slide__content,
.hero-static__content {
    position: relative;
    z-index: 1;
    min-height: 430px;
    padding-top: 120px;
    padding-bottom: 90px;
    color: #ffffff;
}

.hero-slide__content p,
.hero-static__content p,
.hero-slide__content h1,
.hero-static__content h1 {
    color: #ffffff;
}

.hero-slide__content p,
.hero-static__content p {
    max-width: 650px;
    font-size: 18px;
}

.hero-slide__content .eyebrow,
.hero-static__content .eyebrow {
    color: #ffffff;
}

.hero-slide__cta {
    margin-top: 24px;
}

.hero-slide__button {
    color: #ffffff;
    background: #6b4f32;
    border-color: #ffffff;
    transition: background-color var(--greenlab-hover-duration) ease, border-color var(--greenlab-hover-duration) ease, color var(--greenlab-hover-duration) ease;
}

.button--slider-cta:hover {
    color: #6b4f32;
    background: #ffffff;
    border-color: #6b4f32;
}

.button--slider-cta-accent {
    color: #ffffff;
    background: #5f7f45;
    border-color: #ffffff;
}

.button--slider-cta-accent:hover {
    color: #5f7f45;
    background: #ffffff;
    border-color: #5f7f45;
}

.button--slider-cta:hover .icon-external--default {
    visibility: hidden;
}

.button--slider-cta:hover .icon-external--hover {
    visibility: visible;
}

.button--slider-cta-accent:hover .icon-external--default {
    visibility: hidden;
}

.button--slider-cta-accent:hover .icon-external--hover {
    visibility: visible;
}

.hero-slider__controls {
    position: absolute;
    right: 4%;
    bottom: 24px;
    z-index: 30;
}

.hero-slider__controls button {
    position: relative;
    z-index: 31;
    display: inline-block;
    width: 42px;
    height: 42px;
    margin-left: 4px;
    color: #ffffff;
    background: #6b4f32;
    border: 1px solid #ffffff;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color var(--greenlab-hover-duration) ease, border-color var(--greenlab-hover-duration) ease, color var(--greenlab-hover-duration) ease;
}

.hero-slider__controls button:hover {
    color: #6b4f32;
    background: #ffffff;
    border-color: #6b4f32;
}

.hero-slider__controls button:hover .icon-external--default {
    visibility: hidden;
}

.hero-slider__controls button:hover .icon-external--hover {
    visibility: visible;
}

.hero-slider__controls [data-slider-prev] svg {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Externe Pfeil-Icons werden gespiegelt. */
.hero-slider__controls [data-slider-prev] .icon-external-swap,
.hero-slider__controls [data-slider-prev] > img.icon,
.hero-slider__controls .slider-control--prev .icon,
.hero-slider__controls .slider-control--prev .icon-external-swap,
.hero-slider__controls .slider-control--prev > img {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.decorative-image {
    min-height: 128px;
    background-color: #dfe8d5;
    background-position: center center;
    background-size: cover;
}

.info-section__images {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.info-section__images .image-frame {
    width: 48%;
}

.info-section__images--single .image-frame {
    width: 100%;
}

.info-section__images .image-frame + .image-frame {
    margin-top: 0;
}

.info-section__images--single .image-frame--small .image-frame__image {
    min-height: 320px;
}

.detail-section {
    background: #eef3e5;
}

.detail-list {
    display: block;
}

.detail-item {
    position: relative;
    margin-bottom: 18px;
    padding-left: 52px;
}

.detail-item h3 {
    margin-bottom: 4px;
}

.detail-item p {
    margin-bottom: 0;
}

.detail-item__icon {
    position: absolute;
    top: 2px;
    left: 0;
    width: 34px;
    height: 34px;
    color: #5f7f45;
}

.decorative-tile-section,
.decorative-context-section {
    padding-top: 54px;
    padding-bottom: 54px;
}

.decorative-tile-section:nth-of-type(even) {
    background: #f4f0e3;
}

.decorative-tile-section .section-copy,
.decorative-context-section .section-copy {
    max-width: 850px;
    margin-bottom: 28px;
}

.feature-tile {
    min-width: 0;
}

.feature-tile__image {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background: #dfe8d5;
}

.feature-tile__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 100%;
}

.feature-tile__content-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.feature-tile__image:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 45%;
    background: rgba(77, 58, 37, 0.58);
}

/* Kacheltext liegt auf dem Bild. */
.feature-tile__image > p {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    margin: 0;
    padding: 20px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

.feature-tile__image span {
    display: inline;
    padding: 3px 5px;
    background: #6b4f32;
}

.feature-tile > p {
    margin-top: 14px;
}

.css-image-section__image {
    min-height: 320px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.cta-section {
    padding: 0;
    background: #6f8d4e;
    position: relative;
    overflow: hidden;
}

.cta-section__inner {
    min-height: 280px;
}

.cta-section__copy {
    width: 56%;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.cta-section__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40vw;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.cta-section--image-left .cta-section__copy {
    margin-left: auto;
}

/* Prefooter nutzt je Seite einen Verlauf. */
.prefooter-promo {
    padding-top: 58px;
    padding-bottom: 0;
    background: #eef3e5;
    background: -webkit-linear-gradient(top, #eef3e5 0%, #e6ecd8 44%, #ddd6b8 74%, #d2c59d 100%);
    background: linear-gradient(to bottom, #eef3e5 0%, #e6ecd8 44%, #ddd6b8 74%, #d2c59d 100%);
}

.site-page--home .prefooter-promo {
    background: #eef3e5;
    background: -webkit-linear-gradient(top, #eef3e5 0%, #e5ecd9 40%, #ddd8be 70%, #d1c5a2 100%);
    background: linear-gradient(to bottom, #eef3e5 0%, #e5ecd9 40%, #ddd8be 70%, #d1c5a2 100%);
}

.site-page--angebote .prefooter-promo {
    background: #eef3e5;
    background: -webkit-linear-gradient(top, #eef3e5 0%, #e3ead4 36%, #d8d3b4 68%, #cbbb90 100%);
    background: linear-gradient(to bottom, #eef3e5 0%, #e3ead4 36%, #d8d3b4 68%, #cbbb90 100%);
}

.site-page--projekt .prefooter-promo {
    background: #eef3e5;
    background: -webkit-linear-gradient(top, #eef3e5 0%, #e7eddc 42%, #e1d8c1 72%, #d7c7a3 100%);
    background: linear-gradient(to bottom, #eef3e5 0%, #e7eddc 42%, #e1d8c1 72%, #d7c7a3 100%);
}

.prefooter-promo__inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.prefooter-promo__copy {
    width: 44%;
    padding-bottom: 58px;
    -webkit-align-self: flex-start;
    -ms-flex-item-align: start;
    align-self: flex-start;
}

.prefooter-promo__icons {
    margin-top: 26px;
}

.prefooter-promo__icon-item {
    position: relative;
    margin-bottom: 14px;
    padding-left: 42px;
}

.prefooter-promo__icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    color: #5f7f45;
}

.prefooter-promo__media {
    width: 46%;
    text-align: right;
}

.prefooter-promo__figure {
    margin: 0;
}

.prefooter-promo__image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-left: auto;
}

@media (max-width: 75rem) {
    .prefooter-promo__inner {
        display: block;
    }

    .prefooter-promo__copy,
    .prefooter-promo__media {
        width: auto;
    }

    .prefooter-promo__copy {
        padding-bottom: 24px;
    }

    .prefooter-promo__image {
        max-width: 620px;
    }
}

.cta-section--image-left .cta-section__image {
    right: auto;
    left: 0;
}

.cta-section__copy .button {
    margin-top: 10px;
}

.cta-section h2,
.cta-section p {
    color: #ffffff;
}

.cta-section .eyebrow {
    color: #ffffff;
}

.cta-section .button {
    border-color: #ffffff;
    transition: background-color var(--greenlab-hover-duration) ease, border-color var(--greenlab-hover-duration) ease, color var(--greenlab-hover-duration) ease;
}

.variant-link-groups {
    margin-top: 28px;
}

.variant-link-group {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #d7cfb9;
}

.variant-link-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.variant-link-group li {
    margin-top: 8px;
}

.variant-link-group a {
    color: #314139;
    font-weight: 700;
    text-decoration: none;
}

.variant-link-group a:hover {
    color: #5f7f45;
}

@media (max-width: 60rem) {
    .hero-slide,
    .hero-static,
    .hero-slide__content,
    .hero-static__content {
        min-height: 360px;
    }

    .hero-slide__content,
    .hero-static__content {
        padding-top: 75px;
        padding-bottom: 65px;
    }

    .teaser-card,
    .icon-card,
    .feature-tile {
        margin-bottom: 28px;
    }

    .info-section__images {
        display: block;
    }

    .section-icon-grid {
        display: block;
    }

    .section-icon-grid__item {
        width: auto;
        padding-right: 0;
    }

    .info-section__images .image-frame {
        width: auto;
    }

    .cta-section__copy {
        width: auto;
        margin-left: 0;
        padding: 34px 0 22px;
    }

    .cta-section__image {
        position: static;
        width: auto;
        min-height: 220px;
        margin-bottom: 34px;
    }
}
