/*
 Theme Name: Hello Elementor Child
 Description: A child theme for Hello Elementor
 Template: hello-elementor
 Version: 1.0.0
*/

/* Main Menu */

.custom-menu .menu-item a.hfe-menu-item {
    position: relative;
}

.custom-menu .menu-item a.hfe-menu-item:after {
    content: '';
    height: 1px;
    width: calc(100% - 30px);
    background-color: var(--e-global-color-37799a7) !important;
    display: block;
    position: absolute;
    bottom: 13px;
}

.custom-menu .menu-item.menu-item-has-children a.hfe-menu-item:after {
    width: calc(100% - 49px);
}

.custom-menu .menu-item.menu-item-has-children a.hfe-menu-item {
    flex-direction: row-reverse;
}

.custom-menu .menu-item.menu-item-has-children a.hfe-menu-item span {
    margin-left: 0;
    margin-right: 5px;
    transition: ease-in-out 0.2s;
}

.custom-menu .menu-item.menu-item-has-children:hover a.hfe-menu-item span {
    transform: rotate(180deg);
}

.custom-menu .menu-item.menu-item-has-children a.hfe-menu-item span i {
    display: none;
}

.custom-menu .menu-item.menu-item-has-children a.hfe-menu-item span:after {
    content: '';
    background: url('assets/icons/arrow.svg') no-repeat;
    background-size: cover;
    display: block;
    width: 12px;
    height: 7px;
}

.custom-menu .hfe-nav-menu .sub-menu {
    min-width: 0;
}

/* Hero Video */

.hero-video > .e-hosted-video {
    aspect-ratio: 1156 / 1516;
}

.hero-video > .e-hosted-video {
    aspect-ratio: 814 / 1096;
}

    /* Button Custom */

.btn-custom {
    padding: 0 !important;
}

.btn-custom .elementor-button.elementor-button-link {
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.btn-custom .elementor-button.elementor-button-link .elementor-button-text {
    position: relative;
    z-index: 1;
}

.btn-custom .elementor-button.elementor-button-link:after {
    content: '';
    background: linear-gradient(90deg, #f4d03f 1.44%, #20b5eb 25.48%, #f4d03f 50%, #20b5eb 75%, #f4d03f 100%);
    height: 100%;
    width: 300%;
    position: absolute;
    top: 0;
    left: 100%;
    transition: ease-in-out 1s;
}

.btn-custom .elementor-button.elementor-button-link:hover:after {
    left: -142%;
}

.btn-custom .elementor-button.elementor-button-link
    /* Read More Section */
.hidden-text-accordion {
    /*background: #000;*/
}

.hidden-text-accordion .e-n-accordion-item {
    flex-direction: column-reverse;
}

.hidden-text-accordion.has-button .e-n-accordion-item-title {
    margin-top: 126px;
}

.accordion-button {
    position: absolute;
    bottom: 84px;
    z-index: 5;
}

em {
    font-family: var(--e-global-typography-1e7f231-font-family), Sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 160%;
    letter-spacing: 0.07em;
    font-style: normal;
}

/* Restoration Project Slider */

.project-slider .elementor-swiper-button {
    width: 62px;
    height: 62px;
    background: var(--e-global-color-b10d148);
    border-radius: 50%;
}

.project-slider .elementor-swiper-button svg {
    position: absolute;
    top: 50%;
    transition: ease-in-out 0.2s;
}

.project-slider .elementor-swiper-button-prev svg {
    left: 50%;
    transform: translate(-50%, -50%);
}

.project-slider .elementor-swiper-button-next svg {
    right: 50%;
    transform: translate(50%, -50%);
}

.project-slider .elementor-swiper-button-prev:hover svg {
    left: 80%;
}

.project-slider .elementor-swiper-button-next:hover svg {
    right: 80%;
}

/* His Works Section */

.his-works-hover {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.his-works-inner {
    backdrop-filter: blur(4px);
    transition: ease-in-out 0.3s;
    opacity: 0;
}

.his-works-hover:hover .his-works-inner {
    opacity: 1;
}

/* Aktuelle Section */

.aktuelle-text {
    text-decoration: none !important;
}

.aktuelle-text .aktuelle-text-title .elementor-heading-title {
    transition: ease-in-out 0.2s;
}

.aktuelle-text:hover .aktuelle-text-title .elementor-heading-title {
    color: var(--e-a-color-white);
    text-decoration: underline;
}

/* Footer Secondary */

.footer-secondary-menu .hfe-nav-menu__layout-horizontal {
    width: auto !important;
}

/* Modal Section */

#modal-block {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.modal-inner {
    width: 1500px;
    max-width: 90%;
}

#modal-block.is-open {
    display: flex;
}

.modal-close-btn {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--e-global-color-37799a7);
    cursor: pointer;
    text-underline-offset: 6px;
    transition: ease-in-out;
}

.modal-close-btn:hover .elementor-heading-title {
    color: var(--e-global-color-37799a7) !important;
}

#modal-block .btn-custom a:after {
    display: none;
}

/* Language switcher */

.lang-switch ul {
    list-style: none;
    padding: 15px;
}

.lang-switch ul .lang-item a {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-c1f2f18-font-family), Sans-serif;
    font-size: var(--e-global-typography-c1f2f18-font-size);
    font-weight: var(--e-global-typography-c1f2f18-font-weight);
    border-bottom: 2px dotted var(--e-global-color-37799a7);
    transition: ease-in-out 0.2s;
}

.lang-switch ul .lang-item a:hover {
    color: var(--e-global-color-37799a7);
}

.footer-custom .lang-switch ul .lang-item a {
    color: var(--e-global-color-37799a7);
}

/*===================== NEW STYLES ==============================*/

.book-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.book-slider::before,
.book-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}

.book-slider::before {
    left: 0;
    background: linear-gradient(270deg, #f4f4f4 0%, rgba(244, 244, 244, 0) 100%), linear-gradient(270deg, #f4f4f4 0%, rgba(244, 244, 244, 0) 100%), linear-gradient(270deg, #f4f4f4 0%, rgba(244, 244, 244, 0) 100%);
    transform: rotate(-180deg);
}

.book-slider::after {
    right: 0;
    background: linear-gradient(270deg, #f4f4f4 0%, rgba(244, 244, 244, 0) 100%), linear-gradient(270deg, #f4f4f4 0%, rgba(244, 244, 244, 0) 100%), linear-gradient(270deg, #f4f4f4 0%, rgba(244, 244, 244, 0) 100%);
}

.book-track {
    display: flex;
    width: max-content;
    animation: scrollContinuous 10s linear infinite;
}

.book-image {
    height: 583px;
    width: auto;
    display: block;
}

@keyframes scrollContinuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.3333%);
    }
}

.video-overlay {
    position: relative;
}

.video-overlay:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 16%;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
}

.video-overlay:before {
    content: "";
    position: absolute;
    right: 0;
    top: 16%;
    left: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.fact-card a {
    position: relative;
}

.fact-card a:after {
    content: '';
    display: block;
    height: 68px;
    width: 68px;
    background: rgba(0, 0, 0, 0.74);
    border-radius: 6px;
    background-image: url('/wp-content/uploads/2025/10/stretching.svg');
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    bottom: 15px;
    right: 15px;
    transition: ease-in-out 0.3s;
}

.fact-card a:hover:after {
    height: 72px;
    width: 72px;
    background-color: #20B5EB;
}

/*===================== BIOGRAPHY SLIDERS ==============================*/

.facts-slider-wrap, .timeline-slider-wrap {
    --accent-yellow: #F4C430;
    --dark-bg: #17181C;
    --card-dark: #212228;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
}

.facts-slider-wrap *, .timeline-slider-wrap * {
    box-sizing: border-box;
}

.facts-slider-wrap {
    padding-left: 38px;
}

/*===================== BIOGRAPHY SLIDER 1 ==============================*/

/*.facts-slider-wrap {
    background: var(--dark-bg);
}*/

/*#facts-splide .splide__slide {
    padding: 6px;
}*/

.fact-card {
   /* background: var(--card-dark);
    border-radius: 14px;*/
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #E8E8E8;
    font-family: Arial, Helvetica, sans-serif;
}

.fact-card__image {
    width: 100%;
   /* aspect-ratio: 16 / 10;
    overflow: hidden;*/
}

.fact-card__image img {
    width: 100%;
    /*height: 100%;
    object-fit: cover;*/
    display: block;
}

h3.fact-card__title {
    margin: 24px 0 32px;
    font-weight: 500;
    font-size: 32px;
    line-height: 110%;
    color: var( --e-global-color-accent );
}

.fact-card__text {
    color: var( --e-global-color-secondary );
    /*margin: 0 16px 20px;*/
    flex: 1;
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    letter-spacing: 0.01em;
}

.linear-pagination {
    position: relative;
    margin-top: 48px;
    padding: 0 4px;
}

/*.linear-pagination__track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
}*/

/*.linear-pagination__progress {
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    background: var(--accent-yellow);
    transform: translateY(-50%);
    width: 0%;
    transition: width .35s ease, left .35s ease;
}*/

.linear-pagination__numbers {
    position: relative;
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 24px;
    padding: 12px 32px 12px 0;
    max-width: 1920px;
    margin: 0 auto 10px;
}

.linear-pagination__numbers::-webkit-scrollbar {
    display: none;
}

.linear-pagination__numbers .num {
    flex: 0 0 auto;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 160%;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.74);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 2px;
    transition: color .25s ease, font-weight .25s ease;
    position: relative;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    max-width: 18px;
}

.linear-pagination__numbers .num:hover {
    background: none;
}

.linear-pagination__numbers .num:after {
    content: '';
    display: block;
    height: 2px;
    stroke-width: 2px;
    background: rgba(244, 208, 63, 0.8);
    width: 0;
    transition: .3s ease-in-out;
}

.linear-pagination__numbers .num.is-active {
    color: var(--accent-yellow);
    flex-grow: 1;
    background: none;
    max-width: none;
}

.linear-pagination__numbers .num.is-active:after {
    width: 100%;
}


/*===================== BIOGRAPHY SLIDER 2 ==============================*/

/*.timeline-slider-wrap {
    background: var(--accent-yellow);
    font-family: Arial, Helvetica, sans-serif;
}*/

/*.timeline-years {
    margin-bottom: 24px;
}*/

.timeline-years .splide__slide {
    display: flex;
    justify-content: center;
}

/*.timeline-years .splide__list {
    height: 80px;
}*/

.year-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0 23px;
    height: 115px;
}

/*.timeline-years .splide__slide.is-active .year-dot-wrap {
    padding-bottom: 19px;
}*/

.year-label {
    font-weight: 600;
    font-size: 33px;
    line-height: 110%;
    letter-spacing: -0.03em;
    text-align: center;
    color: var( --e-global-color-text );
    transition: .2s ease-in-out;
}

.year-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: .3s ease;
    flex: 0 0 auto !important;
    aspect-ratio: 1 / 1 !important;
    position: absolute;
    bottom: 16px;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center;
}

.timeline-years .splide__slide.is-active .year-label {
    /*font-size: 30px;
    font-weight: 800;
    opacity: 1;*/
    transform: scale(1.45);
    color: var( --e-global-color-text );
}

.timeline-years .splide__slide.is-active .year-dot {
   /* width: 24px;
    height: 24px;
    opacity: 1;*/
    transform: translate(-50%, -50%) scale(1.5);
}

.timeline-years .splide__track:after {
    content: '';
    position: absolute;
    height: 1px;
    width: 100%;
    background: #FFEDA7;
    top: 83px;
    z-index: -1;
}

/*.timeline-cards .splide__slide {
    padding: 6px;
}*/

.year-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 64px 32px;
    min-height: 140px;
    transition: ease-in-out .2s;
}

.year-card__suptext,
.year-card__text {
    margin: 0;
    color: var(--e-global-color-text);
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    letter-spacing: 0.01em;
}

.year-card__title {
    font-weight: 500;
    font-size: 32px;
    line-height: 110%;
    color: var( --e-global-color-72f0b60 );
}


.timeline-cards .splide__pagination,
.timeline-cards .splide__arrows {
    display: none !important;
}

.timeline-years .splide__pagination,
.timeline-years .splide__arrows {
    display: none !important;
}

.timeline-cards .is-active .year-card {
    background: rgba(255, 255, 255, 1);
}

@media (max-width: 640px) {
    .fact-card__title {
        font-size: 17px;
    }

    .year-label {
        font-size: 15px;
    }

    .timeline-years .splide__slide.is-active .year-label {
        font-size: 22px;
    }

    .year-card {
        padding: 18px;
        min-height: 110px;
    }
}

/*===================== ANCHORS BLOCK ==============================*/

.anchors-block {
    position: sticky !important;
    top: 140px;
    z-index: 10;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.anchors-block .elementor-heading-title {
    font-size: clamp(14px, 5vh, 48px) !important;
    position: relative;
    cursor: pointer;
}

.anchors-block .elementor-heading-title a {
    text-decoration: none;
}

.anchors-block .elementor-heading-title:after {
    content: '▶︎';
    position: absolute;
    left: -33px;
    top: 2px;
    font-size: 24px;
    opacity: 0;
}

.anchors-block .elementor-heading-title:hover:after {
    animation: triangleBlink 1s steps(1, start) infinite;
}

@keyframes triangleBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}



.anchors-block::-webkit-scrollbar {
    width: 4px;
}
.anchors-block::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}



/*===============================================================*/

/* Media styles */

@media (max-width: 1025px) {
    header .lang-item-de a::after {
        content: "DE";
    }

    header .lang-item-uk a::after {
        content: "UA";
    }

    header .lang-item-de a,
    header .lang-item-uk a {
        font-size: 0 !important;
        padding-bottom: 4px;
    }

    header .lang-item-de a::after,
    header .lang-item-uk a::after {
        font-size: 16px;
        font-weight: 600;
        margin-left: 5px;
    }

    .custom-menu div.hfe-nav-menu {
        padding: 0 !important;
    }

    .custom-menu .menu-item.menu-item-has-children a.hfe-menu-item {
        flex-direction: row;
        font-size: 18px !important;
    }

    .custom-menu .menu-item {
        border-bottom: 1px solid rgba(244, 208, 63, 0.8) !important;
    }

    .custom-menu .hfe-menu-item .sub-arrow {
        display: none;
    }

    .custom-menu ul.sub-menu {
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        position: static !important;
    }

    .custom-menu ul.sub-menu .hfe-sub-menu-item {
        font-size: 14px !important;
    }

    .fact-card__title {
        font-size: 32px !important;
    }

    .fact-card__text {
        font-size: 18px;
    }

    .linear-pagination__numbers {
        display: none;
    }

}

@media (max-width: 768px) {
    .custom-menu div.hfe-nav-menu {
        padding: 0 !important;
    }

    .facts-slider-wrap {
        padding-left: 15px;
    }

    .book-image {
        height: 228px !important;
    }
}
