/*
 Theme Name:   Divi Child Theme From MP-Webdesign
 Theme URI:    https://www.elegantthemes.com/
 Description:  This child theme made by MP-Webdesign
 Author:       MP-Webdesign
 Author URI:   https://maxpruegner.com/
 Template:     Divi
 Version:      2.3.0
*/

/*-------------------Add any custom CSS below this line-------------------*/

body #page-container .et_pb_section .et_pb_row:has(.hero-sec-animate) {
    z-index: -2 !important;
}
body.wp-singular div#page-container div#et-boc div#et-main-area .et_pb_section.home-hero-section {
    overflow: hidden !important;
}
.et_pb_image.hero-sec-animate span,
.et_pb_image.hero-sec-animate {
    width: 100% !important;
    height: 100% !important;
}
.et_pb_module.et_pb_image.hero-sec-animate img {
    position: absolute;
    inset: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 72%;
    animation: 26s ease-in-out 0s infinite alternate none running kb;
    will-change: transform;
}

@keyframes kb {
	0% {
		transform: scale(1.03);
	}

	100% {
		transform: scale(1.13) translate3d(-1.5%, -1%, 0);
	}
}


.et_pb_space.et_pb_module.scan-effect {
    height: 120px;
    background: linear-gradient(90deg, transparent, rgba(120, 190, 255, 0.1), transparent);
    animation: 7.5s ease-in-out 0s infinite normal none running om-scan;
}

@keyframes om-scan {
	0% {
		transform: translateY(-120%);
	}
	100% {
		transform: translateY(420%);
	}
}


/* =========================================
   HERO SPARKS EFFECT
   Section class:
   sparks-effect-on-section
========================================= */

.sparks-effect-on-section {
    position: relative;
    overflow: hidden;
}

/* Spark container */
.sparks-effect-on-section .hero-sparks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* Individual sparks */
.sparks-effect-on-section .hero-spark {
    position: absolute;
    bottom: -20px;
    width: var(--spark-size);
    height: var(--spark-size);
    border-radius: 50%;
    background: #FFB35C;
    box-shadow: 0 0 8px 2px rgba(238, 122, 21, 0.55);
    opacity: 0;
    animation: hero-spark-rise var(--spark-duration) linear var(--spark-delay) infinite;
    will-change: transform, opacity;
	filter: brightness(1.5);
}

/* Main spark animation */
@keyframes hero-spark-rise {

    0% {
        transform: translate3d(0, 0, 0) scale(.9);
        opacity: 0;
    }

    12% {
        opacity: .85;
    }

    100% {
        transform:
            translate3d(var(--spark-x), -280px, 0)
            scale(.15);
        opacity: 0;
    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    .sparks-effect-on-section .hero-spark {
        animation: none;
        opacity: 0;
    }

}


/* =========================================
   BUTTON / ELEMENT HOVER SPARK EFFECT
   Automatically works on:
   .et_pb_button

   Or manually add:
   .sperk-on-hover
========================================= */

.et_pb_button,
.sperk-on-hover {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate;
}

.et_pb_button .button-hover-spark,
.sperk-on-hover .button-hover-spark {
    position: absolute;
    width: var(--spark-size);
    height: var(--spark-size);
    left: var(--spark-left);
    bottom: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    background: var(--spark-color);
    box-shadow: 0 0 7px 1.5px rgba(238, 122, 21, .7);
    animation: button-spark-burst
        var(--spark-duration)
        cubic-bezier(.25, .6, .4, 1)
        forwards;
}

@keyframes button-spark-burst {

    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform:
            translate3d(var(--spark-x), var(--spark-y), 0)
            scale(.2);
    }
}

@media (prefers-reduced-motion: reduce) {

    .et_pb_button .button-hover-spark,
    .sperk-on-hover .button-hover-spark {
        display: none;
    }
}

.timeline-item-svg p,
.svg-text p {
    display: flex;
}
.et_pb_text.svg-text .et_pb_text_inner,
.et_pb_text.svg-text {
    transition: all .25s ease-in-out;
}
.animated-card:hover .et_pb_text.svg-text {
    background-color: var(--gcid-primary-color) !important;
}
.animated-card:hover .et_pb_text.svg-text .et_pb_text_inner {
    color: var(--gcid-secondary-color) !important;
}
.et_pb_group.animated-card:after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gcid-primary-color);
    left: 0;
    bottom: 0;
    transition: all .25s ease-in-out;
}
.et_pb_group.animated-card:hover:after {
    width: 100%;
}



.custom-tabs ul.et_pb_tabs_controls.clearfix {
    background: #fff;
    padding: 4px !important;
    width: fit-content;
    border: 1.5px solid rgb(16, 24, 32);
    margin-bottom: 55px;
    margin-left: auto;
    border-radius: 1px;
    display: flex;
    gap: 3px;
}
.custom-tabs li.et_pb_tab_nav_item {
    border: 0 !important;
}
.custom-tabs ul.et_pb_tabs_controls.clearfix:after {
    opacity: 0;
}
.custom-tabs ul.et_pb_tabs_controls.clearfix a.et_pb_tab_nav_item_link {
    padding: 11px 20px;
    line-height: 1.65;
    border-radius: 1px;
    transition: all .16s ease-in-out;
}
@media (max-width: 980px) {
	.custom-tabs ul.et_pb_tabs_controls.clearfix {
		margin-left: 0 !important;
		margin-bottom: 35px !important;
	}
}


.card-with-image .hover-zoom-image {
	overflow: hidden !important;
}
.card-with-image .hover-zoom-image:after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gcid-primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all .25s ease-in-out;
}
.card-with-image:hover .hover-zoom-image:after {
    width: 100%;
}
.card-with-image .hover-zoom-image img {
	transition: all .5s ease-in-out;
}
.card-with-image:hover .hover-zoom-image img {
	transform: scale(1.08);
}


/* =========================================================
   ABLAUF HORIZONTAL TIMELINE
   ========================================================= */

#Ablauf {
    position: relative;
}

body:not(.et-fb) #Ablauf .scrolling-timeline-row {
    position: sticky !important;
    top: 69px;
    height: calc(100vh - 69px);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

body:not(.et-fb) #Ablauf .scrolling-timeline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: max-content !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    will-change: transform;

}

body:not(.et-fb) #Ablauf .scrolling-timeline>.scrolling-TL-item {
    flex: 0 0 clamp(300px, 25vw, 370px) !important;
    width: clamp(300px, 25vw, 370px);
    max-width: none;

}

body:not(.et-fb) #Ablauf .scrolling-timeline>.TL-last-item {
    flex: 0 0 clamp(280px, 23vw, 340px) !important;
    width: clamp(280px, 23vw, 340px);
}

@media (prefers-reduced-motion: reduce) {
    #Ablauf .scrolling-timeline {
        will-change: auto;
    }
}
.et_pb_row.scrolling-timeline-row {
    overflow: visible !important;
}
div#Ablauf {
    overflow: clip;
}

span.timeline-active-title {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(90, 102, 115);
    font-weight: 600;
    text-align: right;
}
.timeline-progress-number {
    font-family: var(--et_global_heading_font);
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgb(16, 24, 32);
    display: flex;
    align-items: flex-end;
}
span.timeline-number-separator,
span.timeline-total-number {
    color: rgb(169, 180, 191);
    font-size: 0.42em;
    margin-left: 0px;
    letter-spacing: 0px;
}
.timeline-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
span.timeline-current-number {
    line-height: .8em;
}
span.timeline-number-separator {
    margin-left: 6px;
}
#Ablauf .timeline-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    margin-top: 14px;
    background: #e3e8ee;
    overflow: hidden;
}
#Ablauf .timeline-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #f47721;
    transition: width 0.15s ease-out;
}
.et_pb_text.timeline-item-number .et_pb_text_inner,
.timeline-item-content.et_pb_blurb_description,
.timeline-item-content .et_pb_module_header,
.et_pb_text.et_pb_text.timeline-item-svg,
.et_pb_group.scrolling-TL-item {
    transition: all .25s ease-in-out;
}
.et_pb_group.scrolling-TL-item.is-active {
    background: var(--gcid-secondary-color);
	border: 1px solid var(--gcid-secondary-color);
    box-shadow: rgba(6, 16, 26, 0.22) 0px 24px 50px;
    transform: translateY(-10px);
}
.is-active .et_pb_text.et_pb_text.timeline-item-svg {
	background: var(--gcid-primary-color);
}
.is-active .timeline-item-content .et_pb_module_header {
	color: #fff !important;
}
.is-active .timeline-item-content .et_pb_blurb_description {
	color: var(--gcid-5j13is3fbh)!important;
}
.et_pb_group.scrolling-TL-item:after {
	content: "";
    position: absolute;
    left: -1px;
    bottom: -1px;
    height: 4px;
    width: 0;
    background: rgb(238, 122, 21);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.et_pb_group.scrolling-TL-item.was-active:after,
.et_pb_group.scrolling-TL-item.is-active:after {
    width: calc(100% + 2px);
}
.scrolling-TL-item.is-active .et_pb_text.timeline-item-number .et_pb_text_inner,
.scrolling-TL-item.was-active .et_pb_text.timeline-item-number .et_pb_text_inner {
    -webkit-text-stroke-color: var(--gcid-primary-color);
}


body.page div#page-container div#et-main-area .et_pb_section .had-image-to-hover {
    overflow: hidden !important;
}
body.page div#page-container div#et-main-area .et_pb_section .had-image-to-hover .et_pb_image {
    overflow: hidden !important;
}
.bar-effect {
	position: relative;
}
.et_pb_menu--without-logo .et_pb_menu__menu>nav>ul>li>a:before,
.bar-effect:after,
.et_pb_section .had-image-to-hover:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--gcid-primary-color);
    z-index: 999;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-menu-style .et_pb_menu__menu ul.et-menu.nav>li.current-menu-item:not(.not-in-viewport)>a:before,
.c-menu-style .et_pb_menu__menu ul.et-menu.nav>li.in-viewport>a:before,
.et_pb_menu--without-logo .et_pb_menu__menu>nav>ul>li>a:hover:before,
.bar-effect:hover:after,
.et_pb_section .had-image-to-hover:hover:after {
    width: 100%;
}
.had-image-to-hover .et_pb_image {
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.had-image-to-hover:hover .et_pb_image {
	transform: scale(1.08);
}
.maxwidth-fix .et_pb_blurb_content {
    margin-left: 0;
}
.maxwidth-fix.bar-effect:after {
	height: 2px !important;
}


.toggle-custom-style .et_pb_toggle_title {
    padding: 24px 50px 24px 26px !important;
}
.toggle-custom-style .et_pb_toggle_content {
    padding: 5px 50px 22px 26px;
}

body #page-container .et_pb_section .custom-icon .et_pb_toggle_title:after,
body #page-container .et_pb_section .custom-icon .et_pb_toggle_title:before {
    content: "" !important;
    position: absolute;
    right: 0;
    top: 50%;
    background: var(--gcid-primary-color);
    transform: translateY(-50%);
    margin: 0;
	transition: all .3s ease-in-out;
	margin-right: 10px;
}

body #page-container .et_pb_section .custom-icon .et_pb_toggle_title:after {
    width: 16px;
    height: 2px;
}
body #page-container .et_pb_section .custom-icon .et_pb_toggle_title:before {
    width: 2px;
    height: 16px;
	right: 7px; 
}
body #page-container .et_pb_section .custom-icon.et_pb_toggle_open .et_pb_toggle_title:before {
    transform: translateY(-50%) rotate(92deg);
}
.et_pb_menu--without-logo .et_pb_menu__menu>nav>ul>li>a:before,
.bar-effect-2px:after,
.toggle-custom-style.bar-effect:after {
	height: 2px !important;
}
.bar-effect-1px:after {
	height: 1px !important;
}
.toggle-custom-style.bar-effect.et_pb_toggle_open .button-hover-spark {
	display: none;
}


.show-labels  label.et_pb_contact_form_label {
    display: block !important;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(70, 82, 95);
    font-weight: 600;
}
.show-labels .et_pb_contact_field {
    gap: 4px;
}
.c-form-style .et_contact_bottom_container {
    margin-left: 0 !important;
    margin-top: 20px;
}
.c-form-style .et_pb_field_module_checkbox span.et_pb_contact_field_options_title {
    display: none;
}

.c-form-style .et_contact_bottom_container {
    flex-wrap: wrap;
    gap: 20px;
}
body #page-container .et_pb_section .custom-button-icon .et_pb_button {
    margin-left: 0;
}
.show-labels .et_pb_contact_field[data-type=select]:after {
    top: calc(50% + 15px);
}

.et_pb_button.et_pb_contact_submit {
    margin: 0;
}
.et_contact_bottom_container {
    flex-wrap: wrap !important;
}






/* =========================================
   DIVI MENU HOVER SPARK EFFECT
   Matches the existing button sparkle
========================================= */

/*
 * Menu links need to allow
 * sparks outside their boundaries.
 */
.et_pb_menu .et_pb_menu__menu > nav > ul > li > a {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate;
}


/*
 * UNIQUE MENU SPARK CLASS
 */
.et_pb_menu .et_pb_menu__menu > nav > ul > li > a .divi-menu-hover-spark {
    position: absolute;

    width: var(--divi-menu-spark-size);
    height: var(--divi-menu-spark-size);

    left: var(--divi-menu-spark-left);
    bottom: var(--divi-menu-spark-bottom);

    border-radius: 50%;

    pointer-events: none;

    z-index: 999;

    background: var(--divi-menu-spark-color);

    /*
     * Same glow as the existing effect.
     */
    box-shadow:
        0 0 7px 1.5px rgba(238, 122, 21, .7);

    animation:
        divi-menu-spark-burst
        var(--divi-menu-spark-duration)
        cubic-bezier(.25, .6, .4, 1)
        forwards;
}


/* =========================================
   MENU SPARK ANIMATION
   Same animation as existing effect
========================================= */

@keyframes divi-menu-spark-burst {

    0% {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    100% {
        opacity: 0;

        transform:
            translate3d(
                var(--divi-menu-spark-x),
                var(--divi-menu-spark-y),
                0
            )
            scale(.2);
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .et_pb_menu .et_pb_menu__menu > nav > ul > li > a .divi-menu-hover-spark {
        display: none;
    }

}


@media (max-width: 980px) {
	.et_pb_column:has(.et_pb_menu.c-menu-style), .et_pb_menu.c-menu-style, .et_pb_menu.c-menu-style .et_pb_menu_inner_container {
		position: static;
	}
}
@media (max-width: 767px) {
    div#header-button-wrap {
        visibility: hidden;
        z-index: -111;
        position: absolute !important;
    }
	.mobile-contact-button div#header-button-wrap {
        visibility: visible;
        z-index: 10;
        position: relative !important;
    }
}
li.menu-item.mobile-contact-button {
    padding-left: 5%;
	margin-top: 40px;
}

/* =========================================
   CURSOR POINTER
========================================= */

[data-="had-pointer-effect"] {
    position: relative;
	overflow: hidden !important;
}

[data-="had-pointer-effect"] .had-pointer {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(350px, 45vw, 640px);
    height: clamp(350px, 45vw, 640px);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    transition: opacity 0.2s ease;
    z-index: 9999;
	opacity: 0;
    transition: transform 0.18s ease-out, opacity 0.3s;
    mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(238, 122, 21, 0.32), rgba(238, 122, 21, 0.12) 30%, rgba(130, 185, 245, 0.12) 52%, transparent 70%);
    will-change: transform;
    transform: translate3d(1115px, 306px, 0px);
}

.bar-effect p a {
    display: flex;
    height: fit-content;
}

/* === Cursor-Glow global kleiner und dezenter (MP-Webdesign) === */
body [data-="had-pointer-effect"] .had-pointer {
    width: clamp(200px, 16vw, 260px) !important;
    height: clamp(200px, 16vw, 260px) !important;
    filter: saturate(.75) opacity(.5);
}
/* === Ende Cursor-Glow === */
