/* 
Theme Name: DHC Consulting
Theme URI: https://github.com/elementor/hello-theme-child/
Description: DHC Consulting
Author: IMA GmbH
Author URI: https://www.internet-marketing-agentur.com
Template: hello-elementor
Version: 0.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

body {
    background-color: #FDFAF4 !important;
    font-family: 'Poppins', sans-serif !important;
}



.glass-block {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    backdrop-filter: url("#liquid-glass-filter");    

    box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.5),
                inset -1px -1px 2px rgba(255, 255, 255, 0.5),
                0 8px 20px rgba(0,0,0,0.2);
} 

.glass-cards {
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.845);
    background-color: #ffffffc2;
    backdrop-filter: url("#liquid-glass-filter");   
}

.glass-background {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px); 
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.845);
    background-color: #ffffffc2;
}


/* Akkordeon button */
.custom_accordion summary.e-n-accordion-item-title {
    pointer-events: none !important;
}

.custom_accordion .e-n-accordion-item-title-icon {
    pointer-events: auto !important;
    position: absolute !important;
    right: 0px;
    bottom: 0px;
    z-index: 100;
}



/* SVG fließend ausblenden */
.custom_carousell .elementor-swiper-button-prev svg *,
.custom_carousell .elementor-swiper-button-next svg * {
    transition: opacity 0.3s ease-in-out, fill 0.3s ease-in-out;
}

/* Pseudoelement für Hintergrundbild */
.custom_carousell .elementor-swiper-button-prev::after,
.custom_carousell .elementor-swiper-button-next::after {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

/* Verschiedene Hintergrundbilder */
.custom_carousell .elementor-swiper-button-prev::after { background-image: url('assets/image/white-left_arrow.svg'); }
.custom_carousell .elementor-swiper-button-next::after { background-image: url('assets/image/white-right_arrow.svg'); }

/* Hover-Effekte */
.custom_carousell .elementor-swiper-button-prev:hover svg *,
.custom_carousell .elementor-swiper-button-next:hover svg * { opacity: 0; fill: transparent; }

.custom_carousell .elementor-swiper-button-prev:hover::after,
.custom_carousell .elementor-swiper-button-next:hover::after { opacity: 1; }



#searchbox {
    transition: all 320ms cubic-bezier(0.18, 0.88, 0.32, 1.27);
    transform-origin: top center;
    transform: translateY(5px) scaleY(0.5);
    opacity: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

#searchbox.visible {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    transform: translateY(10px) scaleY(1);
}



/* MENU TOGGLE */
:root {
    --bar-width: 24px;
    --bar-height: 2px;
    --bar-gap: 5px;

    --bar-color: #fff !important;
    --hover-color: #006A61;
    --bg-color: #fff !important;
}

/* Hide Elementor default icons */
.elementor-menu-toggle__icon--open,
.elementor-menu-toggle__icon--close {
    display: none;
}

/* Menu toggle container */
.elementor-menu-toggle {
    position: relative;
    width: var(--bar-width);
    height: calc(var(--bar-height)*3 + var(--bar-gap)*2);
    cursor: pointer;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

/* Bars (top, middle, bottom) */
.elementor-menu-toggle:before,
.elementor-menu-toggle:after,
.elementor-menu-toggle .middle-bar {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--bar-height);
    background-color: var(--bar-color);
    transition: all 0.3s ease; /* No delay */
    border-radius: 100px;
}

/* Position bars */
.elementor-menu-toggle:before { top: 0; }
.elementor-menu-toggle .middle-bar { top: 50%; transform: translateY(-50%); }
.elementor-menu-toggle:after { bottom: 0; }

/* Hover effect */
.elementor-menu-toggle:hover .middle-bar,
.elementor-menu-toggle:hover:before,
.elementor-menu-toggle:hover:after {
    background-color: var(--hover-color);
}

/* Active state (toggle X) */
.elementor-menu-toggle.elementor-active:before {
    transform: translateY(calc(var(--bar-gap) + var(--bar-height))) rotate(45deg);
}
.elementor-menu-toggle.elementor-active:after {
    transform: translateY(calc(-1*(var(--bar-gap) + var(--bar-height)))) rotate(-45deg);
}
.elementor-menu-toggle.elementor-active .middle-bar {
    opacity: 0; /* Hide immediately */
}




.icon_list .elementor-icon-list-items {
    display: flex;
    gap: 30px;
    justify-content: center;
}

/* Handy */
@media (max-width: 768px) {
    .icon_list .elementor-icon-list-items {
        flex-direction: column; 
        gap: 15px;            
        align-items: start;   
    }
}


/* Mobile Menu */
.elementor-nav-menu--dropdown.elementor-nav-menu__container {   /* Andere class? */
    top: -77px !important;
    height: 100vh !important;  
    width: 75vw !important;        
    background: #fff;         
    z-index: 1000;           
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99;
    display: none;
}



/* KONTAKRFORMULAR */
.custom_formular label[for="form-field-field_ee48a70"] {
    font-size: 12px !important;
    color: #7A7A7A !important;
}

.custom_formular #form-field-field_ee48a70 {
    accent-color: #0C695C; 
}

.custom_formular .elementor-field-option {
    display: flex;
    gap: 15px;
}

.custom_formular .elementor-field-type-checkbox {
    position: relative;
    cursor: pointer;
}

.custom_formular .elementor-field-type-checkbox .elementor-field-subgroup {
    display: none;
    position: absolute;
    top: 100%;
    left: 30px !important;
    width: calc(100% - 60px); 
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: max-height 0.3s ease;
    border-radius: 11px;
    padding: 20px;
    box-sizing: border-box; 
}


.custom_formular .elementor-field-type-checkbox > .elementor-field-label {
    display: block;
    background: #CEDEE366;
    padding: 15px 20px;
    user-select: none;
    position: relative;
    width: 100%;
    border-radius: 11px;
    transition: 0.3s ease;
}

.custom_formular .elementor-field-type-checkbox > .elementor-field-label:hover {
    background: #BFD9E366;
}

.custom_formular .elementor-field-type-checkbox.open > .elementor-field-label {
    background: #A0C0D366;
}

/* down arrow */
.elementor-field-type-checkbox > .elementor-field-label::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 55%;
    transform: translateY(-50%);
    width: 10px;  
    height: 10px;  
    background-image: url('assets/image/down_arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

/* up arrow */
.elementor-field-type-checkbox.open > .elementor-field-label::after {
    background-image: url('assets/image/up_arrow.svg');
}


.custom_formular .elementor-field-type-checkbox.open .elementor-field-subgroup {
    display: block;
}

.elementor-field-option{
    padding: 5px 0px;
}

.custom_formular .elementor-field-option label {
    width: 100%;    
    cursor: pointer;
}

/* Checkbox */
.custom_formular .elementor-field-option input[type="checkbox"] {
    appearance: none;     
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;     
    min-height: 20px;     
    box-sizing: border-box;
    border: 2px solid #0C695C; 
    border-radius: 5px;          
    position: relative;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;  
}

.custom_formular .elementor-field-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #0C695C; 
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom_formular .elementor-field-option input[type="checkbox"]:hover {
    border-color: #066a5e;
    background-color: rgba(0,0,0,0.03);
}

