/* =========================================
   08 – ZWEI BILDER
========================================= */
.wf-element-08 {
    position: relative;
    display: block;
    clear: both;
    width: 100%;
    padding: 80px 0 0;
    overflow: hidden;
}

.wf-element-08-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wf-element-08-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.wf-element-08-grid {
    display: grid;
    grid-template-columns: 42% 52%;
    column-gap: 6%;
    align-items: start;
    width: 100%;
}


/* =========================================
   LINKS
========================================= */
.wf-element-08-left {
    position: relative;
    padding-top: 0;
}

.wf-element-08-image-left {
    width: 100%;
}

.wf-element-08-left .wf-element-08-image {
    margin-left: 0;
}


/* =========================================
   RECHTS
========================================= */
.wf-element-08-right {
    position: relative;
    padding-top: 45px;
}

.wf-element-08-image-right {
    width: 100%;
}


/* =========================================
   BILDER
========================================= */
.wf-element-08-image {
    position: relative;
    overflow: hidden;
}

.wf-element-08-image picture {
    display: block;
    width: 100%;
}

.wf-element-08-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================
   TEXT LINKS
========================================= */
.wf-element-08-text {
    width: 78%;
    margin: 55px 0 0 auto;
    text-align: right;
    line-height: 1.55;
}

.wf-element-08-text p {
    margin: 0;
    text-align: right;
}


/* =========================================
   LINK
========================================= */
.wf-element-08-link {
    margin-top: 25px;
    text-align: right;
}

.wf-element-08-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c49372;
    text-decoration: none;
}

.wf-element-08-link a:hover,
.wf-element-08-link a:focus-visible {
    text-decoration: underline;
}


/* =========================================
   TABLET LANDSCAPE
========================================= */
@media (min-width: 992px) and (max-width: 1200px) {

    .wf-element-08 {
        padding: 60px 0 0;
    }

    .wf-element-08-grid {
        grid-template-columns: 42% 52%;
        column-gap: 6%;
    }

    .wf-element-08-right {
        padding-top: 35px;
    }

	.wf-element-08-image {
		position: relative;
		overflow: hidden;
	}

	.wf-element-08-image-left {
		height: 50vh;
	}

	.wf-element-08-image-right {
		height: 65vh;
	}

	.wf-element-08-image .wf-element-08-imgitem {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 130%;
		height: 100%;
		overflow: hidden;
		transform: translate(-50%, -50%);
	}

	.wf-element-08-image .wf-element-08-imgitem picture {
		display: block;
		width: 100%;
		height: auto;
	}

	.wf-element-08-image .wf-element-08-imgitem picture {
		display: block;
		width: 100%;
		height: 100%;
	}

	.wf-element-08-image .wf-element-08-imgitem img {
		display: block;
		width: 100%;
		height: 100%;
		max-width: none;
		margin: 0;
		object-fit: cover;
		object-position: bottom;
	}


   .wf-element-08-text {
		width: 100%;
		margin: 25px 0 0;
		padding: 0;
		text-align: right;
		box-sizing: border-box;
	}

}


/* =========================================
   TABLET PORTRAIT
========================================= */
@media (min-width: 768px) and (max-width: 991px) {

    .wf-element-08 {
        padding: 50px 0 0;
    }

    .wf-element-08-grid {
        grid-template-columns: 43% 53%;
        column-gap: 6%;
    }
	.wf-element-08-image .wf-element-08-imgitem {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 130%;
		height: 100%;
		overflow: hidden;
		transform: translate(-50%, -50%);
	}

    .wf-element-08-right {
        padding-top: 30px;
    }

    .wf-element-08-text {
		grid-column: 1 / -1;
		width: 100%;
		margin: 20px 0 0;
		padding: 0 4%;
		box-sizing: border-box;
		text-align: right;
	}

	.wf-element-08-link {
		width: 53%;
		margin: 22px 0 0 auto;
		padding: 0;
		text-align: right;
	}

	.wf-element-08-image .wf-element-08-imgitem picture {
		display: block;
		width: 100%;
		height: 100%;
	}

	.wf-element-08-image .wf-element-08-imgitem img {
		display: block;
		width: 100%;
		height: 100%;
		max-width: none;
		margin: 0;
		object-fit: cover;
		object-position: bottom;
	}
	
	
	.wf-element-08-image-left {
		height: 40vw;
	}

	.wf-element-08-image-right {
		height: 65vw;
	}

}


/* =========================================
   MOBILE
========================================= */
@media (max-width: 767px) {

    .wf-element-08 {
        padding: 40px 0 60px;
    }

    .wf-element-08-grid {
        display: block;
    }

    .wf-element-08-left,
    .wf-element-08-right {
        width: 100%;
        padding: 0;
    }

    .wf-element-08-text {
        width: auto;
        margin: 30px 25px 0;
        text-align: left;
    }

    .wf-element-08-link {
        margin-top: 20px;
        text-align: left;
    }

    .wf-element-08-right {
        margin-top: 45px;
    }

}


/* =========================================
   DESKTOP
========================================= */
@media (min-width: 1201px) {

   .wf-element-08 {
         padding: 0 4%;
        box-sizing: border-box;
    }

    .wf-element-08-container {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }

    .wf-element-08-grid {
        display: grid;
        grid-template-columns: 42% 52%;
        column-gap: 6%;
        align-items: start;
        width: 100%;
    }

    .wf-element-08-left,
    .wf-element-08-right {
        width: 100%;
        min-width: 0;
    }

    .wf-element-08-right {
        padding-top: 45px;
    }
    

 /* =====================================
	   BILDER – PARALLAX
	===================================== */
	.wf-element-08-image {
		position: relative;
		width: 100%;
		overflow: hidden;
	}

	/* unterschiedliche sichtbare Höhen */
	.wf-element-08-image-left {
		height: 60vh;
	}

	.wf-element-08-image-right {
		width: 100%;
		height: 65vh;
	}

	/* innerer Bewegungsraum */
	.wf-element-08-image .wf-element-08-imgitem {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 130%;
		height: 100%;
		overflow: hidden;
		transform: translate(-50%, -50%);
	}

	/* picture füllt imgitem */
	.wf-element-08-image .wf-element-08-imgitem picture {
		display: block;
		width: 100%;
		height: 100%;
	}

	/* nur dieses Element wird vom JS bewegt */
	 .wf-element-08-image .wf-element-08-imgitem img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        object-fit: cover;
        object-position: bottom;
    }


    /* =====================================
       TEXT
    ===================================== */
    .wf-element-08-text {
        width: calc(100% - 22px);
        max-width: none;
        margin: 20px 22px 0 0;
        padding: 0;
        text-align: right;
        box-sizing: border-box;
    }

    .wf-element-08-text p {
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: right;
    }

    .wf-element-08-link {
        width: 100%;
        margin: 22px 0 0;
        padding: 0;
        text-align: right;
        box-sizing: border-box;
    }

}