:root {
    --offwhite: #eeecf1;
    --offblack: #424b5b;
}

html {
    font-family: 'DIN_reg', sans-serif;
    font-weight: 200;
    font-style: normal;
    hyphens: none;
    color: var(--offblack);
    background-color: var(--offwhite);
    text-rendering: optimizeLegibility;
    height: 100%;
}

body {
    height: 100%;
}

@font-face {
    font-family: 'DIN_Reg';
    src: url('/D-DIN.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DIN_Bold';
    src: url('/D-DIN-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DIN_Reg_It';
    src: url('/D-DIN-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

p {
    display: block;
    margin: 0;
}

a {
    display: block;
    text-decoration: none;
    color: var(--offblack);
}

a:hover {
    text-decoration: underline;
}

/*Navigation-------------------------------------------------- */

/*Web*/
#home #navbereich {
    background-color: rgba(238, 236, 241, 0.7);
    /*    background-color:var(--offwhite);*/
}

#navbereich {
    background-color: transparent;
}


#navbereich ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--offblack);
}

#navbereich li {
    float: left;
    border-right: 1px solid var(--offblack);
}

#navbereich li a {
    display: block;
    font-size: 1.2em;
    text-align: center;
    padding: 20px 40px;
    text-decoration: none;
}

#navbereich li:first-child a {
    padding-left: 60px;
}

#navbereich li:last-child {
    border-right: none;
    border-left: 1px solid var(--offblack);
    float: right;
}

#navbereich li a:hover {
    text-decoration: underline;
}

/*Mobile*/
#slidebereich {
    display: none;
}

nav {
    width: 100%;
    margin: 0;
}

#home nav {
    background-color: rgba(238, 236, 241, 0.7);
    /*    background-color:var(--offwhite);*/
}

#slidebereich span {
    padding: 10px;
    font-size: 1.2em;
    display: block;
}

#slidebereich span::after {
    float: left;
    right: 10%;
    content: "+";
    padding-bottom: 10px;
    padding-left: 10px;
}

.slide {
    width: 100%;
    height: 0px;
    overflow: hidden;
    text-align: left;
    transition: height .4s ease;
    margin: 0;
    padding: 0;
}

.slide li {
    list-style-type: none;
    padding: 10px;
    padding-left: 20px;
    border-top: 1px solid var(--offblack);
}

#touch {
    position: absolute;
    opacity: 0;
    height: 0px;
}

#touch:checked + .slide {
    height: 190px;
}

#footer {
    font-size: 0.8em;
    position: fixed;
    z-index: 1000;
    color: var(--offblack);
    width: 100%;
    text-align: center;
    text-decoration: none;
    bottom: 0px;
    padding: 10px;
    line-height: 1.2;
    border-top: 1px solid var(--offblack);
    background-color: var(--offwhite);
}

#home #footer {
    background-color: rgba(238, 236, 241, 0.7);
    /*    background-color:var(--offwhite);*/
}

#site_notice {
    display: inline;
    float: left;
    padding-left: 70px;
    padding-bottom: 10px;
    padding-right: 40px;
    line-height: 1.2;
    max-width: 500px;
}

.view {
    position: relative;
    height: auto !important;
    overflow: hidden;
    min-height: 100vh;
}

/*inverted*/

.invert a {
    color: var(--offwhite);
}

.invert #footer {
    background-color: var(--offblack);
    color: var(--offwhite);
    border-top: 1px solid var(--offwhite);
}

.invert .view {
    background-color: var(--offblack);
    color: var(--offwhite);
}

.invert #info {
    border-top: 1px solid var(--offwhite);
    border-bottom: 1px solid var(--offwhite);
}

.invert #navbereich {
    background-color: var(--offblack);
    color: var(--offwhite);
}

.invert #navbereich ul {
    border-top: 1px solid var(--offwhite);
}

.invert #navbereich li {
    border-right: 1px solid var(--offwhite);
}

.invert #navbereich li:last-child {
    border-left: 1px solid var(--offwhite);
}

.invert nav {
    background-color: var(--offblack);
    color: var(--offwhite);
}

.invert .slide li {
    border-top: 1px solid var(--offwhite);
}


/*Text---------------------------------------------------------- */
#info {
    grid-column-start: 1;
    grid-column-end: 3;
    padding-bottom: 40px;
    padding-right: 40px;
    padding-left: 60px;
    border-top: 1px solid var(--offblack);
    border-bottom: 1px solid var(--offblack);
}

#home #info {
    background-color: rgba(238, 236, 241, 0.7);
}

#titel {
    display: block;
    font-size: 4em;
    margin-top: 40px;
    line-height: 0.9;
    width: 100%;
}

#titel1 {
    display: block;
    font-size: 3em;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 0.9;
    width: 100%;
}

#about {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 1.2em;
    max-width: 800px;
}

#contact {
    margin-top: 50px;
    font-size: 1.2em;
    max-width: 800px;
}


/*Slideshow----------------------------------------------------- */

.slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    bottom: 0;
    right: 0;
    z-index: -1000;
}

.slideshow img {
    height: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;  
    overflow: hidden;
}


.container_grid {
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-row-gap: 5px;
    grid-column-gap: 5px;
    -ms-user-select: None;
    -moz-user-select: None;
    -webkit-user-select: None;
    width: 100%;
    justify-content: center;
    margin-bottom: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--offblack);
}

/*Projekte---------------*/

.gallery {
    display: inline-grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-row-gap: 5px;
    grid-column-gap: 5px;
    -ms-user-select: None;
    -moz-user-select: None;
    -webkit-user-select: None;
    width: 100%;
    justify-content: center;
}

.gallery div {
  position: relative;
}

.gallery div::before {
  display: block;
  content: '';
  width: 100%;
  padding-bottom: calc(100% / (var(--aspect-ratio, 1 / 1)));
}

.gallery div > :first-child {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.p_img {
    display: block;
    width: 100%;
    object-fit: cover;
    height:100%;
    cursor: pointer;
}

#Name {
    padding-top: 5px;
    display: block;
    text-align: left;
    font-size: 2.5em;
}

#location {
    display: block;
    text-align: left;
    font-size: 1.5em;
}

#details {
    padding-top: 20px;
    display: block;
    text-align: left;
    font-size: 1em;
}

#caption {
    font-family: 'DIN_Reg_It';
    font-style: italic;
    font-size: 0.8em;
    display: block;
    text-align: left;
    padding-top: 20px;
    padding-left: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--offblack);
}

.overlay_label {
    display: block;
    text-align: left;
    vertical-align: middle;
    top: 0;
    text-decoration: none;
    width: 100%;
    position: relative;
    line-height: 1.2;
}

.overlay_label > p {
    padding: 20px;
    padding-left: 60px;
}

/*Lightbox*/

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: rgba(238, 236, 241, 0.7);
}

.lightbox:target {
    display: block;
}

.lightbox span {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}



/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(238, 236, 241, 0.9);
}

/* Modal Controls*/

.controls {
    position:relative;
    text-align: center;
    width: 100%;
    position: relative;
    transform: translateY(-50%);
    z-index:10000;
}

/* Modal Content */
.modal-content {
    margin: auto;
    text-align: center;
    width: 50%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.mySlides {
    width: 100%;
}

.lb_img {
    width: 100%;
    max-height: 100vh;
    object-fit: cover;
}

/* The Close Button */
.close {
    color: var(--offblack);
    position: fixed;
    top: 0;
    right: 0;
    padding: 10px;
    padding-right: 13px;
    padding-left: 13px;
    font-size: 45px;
}

.close:hover,
.close:focus {
    cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev,
.next {
    font-family: 'DIN_Reg';
    cursor: pointer;
    position: fixed;
    width: auto;
    padding: 10px;
    top:50vh;
    margin-top:-50px;
    color: var(--offblack);
    font-size: 45px;
}

.prev:hover,
.next:hover {
    text-decoration: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 0 0 0 0;
}

/* Number text (1/3 etc) */
.numbertext {
    color: var(--offwhite);
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}





/*Impressumg-----------------*/

#ID {
    margin-top: 50px;
    font-size: 1.2em;
    max-width: 800px;
}

#ID p {
    margin-bottom: 15px;

}

#ID ul {
    list-style-type: disc;
    margin: 0;
    padding: 0;
    padding-left: 20px;
    margin-bottom: 15px;
}

#ID ol {
    margin: 0;
    padding: 0;
    padding-left: 20px;
    margin-bottom: 15px;
}

#ID li {
    display: list-item;
    border: none;
}

#ID a {
    display: inline;
    text-decoration: underline;
}






/*------------------------RESPONSIVE------------------------*/

@media only screen and (min-width: 1920px) {
.gallery {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    width: 70%;
    padding-left:60px;    
}
}


@media only screen and (max-width: 999px) {

    /*Navigation*/
    #site_notice {
        padding-left: 35px;
    }

    #navbereich li a {
        font-size: 1.2em;
        padding: 15px 25px;
    }

    #navbereich li:first-child a {
        padding-left: 35px;
    }

    #navbereich li:last-child {
        border-left: none;
        float: left;
    }

    /*Texte*/
    #titel {
        font-size: 4em;
        margin-top: 20px;
    }

    #info {
        grid-column-start: 1;
        grid-column-end: 2;
        padding-bottom: 20px;
        padding-left: 35px;
    }

    #caption {
        padding-left: 35px;
    }


    /*Projekte*/
    .container_grid {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }

    .overlay_label > p {
        padding-left: 35px;
    }

    /*Lightbox*/
    /* Modal Content */
    .modal-content {
        width: 100%;
    }

    /* The Close Button */
    .close {
        color: var(--offblack);
        position: fixed;
        top: 0;
        right: 0;
        padding: 10px;
        padding-right: 13px;
        padding-left: 13px;
        font-size: 25px;
        background-color: var(--offwhite);
    }

    /* Next & previous buttons */
    .prev,
    .next {
        font-family: 'DIN_Reg';
        cursor: pointer;
        position: fixed;
        width: auto;
        padding: 10px;
        color: var(--offblack);
        font-size: 25px;
        background-color: var(--offwhite);
    }

    /* Position the "next button" to the right */
    .next {
        right: 0;
        border-radius: 0 0 0 0;
    }

    /* Number text (1/3 etc) */
    .numbertext {
        color: var(--offwhite);
        font-size: 12px;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }

}


@media only screen and (max-width: 700px) {

    /*Navigation*/
    #navbereich li a {
        font-size: 1em;
        padding: 10px 20px;
    }

    #navbereich li:first-child a {
        padding-left: 20px;
    }

    #navbereich li:last-child a {
        padding-left: 20px;
    }


    /*Texte*/
    #titel {
        font-size: 3em;
    }

    #info {
        padding-left: 20px;
    }


    /*Projekte*/
    .container_grid {
        margin-top: 20px;
    }

    .overlay_label > p {
        padding-left: 20px;
    }

    #Name {
        padding-top: 5px;
        display: block;
        text-align: left;
        font-size: 2em;
    }

    #location {
        display: block;
        text-align: left;
        font-size: 1.2em;
    }

    #details {
        padding-top: 10px;
        display: block;
        text-align: left;
        font-size: 0.9em;
    }

    #caption {
        font-family: 'DIN_Reg_It';
        font-size: 0.7em;
        display: block;
        text-align: left;
        padding-top: 20px;
        padding-left: 20px;
    }
}



/*---------------------------MOBIL---------------------------*/

@media only screen and (max-width:600px) {

    /*Navigation*/
    #navbereich li:last-child {
        clear: both;
        width: 100%;
        border-top: 1px solid #424b5b;
    }

    #navbereich li:last-child a {
        text-align: left;
    }

    #navbereich li:nth-child(4) {
        border-right: none;
    }

    #navbereich {
        display: none;
    }

    #slidebereich {
        display: block;
    }


}

@media only screen and (max-width:500px) {

    /*Texte*/
    #titel {
        font-size: 2.5em;
    }

}

@media only screen and (max-width: 360px) {

    /*Navigation*/
    #navbereich li a {
        font-size: 1em;
        padding: 7px 10px;
    }

    /*Texte*/
    #titel {
        font-size: 2em;
    }
}