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

Theme Name:     Oberland eG
Theme URI:      http://www.oberland-eg.de

Description:    

Author:         WELCOME GmbH
Author URI:     http://www.welcome-ag.de

Version:        1.0

Date created:	10/02/2026
Last modified:	18/03/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--grey-six); color: var(--wp--preset--color--white);}
    ::-moz-selection { background: var(--wp--preset--color--grey-six); color: var(--wp--preset--color--white);}

    /* Images */
    a img {border: none;transition: all ease 0.4s;}
    a img:hover {transform: scale(1.025);}

    /* Headlines: Override block gap from theme.json */
    .wp-site-blocks h1, .editor-styles-wrapper .is-root-container h1,
    .wp-site-blocks h2, .editor-styles-wrapper .is-root-container h2 {
        margin-block-end: 2.5rem;
    }
    .wp-site-blocks h3, 
    .wp-site-blocks h4, 
    .wp-site-blocks h5, 
    .wp-site-blocks h6 {
        margin-block-end: 1.25rem;
    }


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

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    height: 0;
    transition: all ease 0.4s;
}

    header .header-inner-container {
        height: 160px;
        transition: all ease 0.4s;
        border-bottom: 1px solid transparent;
    }

    body.scrolled header .header-inner-container {
        height: 60px;
        background: var(--wp--preset--color--white);
        border-bottom: 1px solid var(--wp--preset--color--grey-one);
    }

        header .wp-block-site-logo {
            z-index: 10;
            transition: all ease 0.4s;
            margin-left: clamp(-1.875rem, -2.5vw + 0.125rem, -0.625rem); /* Minus 10-30px @ 480-1280px */
        }

            header .wp-block-site-logo img {
                transition: all ease 0.4s;
            }

            body.scrolled header .wp-block-site-logo img {
                height: 60px;
                width: auto;
            }

        #menu-button {
            display: none;
        }

        .classic-menu-wrapper p {
            margin: 0 !important;
        }

        nav#main-menu {
            width: auto;
            height: 100%;
        }

            /* 1st Level */
            nav#main-menu ul {
                margin: 0;
                padding: 0;
                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 {
                    margin: 0;
                    width: auto;
                    height: 100%;
                    padding: 20px;
                    
                    display: flex;
                    align-items: center;
                }

                    nav#main-menu ul li a {
                        width: auto;
                        display: block;
                        transition: all ease 0.4s;

                        font-weight: 500;
                        text-decoration: none;
                        color: var(--wp--preset--color--white);
                    }

                    body.scrolled nav#main-menu ul li a {
                        color: var(--wp--preset--color--black);
                    }

                    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 {
                        opacity: 0.5;
                    }

                    nav#main-menu ul li button {
                        width: 12px;
                        height: 12px;
                        border: none;
                        font-size: 0;
                        background: none;
                        margin-left: 5px;
                    }

                        nav#main-menu ul li button span {
                            width: 100%;
                            height: 100%;
                            display: block;
                            background: var(--wp--preset--color--white);
                            mask: url(assets/img/icon-arrow.svg) no-repeat;
                            mask-size: 100% 100% !important;
                        }

                        body.scrolled nav#main-menu ul li button span {
                            background: var(--wp--preset--color--black);
                        }

            /* 2nd Level */
            nav#main-menu ul li ul {
                position: absolute;
                top: 100px;
                height: auto;
                width: auto;
                display: none;
                margin-left: -20px;
                background: var(--wp--preset--color--white);
                padding: 10px 0 10px 0;
                border: 1px solid var(--wp--preset--color--grey-one);
            }

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

                nav#main-menu ul li ul li {
                    padding: 0;
                    width: 100%;
                    height: auto;
                }

                    nav#main-menu ul li ul li a {
                        margin: 0;
                        height: auto;
                        padding: 5px 20px 5px 20px;

                        color: var(--wp--preset--color--black);
                    }


/* ----- 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;}
}


    /* Products overview with dynamic filter */

    ul#produkt-kategorie-filter {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        list-style: none;

        font-weight: 700;
        color: var(--wp--preset--color--green);
    }

        ul#produkt-kategorie-filter li a {
            color: var(--wp--preset--color--green);
        }

        ul#produkt-kategorie-filter li:after {
            content: "|";
            margin: 0 1.25rem;
        }

        ul#produkt-kategorie-filter li:last-child:after {
            display: none;
        }

    .produkt-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        margin-top: 2.5rem;
    }

        .produkt-kategorie-block {
            padding: 3.75rem 0;
            border-bottom: 6px solid var(--wp--preset--color--grey-one);
        }

            .produkt-kategorie-block h3 {
                margin: 0 0 20px 0 !important;
            }

            .produkt-kategorie-description {
                margin: 10px 0;
                max-width: 920px;
                font-size: var(--wp--preset--font-size--s)
            }

        .produkt-thumb {
            aspect-ratio: 1/1;
        }

            .produkt-thumb img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
                outline: 1px solid var(--wp--preset--color--grey-one);
            }

        .produkt-txt {
            padding: 1.25rem 0.625rem 0 0.625rem;
        }

            .produkt-item h4 {
                font-size: var(--wp--preset--font-size--l);
                line-height: 1.2;
                margin: 0;
            }

                .produkt-item h4 a {
                    color: var(--wp--preset--color--black);
                }

            .produkt-item p {
                margin: 6px 0;
                font-size: var(--wp--preset--font-size--xs);
            }

            .produkt-txt .button {
                font-weight: 700;
                text-transform: uppercase;
                color: var(--wp--preset--color--black);
                font-size: var(--wp--preset--font-size--xs);
            }


/* ----- 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);
}

/* 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.stretched .wp-block-cover__inner-container {
        height: 100%;
    }

/* Columns Block (Special) */
.wp-block-columns.overlay-top {
    position: relative;
    z-index: 5;
}

.wp-block-columns.is-reversed {
    flex-direction: row-reverse;
}

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

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

/* Details Block */
.wp-block-details summary {
    font-weight: 900;
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--l);
}

/* 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%;
}

/* Hyperlink Group Block (Plugin) */
.wp-block-tiptip-hyperlink-group-block {
    transition: all ease 0.4s;
}

.wp-block-tiptip-hyperlink-group-block:hover {
    transform: scale(1.025);
    text-decoration: none;
}


/* Grid Illustration (Special) */
.wp-block-group.grid-illu .wp-block-group {
    aspect-ratio: 1/1;
}

    .wp-block-group.grid-illu .wp-block-image {
        transform: scale(1.36);
    }

    .wp-block-group.grid-illu .grid-illu-hl {
        font-size: clamp(0.75rem, 2vw + 0.15rem, 1.75rem); /* 12-28px @ 480-1280px */
    }


/* ----- 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;    

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.form-full {
    width: 100%;
}

.form-half {
    width: 48%;
}

main form p {
    margin: 15px 0 !important;
}

    main fieldset {
        margin: 0;
        padding: 0;
        border: none;
    }
    
        main legend {display: none;}
        
        main label  {
            display: block;
            font-weight: 700;
            font-size: var(--wp--preset--font-size--xs)
        }
        
        main input,
        main select,
        main textarea {
            border: none;
            padding: 12px 20px;
            width: calc(100% - 40px);
            outline: 2px solid var(--wp--preset--color--grey-one);

            font-weight: 500;
            color: var(--wp--preset--color--black);
            font-size: var(--wp--preset--font-size--s);
            font-family: var(--wp--preset--font-family--dm-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"] {
            position: relative;
            width: auto;
            height: auto;
            outline: none;
            appearance: none;
            margin-right: 10px;
            padding: 8px;
            background: var(--wp--preset--color--white);
            border: 2px solid var(--wp--preset--color--grey-one);
            -webkit-appearance: none;
        }

        main input[type="radio"] {
            border-radius: 100%;
        }

        main input[type="radio"]:checked {
            background: var(--wp--preset--color--black) no-repeat;
        }

        main input[type="checkbox"]:checked {
            background: var(--wp--preset--color--white);
        }

        main input[type="checkbox"]:checked::after {
            position: absolute;
            top: -3px;
            left: 3px;
            content: "X";
            font-size: 18px;
            color: var(--wp--preset--color--black);
        }
        
        main input:focus,
        main select:focus,
        main textarea:focus {
            outline: 2px solid var(--wp--preset--color--black);
        }

        main input::placeholder,
        main select::placeholder,
        main textarea::placeholder {
            color: var(--wp--preset--color--grey-four);
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            cursor: pointer;
            margin-top: 2.5rem;
            transition: all ease 0.4s;
            outline: 2px solid var(--wp--preset--color--black);
            background: var(--wp--preset--color--black);

            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            color: var(--wp--preset--color--white);
            font-size: var(--wp--preset--font-size--s);
            font-family: var(--wp--preset--font-family--dm-sans);
        }
        
        main input[type=submit]:hover,
        main button[type=submit]:hover {
            transform: scale(1.05);
        }

        main input[type=submit]:focus,
        main button[type=submit]:focus {
            transform: scale(1.05);
            outline: 2px solid var(--wp--preset--color--grey-four);
        }
        
        main input[type=submit]:active,
        main button[type=submit]:active {
            width: auto;
        }


/* Plugin adjustments: Contact Form 7 */

.wpcf7-list-item {
    display: block;
    margin: 0 0 10px 0 !important;
}  

.wpcf7-list-item label {
    display: flex;
    align-items: center;
}

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;
    outline: 2px solid var(--wp--preset--color--white);
    color: var(--wp--preset--color--white) !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: var(--wp--preset--color--red);
}

.wpcf7-not-valid-tip {
    padding: 5px 20px;
    outline: 2px solid var(--wp--preset--color--white);
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--red) !important;
}


/*============================================================================*/
/* ----- BREAKPOINT @ 1280 Pixel ----- */
/*============================================================================*/

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

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

/* Headlines: Hyphens */
h1, h2, h3 {
    -moz-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; 
}


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

/* Columns Block - Break early function */

.wp-block-columns.break-early {
    flex-wrap: wrap !important;
}

.wp-block-columns.break-early .wp-block-column {
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Columns Block (Special) */
.wp-block-columns.overlay-top {
    margin-top: 0 !important;
}

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


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

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

header .header-inner-container {
    height: 0;
}

    header .wp-block-site-logo img {
        width: 80px;
    }

    #menu-button {
        position: absolute;
        z-index: 10;
        right: 5vw;
        top: 18px;
        width: 24px;
        height: 24px;
        border: none;
        font-size: 0;
        background: none;
        display: block !important;
    }

        #menu-button span {
            width: 100%;
            height: 100%;
            display: block;
            transition: all ease 0.4s;
            background: var(--wp--preset--color--white);
            mask: url(assets/img/icon-menu.svg) no-repeat;
            mask-size: 100% 100% !important;
        }

        body.scrolled #menu-button span {
            background: var(--wp--preset--color--black);
        }

        #menu-button.opened span {
            transform: rotate(90deg);
            background: var(--wp--preset--color--black);
            mask: url(assets/img/icon-close.svg) no-repeat;
        }

    nav#main-menu {
        position: absolute;
        top: 0;
        width: 100vw;
        height: 100vh;
        right: -100vw;
        transition: all ease 0.4s;
        background: var(--wp--preset--color--white);
    }

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

        /* 1st Level */
        nav#main-menu ul {
            height: auto;
            display: block;
            overflow-y: auto;
            max-height: calc(100vh - 100px);
            margin-top: 100px;
        }

            nav#main-menu ul li {
                position: relative;
                width: 100%;
                height: auto;
                display: block;
                padding: 20px 0;
            }

            nav#main-menu ul li a {
                font-weight: 800;
                text-align: center;
                color: var(--wp--preset--color--black);
                font-size: var(--wp--preset--font-size--l);
            }

            nav#main-menu ul li button {
                position: absolute;
                right: 5vw;
                top: 20px;
                width: 24px;
                height: 24px;
            }

                nav#main-menu ul li button span {
                    transition: all ease 0.4s;
                    background: var(--wp--preset--color--black);
                }

                nav#main-menu ul li.opened button span {
                    transform: rotate(-90deg);
                }

        /* 2nd Level */
        nav#main-menu ul li ul,
        body.scrolled nav#main-menu ul li ul {
            position: relative;
            top: 0;
            margin: 10px 0 0 0;
            padding: 0;
            width: 100%;
            display: none;
            border: none;
        }

            nav#main-menu ul li ul li a {
                font-size: var(--wp--preset--font-size--m);
            }


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

.anchor-menu {
    font-size: var(--wp--preset--font-size--xxs);
}

.anchor-menu .wp-block-group {
    gap: 8px;
}

/* Products overview with dynamic filter */
ul#produkt-kategorie-filter {
    font-size: var(--wp--preset--font-size--xxs)
}

ul#produkt-kategorie-filter li:after {
    margin: 0 0.625rem;
}

.produkt-container {
    grid-template-columns: repeat(2, 1fr);
}


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

    /* Grid Illustration (Special) */         
    .wp-block-group.grid-illu .wp-block-group {
        padding: 1.25rem !important;
    }
    
} /* <--- END OF BREAKPOINT */


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

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

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

/* Products overview with dynamic filter */
.produkt-container {
    grid-template-columns: repeat(1, 1fr);
}

.produkt-kategorie-block {
    padding: 2.5rem 0;
}

.produkt-thumb {
    max-width: 380px;
}

/* ----- 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: 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 */