/* 
================================================================================

Theme Name:     Kraftraum 11
Theme URI:      http://www.kraftraum11.de

Description:    

Author:         INTERPAGE
Author URI:     http://www.interpage.de

Version:        1.0

Date created:	24/06/2024
Last modified:	11/07/2024

================================================================================
*/




/*============================================================================*/
/* ----- GENERAL ----- */
/*============================================================================*/

* {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* for fixed headers */
}

body {
    margin: 0px auto;
    background: var(--wp--preset--gradient--yellow-sun);
    background-attachment: fixed;
    background-position: center center;
}

    /* Images */
    a img {border: none;}

    /* Headlines */
    h1, h2, h3 {
        -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto; 
    }


/*============================================================================*/
/* ----- TEMPLATE & THEME ----- */
/*============================================================================*/

/* ----- HEADER ----- */

header {
    position: relative;
    top: 0;
    display: inline;
    z-index: 10;
    width: 100%;
    height: auto;
}

    #logo {
        position: relative;
        width: 100%;
        height: auto;
        max-width: 150px;
        margin: 0 auto;
        padding: 1.25rem 0 1.25rem 0;
    }

        #logo img {
            width: 100%;
            height: auto;
            display: block;
        }

    nav#main-menu {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        margin: 0 auto;
        padding: 0;
    }

    body.scrolled nav#main-menu {
        background: var(--wp--preset--color--yellow);
    }

        /* 1st Level */
        nav#main-menu ul {
            position: relative;
            margin: 0 auto;
            padding: 0;
            width: 100%;
            height: 100%;
            list-style: none;
            max-width: var(--wp--style--global--wide-size);

            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
        }

            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;
                    padding: 1rem 1.25rem 1rem 1.25rem;
                    transition: all ease 0.4s;

                    text-decoration: none;
                    color: var(--wp--preset--color--black);
                    font-size: var(--wp--preset--font-size--xl);
                    font-family: var(--wp--preset--font-family--gabriola);
                }

                nav#main-menu ul li a:hover {
                    color: var(--wp--preset--color--white);
                    text-shadow: 1px 1px 0 #666, -1px 1px 0 #666, -1px -1px 0 #666, 1px -1px 0 #666;

                }

                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 {
                    color: var(--wp--preset--color--white);
                    text-shadow: 1px 1px 0 #666, -1px 1px 0 #666, -1px -1px 0 #666, 1px -1px 0 #666;
                }

        /* 2nd Level */
        nav#main-menu ul li ul {
            position: absolute;
            top: 85px;
            height: auto;
            width: auto;
            display: none;
            background: var(--wp--preset--color--yellow);
            padding: 10px 0 10px 0;
        }

        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.overview {
                display: none;
            }

                nav#main-menu ul li ul li a {
                    margin: 0;
                    height: auto;
                    padding: 0 1.25rem 0 1.25rem;
                    font-size: var(--wp--preset--font-size--l);
                }

    #menu-button {
        display: none;
    }


/* ----- Sidebar Menu ----- */

@keyframes cta {
    0% {right: -100%;}
    100% {right: 0;}
}

nav#sidebar {
    position: fixed;
    top: 40vh;
    right: -100%;
    z-index: 5;

    animation-name: cta;
    animation-duration: 1s;
    animation-delay: 500ms;
    animation-iteration-count: 1;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

    nav#sidebar ul {
        width: 100%;
        height: auto;
        list-style: none;
    }

        nav#sidebar ul li {
            width: 100%;
        }

            nav#sidebar ul li a {
                position: relative;
                width: 200px;
                height: 22px;
                right: -180px;
                margin: 0 0 10px 0;
                padding: 10px;
                background: var(--wp--preset--color--beige);
                border-top-left-radius: 10px;
                border-bottom-left-radius: 10px;
                transition: all ease 0.4s;
                -webkit-box-shadow: -3px 3px 6px 0px rgba(0,0,0,0.1);
                -moz-box-shadow: -3px 3px 6px 0px rgba(0,0,0,0.1);
                box-shadow: -3px 3px 6px 0px rgba(0,0,0,0.1);

                display: flex;
                align-items: center;

                color: var(--wp--preset--color--black);
                font-size: 1rem;
                text-decoration: none;
            }

            nav#sidebar ul li:hover a {
                right: 0;
            }

                nav#sidebar ul li a span.cta {
                    display: block;
                }

                nav#sidebar ul li a span.cta i {
                    margin: 0;
                }

                nav#sidebar ul li a span.cta span {
                    margin: 0 0 0 10px;
                }


/* ----- MAIN CONTENT ----- */

main {
    position: relative;

    background: url(img/logo-bg.webp);
    background-repeat: no-repeat;
    background-size: 75% auto;
    background-position: center center;

    animation-name: starting;
    animation-duration: 1.2s;
    animation-iteration-count: 1;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes starting {
    0% {opacity: 0;}
    100% {opacity: 1;}
}


/* ----- FOOTER ----- */

footer {
    position: relative;
}


/*============================================================================*/
/* ----- BLOCK ADJUSTMENTS ----- */
/*============================================================================*/

/* General */
.alignwide {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--wp--style--global--wide-size);
}

.alignfull.has-global-padding {
    padding-left: var(--wp--style--root--padding-left);
    padding-right: var(--wp--style--root--padding-right);
}

/* Media/Text Block */
.wp-block-media-text .wp-block-media-text__content {
    padding: 0 0 0 8%;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding: 0 8% 0 0;
}

.wp-block-media-text .wp-block-media-text__media,
.wp-block-media-text .wp-block-media-text__media img {
    border-radius: 20px;
}

.wp-block-media-text.has-background {
    border-radius: 20px;
}

/* Columns Block */
.wp-block-column.has-background {
    border-radius: 20px;
}


/* 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);
    }

/* Buttons Block */
.wp-block-button {
    transition: all ease 0.4s;
}

.wp-block-button:hover {
    transform: scale(1.05);
}

/* File Block */
.wp-block-file {
    font-size: 1rem !important; 
}

.wp-block-file a:first-child:before {
    position: relative;
    float: left;
    width: 32px;
    height: 32px;
    content: "";
    display: block;
    margin: -4px 6px 0 0;
    background-color: #000;

    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%;
}


/*============================================================================*/
/* ----- BLOCK EDITOR ADJUSTMENTS ----- */
/*============================================================================*/

/* Seitentitel */
.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper {
    font-size: 10px;
    margin: 0 !important;
    text-align: center;
    background: #FFF;
    border-bottom: 1px solid #E0E0E0;
}

    .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;
    }


/* Widgets */
.wp-block[data-type="core/widget-area"] {
    max-width: none;
}

    .blocks-widgets-container .editor-styles-wrapper {
        max-width: none;
    }


/*############################################################################*/
/* ----- BREAKPOINT @ 800 Pixel ----- */
/*############################################################################*/

@media only screen and (max-width: 800px) { 
    
/* ----- HEADER ----- */

#logo {
    max-width: 100px;
}

nav#main-menu {
    position: absolute;
    top: 0;
    width: 100%;
    height: calc(100vh - 3rem);
    display: none;
    padding: 2rem 0 1rem 0;
    background: var(--wp--preset--color--yellow);
}

    /* 1st Level */
    nav#main-menu ul {
        margin: 0;
        padding: 0;
        height: auto;
        display: block;
        overflow-y: auto;
        max-height: calc(100vh - 3rem);
    }

        nav#main-menu ul li {
            margin: 0;
            padding: 0;
            width: 100%;
            height: auto;
            display: block;
            text-align: center;
        }

            nav#main-menu ul li a {
                position: relative;
                height: auto;
                padding: 0.5rem 5% 0.5rem 5%;

                text-align: center;
            }

            nav#main-menu ul li a.has-sub:after {
                position: absolute;
                left: calc(50% - 6px);
                bottom: 2px;
                content: "";
                width: 12px;
                height: 12px;
                display: block;
                cursor: pointer;
                background: #000;
                align-self: center;
                justify-self: flex-end;
                transition: all ease 0.4s;
                mask: url(img/icon-arrow.svg) no-repeat;
                mask-size: 100% 100% !important;
                -webkit-mask: url(img/icon-arrow.svg) no-repeat;
                -webkit-mask-size: 100% 100% !important;
            }

            nav#main-menu ul li a.has-sub.sub-open:after {
                transform: rotate(180deg);
            }

    /* 2nd Level */
    nav#main-menu ul li ul,
    nav#main-menu ul li:hover ul {
        position: relative;
        top: 0;
        margin: 0;
        padding: 0.625rem 0 1.25rem 0;
        width: 100%;
        display: none;
        border: none;
    }

    @keyframes menu-dd {
        0%   {opacity: 1;}
        100% {opacity: 1;}
    }

        nav#main-menu ul li ul li.overview {
            display: block;
        }

#menu-button {
    position: fixed;
    z-index: 50;
    top: 1.25rem;
    right: 5%;
    width: 24px;
    height: 24px;
    display: block;
    cursor: pointer;
    margin: 0 auto;
    background: var(--wp--preset--color--black);
    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.is-open {
    transform: rotate(180deg);
    mask: url(img/icon-close.svg) no-repeat;
    -webkit-mask: url(img/icon-close.svg) no-repeat;
}


/* ----- Sidebar Menu ----- */

nav#sidebar {
    top: auto;
    bottom: 10px;
}

nav#sidebar ul li a {
    right: -145px;
    width: auto;
    padding: 5px;
    margin: 0 0 5px 0;
}

nav#sidebar ul li:hover a {
    right: -145px;
}

    
} /* <--- END OF BREAKPOINT */


/*############################################################################*/
/* ----- BREAKPOINT @ 600 Pixel ----- */
/*############################################################################*/

@media only screen and (max-width: 600px) { 

/* Media/Text Block */
.wp-block-media-text .wp-block-media-text__content {
    padding: 1.25rem 0 1.25rem 0;
} 

.wp-block-media-text.alignfull .wp-block-media-text__content,
.wp-block-media-text.has-background .wp-block-media-text__content {
    padding: 1.25rem 5% 1.25rem 5%;
}
    
} /* <--- END OF BREAKPOINT */