/* 
================================================================================

Theme Name:     GLP GmbH & Co. KG
Theme URI:      http://www.glp-pcb.com

Description:    GLP - Elektronische Bauteile und Komponenten seit 1970

Author:         lakeSITE webdesign
Author URI:     http://www.lakesite-webdesign.de

Version:        1.0

Date created:	22/11/2026
Last modified:	22/11/2026

================================================================================
*/




/*============================================================================*/
/* ----- 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--black); color: var(--wp--preset--color--white);}
    ::-moz-selection { background: var(--wp--preset--color--black); color: var(--wp--preset--color--white);}

    /* Images */
    a img {border: none;transition: all ease 0.4s;}
    a img:hover {opacity: 0.75;}

    /* Figures */
    figure {line-height: 1;}

    /* Lists */
    main ul {
        list-style: square
    }

    /* 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: auto;
}

    #header-content {
        position: relative;
        width: 100%;
        height: auto;
        max-width: 1200px;
        margin: 40px auto 0 auto;
        transition: all ease 0.4s;
        -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.1); 
        box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.1);

        background: url(assets/img/header-bg.png) no-repeat var(--wp--preset--color--white);
        background-size: auto 100%;
        background-position: 250px center;
    }

    #header-content.scrolled {
        margin: 0 auto;
        background-position: 150px center;
    }

        #logo {
            width: 100%;
            height: auto;
            max-width: 200px;
            margin: 0 0 0 2.5%;
            padding: 20px 0 20px 0;
            transition: all ease 0.4s;
        }

        #logo.scrolled {
            max-width: 100px;
        }

            #logo img {
                width: 100%;
                height: auto;
                display: block;
            }

        nav#main-menu {
            position: absolute;
            right: 2.5%;
            bottom: 0;
            width: auto;
            height: auto;

            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            justify-content: space-between;
        }

            /* 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: 100%;
                    
                    display: flex;
                    align-items: center;
                }

                    nav#main-menu ul li a {
                        width: auto;
                        display: block;
                        padding: 0 0 25px 0;
                        margin: 0 0 0 15px;

                        color: var(--wp--preset--color--dark-grey);
                        font-size: 0.875rem;
                        text-decoration: none;
                        text-transform: uppercase;
                    }

                    nav#main-menu ul li a span {
                        padding: 4px 8px 4px 8px;
                        transition: all ease 0.4s;
                    }

                    nav#main-menu ul li a:hover span {
                        background: var(--wp--preset--color--light-grey);
                    }

                    /*
                    nav#main-menu ul li.current-menu-item > a span,
                    nav#main-menu ul li.current-menu-ancestor > a span,
                    nav#main-menu ul li.current_page_parent > a span,
                    nav#main-menu ul li.current_page_ancestor > a span {
                        font-weight: 600;
                        color: var(--wp--preset--color--white);
                        background: var(--wp--preset--color--citrus);
                    }
                    */

            /* 2nd Level */
            nav#main-menu ul li ul {
                position: absolute;
                top: 40px;
                height: auto;
                width: 240px;
                display: none;
                padding: 10px 0 10px 0;
                background: var(--wp--preset--color--white);

                -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.1); 
                box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.1);
            }

            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: 5px 15px 5px 15px;
                    }

        nav#meta-menu {
            position: absolute;
            top: 15px;
            right: 2.5%;
            transition: all ease 0.4s;
        }

        nav#meta-menu.scrolled {
            top: -40px;
            opacity: 0;
        }

            nav#meta-menu ul {
                width: 100%;
                height: auto;
                list-style: none;

                display: flex;
                flex-wrap: wrap;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }

                nav#meta-menu ul li {
                    width: auto;
                }

                nav#meta-menu ul li.menu-button {
                    display: none;
                }

                    nav#meta-menu ul li a {
                        width: auto;
                        display: block;
                        padding: 0 4px 0 4px;
                        margin: 0 0 0 4px;

                        color: var(--wp--preset--color--dark-grey);
                        line-height: 1.4;
                        font-size: 0.875rem;
                        text-decoration: none;
                        text-transform: uppercase;
                    }

                    nav#meta-menu ul li a:hover {
                        background: var(--wp--preset--color--light-grey);
                    }

                    nav#meta-menu ul li a.gt-current-wrapper {
                        display: none !important;
                    }

                    /*
                    nav#meta-menu ul li.current-menu-item > a,
                    nav#meta-menu ul li.current-menu-ancestor > a,
                    nav#meta-menu ul li.current_page_parent > a,
                    nav#meta-menu ul li.current_page_ancestor > a,
                    */
                    nav#meta-menu ul li a.gt-current-lang {
                        font-weight: 600;
                        color: var(--wp--preset--color--white);
                        background: var(--wp--preset--color--citrus);
                    }
                    


/* ----- 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;
}

    .wp-block-group.has-edge:before {
        position: absolute;
        top: -32px;
        left: 0;
        content: "";
        width: 100vw;
        height: 32px;
        display: block;
        background: url(assets/img/edge-bottom-green.webp) repeat-x;
        background-position: center center;
    }


/* ----- SIDEBAR ----- */

nav#sidebar {
    position: fixed;
    right: 0;
    z-index: 10;
    top: calc(50vh - 100px);
}

    nav#sidebar ul {
        width: 100%;
        height: auto;
        list-style: none;
    }

        nav#sidebar ul li {
            display: table;
            margin: 0 0 5px 0;
        }

            nav#sidebar a {
                width: 48px;
                height: 48px;
                
                overflow: hidden;
                display: table-cell;
                background: var(--wp--preset--color--citrus);
                vertical-align: middle;
                transition: all ease 0.4s;

                color: var(--wp--preset--color--white);
                font-size: 0.65rem;
                text-align: center;
                text-decoration: none;
                word-break: break-all;
            }

            nav#sidebar a:hover {
                transform: scale(1.1);
            }

                nav#sidebar a img {
                    width: 100%;
                    height: auto;
                    display: block;
                }

                nav#sidebar a img:hover {
                    transform: scale(1.1);
                    transition: all ease 0.4s;
                }


/* ----- 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 > :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 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);
    }

/* Cover Block (Special) */
.wp-block-cover.edge-top:before {
    position: absolute;
    top: 0;
    z-index: 2;
    content: "";
    width: 100vw;
    height: 32px;
    display: block;
    background: url(assets/img/edge-top-white.webp) repeat-x;
    background-position: center center;
}

.wp-block-cover.edge-bottom:after {
    position: absolute;
    bottom: 0;
    z-index: 2;
    content: "";
    width: 100vw;
    height: 32px;
    display: block;
    background: url(assets/img/edge-bottom-white.webp) repeat-x;
    background-position: center center;
}

/* 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(assets/assets/img/icon-download.svg) no-repeat;
    -webkit-mask: url(assets/assets/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 {
    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;   
    font-size: var(--wp--preset--font-size--s); 
}

    main form p {
        margin: 0.625rem 0 !important;
    }

    main fieldset {
        margin: 0;
        padding: 0;
        border: none;
    }
    
        main legend {display: none;}
        
        main label  {display: block;}
        
        main input,
        main select,
        main textarea {
            outline: none;
            border: none;
            padding: 15px 20px;
            width: calc(100% - 40px);
            background: var(--wp--preset--color--light-grey);

            color: var(--wp--preset--color--dark-grey);
            font-size: var(--wp--preset--font-size--s);
            font-family: var(--wp--preset--font-family--open-sans);
        }
        
        main select {
            width: 100%;
        }
        
        main textarea {
            height: 150px;
            overflow: auto;
        }

        main input[type=radio],
        main input[type=checkbox] {
            width: auto;
        }  
        
        main input[type="radio"],
        main input[type="checkbox"] {
            width: auto;
            height: auto;
            outline: none;
            appearance: none;
            margin-right: 6px;
            padding: 8px; /* instead of width and height */
            border: 1px solid red;
            -webkit-appearance: none; /* for Safari */
        }

        main input[type="radio"] {
            border-radius: 100%;
        }

        main input[type="radio"]:checked,
        main input[type="checkbox"]:checked {
            background: red no-repeat;
        }

        main input[type="checkbox"]:checked::after,
        main 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-grey);
        }

        main input::placeholder,
        main select::placeholder,
        main textarea::placeholder {
            color: #888;;
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            cursor: pointer;
            font-weight: 700;
            text-transform: uppercase;
            transition: all ease 0.4s;
            color: var(--wp--preset--color--white);
            font-size: var(--wp--preset--font-size--s);
            background: var(--wp--preset--color--citrus);
        }
        
        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;
        }


.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: var(--wp--preset--color--white) !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: var(--wp--preset--color--citrus);
}

.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 @ 1024 Pixel ----- */
/*============================================================================*/

@media only screen and (max-width: 1024px) { 
 
/* ----- HEADER ----- */

header {
    height: 60px;
}

    #header-content {
        height: 100%;
        margin: 0 auto;
        background-position: 150px center;

        display: flex;
        align-items: center;
    }

        #logo {
            padding: 0;
            margin: 0 0 0 5%;
            max-width: 100px;
        }

        nav#main-menu {
            position: absolute;
            right: 0;
            top: 60px;
            bottom: auto;
            width: 100%;
            height: auto;
            display: none;
            background: #FFF;
            -webkit-box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.1); 
            box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.1);
        }

            /* 1st Level */
            nav#main-menu ul {
                height: auto;
                display: block;
                overflow-y: auto;
                max-height: calc(100vh - 60px);
            }

                nav#main-menu ul li {
                    width: 100%;
                    height: auto;
                    display: block;
                    border-top: 1px solid #EEE;
                }

                    nav#main-menu ul li a {
                        height: auto;
                        margin: 0;
                        padding: 12px 5% 12px 5%;
                    }

                    nav#main-menu ul li a.has-sub:after {
                        position: relative;
                        float: right;
                        content: "↓";
                        margin: 0 0 0 5px;
                    }

                    nav#main-menu ul li a.has-sub.sub-open:after {
                        content: "↑"
                    }

            /* 2nd Level */
            nav#main-menu ul li ul,
            nav#main-menu ul li:hover ul {
                position: relative;
                top: 0;
                padding: 0;
                width: 100%;
                display: none;
                border: none;
                -webkit-box-shadow: none; 
                box-shadow: none;
            }

            @keyframes menu-dd {
                0%   {opacity: 1;}
                100% {opacity: 1;}
            }

                nav#main-menu ul li ul li.overview {
                    display: block;
                }

                    nav#main-menu ul li ul li a {
                        width: 85%;
                        padding: 12px 5% 12px 10%;
                    }


        nav#meta-menu {
            right: 5%;
        }

            nav#meta-menu ul li.menu-button {
                display: block;
            } 

                nav#meta-menu ul li.menu-button a {
                    width: 24px;
                    height: 24px;
                    display: block;
                    cursor: pointer;
                    transition: all ease 0.4s;
                    background: url(assets/img/icon-menu.svg) no-repeat;
                    background-size: 100% 100% !important;

                    font-size: 0;
                }

                nav#meta-menu ul li.menu-button.is-open a {
                    transform: rotate(180deg);
                    background: url(assets/img/icon-close.svg) no-repeat;
                }


/* ----- SIDEBAR ----- */

nav#sidebar {
    display: none;
}

} /* <--- 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: 2.5rem 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 */