/* - - - - F O N T S - - - - */

/* font import */

@font-face {
    font-family: 'archiabold';
    src: url('../fonts/archia-bold/archia-bold-webfont.eot');
    src: url('../fonts/archia-bold/archia-bold-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/archia-bold/archia-bold-webfont.woff2') format('woff2'),
        url('../fonts/archia-bold/archia-bold-webfont.woff') format('woff'),
        url('../fonts/archia-bold/archia-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'archialight';
    src: url('../fonts/archia-light/archia-light-webfont.eot');
    src: url('../fonts/archia-light/archia-light-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/archia-light/archia-light-webfont.woff2') format('woff2'),
        url('../fonts/archia-light/archia-light-webfont.woff') format('woff'),
        url('../fonts/archia-light/archia-light-webfont.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;

}

/* - - - - G L O B A L - - - - */


/* Variablen */
:root {
    /* var(--c-ui) */
}

html {}


/* normalize */

* {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

html,
body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

body {
    font-size: 100% !important;
    font-family: 'archialight',
        sans-serif;
    font-weight: lighter !important;

    /*
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
*/
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #AAAAAA;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}


/* global transitions */

.thumb,
.thumb:hover,
a,
a:hover {
    -webkit-transition: all 0.09s linear;
    -moz-transition: all 0.09s linear;
    -o-transition: all 0.09s linear;
    -ms-transition: all 0.09s linear;
    transition: all 0.09s linear !important;
}

.lazy,
.loaded {
    -webkit-transition: opacity 0.6s linear;
    -moz-transition: opacity 0.6s linear;
    -o-transition: opacity 0.6s linear;
    -ms-transition: opacity 0.6s linear;
    transition: opacity 0.6s linear !important;
}

#menu a {
    transition: none !important;
}

/* text selection */

::-moz-selection {
    /* Code for Firefox */
    color: #000000;
    background: #E5E5E5;
}

::selection {
    color: #000000;
    background: #E5E5E5;
}

/* - - - - Wrapper - - - - */

.wrapper {
    /*
    position: relative;
    background-color: #FFFFFF;
    width: 100%;
    height: 100%;
*/
}

/* - - - - M E N U - - - - */
#menu {
    position: absolute;
    z-index: 1;
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    font-size: 1.7rem;
}

#menu div {
    width: 50%;
}

#menu a:hover {
    color: #FFF;
}

#menu div:nth-child(2) {
    text-align: right;
}

#menu .home {
    color: #FFF;
    font-size: 2.5rem;
    line-height: 135%
}

#menu .home b {
    border-bottom: 0.15em solid #FFF;
}

.subpage #menu .home {
    color: #000;
}

.subpage #menu .home b {
    border-bottom: 0.15em solid #000;
}

.subpage #menu .menu-contact:hover {
    color: #AAAAAA;
}

.subpage-contact #menu .menu-contact {
    color: #FFF;
}


/* - - - - T Y P E - - - - */


strong,
b {
    font-family: 'archiabold',
        sans-serif;
}

.hero-text {
    font-size: 2rem !important;
    line-height: 210%;
}


.portfolio .title {
    font-size: 1.7rem;
    line-height: 140%;
}

/*
.portfolio .img-wrapper {
    aspect-ratio: auto 4 / 4.4;
    background-color: #E7DDD1;
    width: 100%;
    position: relative;
    height: auto;
}*/


.subpage .project-text h1 {
    font-size: 2rem;
    line-height: 140%;
}

.subpage p {
    font-size: 2rem;
    line-height: 140%;
    padding-bottom: 2rem;
}

.subpage .credits {
    font-size: 1.1rem;
    line-height: 140%;
}

.contact-text {
    font-size: 2rem;
    line-height: 230%;
}

.subpage .project-text h2 {
    font-family: 'archiabold',
        sans-serif;
    padding-bottom: 1rem;
    font-size: 2rem;
    /*
    padding-top: 0.5rem;
    font-size: 1.5rem;
*/
    line-height: 140%;
}

.subpage .project-description.datenschutz h1 {
    font-family: 'archiabold',
        sans-serif;
    padding-bottom: 1rem;
    font-size: 2rem;
    line-height: 140%;
}

.subpage .project-description.datenschutz h2 {
    font-family: 'archialight',
        sans-serif;
    font-weight: 300;
    padding-bottom: 1rem;
    font-size: 2rem;
    line-height: 140%;
}

.subpage .project-description.datenschutz h3,
.subpage .project-description.datenschutz h4,
.subpage .project-description.datenschutz p,
.subpage .project-description.datenschutz li {
    font-family: 'archialight',
        sans-serif;
    font-weight: 300;
    padding-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 140%;
}



/* - - - - S E C T I O N S - - - - */


/* Hero */

.hero {
    width: 100%;
    background-color: #E7DDD1;
    height: 85vh;
    display: flex;
}

.hero b {
    border-bottom: 0.45rem solid black;
}

.hero-img {
    width: 45%;
    background: url('../img/walter_muehl_portrait_1.jpg') no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.hero-text {
    width: 55%;
    position: relative;
}

.hero-text h1 {
    position: absolute;
    bottom: 0;
    padding: 4rem;
}

/* Subpage hero */

.subpage .hero-text {
    padding-left: 10%;
}

.subpage .hero-text h1 {
    padding: 4rem;
    padding-left: 0;
}

/* Contact hero */

.subpage-contact .hero-text {
    width: 45%;
}

.subpage-contact .hero-img {
    width: 55%;
    background: url('../img/walter_muehl_portrait_3.jpg') no-repeat center center;
}


/* Portfolio */

.portfolio {
    width: 100%;
    background-color: #FFF;
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 6rem;
    padding-bottom: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    grid-gap: 4.5rem 3rem;
}

.portfolio .thumb {
    max-width: 100%;
    margin-bottom: 1rem;
    opacity: 1;
}

.portfolio .thumb:hover {
    opacity: 0.6;
}


/* Contact */

.contact {
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
    display: flex;
    background-color: #E7DDD1;
}

.contact a:hover {
    color: #FFF;
}

.contact-img {
    width: 35%;
}

.contact-img img {
    max-width: 100%;
    padding: 5rem 4rem 5rem 0;
}

.contact-text {
    width: 65%;
    margin: auto;
}

.contact b {
    border-bottom: 0.45rem solid black;
}


/* Footer */

.footer {
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
    display: flex;
    flex-direction: row;
    background-color: #222222;
    color: #FFFFFF;
    height: auto;
}

.footer div {
    width: 50%;
}

.footer div:nth-child(2) {
    text-align: right;
}

.footer a {
    color: #FFFFFF;
}

.footer a:hover {
    color: #AAAAAA;
}


/* Project text */

.project-text {
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
    padding-bottom: 6rem;
    display: flex;
    padding-top: 15rem;
}

.project-title {
    width: 50%;
}

.project-description {
    width: 50%;
}

/* Project images */

.project-images {
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
    padding-bottom: 4.2rem;
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.split-row img {
    max-width: 100%;
}

.full-row {
    margin-bottom: 0.6rem;
}

.full-row img {
    max-width: 100%;
}

/* Contact text */
.subpage-contact .project-description {
    width: 55%;
    padding-right: 10%;
}

.subpage-contact .project-title {
    width: 45%;
}

.subpage-contact .project-text {
    padding-top: 6rem;
    padding-left: 0;
    padding-right: 0;
}

.subpage-contact pt {
    padding-bottom: 0;
}

/* lazy images */
.lazy {
    opacity: 0;
}

.lazy.loaded {
    opacity: 1;
}

/* back-to-top button */
#button {
    display: inline-block;
    background-color: #222222;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 12px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    transition: background-color .3s,
        opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#button::after {
    content: "↑";
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 50px;
    color: #fff;
}

#button:hover {
    cursor: pointer;
    background-color: #AAAAAA;
}

#button:active {
    background-color: #555;
}

#button.show {
    opacity: 1;
    visibility: visible;
}

/* - - - - R E S P O N S I V E - - - - */

/* show only on mobile devices */
.mobile {
    display: none !important;
}

/* Small devices including tablet */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Type */
    .hero-text,
    .contact-text {
        font-size: 1.7rem !important;
    }

    .portfolio .title,
    .contact-text a,
    .subpage .project-text h1,
    .subpage .project-text h2,
    .subpage .project-description p,
    .subpage .project-description.datenschutz h1,
    .subpage .project-description.datenschutz h2,
    .subpage .project-description.datenschutz h3,
    .subpage .project-description.datenschutz h4,
    .subpage .project-description.datenschutz p,
    .subpage .project-description.datenschutz li {
        font-size: 1.7rem;
    }

    /* Hero */
    .hero-img {
        width: 55%;
    }

    .hero-text {
        width: 45%;
    }

    /* Project text */

    .project-text .project-title {
        width: 40%;
        padding-right: 10%;
    }

    .project-text .project-description {
        width: 60%;
    }

    /* Kontakt */
    .subpage-contact .project-text .project-title {
        display: none;
    }

    .subpage-contact .project-text .project-description {
        width: 100%;
        padding-right: 10%;
        padding-left: 10%;
    }


}


/* Only phone */

@media (max-width: 767.98px) {

    /* show mobile only elements */
    .mobile {
        display: block !important;
    }

}

@media (max-width: 767.98px),
only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2),
only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3),
only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) {

    /* show mobile only elements */
    .mobile {
        display: block;
    }

    /* Type */
    .hero-text h1,
    .contact-text h2 {
        font-size: 2.5rem;
        line-height: 140%;
    }

    .portfolio .title,
    .contact-text a,
    .subpage .project-text h1,
    .subpage .project-text h2,
    .subpage .project-description p,
    .subpage .project-description.datenschutz h1,
    .subpage .project-description.datenschutz h2,
    .subpage .project-description.datenschutz h3,
    .subpage .project-description.datenschutz h4,
    .subpage .project-description.datenschutz p,
    .subpage .project-description.datenschutz li {
        font-size: 1.4rem;
    }

    .subpage .credits,
    .footer {
        font-size: 1rem;
    }

    #menu,
    #menu a {
        font-size: 1.4rem;
    }

    #menu .home {
        font-size: 1.5rem;
    }

    /* Menu */
    #menu,
    #menu a {
        color: #FFF;
    }

    .subpage #menu a.menu-contact {
        color: #000;
    }

    .subpage-contact #menu a.menu-contact {
        color: #FFF;
    }

    .subpage-contact #menu .home {
        color: #FFF;
    }

    .subpage-contact #menu .home b {
        border-bottom: 0.15em solid #FFF;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: 100vh;
    }

    .hero-img,
    .hero-text {
        width: 100%;
        position: relative;
    }

    .hero-img {
        min-height: 65vh;
    }

    .hero-text h1 {
        position: relative;
        padding: 10%;
    }

    /* Contact page */
    .subpage-contact .hero {
        flex-direction: column-reverse;
        min-height: fit-content;
    }

    .subpage-contact .hero-text {
        width: 100%;
    }

    .subpage-contact .hero-img {
        min-height: 65vh;
        width: 100%;
    }

    .subpage-contact .project-text {
        padding: 10%;
        padding-top: 4rem;
        padding-bottom: 1rem;
    }

    .subpage-contact .project-text .project-title {
        display: none;
    }


    .subpage-contact .project-text .project-description,
    .subpage-contact .project-text .project-description p {
        padding: 0;
        width: 100%;
    }


    /* Portfolio */
    .portfolio {
        grid-template-columns: 1fr;
        grid-gap: 2.1rem;
        padding-top: 10%;
        padding-bottom: 10%;
    }

    /* Project text */
    .project-text {
        flex-direction: column;
        padding-top: 10rem;
        padding-bottom: 1rem;
    }

    .subpage .project-title {
        margin-bottom: 2rem;
    }

    .project-title,
    .project-description {
        width: 100%;
    }

    /* Project images */
    .project-images {
        padding-top: 10%;
        padding-bottom: 10%;
    }


    .project-images .split-row,
    .project-images .full-row {
        grid-template-columns: 1fr;
        grid-gap: 1rem;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Contact */
    .contact {
        flex-direction: column;
        padding: 10%;
    }

    .contact div {
        width: 100%;
    }

    .contact-img img {
        max-width: 70%;
        padding: 0;
        padding-top: 2rem;
        padding-bottom: calc(10% + 2rem);
    }

    /* Imprint */

    .subpage .project-text h2 {
        padding-bottom: 1rem;
    }

    /* Footer */
    .footer {
        flex-direction: column;
        padding: 10%;
    }

    .footer div {
        text-align: left !important;
        width: 100%;
    }

    .footer div:nth-child(1) {
        margin-bottom: 0.8rem;
    }

}

/* screens */

@media (min-width: 1025px) {}

/* large screens */

@media (min-width: 1920px) {}
