/**************/
/* CSS REMEDY */
/**************/
*, *::after, *::before {
  box-sizing:border-box;  
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}






/*********************/
/* CUSTOM PROPERTIES */
/*********************/
:root {
	/* startje */
	--color-text:#111;
	--color-background:#eee;
	--font: "baloo-2", sans-serif;
	--magenta: #9E529D;
	--zwart: #000000;
	--rood: #F3224B;
	--goud: #CEBA5A;
	--zwartopacity: rgba(0, 0, 0, 0.5);

}

header, footer, main {
    opacity: 0;
}

.display {
    opacity: 1;
}

.background {
	background-image: url('../images/background.jpg');
}


body {
	overflow-x: hidden;
}

footer a {
	color: var(--color-background);
	text-decoration: none;
}

a {
	text-decoration: none;
}

p {
	font-family: var(--font);
	color: var(--color-background);
}

h1, h2, h3{
	font-family: var(--font);
	font-weight: 700;
	color: var(--color-background);
}

footer {
	background-color: var(--zwart);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 3em;
	gap: 2em;
}

footer p {
	text-align: center;
}



.preLoader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;

  }

video {
	position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  }

.preLoader video {
    max-width: 100%;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}


nav {
	display: flex;
	justify-content: flex-end;
	grid-column: 1 / -1;
	grid-row: 1;

}

nav ul {
	display: flex;
	gap: 2em;
}

 li a {
	display: block;
	text-decoration: none;
	color: var(--color-background);
	font-family: var(--font);
	font-weight: 600;
	background-color: var(--goud);
	clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
	padding: .5em 2.5em .5em 2.5em;
}

.mainHeader {
	display: grid;
	grid-template-columns: 1fr minmax(0rem, 40rem);
	grid-template-rows: auto auto;	
	padding: 3em 5em 5em 5em;
    gap: 2em; 
}

.textContent {
	display: flex;
	flex-direction: column;
}

.mainHeader img {
	grid-row: 2 / 3;
 	max-width: 100%; 
}

.mainHeader h1 {
	grid-column: 2;
	grid-row: 2;
	font-size: 3em;
}

.mainHeader p {
	grid-column: 2;
	grid-row: 2; 
	justify-self: start;
	align-content: start;
	font-size: 1.5em;
	margin-top: 1em;
}
 
.projecten {
	max-width: 75em;
	margin: 0 auto;
	padding: 0 1em;
}

.projecten p {
	font-size: 1.5em;
}

.projecten > a:last-of-type {
	display: none;
}

.projecten_header {
	display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 13em;
    align-items: center;
	overflow-y: hidden;
}

.projecten_header h2 {
    grid-column: 1;
    grid-row: 1;
	z-index: 1;
	font-size: 2.5em;
	padding-left: 1em;
	align-self: end;
	margin-bottom: .3em;
}

.projecten_header img {
    grid-column: 1;
    grid-row: 1;
	width: 60%;
	padding-top: 5em;
	align-self: start;
}

.projecten a {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: end;
	margin-bottom: 1.5em;
	background-color: var(--zwart);
	color: var(--color-background);
	clip-path: polygon(20% 0%, 100% 0%, 85% 100%, 0% 100%);
    border-radius: 5px; 
	padding: .5em 2.5em .5em 2.5em;
	font-family: var(--font);
	font-weight: 700;
	font-size: 1.5em;
	white-space: nowrap;
}



.projecten article {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto auto ;
	margin-bottom: 7em;
}

.projecten article:first-of-type {
	background-color: var(--magenta);
	padding: 2em;
}

.projecten article:nth-of-type(2) {
	background-color: var(--zwart);
	padding: 2em;
}

.projecten article:nth-of-type(3){
	background-color: var(--rood);
	padding: 2em;
}

.projecten article:nth-of-type(4) {
	background-color: var(--magenta);
	padding: 2rem;
}

.projecten article:nth-of-type(5) {
	background-color: var(--zwart);
	padding: 2rem;
}

.projecten article:nth-of-type(6) {
	background-color: var(--zwartopacity);
	padding: 2rem;
}
.projecten article img {
	grid-column: -1;
	grid-row: 1 / 4;
	max-width: 90%;
	align-items: end;
	justify-self: end;
}

.projecten article h3 {
	grid-column: 1;
	grid-row: 1;
	font-size: 2em;
}

.projecten article p {
	grid-column: 1;
	grid-row: 2;
}

.projecten article a {
	grid-column: 1;
	grid-row: 3;
	background-color: var(--goud);
	color: var(--color-background);
    border-radius: 5px; 
	font-family: var(--font);
	font-weight: 700;
	padding: 0.5em;
	justify-self: start;
    align-self: start; 
	clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
	padding: .5em 2.5em .5em 2.5em;
	font-size: 1.5em;
	transition: .6s ease;
}

.projecten article a:hover {
	clip-path: polygon(0 0, 80% 0, 100% 100%, 20% 100%);
}

a {
	transition: .6s ease;
}

a:hover {
	clip-path: polygon(0 0, 80% 0, 100% 100%, 20% 100%);
}

footer a:hover {
	clip-path: none;
}

.sterktes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr 1fr;
    gap: 1em;
}

.sterktes h2, .sterktes h3, .sterktes p {
	margin-right: 2em;
	margin-left: 2em;
}

.sterktes h2 {
    grid-column: 1 / -1;
    grid-row: 1;
	align-self: center;
	justify-self: right;
	font-size: 3em;
	margin-top: 2em;
}

.sterktes h3 {
	justify-self: center;
	align-self: center;
	font-size: 2em;
}

.sterktes p {
	justify-self: center;
	align-self: end;
}

.sterktes p {
	font-size: 1.5em;
}

.sterktes h3:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
}

.sterktes h3:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
}

.sterktes h3:nth-of-type(3) {
    grid-column: 3;
    grid-row: 2;
}

.sterktes p:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
}

.sterktes p:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
}

.sterktes p:nth-of-type(3) {
    grid-column: 3;
    grid-row: 2;
}

.sterktes img {
    z-index: -1;
    grid-column: 1 / -1;
    grid-row: 1 / 4;
    opacity: 85%;
	width: 100%;
}

.caseHeader {
	display: grid;
	padding: 2em 5em 25em 5em;
	position: relative;
	overflow: hidden;
}

.caseHeader nav {
	grid-column: 2;
	grid-row: 1;
	padding-bottom: 7em;
}

.caseHeader .caseText {
	grid-column: 1;
	grid-row: 2;
}

.caseHeader img {
	grid-column: 2;
	grid-row: 2;
	width: 100%;
	height: auto;
}

.caseText {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.caseText h1 {
	position: relative;
	font-size: 3em;
	padding-bottom: .2em;
}


.caseText h1::before {
	content: "";
	background-color: var(--goud);
	position: absolute;
	height: 2px;
	width: 50%;
	bottom: 0;
	margin-top: 1em;
}


.caseText h1::after{
	content: "• 2024";
	font-weight: 400;
	font-size: .5em;
	position: absolute;
	top: .6em;
	margin-left: .5em;
}

.caseHeader::before {
	
	content: "";
    background-image: url('../images/rodeSplatter.svg');
    background-size: cover; /* or 'contain' depending on your needs */
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    z-index: -1;
    top: -3em;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 95%;
	
}


.caseHeader section a {
	background-color: var(--goud);
	color: var(--color-background);
	clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
	padding: .5em 4em .5em 4em;
	font-family: var(--font);
	font-weight: 700;
	display: block;
	width: fit-content;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 5px;
	min-height: 52px;
	
}

.caseHeader section a svg:first-of-type {
	margin-right: .5em;
}

.caseHeader section a svg:last-of-type {
	margin-left: .5em;
}


.tags p {
	display: inline;
	background-color: var(--goud);
	border-radius: 0.375em;
	max-width: fit-content;
	padding: .5em;
}

.tags {
	padding: 1em 1em 1em 0;
}

.caseText p {
	font-size: 1.5em;
}

.caseHeader ul {
	display: flex;
}

main {
	overflow: hidden;
}

.caseMain article {
	display: grid;
	grid-template-rows: auto;
	align-items: center;
	max-width: 80%;
	margin: 0 auto;
	margin-bottom: 10em;
	position: relative;
	overflow: visible;
}

.caseMain article img {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	width: 100%; 
	height: 100%; 
	z-index: 1
}

.caseMain article p {
	grid-column: 1;
	grid-row: 1; 
	max-width: 45%;
	justify-self: start; 
	align-self: end;
	position: relative;
	z-index: 3;
	padding: 5em;
	font-size: 1.2em;
	margin-bottom: 6em;
	overflow: visible;
}

.caseMain p::before {
	content: url('../images/paintSplatter.svg');
	position: absolute;
	z-index: -1;
	left: -7em;
	top: -9em;
	width: auto;
}

.caseMain article:nth-of-type(2) p::before {
	content: url('../images/paintSplatter2.svg');
	top: -15em;
}


.caseMain article.rechts p {
    justify-self: end;
}

.caseMain article.rechts::before {
    right: -8em;
    justify-self: end;
}


footer a {
	clip-path: none;
	background-color: transparent;
	padding: 0;
}

footer ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3em;
}

footer ul li:first-of-type a{
	margin: 1em;
	transform: scale(1.3);
	overflow: hidden;
}



@media (min-width: 2200px) {
	.mainHeader {
		grid-template-columns: 1fr minmax(0rem, 80rem);
	}

	.mainHeader .textContent {
		max-width: 90%;
	}

	.mainHeader nav {
		margin-right: 15em;
	}

}

@media (min-width: 1800px) {
	.caseMain article p {
        max-width: 35%;
    }
}

@media (max-width: 1500px) {
	.sterktes p {
		font-size: 1em;
	}
}


@media (max-width: 968px) {
    .mainHeader {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 2em;
        gap: 1em;
    }

    .mainHeader img {
        grid-row: 2;
        max-width: 100%;
    }


	.mainHeader h1 {
		font-size: 2.5em;
		text-align: center;
	}

	 .mainHeader p {
        grid-column: 1;
        grid-row: auto;
		font-size: 1em;
    }

	.projecten {
		padding-bottom: .5em;
	}

	.projecten_header h2 {
		font-size: 1.5em; 
	}


	.projecten_header a {
		font-size: .8em;
	}

	.projecten article p, .projecten article a{
		font-size: 1em;
	}

	.projecten article h3 {
		font-size: 1.25em;
	}

	.projecten article {
		display: grid;
		grid-template-columns: auto;
		gap: 1em
	}

	.projecten article {
		margin-bottom: 3em;
	}

	.projecten article img {
		grid-row: 2;
		width: 100%;
		grid-column: 1 / -1;
		justify-self: center;

	}


	.projecten article p {
		grid-row: 3;
	}
	
	.projecten article a {
		grid-row: 4;
		justify-self: center;
		margin-bottom: 0;
	}

	.projecten_header a {
		display: none;
	}

	.projecten > a:last-of-type {
		display: block;
		width: fit-content;
		font-size: 1.25em;
		text-align: center;
		margin: 0 auto;
	}

	.projecten_header img {
		width: 20em;
        height: auto;
		align-self: end;
		transform: translateY(40%);
    }



	.sterktes {
		display: flex;
		flex-direction: column;
		margin-bottom: 5em;
		gap: 1.5em;
	}
	


	.sterktes h2 {
		font-size: 1.5em;
		margin-top: 6em;
	}

	.sterktes h3 {
		font-size: 1.25em;
		align-self: unset;
	}

	.sterktes p {
		font-size: 1em;
	}


	.sterktes img {
		width: 350%;
		transform: translateY(-85%);
		margin-bottom: -160%;
	}
	
	footer p {
		text-align: center;
	}

	.caseHeader p {
		font-size: 1em;
	}

	.caseHeader h1 {
		font-size: 2.5em;
	}
	
	.caseHeader {
        display: flex;
        flex-direction: column;
		padding: 0;
    }

	.caseText {
		gap: .5em;
		padding: 2em 2em 0em 2em;
	}

	.caseHeader nav {
		padding: 5em .5em 0 0;
		transform: scale(0.9);
	}

	.caseHeader h1::before {
		width: 70%;
	}

	 nav ul {
		gap: 0em;
	}

    .caseHeader h1 {
        order: 1;
        font-size: 2em;
    }

    .caseHeader .tags {
        order: 2;
        display: flex;
        gap: 1em;
    }


    .caseHeader img {
        order: 3;
        width: 100%;
        height: auto;
		padding-bottom: 8em;
		transform: scale(0.8);
		margin-bottom: 2em;
    }

    .caseHeader p {
        order: 4;
        font-size: 1em;
    }

	.caseHeader section a {
		order: 5;
		font-size: 1em;
		transform: scale(0.7);
	}
 
	.caseHeader .tweeTags {
		order: 5;
		list-style: none;
		padding: 0;
		margin: 0;

	}
	.caseHeader .tweeTags a{
		padding: .5em 2em .5em 2em;
		transform: scale(1);
	}

	.caseHeader .tweeTags svg:first-of-type {
		display: none;
	}


	footer {
		padding: 2em;
		gap: 1em;
	}

	footer svg {
		width: 2em;
	}
	

	.caseMain article p {
		font-size: 1em;
	}


	.caseMain article {
		margin-bottom: 5em;
		max-width: 100%;
	}

	.langeTitel::after {
		top: 2em !important;
		padding-top: .6em;
	}
}

@media (max-width: 768px) {
    .preLoader video {
       width: 100%;
	   height: 100%;
    }

	
}

@media (max-width: 1200px) {
    .caseMain p::before {
        display: none;
    }

	.caseMain article p {
		max-width: 100%;
		grid-row: 2;
		margin-bottom: 0;
		padding: 2em;
	}

	.caseMain article img {
		grid-row: 1;
	}

	.caseMain article {
		background-color: var(--rood);
		background-image: url('../images/grungebg.png');
		background-size: 50%;
		
	}



}


