/* 
================================================================================

Theme Name:     Kosmetik Geyer
Theme URI:      http://www.kosmetik-geyer.de

Description:    Gerda Geyer - Institut für Ganzkörperpflege und Podologie.

Author:         creativdrei Werbeagentur GmbH
Author URI:     http://www.creativdrei.de

Version:        1.0

Date created:	13/03/2025
Last modified:	13/03/2025

================================================================================
*/




/*============================================================================*/
/* ----- GENERAL ----- */
/*============================================================================*/

* {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0px auto;
    overflow-x: clip;
}

    /* Text selection */
    ::selection {background: #000; color: #fff;}
    ::-moz-selection { background: #000; color: #fff;}

    /* Images */
    a img {border: none; transition: all ease 0.4s;}
    a img:hover {opacity: 0.75;}

    /* Bold Font */
    b,strong {font-weight: 600;}

    /* Headlines */
    main h1:after, 
    main h2:after {
        position: relative;
        width: 200px;
        height: 4px;
        content: "";
        display: block;
        margin: 20px auto 0 0;
        background: var(--wp--preset--color--orange);
    }

    main h1.has-text-align-center:after,
    main h2.has-text-align-center:after {
        margin: 20px auto 0 auto;
    }

    main h1.has-text-align-right:after,
    main h2.has-text-align-right:after {
        margin: 20px 0 0 auto;
    }

    h1, h2, h3 {
        -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto; 
    }


/*============================================================================*/
/* ----- TEMPLATE & THEME ----- */
/*============================================================================*/

/* ----- HEADER ----- */

header {
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 200px;
    transition: all ease 0.4s;
    background: var(--wp--preset--color--white);
    border-bottom: 1px solid var(--wp--preset--color--beige);

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

body.scrolled header {
    height: 80px;
}

    #logo {
        width: 20%;
        height: auto;
        z-index: 20;
        max-width: 160px;
        margin: 0 3.75rem;
        align-self: center;
        transition: all ease 0.4s;
    }

    body.scrolled #logo {
        max-width: 70px;
    }

        #logo img {
            width: 100%;
            height: auto;
            display: block;
        }


    /* --- MAIN MENU (Desktop) --- */

    nav#main-menu-left {
        margin-left: auto;
        justify-content: flex-end;
    }

    nav#main-menu-right {
        margin-right: auto;
        justify-content: flex-start;
    }

    nav.main-menu {
        width: 40%;
        height: 100%;

        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

        /* 1st Level */
        nav.main-menu ul {
            margin: 0;
            padding: 0;
            height: 100%;
            list-style: none;

            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            align-items: center;
        }

            nav.main-menu ul li {
                margin: 0;
                padding: 0;
                width: auto;
                height: 100%;
                
                display: flex;
                align-items: center;
            }

                nav.main-menu ul li > a {
                    width: auto;
                    display: block;
                    cursor: pointer;
                    transition: all ease 0.4s;
                    margin: 0 10px;
                    padding: 100px 10px 5px 10px;
                    border-bottom: 3px solid transparent;

                    color: var(--wp--preset--color--grey-brown);
                    font-size: var(--wp--preset--font-size--m);
                    font-weight: 400;
                    letter-spacing: 0.5px;
                    text-decoration: none;
                    text-transform: uppercase;
                    font-family: var(--wp--preset--font-family--source-sans-3)
                }

                body.scrolled nav.main-menu ul li > a {
                    padding: 8px 10px 0 10px;
                }

                nav.main-menu ul li a img {
                    width: 24px;
                    height: 24px;
                }

                nav.main-menu ul li a:hover {
                    color: var(--wp--preset--color--dark-blue);
                }

                nav.main-menu > ul > li.current-menu-item > a,
                nav.main-menu > ul > li.current-menu-ancestor > a,
                nav.main-menu > ul > li.current_page_parent > a,
                nav.main-menu > ul > li.current-page-ancestor > a {
                    font-weight: 600;
                    letter-spacing: 1px;
                    border-bottom: 3px solid var(--wp--preset--color--dark-blue);
                }

        /* 2nd Level */
        nav.main-menu ul li ul {
            position: absolute;
            top: 200px;
            height: auto;
            width: auto;
            display: none;
            transition: all ease 0.4s;
            padding: 0.625rem 1.25rem;
            background: var(--wp--preset--color--white);
            border: 1px solid var(--wp--preset--color--beige);
        }

        body.scrolled nav.main-menu ul li ul {
            top: 80px;
        }

        nav.main-menu ul li:hover ul {
            display: block;

            animation-name: menu-dd;
            animation-duration: 0.4s;
            animation-iteration-count: 1;
            animation-direction: alternate;
            animation-timing-function: ease-in-out;
            animation-fill-mode: forwards;            
        }

        @keyframes menu-dd {
            0%   {opacity: 0;}
            100% {opacity: 1;}
        }

            nav.main-menu ul li ul li {
                width: 100%;
            }

            nav.main-menu ul li ul li:last-child {
                border: none;
            }

            nav.main-menu ul li ul li.overview {
                display: none;
            }

                nav.main-menu ul li ul li > a {
                    margin: 0;
                    height: auto;
                    border: none;
                    padding: 0 !important;
                    margin: 0.375rem 0;
                }

                nav.main-menu > ul > li > ul > li.current-menu-item > a,
                nav.main-menu > ul > li > ul > li.current-menu-ancestor > a,
                nav.main-menu > ul > li > ul > li.current_page_parent > a,
                nav.main-menu > ul > li > ul > li.current-page-ancestor > a {
                    font-weight: 600;
                    letter-spacing: 1px;
                }

    #menu-button {
        display: none;
        cursor: pointer;
    }


/* ----- MOBILE MENU ----- */

nav#mobile-menu {
    display: none;
}


/* ----- MAIN CONTENT ----- */

main {
    position: relative;
    padding-top: 200px;
    transition: all ease 0.4s;

    animation-name: starting;
    animation-duration: 1.2s;
    animation-iteration-count: 1;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

body.scrolled main {
    padding-top: 0;
}

@keyframes starting {
    0% {opacity: 0;}
    100% {opacity: 1;}
}


/* ----- FOOTER ----- */

footer {
    position: relative;
}


/* ----- BLOCK ADJUSTMENTS ----- */

/* General */
.alignfull.has-global-padding {
    padding-left: var(--wp--style--root--padding-left);
    padding-right: var(--wp--style--root--padding-right);
}

.is-layout-constrained > :first-child,
.is-layout-flow > :first-child {
    margin-block-start: 0;  
}

.is-layout-constrained > :last-child,
.is-layout-flow > :last-child {
    margin-block-end: 0;  
}

/* Media/Text Block */
.wp-block-media-text .wp-block-media-text__content {
    padding: 0 0 0 10%;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding: 0 10% 0 0;
}

/* Cover Block */
.wp-block-cover {
    padding: 0;
}

    .wp-block-cover.alignfull .wp-block-cover__inner-container {
        padding-left: var(--wp--style--root--padding-left);
        padding-right: var(--wp--style--root--padding-right);
    }

/* Start Cover (Cover Block) */
.wp-block-cover.start-cover {
    margin-bottom: -6vw;
    z-index: -1;
}

.editor-styles-wrapper .wp-block-cover.start-cover {
    z-index: 0;
}

.wp-block-cover.start-cover:before {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    content: "";
    width: 100vw;
    height: 20vw;
    display: block;
    
    background: var(--wp--preset--color--white);
    clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%, 50% 60%);
}

/* Buttons Block */
.wp-block-button,
.wp-block-button__link {
    transition: all ease 0.4s;
}

.wp-block-button:hover {
    transform: scale(0.95);
}

.wp-block-button:hover .wp-block-button__link {
    background: var(--wp--preset--color--orange) !important;
}


/* File Block */
.wp-block-file {
    display: flex;
    align-items: center;
    font-size: var(--wp--preset--font-size--m) !important;
}

.wp-block-file a:first-child:before {
    position: relative;
    float: left;
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    margin-right: 6px;
    background-color: var(--wp--preset--color--black);

    mask: url(img/icon-download.svg) no-repeat;
    -webkit-mask: url(img/icon-download.svg) no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}


/* Details Block */
.wp-block-details summary {
    position: relative;
    display: flex;
    align-items: center;

    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--l);
}

.wp-block-details summary::marker,
details summary::-webkit-details-marker /* Safari */ {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    visibility: hidden !important;
}

.wp-block-details summary:after {
    position: absolute;
    right: 0;
    width: clamp(1rem, 1vw + 0.7rem, 1.5rem); /* 16-24px @ 480-1280px */
    height: clamp(1rem, 1vw + 0.7rem, 1.5rem);
    content: "";
    display: block;
    margin-left: 1rem;
    transition: all ease 0.4s;
    background: var(--wp--preset--color--dark-blue);
    mask: url(img/icon-plus.svg) no-repeat;
    -webkit-mask: url(img/icon-plus.svg) no-repeat;
    mask-size: 100% 100% !important;
    -webkit-mask-size: 100% 100% !important;
}

.wp-block-details[open] > summary:after {
    mask: url(img/icon-minus.svg) no-repeat;
    -webkit-mask: url(img/icon-minus.svg) no-repeat;
}


/* Carousel Slider Block (Plugin) */

.slick-dots {
    bottom: -2.5rem !important;
}

.slick-dots li.slick-active button:before {
    opacity: 1 !important;
}

.slick-dots li button:before {
    opacity: 0.5 !important;
    font-size: 12px !important;
    color: var(--wp--preset--color--white) !important;
}

.slick-next:before, .slick-prev:before {
    display: none;
}

.slick-next, .slick-prev {
    opacity: 0.5;
    width: clamp(1.5rem, 1vw + 1.2rem, 2rem) !important; /* 24-32px @ 480-1280px */
    height: clamp(1.5rem, 1vw + 1.2rem, 2rem) !important;
    transition: all ease 0.4s;
    mask-size: 100% 100% !important;
    background: var(--wp--preset--color--white) !important;
}

.slick-next:hover, .slick-prev:hover {
    opacity: 1;
}

.slick-next {
    right: -18px !important;
    mask: url(img/icon-arrow.svg);
    transform: rotate(-90deg) !important;
}

.slick-prev {
    left: -18px !important;
    mask: url(img/icon-arrow.svg);
    transform: rotate(90deg) !important;
}


/* ----- BLOCK EDITOR ADJUSTMENTS ----- */

/* Seitentitel */
.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper {
    margin: 0 !important;
    text-align: center !important;
    border-bottom: 1px solid #E0E0E0 !important;
}

    .editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper h1 {
	    font-size: 1rem;
        line-height: 1.4;
        font-weight: 700;
        color: #252525;
	    font-style: none;
        text-transform: none;
        margin: 0 auto !important;
        padding: 10px 0 10px 0 !important;
        font-family: var(--wp--preset--font-family--system-font) !important;
    }


/* ----- FORMS ----- */

main form {
    margin: 0;
    padding: 0;    
}

    main fieldset {
        margin: 0;
        padding: 0;
        border: none;
    }
    
        main legend {display: none;}
        
        main label  {display: block;}
        
        main input,
        main select,
        main textarea {
            outline: none;
            padding: 10px 15px;
            width: calc(100% - 32px);
            border: 1px solid var(--wp--preset--color--grey-brown);

            color: var(--wp--preset--color--grey-brow);
            font-size: var(--wp--preset--font-size--m);
            font-weight: 400;
            font-family: var(--wp--preset--font-family--source-sans-3);
        }
        
        main select {
            width: 100%;
        }
        
        main textarea {
            min-height: 150px;
            overflow: auto;
        }   
        
        input[type=checkbox],
        input[type=radio] {
            width: 0;
            height: 0;
            visibility: hidden;
        }

        input[type=checkbox] + span:before,
        input[type=radio] + span:before {
            position: relative;
            float: left;
            width: 20px;
            height: 20px;
            content: "";
            display: block;
            visibility: visible;
            background: #FFF;
            cursor: pointer;
            margin: 0 10px 10px 0;
            border: 1px solid var(--wp--preset--color--grey-brown);

            color: var(--wp--preset--color--grey-brown);
            font-size: 20px;
            line-height: 100%;
            text-align: center;
        }

        input[type=radio] + span:before {
            border-radius: 100%;
        }

        input[type=checkbox]:checked + span:before {
            content: "X";
        }

        input[type=radio]:checked + span:before {
            content: "";
            background: #000;
        }
        
        main input:focus,
        main select:focus,
        main textarea:focus {
            border-color: var(--wp--preset--color--orange);
        }

        main input::placeholder
        main select::placeholder,
        main textarea::placeholder {
            color: #97938A;
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            border: none;
            margin: 10px 0;
            padding: 10px 20px;
            cursor: pointer;
            transition: all ease 0.4s;
            background: var(--wp--preset--color--dark-blue);

            font-weight: 600;
            line-height: 1.2;
            letter-spacing: 1px;
            color: var(--wp--preset--color--white);
            font-size: var(--wp--preset--font-size--m);
            font-family: var(--wp--preset--font-family--source-serif-4);
        }
        
        main input[type=submit]:hover,
        main button[type=submit]:hover {
            transform: scale(0.95);
            background: var(--wp--preset--color--orange);
        }
        
        main input[type=submit]:active,
        main button[type=submit]:active {
            outline: none;
        }


/* Plugin adjustments: Contact Form 7 */

.wpcf7-list-item {
    margin-left: 0 !important;
}        

img.ajax-loader {
    width: 16px !important;
    height: auto !important;
}

.wpcf7 form .wpcf7-response-output {
    border: none !important;
    width: 95%;
    margin: 0 !important;
    padding: 10px 2.5% 10px 2.5% !important;

    color: #fff !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: green;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: red;
}

.wpcf7-not-valid-tip {
    color: red !important;
}


/*============================================================================*/
/* ----- BREAKPOINT @ 1200 Pixel ----- */
/*============================================================================*/

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

} /* <--- END OF BREAKPOINT */


/*============================================================================*/
/* ----- BREAKPOINT @ 1024 Pixel ----- */
/*============================================================================*/

@media only screen and (max-width: 1024px) { 
    
/* ----- HEADER ----- */

header,
body.scrolled header {
    height: 60px;
    justify-content: space-between;
}

    #logo,
    body.scrolled #logo {
        margin: 0 0 0 5vw;
        max-width: 50px;
    }

    nav.main-menu {
        display: none;
    }

    #menu-button {
        position: relative;
        z-index: 20;
        width: 24px;
        height: 24px;
        display: block;
        cursor: pointer;
        margin: 1.25rem 5vw 0 0;
        background: var(--wp--preset--color--grey-brown);
        transition: all ease 0.4s;
        mask: url(img/icon-menu.svg) no-repeat;
        mask-size: 100% 100% !important;
        -webkit-mask: url(img/icon-menu.svg) no-repeat;
        -webkit-mask-size: 100% 100% !important;
    }

    #menu-button.opened {
        transform: rotate(180deg);
        mask: url(img/icon-close.svg) no-repeat;
        -webkit-mask: url(img/icon-close.svg) no-repeat;
    }


/* ----- MOBILE MENU ----- */

nav#mobile-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    z-index: 10;
    width: 50vw;
    height: 100vh;
    display: block;
    transition: all ease 0.4s;
    background: var(--wp--preset--color--beige);
}

nav#mobile-menu.opened {
    right: 0;
}

    /* 1st Level */
    nav#mobile-menu ul {
        margin: 0;
        padding: 0;
        width: 100%;
        list-style: none;
        overflow-y: auto;
        margin-top: 60px;
        height: calc(100vh - 80px);
    }

        nav#mobile-menu ul li {
            margin: 0;
            padding: 0;
            width: 100%;
        }

            nav#mobile-menu ul li a {
                width: calc(100% - 2.5rem);
                display: block;
                padding: 0.75rem 1.25rem;
                border-top: 1px solid #D6D0C4;

                color: var(--wp--preset--color--grey-brown);
                font-size: var(--wp--preset--font-size--m);
                text-transform: uppercase;
                text-decoration: none;
                font-weight: 400;
            }

            nav#mobile-menu ul li:last-child a {
                border-bottom: 1px solid #D6D0C4;
            }

            nav#mobile-menu ul li.has-sub-menu span.sub-opener {
                position: absolute;
                right: 1.25rem;
                width: 16px;
                height: 16px;
                content: "";
                margin: 8px 4px 0 0;
                display: inline-block;
                transition: all ease 0.4s;
                background: var(--wp--preset--color--grey-brown);
                mask: url(img/icon-arrow.svg) no-repeat;
                mask-size: 100% 100%;
                -webkit-mask: url(img/icon-arrow.svg) no-repeat;
                -webkit-mask-size: 100% 100%;
                transform: rotate(0deg);
            }

            nav#mobile-menu ul li.has-sub-menu.opened span.sub-opener {
                transform: rotate(-180deg);
            }

            nav#mobile-menu > ul > li.current-menu-item > a,
            nav#mobile-menu > ul > li.current-menu-ancestor > a,
            nav#mobile-menu > ul > li.current_page_parent > a,
            nav#mobile-menu > ul > li.current-page-ancestor > a {
                font-weight: 600;
            }

    /* 2nd Level */
    nav#mobile-menu ul li ul {
        margin: 0;
        height: auto;
        display: none;
        padding-bottom: 0.5rem;
    }

        nav#mobile-menu ul li ul li a {
            border-top: none;
            padding: 0.313rem 1.25rem;
            text-transform: none;
        }

        nav#mobile-menu ul li ul li:last-child a {
            border: none;
        }


/* ----- MAIN CONTENT ----- */

main,
body.scrolled main {
    padding-top: 60px;
}
    
} /* <--- END OF BREAKPOINT */


/*============================================================================*/
/* ----- BREAKPOINT @ 600 Pixel ----- */
/*============================================================================*/

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

/* ----- MOBILE MENU ----- */

nav#mobile-menu {
    width: 75vw;
}


/* ----- BLOCK ADJUSTMENTS ----- */

/* Media/Text Block */
.wp-block-media-text .wp-block-media-text__content,
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding: 0;
} 

.wp-block-media-text.alignfull .wp-block-media-text__content,
.wp-block-media-text.has-background .wp-block-media-text__content {
    padding: 0 5% 0 5%;
}
    
} /* <--- END OF BREAKPOINT */