@import url("projects.css");

* {
    box-sizing: border-box;
    transition: all ease-in-out 250ms;
}

body {
    margin: 0;
    text-align: center;
    background-color: #000;
    color: #f9f9ed;
}

img {
    max-width: 100%;
}

.images {
    filter: grayscale(100%);
    transition: height 0.5s ease-out, filter 0.3s ease 0.5s, width 0.3s ease-out;
    height: 200px;
    width: 200px;
    cursor:pointer;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.images:hover {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
    transition: filter 0.8s ease-out;
}

.container {
    margin: 0 auto;
}

.clearfix::after,
section::after,
footer::after {
    content: "";
    display: block;
    clear: both;
}

video {
    width: 100%;
    height: auto;
  }

/* typography
=================== */

h1 {
    font-weight: 300;
    font-size: 1.7rem;
    margin-top: 0;
}


p {
    margin-top: 0;
    line-height: 1.5;
}

.p1 {
        color: #fff;
        padding-top: 20px;
        padding-right: 100px;
        padding-bottom: 20px;
        padding-left: 100px;
}

p:last-of-type {
    margin-bottom: 0;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 1.5em;
    font-weight: 900;
    margin-top: 1em;
}

.title span {
    font-weight: 300;
    display: block;
    font-size: 0.9em;
    margin: 10px;
}

.title-cta {
    margin: 0 0 0.5em;
}

.unstyled-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

@media (min-width: 60rem) {
    p {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .title {
        font-size: 3.7rem;
    }
}

/* buttons */

.button {
    display: inline-block;
    font-size: 1.15rem;
    text-decoration: none;
    text-transform: uppercase;
    border-width: 2px;
    border-style: solid;
    padding: 0.5em 1.75em;
}

@media (min-width: 60rem) {
    .button {
        font-size: 1.5rem;
    }
}

.button.active {
    background-color: #ffffff;
    color: #232323;
  }

.button-small {
    font-size: 0.7rem;
    font-weight: 700;
}

.button-accent {
    color: #ffffff;
    border-color: #ffffff;
    cursor:pointer;
    background: rgba(0,0,0,0.4);
    box-shadow: 0px 0px 15px 5px #fff;
}

.button-accent-projects {
    color: #ffffff;
    border-color: #ffffff;
    cursor:pointer;
    background: rgba(0,0,0,0.4);
    /*box-shadow: 0px 0px 15px 5px #fff;*/
}

.button-accent:hover,
.button-accent:focus {
    background: #fff;
    color: #232323;
}

.button-dark {
    color: #232323;
    border-color: #232323;
}

.button-dark:hover,
.button-dark:focus {
    background: #232323;
    color: #ffffff;
}

.btn {
    /* border: none;
    outline: none;
    padding: 12px 16px; */
    background-color: white;
    cursor: pointer;
    display: inline-block;
    font-size: 1.15rem;
    text-decoration: none;
    text-transform: uppercase;
    border-width: 2px;
    border-style: solid;
    padding: 0.5em 1.75em;
  }

  .btn:hover {
    background-color: #ddd;
  }

  .btn.active {
    background-color: #666;
    color: white;
  }

/* Parallax
=================== */                              /* Das sollte wohl mal DAS werden https://www.w3schools.com/howto/howto_css_parallax.asp */

.parallax--bg {
    width: auto;
}
/* header
=================== */
@media only screen and (min-width: 1000px) {
    header {
       z-index: 1;
	   position: absolute;                          /*verursacht das verschrobene menĂ¼ auf der projects seite*/
	   top: 0px;
	   width: 100%;
    }
}

@media only screen and (max-width: 500px) {
    .nav li {
        margin-left: 2px !important;
        margin-right: 2px !important;
        width: 20vw;
    }
}
@media only screen and (min-width: 501px) and (max-width: 999px) {
    .nav li {
        margin-left: 2px !important;
        margin-right: 2px !important;
        width: 100px;
    }
}
@media only screen and (min-width: 1000px) {
    .nav li {
        width: 100px;
    }
}
header {
    background: rgba(0,0,0,0.4);
    font-family: 'IM Fell English SC';
	margin: 0px;                                                 /*Der Versuch den header auf projects zu reparieren: margin: 1rem 0,0 klappt aber nicht so*/
}

@media only screen and (min-width: 1000px) {
    div#project_margin {
        margin-top: 250px;
    }
    video {
        margin-top: 230px;
    }
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em;
    height: 20px;
    text-align: center;
}

.nav a {
    font-weight: 900;
    text-decoration: none;
    /*! padding: 0.5em; */
    color: white;
    font-size: 14pt;
    /*! font-weight: bold; */
}


.nav a:hover {
    color: #ddd;
    font-size: 16pt;
    /*! font-weight: bold; */
}

.logo {
    margin-top: 0.5rem;
}

/* hero-home
=================== */

.home-hero {
    background-image: url(/images/backgroud_img/hero-bg.jpg);
    background-size: cover;
    background-position: center;
    padding: 10em 0;
	top: 0px;
    color: #fff;
}

@media (min-width: 60rem) {
    .home-hero {
        height: 100vh;
        padding-top: 35vh;
    }
}

/* hero-home
=================== */

.home-about-textbox {
    background-color: #232323;
    padding: 10em 20%;
    width: 100%;
    outline: 2px solid#f9f9ed;
    outline-offset: -2.5em;
    color: #f9f9ed;
    position: relative;
    text-align: justify;
}

.home-about-textbox h1 {
    color: #f9f9ed;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0.75em;
    background: #232323;
    padding: 0 0.145em;
}

@media (min-width: 25rem) {
    h1 {
        font-size: 2rem;
    }

    .home-about-textbox h1 {
        top: 0.6em;
    }
}

@media (min-width: 60rem) {
    h1 {
        font-size: 2.5rem;
    }

    .home-about {
        background-repeat: no-repeat;
    }

    .home-about-textbox {
        width: 100%;
        outline-offset: -3.75em;
        /* margin-left: -2.5%; */
        text-align: left;
        box-shadow: 0 0 4em 0 rgba(0, 0, 0, 0.3);
    }

    .home-about-textbox h1 {
        top: 0.75em;
        left: 6rem;
        transform: translateX(0);
    }
}

/* portfolio
=================== */

/* .portfolio {
    margin: 3em 0 0;
} */

.port-item {
    margin: 0;
    position: relative;
}

.port-item img {
    display: block;
}

.port-desc {
    position: absolute;
    z-index: 100;
    bottom: 0em;
    left: 0em;
    right: 0em;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding-bottom: 2em;
}

.port-desc p {
    margin: 1em;
}

@media (min-width: 37rem) {
    .port-item {
        width: 50%;
        float: left;
    }
}

@media (min-width: 60rem) {
    .port-item {
        width: 33.3333334%;
        overflow: hidden;
    }

    .port-desc {
        transform: translateY(150%);
    }

    .port-item:hover .port-desc {
        transform: translateY(0%);
    }
}

/* display flex */

.pointer {
    cursor: pointer;}

.gallery-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.gallery-item {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 1000px) {
    .gallery-item {
        width: 100%;
    }
}

/* Contact
=================== */
.contact-bg {
    align-items: center;
    background: url('../img/who-we-are.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
}

.contact-info {
    background: #80808090;
    margin: 25vmin 0;
    padding: 1.5rem;
}

@media screen and (max-width: 1000px) {
    .contact-info h2 {
        font-size: 14px;
    }
}

.gallery-description {
    display: none;
}

.modal-gallery-all {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    cursor:pointer;
}

.modal-gallery-txt-img-container {
    max-height: 100%;
    overflow-y: auto;
    height: fit-content;
    margin: auto;
}

.modal-gallery-all-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: fit-content;
    margin: auto;
    cursor:pointer;
}

.modal-all-img {
    width: 260px;
    max-width: 90%;
    margin: 20px;
}

.modal-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    padding: 15% 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-gallery-outer-cont {
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-gallery-container {
    display: flex;
    justify-content: center;
}

.modal-gallery-image {
    max-width: 80%;
}

.modal-gallery-button-prev {
    visibility: hidden;
    pointer-events: none;
    margin: auto 20px;
    padding: 10px;
}

.modal-gallery-button-prev:hover {
    cursor: pointer;
}

.modal-gallery-button-next {
    margin: auto 20px;
    padding: 10px;
}

.modal-gallery-button-next:hover {
    cursor: pointer;
}

.modal-gallery-close {
    margin-left: auto;
}

.modal-gallery-close:hover {
    cursor: pointer;
}

/* CTA
=================== */

.cta {
    background-color: #f9f9ed;
    padding: 5em 0;
}

/* Footer
=================== */

footer {
    background: #232323;
    color: #f9f9ed;
    text-align: left;
    padding: 5em 0;
}