/* 
================================================================================

Theme Name:     Auto Service Klatt
Theme URI:      http://www.autoservice-klatt.de

Description:    Auto Service Klatt – Ihr Kfz-Meisterbetrieb in Eching am Ammersee.

Author:         lakeSITE webdesign
Author URI:     http://www.lakesite-webdesign.de

Version:        1.0

Date created:	10/11/2025
Last modified:	10/11/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: #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;}

    /* Figures */
    figure {line-height: 1;}


/*============================================================================*/
/* ----- TEMPLATE & THEME ----- */
/*============================================================================*/

/* ----- HEADER ----- */

header {
    position: sticky;
    top: 0;
    height: 0;
    width: 100%;
    z-index: 10;
}

    .header-inner-container .wp-block-column {
        position: relative;
    }

        header .second-logo {
            position: absolute;
            bottom: 24px;
            right: 24px;
        }

    .classic-menu-wrapper {
        width: calc(100% - 2px);
        border: 1px solid var(--wp--preset--color--light-grey)
    }

        .classic-menu-wrapper p {
            margin: 0 !important;
        }

        #menu-button {
            display: none;
        }

        /* --- Main Menu --- */
        nav#main-menu {
            display: block;
            height: 100%;
        }

            /* 1st Level */
            nav#main-menu ul {
                height: 100%;
                padding: 0 2.5rem;
                list-style: none;

                display: flex;
                flex-wrap: wrap;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
            }

                nav#main-menu ul li {
                    margin: 0;
                    padding: 0;
                    width: auto;
                    height: 100%;

                    display: flex;
                    align-items: center;
                }

                nav#main-menu ul li:after {
                    content: "|";
                    padding: 1.25rem clamp(0.938rem, 5.859vw + -2.812rem, 1.875rem);
                    color: var(--wp--preset--color--gold)
                }

                nav#main-menu ul li:last-child:after {
                    display: none;
                }

                    nav#main-menu ul li a {
                        color: var(--wp--preset--color--dark-navy);
                        font-size: var(--wp--preset--font-size--s);
                        font-weight: 700;
                        text-decoration: none;
                        text-transform: uppercase;
                        transition: all ease 0.2s;
                    }

                    nav#main-menu ul li a:hover {
                        opacity: 0.5;
                    }

                    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--gold);
                    }

                    nav#main-menu ul li button {
                        width: 12px;
                        height: 12px;
                        border: none;
                        font-size: 0;
                        background: none;
                        margin-left: 6px;
                    }

                        nav#main-menu ul li button span {
                            display: block;
                            width: 100%;
                            height: 100%;
                            transition: all ease 0.4s;
                            background: var(--wp--preset--color--dark-navy);
                            mask: url(assets/img/icon-arrow.svg) no-repeat;
                            mask-size: 100% 100% !important;
                            -webkit-mask: url(assets/img/icon-arrow.svg) no-repeat;
                            -webkit-mask-size: 100% 100% !important;
                        }

                        nav#main-menu ul li.opened button span {
                            transform: rotate(-90deg);
                        }

            /* 2nd Level */
            nav#main-menu ul li ul {
                position: absolute;
                top: 105px;
                height: auto;
                width: auto;
                display: none;
                min-width: 160px;
                background: #fff;
                margin-left: -1.25rem;
                padding: 0 1.25rem 0.625rem 1.25rem;
                border-bottom: 1px solid var(--wp--preset--color--light-grey);
                border-left: 1px solid var(--wp--preset--color--light-grey);
                border-right: 1px solid var(--wp--preset--color--light-grey);
            }

                nav#main-menu ul li ul li {
                    display: block;
                    height: auto;
                    padding: 0.313rem 0;
                }

                nav#main-menu ul li ul li:after {
                    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;}
}


/* ----- 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;  
}

/* 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 > :first-child {
    margin-block-start: 0;
}

.wp-block-media-text .wp-block-media-text__content > :last-child {
    margin-block-end: 0;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 0 10% 0 10%;
}

/* Optional:
.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);
    }
    */

/* Buttons Block */
.wp-block-button {
    transition: all ease 0.4s;
}

.wp-block-button:hover {
    transform: scale(1.05);
}


/* 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(assets/img/icon-download.svg) no-repeat;
    -webkit-mask: url(assets/img/icon-download.svg) no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}


/* Rank Math FAQ (Accordion) Block */
.rank-math-block.faq-accordion .rank-math-list-item {
    margin: var(--wp--preset--spacing--20) 0;
    padding: var(--wp--preset--spacing--20);
    border: 2px solid var(--wp--preset--color--light-grey)
}

    .rank-math-block.faq-accordion .rank-math-question {
        position: relative;
        margin: 0;
        cursor: pointer;
        padding-left: 42px;
        font-size: var(--wp--preset--font-size--m);
    }

    .rank-math-block.faq-accordion .rank-math-question::before {
        position: absolute;
        left: 0;
        top: 50%;
        content: "+";
        transform: translateY(-50%);
        transition: all ease 0.4s;
        
        color: var(--wp--preset--color--dark-navy);
        font-size: 42px;
        font-weight: 400;
    }

    .rank-math-block.faq-accordion .rank-math-question.active::before {
        content: "-";
    }

    .rank-math-block.faq-accordion .rank-math-answer {
        display: none;
        padding: 10px 0;
        margin: 0;
    }


/* ----- 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;   
    font-size: var(--wp--preset--font-size--s);

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

    .form-col {
        width: 48%;
    }

    main fieldset {
        margin: 0;
        padding: 0;
        border: none;
    }

    main form table p {
        margin: 0 !important;
    }
    
        main legend {display: none;}
        
        main label  {
            display: block;
            font-weight: 600;
            font-size:var(--wp--preset--font-size--s)
        }
        
        main input,
        main select,
        main textarea {
            outline: none;
            border: none;
            padding: 14px 20px;
            width: calc(100% - 40px);
            background: var(--wp--preset--color--light-grey);

            color: var(--wp--preset--color--dark-navy);
            font-size: var(--wp--preset--font-size--s);
            font-family: var(--wp--preset--font-family--montserrat);
        }
        
        main select {
            width: 100%;
        }
        
        main textarea {
            height: 190px;
            overflow: auto;
        }

        main input[type=radio],
        main input[type=checkbox] {
            width: auto;
        }  
        
        input[type="radio"],
        input[type="checkbox"] {
            width: auto;
            height: auto;
            outline: none;
            appearance: none;
            margin-right: 6px;
            padding: 8px; /* instead of width and height */
            border: 1px solid var(--wp--preset--color--dark-navy);
            -webkit-appearance: none; /* for Safari */
        }

        input[type="radio"] {
            border-radius: 100%;
        }

        input[type="radio"]:checked,
        input[type="checkbox"]:checked {
            background: var(--wp--preset--color--gold) no-repeat;
            border: 1px solid var(--wp--preset--color--gold);
        }

        input[type="checkbox"]:checked::after,
        input[type="radio"]:checked::after {
            position: absolute;
            top: -3px;
            left: 3px;
            content: "X";
            font-size: 18px;
            color: white;
        }
        
        main input:focus,
        main select:focus,
        main textarea:focus {
            outline: 2px solid var(--wp--preset--color--dark-navy);
        }

        main input::placeholder,
        main select::placeholder,
        main textarea::placeholder {
            color: var(--wp--preset--color--dark-navy);
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            cursor: pointer;
            padding: 15px 30px;
            background: var(--wp--preset--color--gold);

            color: var(--wp--preset--color--white);
            font-size: var(--wp--preset--font-size--s);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
        
        main input[type=submit]:hover,
        main button[type=submit]:hover {
            opacity: 0.75;
        }
        
        main input[type=submit]:active,
        main button[type=submit]:active {
            outline: none;
        }


/* Plugin adjustments: Contact Form 7 */

.wpcf7-list-item {
    margin-left: 0 !important;
    margin-right: 15px !important;
}        

img.ajax-loader {
    width: 16px !important;
    height: auto !important;
}

.wpcf7 form .wpcf7-response-output {
    clear: both;
    border: none !important;
    width: calc(96% - 2px);
    margin: 0 !important;
    padding: 10px 2% 10px 2% !important;

    color: #fff !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #008000;
}

.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: #BE2C2E;
}


/*============================================================================*/
/* ----- BREAKPOINT @ 1024 Pixel ----- */
/*============================================================================*/

@media only screen and (max-width: 1024px) { 

/* ----- HEADER ----- */

header .wp-block-columns.header-content {
    gap: 0 !important;
}

    header .second-logo {
        position: absolute;
        bottom: 18px;
        right: 5%;
    }

        header .second-logo img {
            width: 45px !important;
        }

    header .wp-block-site-logo img {
        width: 115px !important;
    }

    header .wp-block-group.icon-bar {
        position: relative;
        height: 100%;
        gap: 10px;
        display: none;
    }

    .classic-menu-wrapper {
        top: 0;
        border-left: none;
        height: calc(100% - 2px);
    }

        #menu-button {
            position: relative;
            top: 12px;
            left: 12px;
            width: 24px;
            height: 24px;
            font-size: 0;
            display: block;
            cursor: pointer;
            margin: 0 5% 0 0;
            background: none;
            border: none;
        }

            #menu-button span {
                display: block;
                width: 100%;
                height: 100%;
                background: var(--wp--preset--color--dark-navy);
                transition: all ease 0.4s;
                mask: url(assets/img/icon-menu.svg) no-repeat;
                mask-size: 100% 100% !important;
                -webkit-mask: url(assets/img/icon-menu.svg) no-repeat;
                -webkit-mask-size: 100% 100% !important;
            }

            #menu-button.opened span {
                transform: rotate(90deg);
                mask: url(assets/img/icon-close.svg) no-repeat;
                -webkit-mask: url(assets/img/icon-close.svg) no-repeat;
            }


        /* --- Main Menu --- */
        nav#main-menu {
            position: fixed;
            z-index: 50;
            top: 51px;
            left: -100%;
            width: 100%;
            height: calc(100vh - 50px);
            transition: all ease 0.4s;
            background: var(--wp--preset--color--dark-navy);
        }

        nav#main-menu.opened {
            left: 0;
        }

            /* 1st Level */
            nav#main-menu ul {
                margin: 0;
                padding: 0;
                height: auto;
                display: block;
                overflow-y: auto;
                height: calc(100vh - 50px);
            }

                nav#main-menu ul li {
                    position: relative;
                    width: 100%;
                    height: auto;
                    display: block;
                    border-top: 1px solid var(--wp--preset--color--gold);
                }

                nav#main-menu ul li:after {
                    display: none !important;
                }

                    nav#main-menu ul li a {
                        height: auto;
                        display: block;
                        padding: 15px 5%;

                        color: var(--wp--preset--color--gold);
                    }

                nav#main-menu ul li button {
                    position: absolute;
                    top: 12px;
                    right: 5%;
                    width: 24px;
                    height: 24px;
                }

                    nav#main-menu ul li button span {
                        background: var(--wp--preset--color--gold);
                    }

            /* 2nd Level */
            nav#main-menu ul li ul {
                position: relative;
                top: 0;
                margin: 0;
                padding: 0;
                width: 100%;
                display: none;
                border: none;
                padding-bottom: 1.25rem;
                background: var(--wp--preset--color--dark-navy);
            }

                nav#main-menu ul li ul li {
                    margin: 0;
                    padding: 0;
                    border: none;
                }

                    nav#main-menu ul li ul li a {
                        width: 75%;
                        padding: 10px 5%;
                    }

} /* <--- END OF BREAKPOINT */


/*============================================================================*/
/* ----- BREAKPOINT @ 800 Pixel ----- */
/*============================================================================*/

@media only screen and (max-width: 800px) { 

/* ----- FORMS ----- */

.form-col {
    width: 100%;
}

} /* <--- 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: 1.25rem 0 0 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 */