/* 
================================================================================

Theme Name:     Bike Sport München
Theme URI:      http://www.bike-sport-muenchen.de

Description:    Specialized Partner und Fahrrad-Fachgeschäft im Herzen von München. Made by INTERPAGE.

Author:         INTERPAGE
Author URI:     http://www.interpage.de

Version:        1.0

Date created:	21/05/2025
Last modified:	19/08/2025

================================================================================
*/




/*============================================================================*/
/* ----- GENERAL ----- */
/*============================================================================*/

* {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* for fixed headers */
}

body {
    margin: 0px auto;
    overflow-x: clip;
}

    /* Text selection */
    ::selection {background: var(--wp--preset--color--dark-grey); color: var(--wp--preset--color--white);}
    ::-moz-selection { background: var(--wp--preset--color--dark-grey);; color: var(--wp--preset--color--white);}

    /* Images */
    a img {border: none; transition: all ease 0.4s;}
    a img:hover {opacity: 0.75;}

    b,strong {font-weight: 700;}

    /* Headlines */
    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: 80px;
    transition: all ease 0.4s;
    background: var(--wp--preset--color--mud);

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header.trans-bg {
    background: rgba(176, 172, 155, 0.8);
}

body.scrolled header {
    background: var(--wp--preset--color--mud) !important;
}

    #logo {
        width: 100%;
        height: auto;
        max-width: 200px;
        margin: 0 0 0 5%;
    }

        #logo img {
            width: 100%;
            height: auto;
            display: block;
        }

    nav#main-menu {
        width: auto;
        height: 100%;
        margin: 0 5% 0 0;
    }

        /* 1st Level */
        nav#main-menu ul {
            width: 100%;
            height: 100%;
            list-style: none;

            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
        }

            nav#main-menu ul li {
                width: auto;
                height: calc(100% - 4px);
                margin: 0 1rem;
                border-top: 4px solid transparent;
                
                display: flex;
                align-items: center;
            }

                nav#main-menu ul li a {
                    width: auto;
                    display: block;
                    padding: 6px 8px;
                    transition: all ease 0.4s;

                    color: var(--wp--preset--color--white);
                    font-weight: 500;
                    letter-spacing: 1px;
                    text-decoration: none;
                    text-transform: uppercase;
                    font-size: var(--wp--preset--font-size--s);
                }

                nav#main-menu ul li a:hover {
                    opacity: 0.5;
                }

                nav#main-menu ul li.current-menu-item,
                nav#main-menu ul li.current-menu-ancestor,
                nav#main-menu ul li.current_page_parent,
                nav#main-menu ul li.current-page-ancestor {
                    border-top: 4px solid var(--wp--preset--color--white);
                }

            nav#main-menu ul li button {
                width: 12px;
                height: 12px;
                border: none;
                font-size: 0;
                background: transparent;
            }

                nav#main-menu ul li button div {
                    width: 100%;
                    height: 100%;
                    background: var(--wp--preset--color--white);
                    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%;
                }

        /* 2nd Level */
        nav#main-menu ul li ul {
            position: absolute;
            top: 80px;
            height: auto;
            width: auto;
            display: none;
            min-width: 200px;
            margin-left: -1rem;
            padding: 0 0 10px 0;
            background: rgba(176, 172, 155, 0.5);
        }

        body.scrolled nav#main-menu ul li ul {
            background: var(--wp--preset--color--mud);
        }

            nav#main-menu ul li ul li {
                width: 100%;
                height: auto;
                display: block;
                border: none;
            }

                nav#main-menu ul li ul li a {
                    margin: 0;
                    height: auto;
                }

                nav#main-menu ul li.current-menu-item ul li,
                nav#main-menu ul li.current-menu-ancestor ul li,
                nav#main-menu ul li.current_page_parent ul li,
                nav#main-menu ul li.current-page-ancestor ul li {
                    border: none;
                }

    #menu-button {
        display: none;
    }


/* ----- STICKY MENU ----- */

nav#sticky-menu {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 1;
}

    nav#sticky-menu ul {
        position: relative;
        width: auto;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        nav#sticky-menu ul li {
            width: auto;
        }

            nav#sticky-menu ul li a {
                width: clamp(2rem, 2.353vw + 1.118rem, 3rem); /* 32-48px @ 600-1280px */
                height: clamp(2rem, 2.353vw + 1.118rem, 3rem);
                display: block;
                margin: 0 0 6px 0;
                border-top-left-radius: 6px;
                border-bottom-left-radius: 6px;
                background: var(--wp--preset--color--black);

                display: flex;
                align-items: center;
                justify-content: center;

                font-size: 8px;
                text-decoration: none;
                color: var(--wp--preset--color--white);
            }

            nav#sticky-menu ul li a img {
                width: clamp(1rem, 1.765vw + 0.338rem, 1.75rem); /* 16-28px @ 600-1280px */
                height: clamp(1rem, 1.765vw + 0.338rem, 1.75rem);
                margin: 0 !important;
            }

            nav#sticky-menu ul li a span {
                display: none;
            }


/* ----- MAIN CONTENT ----- */

main {
    position: relative;

    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;}
}

main.is-post-single {
    margin-top: clamp(7.5rem, 6.667vw + 5rem, 10rem); /* 100-160px @ 600-1200px */
    margin-bottom: clamp(7.5rem, 6.667vw + 5rem, 10rem);;
}

    #post-single-img {
        aspect-ratio: 16 / 9;
        margin: var(--wp--preset--spacing--40) 0;
    }

        #post-single-img img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            border-radius: 25px;
        }

        #post-single-date {
            font-style: italic;
            font-size: var(--wp--preset--font-size--s);
        }


/* ----- FOOTER ----- */

footer {
    position: relative;
}

    footer a {
        text-decoration: none;
    }


/* ----- 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;  
}


/* Group Block */
/*
.wp-block-group.alignfull .wp-block-group__inner-container {
    padding-left: 5%;
    padding-right: 5%;
}
*/

/* Columns Block */
/*
.wp-block-columns.alignfull > :first-child {
    padding-left: 5%;
}

.wp-block-columns.alignfull > :last-child {
    padding-right: 5%;
}
*/

/* Media/Text Block */
.wp-block-media-text .wp-block-media-text__content {
    padding: 0 8% 0 8%;
}

/* Optional:
.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;
}
*/

/* Cover Block */
.wp-block-cover {
    padding: 0;
}

/* Buttons Block */
.wp-block-button {
    transition: all ease 0.4s;
}

.wp-block-button:hover {
    transform: scale(0.95);
}


/* 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%;
}


/* ----- BLOCK EDITOR ADJUSTMENTS ----- */

/* Seitentitel */
body.post-type-page .edit-post-visual-editor__post-title-wrapper {
    margin: 0 !important;
    text-align: center !important;
    border-bottom: 1px solid #E0E0E0 !important;
}

    body.post-type-page .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 {
            width: calc(100% - 42px);
            height: auto;
            outline: none;
            padding: 10px 20px;
            border-radius: 15px;
            background: var(--wp--preset--color--white);
            border: 2px solid var(--wp--preset--color--mud);

            font-weight: 300;
            color: var(--wp--preset--color--black);
            font-size: var(--wp--preset--font-size--m);
            font-family: var(--wp--preset--font-family--poppins);
        }
        
        main select {
            width: 100%;
        }
        
        main textarea {
            overflow: auto;
            height: 200px;
        }

        main input[type=radio],
        main input[type=checkbox] {
            width: auto;
        }        
        
        main input:focus,
        main select:focus,
        main textarea:focus {
            border-color: var(--wp--preset--color--black);
        }

        input::placeholder,
        textarea::placeholder {
            color: var(--wp--preset--color--mud);
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            cursor: pointer;
            padding: 14px 20px;
            border-radius: 25px;
            transition: all ease 0.4s;
            background: var(--wp--preset--color--mud);
            border: 2px solid var(--wp--preset--color--mud);

            font-weight: 500;
            line-height: 1.4;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--wp--preset--color--black);
            font-size: var(--wp--preset--font-size--s);
            font-family: var(--wp--preset--font-family--poppins);
        }
        
        main input[type=submit]:hover,
        main button[type=submit]:hover {
            transform: scale(0.95);
        }

        main input[type=submit]:focus,
        main button[type=submit]:focus {
            border: 2px solid var(--wp--preset--color--black);
        }
        
        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%;
        border-radius: 15px;
        margin: 0 !important;
        padding: 10px 2.5% 10px 2.5% !important;

        color: #fff !important;
    }

    .wpcf7 form.sent .wpcf7-response-output {
        background: #9FDF4C;
    }

    .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: #F91337;
    }

    .wpcf7-not-valid-tip {
        color: #F91337 !important;
    }


/*============================================================================*/
/* ----- BREAKPOINT @ 1024 Pixel ----- */
/*============================================================================*/

@media only screen and (max-width: 1024px) { 
    
/* ----- HEADER ----- */

header {
    height: 60px;
    background: var(--wp--preset--color--mud);
}

    #logo {
        width: 150px;
    }

    #menu-button {
        position: relative;
        width: 24px;
        height: 24px;
        border: none;
        font-size: 0;
        display: block;
        cursor: pointer;
        margin: 0 5% 0 0;
        background: transparent
    }

        #menu-button div {
            width: 100%;
            height: 100%;
            transition: all ease 0.4s;
            background: var(--wp--preset--color--white);
            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 div {
            transform: rotate(180deg);
            mask: url(img/icon-close.svg) no-repeat;
            -webkit-mask: url(img/icon-close.svg) no-repeat;
        }

    nav#main-menu {
        position: absolute;
        top: 60px;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: all ease 0.4s;
        background: var(--wp--preset--color--white);
    }

    nav#main-menu.opened {
        height: calc(100vh - 60px);
    }

        /* 1st Level */
        nav#main-menu ul {
            margin: 0;
            padding: 0;
            height: auto;
            display: block;
            overflow-y: auto;
            max-height: 100vh;            
        }

            nav#main-menu ul li {
                position: relative;
                margin: 0;
                padding: 0;
                width: 100%;
                height: auto;
                display: block;
                border-bottom: 1px solid var(--wp--preset--color--black);
            }

                nav#main-menu ul li a {
                    height: auto;
                    padding: 14px 5%;

                    color: var(--wp--preset--color--black);
                }

                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: 500;
                }

            nav#main-menu ul li button {
                position: absolute;
                z-index: 1;
                right: 5%;
                top: 10px;
                width: 24px;
                height: 24px;
                border-radius: 3px;
                border: 1px solid var(--wp--preset--color--black);

                display: flex;
                align-items: center;
                justify-content: center;
            }

                nav#main-menu ul li button div {
                    width: 12px;
                    height: 12px;
                    background: var(--wp--preset--color--black);
                }

        /* 2nd Level */
        nav#main-menu ul li ul {
            position: relative;
            top: 0;
            margin: 0;
            width: 100%;
            display: none;
            border: none;
            background: var(--wp--preset--color--white);
        }
            nav#main-menu ul li ul li {
                border: none;
                background: var(--wp--preset--color--white)
            }

            nav#main-menu ul li ul li a {
                padding: 6px 5%;
            }
    
} /* <--- 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,
.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 */