@import url("reset.css");
:root {
    --text: #1b1b1b;
    --primaer: rgb(170, 87, 25);
    --primaer-transparent: rgba(170, 87, 25, 0.8);
    --sekundaer: #1b1b1b;
    --kontrast: #1b1b1b;
    --grau: #f3f3f3;
}

/* open-sans-regular - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v34-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/open-sans-v34-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/open-sans-v34-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  
  /* open-sans-700 - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v34-latin-700.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/open-sans-v34-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/open-sans-v34-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/open-sans-v34-latin-700.woff') format('woff'), /* Modern Browsers */
         url('../fonts/open-sans-v34-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/open-sans-v34-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  
  /* open-sans-800 - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/open-sans-v34-latin-800.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/open-sans-v34-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/open-sans-v34-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/open-sans-v34-latin-800.woff') format('woff'), /* Modern Browsers */
         url('../fonts/open-sans-v34-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/open-sans-v34-latin-800.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  
  /* open-sans-italic - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/open-sans-v34-latin-italic.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/open-sans-v34-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/open-sans-v34-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/open-sans-v34-latin-italic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/open-sans-v34-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/open-sans-v34-latin-italic.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  
  /* open-sans-700italic - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/open-sans-v34-latin-700italic.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/open-sans-v34-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/open-sans-v34-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/open-sans-v34-latin-700italic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/open-sans-v34-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/open-sans-v34-latin-700italic.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  
  /* open-sans-800italic - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 800;
    src: url('../fonts/open-sans-v34-latin-800italic.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/open-sans-v34-latin-800italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/open-sans-v34-latin-800italic.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/open-sans-v34-latin-800italic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/open-sans-v34-latin-800italic.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/open-sans-v34-latin-800italic.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  

*{
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    width: 100%;
    overflow-x: hidden;
    font: 400 14px/200% 'Open Sans', sans-serif;
    color: var(--text);
}

p {
    margin-bottom: 16px;
}

p strong, p b {
    font-weight: 800;
}

a {
    text-decoration: none;    
	transition: 0.3s;
}

a:hover {
    opacity: 0.5;
}

.dsa-secure-plugin a:hover {
    opacity: 1;
}

nav {
    z-index: 999;
    position: fixed;
    top: 0;    
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    background-color: var(--primaer);
}

nav .logo {
    width: 123px;
    background-color: var(--grau);
    display: flex;
    justify-content: center;
    align-items: center;
}

nav .logo img {
    width: 100%;
}

nav .logo a {
    width: 65px;
    height: 64px;
}

nav a {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

nav .span {
    flex-direction: column;
    justify-content: space-between;
    display: none;
    height: 25px;
    width: 35px;
    position: relative;
    z-index: 999;
}

nav .span div {
	width: 100%;
	border-bottom: 3px solid #fff;
}

header {
    position: relative;
    margin-top: 90px;   
    height: calc(100vh - 90px);
    min-height: 500px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    background: url('../images/wolfenbuettel-raumgestaltung.jpg') no-repeat center/cover;
}


.sidenav{
    height: calc(100vh - 90px);
    min-height: 500px;
    padding-bottom: 5vh;
    padding-top: 12vh;
    background-color: var(--grau);
    width: 123px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.icons{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.button {
    background-color: var(--primaer);
    display: inline-block;
    color: #fff;
    padding: 4px 20px;
    margin-top: 15px;
    text-decoration: none;
    border-radius: 3px;
}

.desktop-nav {
    width: calc(100% - 123px);    
    text-align: right;
    padding: 38px 5%;
    line-height: 100%;
}

.desktop-nav a {
    padding: 0 10px;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    background-color: var(--primaer);
    background-color: var(--primaer-transparent);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
	padding: 12px;
	text-decoration: none;
	font-size: 180%;
	color: #fff;
	display: block;
}

.overlay .closebtn {
    position: absolute;
    font-size: 60px;
}

.overlay .closebtn, nav .span {
    top: 20px;
    right: 5%;
}

.overlay a.closebtn {
    font-weight: 300;
}

.dse{
    font-size: 80%;
    text-align: center;
    position: fixed;
    bottom: 0;
    right: 5%;
    background-color: var(--kontrast);
    color: #fff;
    width: 290px;
    padding: 5px;
    border-radius: 3px;
    z-index: 999;
}

.dse a {
    color: #fff;
}

.small-dialog {
    background: white;
    padding: 20px 30px;
    text-align: left;
    max-width: 400px;
    margin: 40px auto;
    position: relative;
}

.my-mfp-zoom-in .zoom-anim-dialog {
    opacity: 0;

    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;



    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
}

.my-mfp-zoom-in.mfp-ready .zoom-anim-dialog {
    opacity: 1;

    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.my-mfp-zoom-in.mfp-removing .zoom-anim-dialog {
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);

    opacity: 0;
}

.my-mfp-zoom-in.mfp-bg {
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-out;
    -moz-transition: opacity 0.3s ease-out;
    -o-transition: opacity 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}

.my-mfp-zoom-in.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.my-mfp-zoom-in.mfp-removing.mfp-bg {
    opacity: 0;
}

.teaser {
    padding: 40px;
    background-color: rgb(255,255,255); /*fallback*/
    background-color: rgba(255,255,255,0.8);
    position: absolute;
    bottom: 5%;
    right: 5%;
    border-radius: 5px;
    margin-left: calc(5% + 70px);
}

header .teaser p, .subheadline {
    font-size: 140%;
    text-transform: uppercase;
    font-style: italic;
}

h1{
    font-size: 300%;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
}

h2, #impressum h1, .landingpage h1 {
    font-size: 250%;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 15vh;
}

h1 span, 
h2 span,
.landingpage h1 span {
    color: var(--primaer);
    font-weight: 400;
    font-size: 70%;
}

h3 {
    font-size: 180%;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
}

h4 {
    font-size: 140%;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
}


article {
    width: 100%;
}

.content {
    padding: 120px 10%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.section-1 .col {
    width: 30%;
}

.section-1 .col:nth-last-of-type(2) img{
    margin-right: 24px;
}

.section-1 .col:nth-last-of-type(2) ul li {
    display: flex;
    align-items: center;
    font-size: 120%;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 30px;
}

.section-1 .col:last-of-type{
    aspect-ratio: 1/1;
    object-fit: cover;
    overflow: hidden;
}

.section-1 .col:last-of-type img {
    height: 100%;
    width: auto;
}

.subheadline {
    font-size: 70%;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 400;
}

.section-2 {
    background-color: var(--grau);
}

.section-2 h2 span, 
.section-3 span,
.landingpage h1 span{
    font-size: 100%;
}

.section-2 .content {
    gap: 10px;
}

.section-2 .col {
    width: calc(25% - 10px);
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
    background-color: var(--primaer);
    object-fit: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-2 .col .button{
    display: none;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: 0.8s;
}

.section-2 .col h3 {
    position: relative;
    z-index: 1;
    color: #fff;
    transition: 0.8s;
    opacity: 1;
    margin-bottom: 0;
    font-size: 140%;
}

.section-2 .col img{
    min-height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    opacity: 0.5;
    filter: grayscale(100%);
    mix-blend-mode: multiply;
    transition: 0.8s;
}

.section-2 .col:hover img {
    opacity: 1;
    filter: grayscale(0);
    mix-blend-mode: normal;
    transition: 0.8s;
}

.section-2 .col:hover h3 {
    text-shadow: 1px 1px 2px #1b1b1b;
}

.section-2 .col:hover .button {
    display: block;
    opacity: 1;
    transition: 0.8s;
}

.parallax {
    width: 100%;
    background: url('../images/jobs-bei-rk-raumgestaltung.jpg')no-repeat center/cover;
    background-attachment: fixed;
}

.parallax-teaser{
    background-color: rgba(255,255,255,0.8);
    border-radius: 5px;
    padding: 40px;
}

.parallax-teaser h2 {
    margin-bottom: 10px;
    text-align: left;
}

.section-3 {
    background-color: #010101;
}

.section-3 h2{
    color: #fff;
}

.section-3 iframe {
    width: 100%;
    height: 700px;
}

.section-4 {
    background-color: var(--primaer);
    color: #fff;
}

.section-4 p a, .section-4 ul li a {
    color: #fff;
    text-decoration: underline;
}

.section-4 h3 {
    margin-bottom: 15px;
    color: #fff;
}

.section-4 .col {
    width: 48%;
}

#impressum p a, #impressum ul li a {
    color: var(--text);
    text-decoration: underline;
}

#impressum {
    margin-top: 90px;
}

#impressum .section-1 .col {
    width: 48%;
}

.landingpage{
    margin-top: 90px;
}

.landingpage .subheadline{
    text-transform: none;
}

.landingpage .section-3 {
    color: #fff;
}

.landingpage .section-1.section-3 .col:last-of-type {
	aspect-ratio: inherit;
	object-fit: none;
	overflow: visible;
    width: 60%;
}

.landingpage .section-1.section-3 .col:last-of-type ul{
	display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.landingpage .section-1.section-3 .col:last-of-type ul li{
    width: 30%;
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.landingpage .section-1.section-3 .col:last-of-type ul li img{
    margin-right: 20px;
}

.sanierung ul{
    list-style: square;
    margin-left: 15px;
}

.sanierung ul li::marker {
    color: var(--primaer);
}

.landingpage.sanierung .section-1.section-3 .col:last-of-type ul li{
    display: list-item;
}


@media screen and (hover:none){
    .parallax {
        background-attachment: scroll;
    }

    .section-2 .col img {
        opacity: 1;
    }

    .section-2 .col .button {
        display: inline-block;
        position: relative;
        z-index: 1;
        opacity: 1;
    }
}

@media screen and (max-width: 1200px) {
    .section-1 .col {
        width: 48%;
    }

    .section-1 .col:last-of-type {
        width: 100%;
        aspect-ratio: 3/2;
        margin-top: 20px;
    }

    h2 {
        margin-bottom: 60px;
    }

    .content {
        padding: 60px 10%;
    }

    .section-2 .col {
        width: calc(33% - 10px);
    }

    #impressum .section-1 .col:last-of-type{
        margin-top: 0;
    }

    .landingpage .section-1.section-3 .col:last-of-type ul li{
        width: 24%;
    }

    .landingpage .section-1.section-3 .col:last-of-type,
    .landingpage .section-1.section-3 .col {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    nav .span {
        display: flex;
    }

    nav {
        height: 90px;
    }

    .desktop-nav {
        display: none;
    }

    .sidenav,
    nav .logo {
        width: 70px;
    }

    nav .logo a {
        width: 45px;
        height: 44px;
    }

    nav {
        height: 70px;
    }

    header {
        margin-top: 70px;
    }

    .landingpage .section-1.section-3 .col:last-of-type ul li{
        width: 32%;
    }
}

@media screen and (max-width: 768px){
    h1{
        font-size: 200%;
    }

    header .teaser p {
        font-size: 100%;
        line-height: 120%;
    }

    h2 {
        font-size: 170%;        
        margin-bottom: 20px;
    }

    .section-1 h2 {
        text-align: left;
    }

    h3 {
        margin-bottom: 10px;
        font-size: 130%;
    }

    h4 {
        font-size: 120%;
    }

    .section-1 .col:nth-last-of-type(2) ul li{
        margin-top: 15px
    }

    .section-1 .col:nth-last-of-type(2) ul li {
        font-size: 100%;
    }

    h1 span, h2 span {
        font-size: 90%;
    }

    .section-1 .col {
        width: 100%;
        margin-bottom: 15px;
    }

    .section-1 .col:last-of-type {
        margin-bottom: 0;
    }

    .section-2 .col {
        width: calc(50% - 10px);
    }

    .section-4 .col {
        width: 100%;
        margin-bottom: 15px;
    }

    #impressum .section-1 .col {
        width: 100%;
        margin-bottom: 15px;
    }

    .landingpage .section-1.section-3 .col:last-of-type ul li{
        width: 48%;
    }
    
}

@media screen and (max-width: 520px){
    header {
        margin-top: 50px;
    }

    .overlay .closebtn, nav .span {
        top: 12px;
    }

    nav .logo a {
        width: 35px;
        height: 34px;
    }

    .sidenav, nav .logo {
        width: 50px;
    }

    .teaser {
        padding: 20px;
        margin-left: calc(5% + 50px);
        bottom: 60px;
    }

    h1 {
        font-size: 120%;
    }

    .button{
        margin-top: 5px;
    }

    header .button {
        font-size: 80%;
        padding: 2px 15px;
    }

    nav {
        height: 50px;
    }

    .section-1 .col:last-of-type {
        aspect-ratio: 1/1;
    }

    .section-2 .col {
        width: 100%;
    }

    .landingpage .section-1.section-3 .col:last-of-type ul li{
        width: 100%;
    }
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {
        font-size: 20px
    }

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}