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

Theme Name:     Netdescribe
Theme URI:      http://www.netdescribe.com

Description:    Netdescribe - Vorsprung durch zuverlässige IT-Infrastruktur.

Author:         Ammersee Media GmbH
Author URI:     http://www.ammersee-media.de

Version:        1.0

Date created:	04/08/2025
Last modified:	25/09/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;
}

body.page-template-wp-custom-template-landingpages {
    background: var(--wp--preset--color--white);
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 75%, rgba(219, 226, 231, 1) 100%);
}

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

    /* Bold Font */
    b,strong {font-weight: 700;}

    /* External Link Paragraph */
    p.link a:before {
        position: relative;
        float: left;
        content: "";
        width: 24px;
        height: 24px;
        display: block;
        margin-right: 10px;
        background-color: var(--wp--preset--color--magenta);

        mask: url(assets/img/icon-external-link.svg) no-repeat;
        -webkit-mask: url(assets/img/icon-external-link.svg) no-repeat;
        mask-size: 100% 100%;
        -webkit-mask-size: 100% 100%;
    }


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

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

header {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 120px;
    transition: all ease 0.4s;
    box-shadow: 0 4px 10px -10px rgba(0, 0, 0, 0.6);
    background: var(--wp--preset--color--white);
}

body.scrolled header {
    height: 60px;
}

    .header-inner-container {
        top: 0;
        width: 90%;
        height: 100%;
        margin: 0 auto;
    }

        .header-inner-container > .wp-block-group {
            height: 100%;
        }

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

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

            .menu-and-search {
                height: 100%;
            }

            #menu-button {
                display: none;
            }

            /* Navigation */
            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;
                        padding: 0;
                        width: auto;
                        height: 100%;
                        margin: 0 1rem;
                        
                        display: flex;
                        align-items: center;
                    }

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

                            color: var(--wp--preset--color--black);
                            font-weight: 700;
                            letter-spacing: 1px;
                            text-decoration: none;
                            text-transform: uppercase;
                            font-size: var(--wp--preset--font-size--s);
                        }

                        nav#main-menu ul li:hover > a {
                            color: var(--wp--preset--color--magenta);
                        }

                        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--magenta) !important;
                        }

                        nav#main-menu ul li.button-style a {
                            color: var(--wp--preset--color--magenta);
                            padding: 0.625rem 1.25rem;
                            border: 1px solid var(--wp--preset--color--magenta);
                        }

                        nav#main-menu ul li.button-style a:hover {
                            color: var(--wp--preset--color--white);
                            background: var(--wp--preset--color--magenta);
                        }

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

                            nav#main-menu ul li button span {
                                width: 100%;
                                height: 100%;
                                display: block;
                                transition: all ease 0.4s;
                                background: var(--wp--preset--color--black);
                                mask: url(assets/img/icon-arrow.svg) no-repeat;
                                mask-size: 100% 100%;
                                -webkit-mask: url(assets/img/icon-arrow.svg) no-repeat;
                                -webkit-mask-size: 100% 100%;
                            }

                            nav#main-menu ul li:hover button span,
                            nav#main-menu ul li.current-menu-item > button span,
                            nav#main-menu ul li.current-menu-ancestor > button span,
                            nav#main-menu ul li.current_page_parent > button span,
                            nav#main-menu ul li.current-page-ancestor > button span {
                                background: var(--wp--preset--color--magenta);
                            }

                /* 2nd Level */
                nav#main-menu ul li ul {
                    position: absolute;
                    top: 120px;
                    height: auto;
                    width: auto;
                    display: block;
                    opacity: 0;
                    visibility: hidden;
                    transition: all ease 0.4s;
                    max-width: 380px;
                    padding: 1.875rem;
                    margin-left: -1.875rem;
                    box-shadow: 0px 30px 60px -30px rgba(0,0,0,.45);
                    background: var(--wp--preset--color--light-grey-one);
                    border: 1px solid var(--wp--preset--color--light-grey-two);
                }

                nav#main-menu ul li.opened > ul {
                    opacity: 1;
                    visibility: visible;
                }

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

                nav#main-menu ul li.split-submenu ul {
                    column-count: 2; 
                    column-gap: 1rem;
                }

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

                        nav#main-menu ul li ul li a {
                            margin: 0;
                            height: auto;
                            font-weight: 400;
                            letter-spacing: 0;
                            text-transform: none;
                        }
        
        /* Dynamic Search Btn */
        #dynamic-search-button {
            width: 24px;
            height: 24px;
            font-size: 0;
            display: block;
            cursor: pointer;
            border: none;
            background: none;
        }

        #dynamic-search-button span {
            width: 100%;
            height: 100%;
            display: block;
            transition: all ease 0.2s;
            background: var(--wp--preset--color--black);
            mask: url(assets/img/icon-magnifier.svg) no-repeat;
            mask-size: 100% 100%;
            -webkit-mask: url(assets/img/icon-magnifier.svg) no-repeat;
            -webkit-mask-size: 100% 100%;
        }

        #dynamic-search-button span:hover {
            background: var(--wp--preset--color--magenta);
        }


    /* Dynamic Search */
    .dynamic-search-wrapper {
        z-index: 50;
        height: 0 !important;
        min-height: 0 !important;
        transition: all ease 0.4s;
    }

    .dynamic-search-wrapper.opened {
        height: 100vh !important;
        min-height: 100vh !important;
    }

        .dynamic-search-close {
            cursor: pointer;
        }


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

    /* PopUp Plugin */
    .pum-content.popmake-content a {
        color: var(--wp--preset--color--black);
    }


/* ----- FOOTER ----- */

footer {
    position: relative;
}

.wp-site-blocks .nl-maskottchen {
    position: fixed;
    right: 0;
    opacity: 0;
    z-index: 1;
    bottom: 25vh;
    visibility: hidden;
    transition: all ease 0.6s;
    transition-delay: 750ms;
}

body.scrolled .wp-site-blocks .nl-maskottchen {
    opacity: 1;
    visibility: visible;
}

html[lang="en-US"] body.scrolled .nl-maskottchen {
    display: 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;  
}

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

    .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);
    }

/* List Block */
ul.wp-block-list {list-style: square;}

ul.wp-block-list.is-style-checklist {
    padding: 0;
    list-style: none;
}

ul.wp-block-list.is-style-checklist li {
    padding: 0 0 0 36px;
    background: url(assets/img/icon-check-circle.svg) no-repeat;
    background-size: 24px 24px;
}

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

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

/* Gallery Block  */
.wp-block-gallery.has-nested-images figure.wp-block-image {
    flex-grow: 0;
}

/* File Block */
.wp-block-file {
    display: flex;
    margin: 1.25rem 0;
    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: 10px;
    background-color: var(--wp--preset--color--magenta);

    mask: url(asset/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%;
}

.wp-block-file .wp-block-file__button {
    padding: 10px;
}

/* Search Block */
.wp-block-search__button-outside .wp-block-search__inside-wrapper button {
    margin-left: 0.625rem;
}

.wp-block-search__button-inside .wp-block-search__inside-wrapper {
    padding: 0.625rem;
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--grey);
}

/* Carousel Slider Block (Plugin) */
.swiper-slide {
    height: auto;
}

.wp-block-cb-carousel-v2 .cb-pagination.swiper-pagination-horizontal {
    bottom: -2.5rem;
}

.wp-block-cb-carousel-v2 .cb-pagination .cb-pagination-bullet {
    width: 12px;
    height: 12px;
    border: 1px solid var(--wp--preset--color--magenta);
}

.wp-block-cb-carousel-v2 .cb-pagination .cb-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--wp--preset--color--white);
}

/* Columns Block (Special) */
.blog-page-teaser {
    position: relative;
    z-index: 1;
}

/* Category List Block (Special) */
ul.wp-block-categories-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

    ul.wp-block-categories-list li::after {
        margin: 0 0.625rem;
        content: "|";
    }

    ul.wp-block-categories-list li:last-child::after {
        display: none;
    }

        ul.wp-block-categories-list li a {
            color: var(--wp--preset--color--black);
        }

        ul.wp-block-categories-list li a:hover {
            color: var(--wp--preset--color--magenta);
        }

/* Details Block */
.wp-block-details {
    padding: 1.25rem 0;
    border-top: 1px solid var(--wp--preset--color--grey);
    border-bottom: 1px solid var(--wp--preset--color--grey);
}

.wp-block-details + .wp-block-details {
    margin-top: -1px;
}

    .wp-block-details summary {
        font-weight: 300;
        font-size: var(--wp--preset--font-size--l);
    }

        .wp-block-details summary::marker {
            color: var(--wp--preset--color--magenta);
        }

/* Tabs Block (Plugin) */
.wp-block-getwid-tabs__tab-content {
    height: 100%;
}

.wp-block-getwid-tabs__nav-link {
    background: var(--wp--preset--color--light-grey-two);
}

/* Accordion Block (Plugin) */
.wp-block-getwid-accordion .wp-block-getwid-accordion__header {
    padding: 1.25rem;
    width: calc(100% - 2.5rem);
}


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

/* Seitentitel */
body.post-type-page .editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper,
body.post-type-popup .editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper {
    margin: 0 0 1.25rem 0 !important;
    text-align: center !important;
    border-bottom: 1px solid #E0E0E0 !important;
}

    body.post-type-page .editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper h1,
    body.post-type-popup .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;    
}

    main fieldset {
        margin: 0;
        padding: 0;
        border: none;
    }

    main form p {
        margin: 0 0 1.25rem 0 !important;
    }

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

            .full-field {
                width: 100%;
            }

            .half-field {
                width: 48.5%;
            }
    
        main legend {display: none;}
        
        main label  {display: block;}
        
        main input,
        main select,
        main textarea {
            outline: none;
            padding: 0.625rem 1.25rem;
            width: calc(100% - 2.5rem - 2px);
            border: 1px solid var(--wp--preset--color--grey);

            font-weight: 300;
            color: var(--wp--preset--color--black);
            font-size: var(--wp--preset--font-size--m);
            font-family: var(--wp--preset--font-family--roboto);
        }
        
        main select {
            width: 100%;
        }
        
        main textarea {
            height: 150px;
            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--grey);
            -webkit-appearance: none; /* for Safari */
        }

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

        input[type="radio"]:checked,
        input[type="checkbox"]:checked {
            background: var(--wp--preset--color--magenta) no-repeat;
        }
        
        main input:focus,
        main select:focus,
        main textarea:focus {
            color: var(--wp--preset--color--magenta);
            border-color: var(--wp--preset--color--magenta);
        }

        main input::placeholder,
        main select::placeholder,
        main textarea::placeholder {
            color: var(--wp--preset--color--dark-grey)
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            border: none;
            cursor: pointer;
            padding: 16px 32px;
            transition: all ease 0.4s;
            background: var(--wp--preset--color--magenta);

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

        main input[type=submit]:focus,
        main button[type=submit]:focus {
            outline: 4px 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: calc(100% - 2.5rem);
    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: #36BF36;
}

.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: #F10B2F;
}

.wpcf7-not-valid-tip {
    color: #F10B2F !important;
}


/* ----- PRODUKTKREIS ----- */

svg.produktkreis {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
}

    svg.produktkreis a:hover {
        text-decoration: none;
    }

    svg.produktkreis .shape {
        cursor: pointer;
        transform-origin: center;
        animation: zoomInOut 0.6s ease-out;
        transition: transform 0.3s ease;
    }

    svg.produktkreis .shape:hover {
        transform: scale(1.05);
    }

    svg.produktkreis a:nth-of-type(1) .shape { animation-delay: 0.8s; }
    svg.produktkreis a:nth-of-type(2) .shape { animation-delay: 1.0s; }
    svg.produktkreis a:nth-of-type(3) .shape { animation-delay: 1.2s; }
    svg.produktkreis a:nth-of-type(4) .shape { animation-delay: 1.4s; }


    @keyframes zoomInOut {
        0%   { transform: scale(1); }
        50%  { transform: scale(1.05); }
        100% { transform: scale(1); }
    }

    svg.produktkreis .label {
        font-family: sans-serif;
        font-size: 38px;
        fill: #000000;
        font-weight: 700;
        text-anchor: middle;
        pointer-events: none;
        transition: transform 0.3s ease;
    }


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

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

header {
    height: 60px;
}

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

    .menu-and-search {
        flex-direction: row-reverse;
    }

    #menu-button {
        position: relative;
        width: 24px;
        height: 24px;
        font-size: 0;
        border: none;
        display: block;
        cursor: pointer;
        background: transparent;
    }

        #menu-button span {
            width: 100%;
            height: 100%;
            display: block;
            transition: all ease 0.4s;
            background: var(--wp--preset--color--magenta);
            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;
        }

    nav#main-menu {
        position: absolute;
        left: -5vw;
        top: 60px;
        height: 0;
        width: 100vw;
        overflow: hidden;
        transition: all ease 0.4s;
        background: var(--wp--preset--color--light-grey-one);
    }

    nav#main-menu.opened {
        height: calc(100vh - 60px);
    }

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

            nav#main-menu ul li {
                position: relative;
                margin: 0;
                padding: 0;
                width: 100%;
                height: auto;
                display: block;
                padding: 1rem 0;
                border-top: 1px solid var(--wp--preset--color--grey);
            }

                nav#main-menu ul li a {
                    height: auto;
                    display: inline;
                    padding: 15px 5% 15px 5%;
                }

                nav#main-menu ul li:hover > a {
                    color: var(--wp--preset--color--black);
                }

                nav#main-menu ul li.button-style a {
                    margin: 0 5vw;
                    display: inline-block;
                }

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

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

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

        /* 2nd Level */
        nav#main-menu ul li ul {
            position: relative;
            top: 10px;
            height: 0;
            margin: 0;
            padding: 0;
            width: 100%;
            border: none;
            box-shadow: none;
            max-width: unset;
        }

        nav#main-menu ul li.opened > ul {
            height: auto;
        }

            nav#main-menu ul li ul li {
                border: none;
                padding: 0.313rem 0;
            }

            nav#main-menu ul li.split-submenu ul li a {
                padding: 15px 10%;
            }
    
} /* <--- END OF BREAKPOINT */


/*============================================================================*/
/* ----- BREAKPOINT @ 780 Pixel ----- */
/*============================================================================*/

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

/* Headlines */
h1, h2, h3 {
    -moz-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; 
}
 
/* Columns Block */
/*
.wp-block-columns.alignfull > .wp-block-column {
    padding-left: 5%;
    padding-right: 5%;
}
*/

/* Cover-Block */
.entry-content .wp-block-cover:first-child {
    min-height: 400px !important;
}


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