/*
Theme Name: Portfolio Theme
Author: Lars Haenni
Version: 0.0.1
*/

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--black);
}


/* Main Nav Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 58px;
    background-color: var(--black);

    & nav {
        display: flex;
        align-items: center;
    }

    & a {
        text-decoration: none;


    }

}

header .responsive_toggle {
    display: none;
}




#menu-haubtnavigation {
    display: flex;


    & li {
        margin: 0 20px;
        list-style-type: none;

        &.current-menu-item {
            & a {
                color: var(--blue);
            }
        }

        & a {
            font-weight: 400;
            font-size: 1.4rem;
            line-height: 28px;
            text-decoration: none;
            color: var(--white);

            &:hover {
                color: var(--blue);
            }
        }
    }
}

/* Logo Styling */

.logo {
    font-size: 22px;
    line-height: 30px;
    font-weight: 400;
    color: var(--white);

    & span {
        font-weight: 700;

    }
}



.logo-link {
    text-decoration: none;
}


/* Cover Image */

.wp-block-cover .wp-block-cover__image-background,
.wp-block-cover video.wp-block-cover__video-background,
.wp-block-cover-image .wp-block-cover__image-background,
.wp-block-cover-image video.wp-block-cover__video-background {
    object-fit: contain !important;
    padding-bottom: 60px;
}

.hero_p {
    display: flex;
    justify-content: center;
}

.h2_home {
    margin: 50px 0;
    display: flex;
    justify-content: center;

}

/***** About Me Page ****/

/* Reset Shity WP code */

body .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.about-me-container>.wp-block-group__inner-container {
    margin: 200px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 200px 0 58px;
    gap: 250px;

    & img {
        width: 900px;
        min-width: 700px;
        height: 700px;
        object-fit: cover;
        border-radius: 15px;
    }

    & .about-me-text-container {
        width: 1000px;

        & h2 {
            margin-bottom: 30px;
        }

        & p {
            margin-bottom: 30px;

        }
    }
}

/* Musik */

.about-me-container2>.wp-block-group__inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18%;
    padding: 0 200px 0 160px;




    & img {
        width: 800px;
        min-width: 500px;
        height: 780px;
        object-fit: cover;
        border-radius: 15px;
    }
}

.about-me-text-container2>.wp-block-group__inner-container {
    width: 800px;
    min-width: 600px;

    & p {
        margin-bottom: 30px;
    }
}

/***** Page Projects *****/
/* The best Card  */
.the_best_container {

    .the_best {

        height: 100%;
        width: 100%;


        & img {
            position: absolute;
            top: 200px;
            left: 0;
            width: 100%;
            height: 700px;
            object-fit: cover;
            z-index: 0;
            padding: 0 58px 58px 58px;

        }



    }
}

.the_best_title {
    position: absolute;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
}

.h2_projects {
    margin: 750px 0 40px 0;
    display: flex;
    justify-content: center;
}

.the_best_h2 {
    position: absolute;
    z-index: 1;
    margin-left: auto;
    left: 0;
    right: 0;
    margin-right: auto;
    text-align: center;
    top: 700px;
}

.the_best_h1 {

    position: absolute;
    z-index: 1;
    text-align: center;
    margin-left: auto;
    left: 0;
    right: 0;
    margin-right: auto;
    top: 450px;
    color: var(--white);
}

.the_best_date {
    position: absolute;
    z-index: 1;
    margin-left: auto;
    left: 0;
    right: 0;
    top: 670px;
    margin-right: auto;
    text-align: center;
    color: var(--white);
    font-size: 2rem;

}

.categories {
    display: flex;
    justify-content: center;

}

.card {
    background-color: var(--gray);
    width: 500px;
    height: 620px;
    border-radius: 15px;
    overflow: hidden;


    & img {
        width: 500px;
        height: 300px;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
        overflow: hidden;
        margin-bottom: 60px;

        &:hover {
            transform: scale(1.05);
            transition: all 0.3s ease;
        }
    }

    & a {
        text-decoration: none;

        & h3 {
            font-size: 3rem;
            color: var(--white);
            text-decoration: none;
            font-weight: 700;
            margin-left: 20px;
            margin-bottom: 60px;
            order: 2;



        }

        & time {
            margin-left: 22px;
            color: var(--lightgray);
            font-size: 1.2rem;
            order: 1;
        }
    }
}

.project-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 70px;
    max-width: 1700px;
    margin: 100px auto;

    & ul {
        justify-self: center;

        & .wp-element-button {
            margin: 0 20px;
        }
    }

}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 900;
    font-size: 3rem;
    color: var(--white);


    & span,
    a {
        text-decoration: none;
        font-weight: 900;
        font-size: 3rem;
        color: var(--white);
        font-weight: 700;
        font-size: 1.5rem;
        line-height: 1.5rem;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: transparent;
        border: 0.573333px solid var(--white);
        backdrop-filter: blur(3.44px);
        border-radius: 0.5rem;
        min-width: 3rem;
        min-height: 3rem;
    }
}


.wp-block-image {
    display: inline-block;
}

/* Page kontakt */
.text-kontakt {
    max-width: 1300px !important;
    text-align: center;
}

.container-text-kontakt>.wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small_tag {
    font-size: 1rem;
    margin-bottom: 200px;
}

.contact_spacer {
    margin-top: 100px;
}

.wpcf7-not-valid-tip {
    display: none;
}

/* --- FORM --- */
.wpcf7-text,
.wpcf7-textarea {
    border-radius: 8px;
    padding: 20px 30px;
}

.wpcf7-text.wpcf7-not-valid,
.wpcf7-textarea.wpcf7-not-valid {
    border-color: red;
}

form:not(.init) .wpcf7-text[aria-invalid="false"],
form:not(.init) .wpcf7-textarea[aria-invalid="false"] {
    border-color: green;
}

/* --- ERROR MESSAGE --- */
.wpcf7 form .wpcf7-response-output {
    grid-column: 2 span;
    border-radius: 8px;
    padding: 30px;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border: 1px solid red;
    width: 550px;
    color: white;
    text-align: center;
    margin: 30px auto;
}

.wpcf7 form.sent .wpcf7-response-output {
    border: 1px solid green;
    width: 550px;
    color: white;
    text-align: center;
    margin: 30px auto;
}

/* singel Post styling  */
.post_singel>.wp-block-group__inner-container {
    display: flex;
    align-items: center;
    gap: 60px;

    & .attachment-post-thumbnail {
        height: 1020px;
        width: 1100px;
        padding-left: 58px;
    }

    & img {
        width: 250px;
        height: 250px;
        object-fit: cover;
        margin: 10px 10px 10px 0;
    }

    & .wp-block-button {
        margin-top: 30px;
    }

}

.goes_to_right>.wp-block-group__inner-container {
    max-width: 1100px;
    max-height: 100%;
    padding-right: 58px;
}



/* 404 Page Styling  */


.error-container {
    margin: 0 auto;
    margin-bottom: 300px;
    width: 50%;
    text-align: center;
}


/*** Footer  ***/
footer {
    display: flex;
    justify-content: space-between;
    padding: 58px;



    & ul {
        display: flex;
        align-items: center;


        & li {
            list-style-type: none;

            & a {
                color: var(--white);
                margin: 20px;
            }
        }
    }
}




/* Tablet Responsive */
@media screen and (max-width: 1750px) {
    .project-container {
        grid-template-columns: 1fr 1fr;
    }

    /* About me Page */

    .about-me-container>.wp-block-group__inner-container {
        flex-direction: column;
        padding: 0 0 0 0;
        gap: 20px;

        & img {
            width: 750px;
            margin: 0 58px;
        }
    }

    .about-me-container>.wp-block-group__inner-container {
        margin: 50px 0;

        & .about-me-text-container {
            width: 70%;
        }
    }

    .about-me-container2>.wp-block-group__inner-container {
        flex-direction: column-reverse;
        padding: 0 0 0 0;

        & img {
            width: 750px;
            margin: 60px 58px;
        }
    }

    .about-me-text-container2>.wp-block-group__inner-container {
        width: 70%;
        margin: 0 auto;
        min-width: 0;
    }



    /* Projects Page  */

    .card {
        width: 480px;
        height: 580px;

        & img {
            width: 480px;
            height: 250px;
            margin-bottom: 20px;
        }

        & a {

            & h3 {
                margin-bottom: 100px;
            }
        }
    }



}

/* Small Tablett */
@media screen and (max-width: 1250px) {

    /* Page Singel Site */
    .post_singel>.wp-block-group__inner-container {
        flex-direction: column;

        & img {
            width: 90vw;
            height: 50vh;
        }

        & .attachment-post-thumbnail {
            width: 100vw;
            height: 700px;
            padding: 0;
            margin: 0;
        }
    }

    .goes_to_right>.wp-block-group__inner-container {
        padding-left: 58px;
        max-height: 100%;
    }

    /**** Contact Page *****/
    .no-button {
        flex-direction: column;
        margin: 200px 0;
    }

    /* single Post */
    .post_singel>.wp-block-group__inner-container {
        & img {
            margin: 20px 10px 20px 0;
            width: 280px;
            height: 180px;

        }

        & .attachment-post-thumbnail {
            width: 1000px;

        }
    }

    /* Contact Form */
    .wpcf7-text {
        width: 82%;
        margin: 0 58px;
    }

    .wpcf7-textarea {
        width: 82%;
        margin: 0 58px;
    }

    .small_tag {
        margin-bottom: 20px;
    }

    /* Projects Page  */

    .card {
        width: 420px;
        height: 530px;

        & img {
            width: 420px;
            height: 250px;
            margin-bottom: 20px;
        }

        & a {

            & h3 {
                margin-bottom: 70px;
            }
        }
    }


}

/* Smaller Phone  */



/**** Phone Responsive ****/

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

    /* Burger-Modell */
    /* show burger-icons */
    header .responsive_toggle {
        display: block;
        color: var(--white);

    }


    /* hide close icon */
    header .responsive_toggle .close {
        display: none;
    }


    a.responsive_toggle svg {
        width: 50px;
        height: 40px;
        stroke-width: 1px;
    }



    /* hide navigation */
    header>nav {
        display: none;
    }


    /* Menu open */
    /* show navigation on click */
    /* Version 1 */
    .nav-open .responsive_toggle .close,
    .nav-open .main-nav {
        display: block;
    }


    /* hide burger-icon on click */
    .nav-open .responsive_toggle .open {
        display: none;
    }

    /* Styling Header  */
    header.nav-open>nav {
        display: block;
        z-index: 200;
        position: absolute;
        top: 13%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--black);
        padding-top: 100px;

    }

    /* Styling li Items */

    #menu-haubtnavigation {
        display: flex;
        flex-direction: column;
        gap: 90px;
        align-items: center;
        justify-content: center;
        padding-top: 50px;

        & .menu-item {
            margin: 0;

            & a {
                font-size: 5rem;
                font-weight: 700;
            }
        }
    }

    header.nav-open #menu-hauptnavigation {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 15px;
    }


    header.nav-open #menu-hauptnavigation .menu-item a {
        font-size: 40px;
    }


    body.noScroll {
        overflow: hidden;
    }

    /* cover styling */
    .wp-block-cover .wp-block-cover__image-background,
    .wp-block-cover video.wp-block-cover__video-background,
    .wp-block-cover-image .wp-block-cover__image-background,
    .wp-block-cover-image video.wp-block-cover__video-background {
        width: 200%;
    }

    .wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
    .wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
        margin-top: 300px;
        padding-left: 40px;
    }

    .hero_p {
        display: flex;
        justify-content: flex-start;
    }


    /* Page about Me */
    .about-me-container>.wp-block-group__inner-container {
        flex-direction: column;
        padding: 0 58px 58px 58px;
        margin: 0;

        & h2 {
            margin: 30px 0 10px 0 !important;
        }

        & img {
            width: 600px;
            min-width: 0;
            height: 300px;
            margin: 0;
        }

        & .about-me-text-container {
            width: 90%;
        }
    }

    .about-me-container2>.wp-block-group__inner-container {
        flex-direction: column-reverse;
        padding: 0 58px 58px 58px;
        margin: 0;


        & img {
            height: 500px;
            min-width: 0;
            margin: 0 0 60px 0;
        }


    }

    .about-me-text-container2>.wp-block-group__inner-container {
        width: 90%;
        margin: 0;
    }


    /* Page projects  */
    .the_best_h1 {
        font-size: 5.5rem;
        justify-self: center;
        color: var(--white);
        stroke: black;
        width: 100vw;
        text-align: center;
        display: block;
    }

    .categories {
        flex-wrap: wrap;
        max-width: 500px;
        margin: 0 auto;
    }

    .project-container {
        grid-template-columns: 1fr;

    }

    /* Page Contact */
    .no-button {
        flex-direction: column;
        margin-bottom: 200px;
    }

    .container-text-kontakt>.wp-block-group__inner-container {
        align-items: start;

        & h2 {
            padding-left: 58px;
            margin-bottom: 20px;
        }

        & .text-kontakt {
            margin-bottom: 0;
            padding: 0 58px;
            text-align: left;
        }
    }



    /* 404 Page Styling  */


    .error-container {

        width: 100%;
    }

    /* Contact Page */
    .wpcf7 form.invalid .wpcf7-response-output {
        width: 83%;
    }

    .wpcf7 form.sent .wpcf7-response-output {
        width: 83%;
    }

    .wpcf7-not-valid-tip {
        display: none;
    }

    /* Sigle Post */

    .post_singel>.wp-block-group__inner-container {
        & img {
            margin: 20px 10px 20px 0;
            width: 90vw;
            height: 40vh;

        }
    }

    /* Footer */

    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }


}

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

    header {
        padding: 30px;
    }

    /* Styling Header  */
    header.nav-open>nav {
        top: 10%;
        left: 0;
        padding-top: 20px;
        padding-left: 0;

    }

    .h2_home {
        margin: 12px 0;
    }

    #menu-haubtnavigation {
        padding-top: 30px;

        & .menu-item a {
            font-size: 3.5rem;
        }
    }

    /* Cover image */



    /* Projects Page  */

    .card {
        width: 300px;
        height: 410px;

        & img {
            width: 300px;
            height: 200px;
        }

        & a {
            & h3 {
                margin-bottom: 35px;
                font-size: 2.3rem;
            }
        }
    }

    .the_best {
        & img {
            height: 500px !important;
        }
    }

    .the_best_h1 {
        font-size: 4rem;
        text-align: center;
        color: var(--white);
        width: 100vw;
        text-align: center;
        display: block;
    }

    .the_best_h2 {
        top: 550px;
    }

    .h2_projects {
        margin: 600px 0 40px 0;
    }

    /* contact Page */

    .wpcf7-text {
        width: 300px;

        &::placeholder {
            font-size: 2rem;
        }
    }

    .wpcf7-textarea {
        width: 300px;

        &::placeholder {
            font-size: 2rem;
        }
    }

    .small_tag {
        margin-bottom: 0;
    }

    .contact_spacer {
        margin-top: 0;
    }

    /* Page about Me */
    .about-me-container>.wp-block-group__inner-container {
        flex-direction: column;
        padding: 0 30px 30px 30px;
        margin: 0;

        & h2 {
            margin: 30px 0 10px 0 !important;
        }

        & img {
            height: 300px;
        }
    }

    /* Contact Page */
    .container-text-kontakt>.wp-block-group__inner-container {

        & .text-kontakt {
            padding-left: 30px;
        }

        & h2 {
            padding-left: 30px;
        }
    }

    .wpcf7-text {
        width: 84%;
        margin: 0 30px;
    }

    .wpcf7-textarea {
        width: 84%;
        margin: 0 30px;
    }

    footer {
        padding: 30px;
    }

}