/*
CTC Separate Stylesheet
Updated: 2024-01-09 04:34:15
*/

/*main {
	position: relative;
    top: 160px;
}

header.wp-block-template-part {
    position: fixed;
    z-index: 5;
    width: 100vw;
}

footer {
	position: relative;
    top: 300px;
}*/

.hyphens {
  hyphens: auto;
}

.hide-on-desk {
    display: none!important;
}

body {
--wp--preset--font-size--large: clamp(1.6rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem)
}

.icn-linked:before {
    content: "";
    display: block;
    background: url("/wp-content/uploads/2024/03/social-linkedin-outline.png") no-repeat;
    width: 20px;
    height: 20px;
    float: left;
    margin: 0 6px 0 0;
}

.wp-block-group.alignfull.has-base-2-background-color.has-background.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    margin-top: -30px!important;
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required,
textarea.wpcf7-form-control.wpcf7-textarea {
    background: #efefef;
    border: 0;
    width: 100%;
    border-radius: 8px;
    height: 50px;
    padding: 0 0 0 20px;
}

textarea.wpcf7-form-control.wpcf7-textarea {
    height: 150px;
}

#cmplz-document h2, .editor-styles-wrapper .cmplz-unlinked-mode h2, #cmplz-document h3, .editor-styles-wrapper .cmplz-unlinked-mode h3 {
    font-size: 16px;
/*    text-align: left;
    margin-top: 15px;
    text-transform: initial;
    padding-bottom: 10px;
    margin-bottom: 10px;*/
    font-family: 'Gotham';
    font-weight: 600;
}

#cmplz-document p, .editor-styles-wrapper .cmplz-unlinked-mode p, #cmplz-document li, .editor-styles-wrapper .cmplz-unlinked-mode li, #cmplz-document td, .editor-styles-wrapper .cmplz-unlinked-mode td {
    font-size: 16px;
    font-family: 'Gotham';
    font-weight: 400;
}

/* Send button */
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    background-color: #b1c5a4;
    width: 250px;
    height: auto;
    padding: 20px 0;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    transition: all .2s ease-in-out;
    opacity: .5;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
    transform: scale(1.05);
    opacity: 1;
}

.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link {
    width: 50%;
}

.to-top {
    position: fixed !important;
    bottom: 40px;
    right: 50px;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.to-top.visible {
    opacity: 1;
}

a.wp-block-navigation-item__content {
    text-decoration: none!important;
}

a.wp-block-navigation-item__content:hover {
    border-bottom: 4px solid #b1c5a4;
    margin-top: 3px;
}


.current-menu-item {
    border-bottom: 4px solid #b1c5a4;
    margin-top: 5px;
}

.current-menu-item:hover {
    border-bottom: 0px solid #b1c5a4;
    margin-top: 2px;
}

/* Main Nav Styles */

.top-spacer {
    padding-top: 150px!important;
}

.main-nav-wrapper {
    height: 125px;
    width: 100%;
    background-color: #d5decf;
    position: fixed;
    z-index: 99;
    top: 0;
    transition: height 0.3s;
    opacity: .97;
}

.ctm-nav-menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 125px;
    width: 100%;
    max-width: 1240px;
    background-color: transparent;
    position: sticky;
    top: 0;
    transition: height 0.3s;
    margin: 0 auto;
    text-transform: uppercase;    
    padding-right: 20px;
}

.ctm-nav-menu-bar.smaller {
    height: 100px;
}

.ctm-nav-logo {
    display: flex;
    align-items: center;
}

.ctm-nav-logo img {
    height: 160px;
    transition: height 0.3s, padding-top 0.3s;
}

.ctm-nav-logo-shrunk {
    height: 80px;
    padding-top: 20px;
}

.ctm-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    list-style-type: none;
}

.ctm-nav-menu-item {
    display: inline-block;
    position: relative;
}

.ctm-nav-menu-item a {
    display: block;
    padding: 10px;
    color: #757574;
    text-decoration: none;
}

.ctm-nav-menu-item a:hover {
    color: #333;
}

.ctm-nav-menu-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: black;
}

.ctm-nav-menu-item.active::before {
    background-color: black;
}

.ctm-nav-dropdown {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.ctm-nav-dropdown li {
    list-style-type: none;
}

.ctm-nav-dropdown li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.ctm-nav-dropdown li a:hover {
    background-color: #ddd;
}

.ctm-nav-menu-item:hover .ctm-nav-dropdown {
    display: block;
}

/* Burger Menu Icon Variable */
:root {
    --burger-icon-url: url('https://bender.is-ad.de/wp-content/uploads/custom-uploads/burger-menu-icon.svg'); /* Default icon */
    --close-icon-url: url('https://bender.is-ad.de/wp-content/uploads/custom-uploads/close-round.svg'); /* Default icon */
}

.show {
    display: block !important;
}

label {
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

footer.wp-block-template-part {
    margin-top: 0;
}

.ctm-nav-burger-menu {
    display: none;
    float: right;
    background-image: var(--burger-icon-url);
    background-size: cover;
    width: 30px;
    height: 30px;
    margin: 0px 20px 0px 0px;
    cursor: pointer;
}

.ctm-nav-burger-menu-close {
    background-image: var(--close-icon-url);
    position: absolute;
    top: 26px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-size: cover;
    cursor: pointer;
    display: none;
}


/* Style for Submenu Items */
.ctm-nav-mobile-submenu li {
    padding: 10px 0;
}

.ctm-nav-mobile-submenu li a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
}

.ctm-nav-mobile-submenu li a:hover {
    background-color: #ddd;
}

    @media screen and (max-width: 1133px) {
        .ctm-nav-logo img {
            margin-left: 20px;
        }

        .leistungsspektrum-container {
            padding: 0 20px!important;
        }

        .ctm-nav-menu-bar {
            max-width: 1000px;
        }

    }

/* Media Query for Devices Below 833px */
@media screen and (max-width: 833px) {
    .top-spacer {
        padding-top: 90px!important;
    }

    .meth-container > p {
        hyphens: auto;
    }

    .ctm-nav-menu {
        display: none;
    }

    .ctm-nav-burger-menu {
        display: block;
    }

    .ctm-nav-logo img {
        height: 140px;
        transition: height 0.3s, padding-top 0.3s;
    }

    .leistungsspektrum-container {
        padding: 0 20px!important;
    }    

    /* Mobile Menu Overlay Styles */
    .ctm-nav-mobile-overlay {
        position: fixed;
        top: 125px;
        left: 100%;
        width: 100%;
        height: 100%;
        z-index: 5;
        overflow-y: auto;
        transition: left 0.3s;
        display: flex;
        flex-direction: column;
    }

    .ctm-nav-mobile-overlay.show {
        left: 0;
    }

    .ctm-nav-mobile-menu {
        padding: 20px;
        list-style-type: none;
        flex-grow: 1;
    }

    .ctm-nav-mobile-submenu {
        list-style-type: none;
        padding: 5px 20px;
    }
}




/* Hide the mobile menu on screens wider than 833px */
/* Media Query for Devices Below 833px */
    @media screen and (max-width: 833px) {
    
    .ctm-nav-mobile-overlay {
        position: fixed;
        top: 110px; /* Adjust the top position as needed */
        right: -100%; /* Initially hide the overlay from the right */
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.98); /* Add transparency */
        z-index: 5; /* Ensure it's above other content */
        overflow-y: auto;
    }

    .ctm-nav-mobile-overlay.show {
        left: 0;
    }

    .ctm-nav-mobile-menu {
        padding: 20px;
        list-style-type: none;
        flex-grow: 1;
    }

    .ctm-nav-mobile-submenu {
        list-style-type: none;
        padding: 5px 20px;
    }

    body.overlay-visible {
        overflow: hidden; /* Prevent scrolling when overlay is visible */
    }
}

/* Use the existing media query to hide the mobile menu on larger screens */
@media screen and (min-width: 834px) {
    #mobileMenuOverlay {
        left: -100% !important;
    }

    .ctm-nav-mobile-menu {
        display: none !important;
    }

    .ctm-nav-mobile-submenu {
        display: none !important;
    }
}




/*.wp-block-navigation__responsive-dialog {
    position: relative;
    top: 35px;
    right: -4px;
}*/

/*#modal-1-content > ul li a span.wp-block-navigation-item__label {
    font-size: 1.8rem;
}*/

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
    color: #37351d;
}

.hide {
    display: none!important;
}

.wp-block-navigation a:where(:not(.wp-element-button)):hover {
    text-decoration: underline;!important;
/*    border-bottom: 2px solid #37351d;*/
}
nav.is-responsive.items-justified-right.wp-block-navigation.is-horizontal.is-content-justification-right.is-layout-flex.wp-container-core-navigation-layout-1.wp-block-navigation-is-layout-flex {
    padding-right: 30px;
}




body.admin-bar {
    margin-top: 0;
}

#wpadminbar {
    position: fixed;
    top: -27px; /* Hide all but 5px */
    z-index: 99999;
    transition: top 0.3s ease;
    background-color: #ff0000;
}

#wpadminbar:hover {
    top: 0; /* Show full admin bar on hover */
    background-color: #333;
}

.line-break-ex {
    display: none;
}

/* -- LINE BREAKS -- */

/* Hide Line Breaks */
@media (max-width: 460px) {.line-break-ex {display: inline-block;}}

/* Hide Line Breaks */
@media (max-width: 1076px) {.line-break {display: none;}}




/* Hide Line Breaks */
@media (max-width: 999px) {.line-break {display: none;}}


/* Media query for mobile devices */
@media (max-width: 782px) {
    
    form.wpcf7-form.init {
        max-width: 79vw;
    }

    .wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link {
        width: 100%;
    }

    .has-text-align-right {
        text-align: left!important;
    }

    .wp-container-core-buttons-layout-4.wp-container-core-buttons-layout-4 {
        justify-content: flex-start;
    }
    
    #wpadminbar {
        top: -40px; /* Hide all but 5px */
    }
}


/* Media query for tablets and mobile devices */
@media (max-width: 767px) {
    .wp-block-group.alignfull.has-base-2-background-color.has-background.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
        margin-top: 20px!important;
    }
    .wp-block-columns.alignwide.animated.backInLeft.is-layout-flex.wp-container-core-columns-layout-3.wp-block-columns-is-layout-flex.o-anim-ready {
        flex-direction: column-reverse;
    }
    .wp-block-columns.alignwide.animated.backInLeft.is-layout-flex.wp-container-core-columns-layout-3.wp-block-columns-is-layout-flex.o-anim-ready .wp-block-column.is-vertically-aligned-top,
    .wp-block-columns.alignwide.animated.backInLeft.is-layout-flex.wp-container-core-columns-layout-3.wp-block-columns-is-layout-flex.o-anim-ready .wp-block-column.is-vertically-aligned-center {
        flex-basis: 100%;
    }

    .wp-container-core-buttons-layout-2.wp-container-core-buttons-layout-2 {
        justify-content: start;
    }

    .wp-block-columns.alignwide.animated.backInRight.is-layout-flex.wp-container-core-columns-layout-2.wp-block-columns-is-layout-flex.o-anim-ready {
        margin-bottom: 70px;
    }

}




@media (max-width: 959px) {
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
        display: none;
    }

    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }

    .hide-on-desk {
        display: inline-block!important;
    }


    html, body {
        width: 100vw;
        max-width: 100%;
        overflow-x: hidden; /* Prevents horizontal scrolling */
        margin: 0; /* Removes default margins */
        padding: 0; /* Removes default padding */
    }

    #rotate-device-message {
        display: none; /* Keeps the message hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw; /* Ensures the element stretches across the full viewport width */
        height: 100vh;
        background-color: rgba(0,0,0,0.8);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        box-sizing: border-box; /* Ensures padding does not add to the width */
    }

    input.wpcf7-form-control.wpcf7-submit.has-spinner {
        width: 107%!important;
    }

}

@media screen and (max-width: 768px) and (orientation: landscape) {
    /* This media query is for demonstration; it might not be necessary based on your JavaScript logic */
    #rotate-device-message {
        display: none; /* Start with none to ensure JavaScript does the work */
    }
}












