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

.et_pb_button {
    position: relative;
}
.button-child {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    border-radius: inherit;
}
.button-child-inner{
    position: absolute;
    top: 0;
    left: -105%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
	pointer-events: none;
	transform: skewX(10deg);
}
.et_pb_button:hover .button-child-inner{
    left: 105%;
}
.et_pb_button.transparent-button-green .button-child-inner {
    background: rgb(28 169 164 / 10%) !important;
}
span.link-separator {
    margin: 0 15px;
}






.icon-square span.et-pb-icon,
.icon-square-nohover span.et-pb-icon {
    aspect-ratio: 1 / 1;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
}
.blurb-as-list .et_pb_main_blurb_image {
    width: fit-content;
}
.tab-button .blurb-as-list .et_pb_main_blurb_image {
    width: 50px;
}
.blurb-as-list .et_pb_blurb_content {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.tab-button .et_pb_blurb_container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
}
.tab-button .et_pb_module_header {
    padding-bottom: 0;
}

.tab-button .et_pb_image_wrap span.et-pb-icon {
    transition: all .3s ease-in-out;
}
.tab-button.active .et_pb_image_wrap span.et-pb-icon,
.tab-button:hover .et_pb_image_wrap span.et-pb-icon {
	background-color: var(--gcid-primary-color);
}
.et_pb_group.tab-button {
    cursor: pointer;
    transition: all .25s ease-in-out;
}
.et_pb_group.tab-button.active {
    background-color: var(--gcid-2htuenjm75) !important;
	pointer-events: none;
	border-color: hsl(from var(--gcid-primary-color) calc(h + 0) calc(s + 0) calc(l + 0) / 0.8);
}
.et_pb_group.tab-button:before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 3px;
    background: var(--gcid-primary-color);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.et_pb_group.tab-button.active:before {
    transform: scaleY(1);
}
.tab-numbers {
    opacity: .35;
	transition: all .3s ease-in-out;
}
.tab-button.active .tab-numbers {
    opacity: 1;
}



.time-line-blurb .et_pb_blurb_container {
    padding: 30px;
}
.timeline-column {
    position: relative;
}

.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: 2px;
    background: #D8D8D8;
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    left: 50%;
    width: 2px;
    background: #4E9198;
    transform: translateX(-50%);
}

.timeline-numbers {
    position: absolute;
    inset: 0;
}

.timeline-number {
    position: absolute;
    left: 50%;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #EEF3F3;
    border: 1px solid var(--gcid-primary-color);
    color: var(--gcid-primary-color);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: all .3s ease;
    z-index: 2;
}

.timeline-number.active {
    background: var(--gcid-primary-color);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.time-line-blurb {
    transition: all .3s ease;
}

.time-line-blurb .et_pb_main_blurb_image span {
    overflow: hidden;
}
.time-line-blurb .et_pb_main_blurb_image img {
    transition: all .6s ease-in-out;
}
.time-line-blurb.timeline-active .et_pb_main_blurb_image img {
    transform: scale(1.1);
}
.et_pb_blurb.time-line-blurb.timeline-active {
    transform: translateY(-8px);
    box-shadow: 2px 2px 30px 6px rgba(156, 156, 192, 0.6);
}
.et-fb .et_pb_column.timeline-column:before {
    content: "";
    width: 2px;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    background: var(--gcid-primary-color);
}
.et-fb .timeline-track {
    display: none;
}
@media (max-width: 767px) {
	.et-fb .et_pb_column.timeline-column:before {
		left: 0;
		transform: translate(0, 0);
	}
}

body #page-container .et_pb_section.hide-overflow {
	overflow: hidden !important;
}



.c-toggle-styles .et_pb_toggle_title {
    padding: clamp(18px, 2.2vw, 24px) !important;
}
.c-toggle-styles .et_pb_toggle_content {
    padding: clamp(18px, 2.2vw, 24px);
    padding-top: 10px;
}
body #page-container .et_pb_section .c-toggle-styles .et_pb_toggle_title:before {
    display: flex;
    background: var(--gcid-am0o70r8vt);
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    padding: 5px;
    right: 0;
    top: 50% !important;
    margin: 0;
    transform: translatey(-50%);
    font-weight: 600 !important;
	transition: all .25s ease-in-out;
}
body #page-container .et_pb_section .c-toggle-styles:hover .et_pb_toggle_title:before,
body #page-container .et_pb_section .c-toggle-styles.et_pb_toggle_open .et_pb_toggle_title:before {
    background: var(--gcid-primary-color);
	color: #fff !important;
	font-weight: 400 !important;
}
body #page-container .et_pb_section .c-toggle-styles.et_pb_toggle_open .et_pb_toggle_title:before {
    transform: translatey(-50%) rotate(-180deg);
}
body #page-container .et_pb_section .c-toggle-styles {
    transition: all .2s ease-in-out, height .7s ease-in-out;
}
body #page-container .et_pb_section .c-toggle-styles.et_pb_toggle_open {
    box-shadow: 0 24px 48px -36px color-mix(in oklab, #25302b 60%, transparent);
}



.fullwidth-button .et_contact_bottom_container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: flex-start;
    margin-left: 0 !important;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}
.fullwidth-button .et_pb_button_wrapper {
    width: 100%;
}
.fullwidth-button  button.et_pb_button {
    width: 100% !important;
    margin: 0;
}
a {
    text-underline-offset: 6px;
}



.footer-links a,
.c-menu-style .et_pb_menu__menu ul.et-menu.nav>li>a {
    position: relative;
}
.footer-links a:before, .c-menu-style .et_pb_menu__menu ul.et-menu.nav>li>a:before {
    content: "";
    background: var(--gcid-primary-color);
    background-size: 150%;
    height: 1px;
    width: 0;
    position: absolute;
    bottom: 4px !important;
    transition: all .3s ease-in-out;
    left: 0;
	top: calc(50% + 10px);
}
.footer-links a:before {
    bottom: -2px !important;
}
.footer-links a:hover:before,
.c-menu-style .et_pb_menu__menu ul.et-menu.nav>li.current-menu-item:first-child>a:before,
.c-menu-style .et_pb_menu__menu ul.et-menu.nav>li>a:hover:before,
.c-menu-style .et_pb_menu__menu ul.et-menu.nav>li.in-viewport>a:before{
    width: 100%;
}
.c-menu-style .et_pb_menu__menu ul.et-menu.nav>li:not(.in-viewport).current-menu-item:not(:first-child) a:not(:hover) {
    color: #fff !important;
}
.has_et_pb_sticky .c-menu-style .et_pb_menu__menu ul.et-menu.nav>li:not(.in-viewport).current-menu-item:not(:first-child) a {
    color: var(--gcid-heading-color) !important;
}
header.et-l.et-l--header {
    position: relative;
    z-index: 9999;
}
.has_et_pb_sticky .c-menu-style .et_pb_menu__menu ul.et-menu.nav>li.in-viewport.current-menu-item:not a {
    color: var(--gcid-primary-color) !important;
}

/* ==================================================================
   icon-square-nohover
   Icon als reiner Platzhalter: unsichtbar, Box bleibt exakt stehen.
   Ersetzt .icon-square (nicht zusätzlich vergeben).
   Verwendung: blurb-as-list icon-square-nohover
   ================================================================== */
.icon-square-nohover .et_pb_image_wrap {
    opacity: 0;
    user-select: none;
}

.icon-square-nohover .et_pb_main_blurb_image {
    pointer-events: none;
}


/* ==================================================================
 *  time-line-blurb – Listen mit Check-Icon
 *  Optisch identisch zu .blurb-as-list (ETmodules "N")
 *  ================================================================== */
.time-line-blurb ul,
.time-line-blurb ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.time-line-blurb li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 9px;
    font-size: .95rem;
    line-height: 1.25em;
}

.time-line-blurb li:last-child {
    margin-bottom: 0;
}

.time-line-blurb li::before {
    content: "N";
    font-family: ETmodules;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: var(--gcid-primary-color);
    position: absolute;
    left: 0;
    top: 1px;
    -webkit-font-smoothing: antialiased;
}

/* Karten-Sticky, da DIVI5 Sticky nicht funktioniert */

:root {
    --header-offset: 115px;
}

.vierpunktesticky {
    position: sticky;
    top: var(--header-offset);
    align-self: flex-start;
}

@media (max-width: 980px) {
    .vierpunktesticky {
        position: static;}
}


/* ==================================================================
 *  Floating Kontakt-Buttons — hängt allein an der Row-Klasse
 *  ================================================================== */
.jst-float.et_pb_row {
    width: fit-content !important;
    max-width: none !important;
}

.jst-float > .et_pb_column {
    width: fit-content !important;
}

.jst-float .et_pb_blurb {
    width: fit-content !important;
    position: relative;
    overflow: hidden;
}

/* Innenpolster, Icon und Label nebeneinander */
.jst-float .et_pb_blurb_content {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    --horizontal-gap: 0px;
    width: auto;
    max-width: none;
    padding: 12px 15px;
    background-color: inherit;
    border-radius: inherit;
    position: relative;
    z-index: 1;
}

.jst-float .et_pb_main_blurb_image {
    margin: 0;
    width: fit-content;
    line-height: 0;
}

.jst-float .et_pb_blurb_description p {
    margin: 0;
    padding-bottom: 0;
    white-space: nowrap;
}

/* Label fährt beim Hover aus */
.jst-float .et_pb_blurb_container {
    overflow: hidden;
    transition: all .3s ease-in-out;
}

/* nachher */
.jst-float .et_pb_blurb:not(:hover) .et_pb_blurb_container,
.jst-float .et_pb_blurb:not(:hover) .et_pb_blurb_description {
    font-size: 0 !important;
    padding-left: 0;
}

.jst-float .et_pb_blurb:hover .et_pb_blurb_container {
    padding-left: 10px;
}

/* ganzer Button klickbar, nicht nur das Icon */
.jst-float .et_pb_main_blurb_image > a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Schimmer-Ring beim Hover */
.jst-float .et_pb_blurb::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110%;
    aspect-ratio: 10 / 16;
    transform: translate(-50%, -50%);
    background-color: inherit;
    opacity: .07;
    transition: opacity .2s ease-in-out;
}

.jst-float .et_pb_blurb:hover::before {
    opacity: 1;
    background-image: linear-gradient(0deg, #004b5a 35%, #95c11f 50%, #004b5a 75%);
    animation: BGrotate 4s linear infinite;
}

@keyframes BGrotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .jst-float .et_pb_blurb_container,
    .jst-float .et_pb_blurb::before { transition: none; }
    .jst-float .et_pb_blurb:hover::before { animation: none; }
}
