@charset "UTF-8";
/* CSS Document */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* ========================
   RESET PLUS 
=========================== */

img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

button, button:focus {
	border: 0;
	outline: 0;
}

html {
	scroll-behavior: smooth;
}

div {
	box-sizing: border-box;
}

img {
	height: auto;
	width: auto;
}



/* ========================
   START
=========================== */

/* open-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('https://www.oelwechsel.com/_backing/fonts/open-sans-v40-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('https://www.oelwechsel.com/_backing/fonts/open-sans-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ========================
   TYPO 
=========================== */

html {
	font-size: calc(18px + (40 - 18) * (100vw - 320px) / (5120 - 320));
}

p, a, h1, h2, h3 {
	font-family: "Open Sans", Helvetica, Arial, "sans-serif";
	font-weight: 300;
	text-align: left;
	color: white;
	line-height: 1.2em;
	margin-bottom: 0.5em;
}

.large, h1, h2, h3 {
    font-size: 2.5rem;
}

strong, h1 {
    font-weight: 400;
}

h2 {
    margin: 4rem 0 2rem;
}

.teaser-project p, .small, #project h3, #description h3 {
    font-size: 0.66rem;
    line-height: 1;
}

#project p, #description p {
    margin-bottom: 1em;
}


/* ========================
   LAYOUT 
=========================== */

html {
    background-color: #131313;
}

#content, #footer {
    padding: 4rem;
}

/* REFERENZEN */

#referenzen {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
}

.teaser-project {
    width: calc(100% / 5 - 1rem);
    margin-right: 1rem;
    margin-bottom: 2rem;
}
.teaser-project:nth-child(5) {
    margin-right: 0;
}

.teaser-project img {
    margin-bottom: 1rem;
}


.image-holder-4to3 {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 0;
	padding-top: 66.67%;
	margin-bottom: 8px;
	background-color: black;
}

.image-holder-4to3 img {
	transform: scale(1.05);
	-webkit-transform:scale(1.05);
	-moz-transform:scale(1.05);
	-ms-transform:scale(1.05);
	-o-transform:scale(1.05);
	position: absolute;
	top: 0;
	left: 0;
}

.link-teaser:hover img {
	transform: scale(1.02);
	-webkit-transform:scale(1.02);
	-moz-transform:scale(1.02);
	-ms-transform:scale(1.02);
	-o-transform:scale(1.02);
	opacity: 0.8;
}

.col-3, .col-2 {
    display: flex;
    justify-content: space-between;
    max-width: 1540px;
}
.col-2 img {
    width: calc(100% / 2 - 0.5rem);
}
.col-3 img {
    width: calc(100% / 3 - 0.66rem);
}

#footer {
    display: flex;
    justify-content: space-between;
}

/* REFERENZ */

#navigation {
    position: fixed;
    z-index: 11;
    top: 4rem;
    right: 4rem;
}
#project-header {
    margin-bottom: 2rem;
    height: 100vh;
    position: fixed;
}
#project-header img {
    opacity: 0.5;
    height: 100vh;
    width: 100vw;
    object-fit: cover;
}

#project {
    position: absolute;
    top: 4rem;
    left: 4rem;
}

#description {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
}
#description p:last-child {
    margin-bottom: 0;
}
.project-helper-top {
    height: 50vh
}
.project-helper {
    height: 100vh
}

.wrapper {
    position: relative;
    z-index: 1;
    background-color: #131313;
}

#project-content {
    max-width: 1540px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

#project-content img {
    margin-bottom: 1rem;
}

#backtotop {
    position: fixed;
    bottom: 4rem;
    right: 4rem;
}


/* ========================
   INTERACTIVE 
=========================== */

a {
    text-decoration: none;
}

a:hover {
    border-bottom: solid 0.04rem white;
}


/* ========================
   OTHER 
=========================== */

.image-holder-4to3 img {
	transition: all 0.2s ease-out 0s;
}


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

@media(max-width:2400px){
   .teaser-project {
        width: calc(100% / 5 - 1rem);
        margin-right: 1rem;
    }
    .teaser-project:nth-child(6) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(5) {
        margin-right: 0;
    }
    .teaser-project p, .small, #project h3, #description h3 {
        font-size: 0.75rem;
        line-height: 1;
    }
}

@media(max-width:1800px){
   .teaser-project {
        width: calc(100% / 4 - 1rem);
        margin-right: 1rem;
    }
    .teaser-project:nth-child(6) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(5) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(4) {
        margin-right: 0;
    }
    .teaser-project p, .small, #project h3, #description h3 {
        font-size: 1rem;
        line-height: 1;
    }
}

@media(max-width:1200px){
    .large, h1, h2, h3 {
        font-size: 1.75rem;
    }
   .teaser-project {
        width: calc(100% / 3 - 1rem);
        margin-right: 1rem;
    }
    .teaser-project:nth-child(6) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(5) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(4) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(3) {
        margin-right: 0;
    }
}

@media(max-width:800px){
   .teaser-project {
        width: calc(100% / 2 - 1rem);
        margin-right: 1rem;
    }
    .teaser-project:nth-child(6) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(5) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(4) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(3) {
        margin-right: 1rem;
    }
    .teaser-project:nth-child(2) {
        margin-right: 0;
    }   
}

@media(max-width:600px){
    .large, h1, h2, h3 {
        font-size: 1.25rem;
    }
    #content, #footer {
        padding: 1rem;
    }
    #referenzen {
        margin-right: 0;
    }
    #project {
        top: 6rem;
        left: 1rem;
    }
    #description {
        top: 50vh;
        left: 1rem;
    }
    #navigation {
        top: 1rem;
        right: 1rem;
    }
    #backtotop {
        bottom: 1rem;
        right: 1rem;
    }
    .project-helper-top {
        height: 50vh
    }
   .teaser-project {
        width: 100%;
        margin-right: 0;
    }
    .teaser-project:nth-child(6) {
        margin-right: 0;
    }
    .teaser-project:nth-child(5) {
        margin-right: 0;
    }
    .teaser-project:nth-child(4) {
        margin-right: 0;
    }
    .teaser-project:nth-child(3) {
        margin-right: 0;
    }
    .teaser-project:nth-child(2) {
        margin-right: 0;
    }
    .teaser-project:nth-child(1) {
        margin-right: 0;
    }   
}

