/*
Theme Name: Henne Physio
Theme URI: https://elementor.com/
Description: Ein sauberes Child-Theme für das Hello Elementor Parent-Theme.
Author: 2code
Author URI: https://www.2-code.de/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

html {
    font-size: 15px;
}

body {
    text-rendering: optimizeLegibility;
    /* scroll-padding-top: 164px; */
}

.content-text a {
    color: #8bb237;
    transition: color 0.3s ease;
}

.content-text a:hover {
    color: #858E91;
    transition: color 0.3s ease;
}


/* ----- HEADER ----- */


.header-phone-highlight {
    color: #8BB237;
    font-size: 1.133rem;
    font-weight: 600;
    line-height: 1.47em;
}

.menu_item_button>a {
    background-color: #8bb237;
    color: #fff !important;
    padding: 1.353em 1.5em 1.153em !important;
    border-radius: 3em;
    margin-left: 0.8em !important;
}

.menu_item_button:hover>a {
    background-color: #698760 !important;
}

.menu-item .sub-menu::before {
    content: '';
    position: absolute;
    left: 10%;
    top: -16px;
    border: 8px solid transparent;
    border-bottom-color: #3c404f;
}

.menu-item .sub-menu {
    top: 3.5em;
    min-width: 12.9em !important;
    word-wrap:break-word;
    padding: 2em 0 !important;
}

.menu-item .sub-menu li>a {
    padding: 0.4em 1.6667em 0.4em 18% !important;
    word-wrap: break-word;
    white-space: normal !important;
    border: none !important;
}


.elementor-nav-menu,
.e-n-menu-wrapper {
    position: relative !important;
}

.menu-item {
    z-index: 200;
    position: relative;
}

.nav-magic-backdrop {
    position: absolute;
    background-color: #f7f7f7;
    z-index: 1;
    pointer-events: none;
    transition: 
        left 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        width 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        top 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        height 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Der klebrige Zustand unseres Haupt-Headers */
.sticky-header.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 9999;
    background-color: #ffffff; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDownHeader 0.4s ease-out forwards;
}

.sticky-header.is-sticky .flex-container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Die Keyframes für die sanfte Slide-Down Animation */
@keyframes slideDownHeader {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Sperrt das Scrollen der Hauptseite */
body.menu-is-open {
    overflow: hidden !important;
}

@supports (-webkit-touch-callout: none) {
    body.menu-is-open {
        position: fixed;
        width: 100%;
    }
}

/* Grundzustand des Buttons: Unsichtbar und leicht nach unten verschoben */
.scroll-to-top-btn {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Sichtbarer Zustand ab 164px Scrolltiefe */
.scroll-to-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;

}

.scroll-to-top-btn .elementor-icon {
    background-image: linear-gradient(to right, #3C404F 50%, #8BB237 50%) !important;
    background-size: 200% 100% !important;
    background-position: right bottom !important;
    transition: background-position 0.4s ease-out !important;
}

.scroll-to-top-btn .elementor-icon:hover {
    background-position: left bottom !important;
}


/* ----- ANIMATION FÜR HERO ----- */


@keyframes atomicSlowZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

@keyframes syncHeadingFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    6.25% {
        opacity: 0;
        transform: translateY(10px);
    }
    12.5% {
        opacity: 1;
        transform: translateY(0);
    }
    87.5% {
        opacity: 1;
        transform: translateY(0);
    }
    93.75% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes syncTextFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    12.5% {
        opacity: 0;
        transform: translateY(10px);
    }
    18.75% {
        opacity: 1;
        transform: translateY(0);
    }
    81.25% {
        opacity: 1;
        transform: translateY(0);
    }
    87.5% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.hero-img {
    animation: atomicSlowZoom 8s ease-in-out infinite alternate;
}

.hero-heading {
    opacity: 0;
    animation: syncHeadingFade 16s ease-in-out infinite;
}

.hero-text {
    opacity: 0;
    animation: syncTextFade 16s ease-in-out infinite;
}

.glad-hero h1,
.glad-hero p {
    color: var(--dark-bg);
}


/* ----- ZITATBOX ----- */


.quote .elementor-blockquote::before {
    background-color: #8bb237;
    width: 43.2px;
    height: 43.2px;
    border-radius: 50% 50% 50% 50%;
    padding: 5px;
    margin: 0 auto;
}


/* UNSER NETZWERK */


.partner-logos .e-gallery-image {
    background-size: contain !important;
    background-repeat: no-repeat !important;
}


/* BEITRÄGE */


.posts img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.posts .elementor-widget-image {
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer;
}

/* Milchglas-Overlay */

.posts .elementor-widget-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    
    background-color: rgba(60, 64, 79, 0.7) !important;     
    opacity: 0 !important;
    transition: opacity 0.5s ease-in-out !important;
    z-index: 1 !important;
    pointer-events: none;
}

/* Grüne Punkte */
.posts .elementor-widget-image::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    width: 6px !important;
    height: 6px !important;
    background-color: #a6ce39 !important;
    border-radius: 50% !important;
    
    box-shadow: 0px 0 0 #a6ce39, 0px 0 0 #a6ce39 !important;
    
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out, box-shadow 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
    z-index: 2 !important;
    pointer-events: none;
}

/* Trigger */
.posts .elementor-widget-image:hover::before,
.posts .elementor-widget-image:hover::after {
    opacity: 1 !important;
    box-shadow: -12px 0 0 #a6ce39, 12px 0 0 #a6ce39 !important; /* Die Punkte springen nach außen */
}

#read-more {
    display: inline-block;
    transition: transform 0.2s ease;
}

#read-more:hover {
    animation: readMoreArrowBounce 0.5s ease-in-out forwards;
    color: #698760 !important;

}

#read-more::before {
    content: '';
    background-color: #8bb237;
    width: 40px;
    height: 40px;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    font-weight: 900;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    top: -25px;
    left: 110px;
}

@keyframes readMoreArrowBounce {
    0% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(16px);
    }
    100% {
        transform: translateY(0);
    }
}


/* Einzelner Beitrag */


.single-post-content a {
    color: #858E91 !important;
    transition: color 0.3s ease;
}

.single-post-content a:hover {
    color: #8bb237 !important;
    transition: color 0.3s ease;
}

.single-post-info a time,
.single-post-info a {
    color: #858E91 !important;
    transition: color 0.3s ease;
}

.single-post-info a:hover time,
.single-post-info a:hover {
    color: #698760 !important;
    transition: color 0.3s ease;
}

.single-post-share-buttons {
    transition: background-color 0.3s ;
}

.single-post-share-buttons .elementor-share-btn {
    background-image: linear-gradient(to right, #8BB237 50%, #3C404F 50%) !important;
    background-size: 200% 100% !important;
    background-position: right bottom !important;
    transition: background-position 0.4s ease-out !important;
}

.single-post-share-buttons .elementor-share-btn:hover {
    background-position: left bottom !important;
}

.relevant-posts-box {
    transition: background-color 0.3s ease;
}

.relevant-posts:hover .relevant-posts-box  {
    background-color: #FFFFFFFF !important;
    transition: background-color 0.3s ease;
}

.relevant-posts-category:hover a,
.relevant-posts-title:hover a{
    color: #8bb237 !important;
    transition: color 0.3s ease;
}

.relevant-posts-category a,
.relevant-posts-title a {
    transition: color 0.3s ease;
}


/* TESTIMONIALS BLOCK */


#testimonials .content_heading {
    color: #fff;
}

#testimonials .swiper-pagination-bullet-active {
    background-color: #8bb237 !important;
}

#testimonials .swiper-pagination-bullet {
    border: 2px solid #fff;
}

#testimonials .swiper-pagination-bullet:hover {
    border: unset;
}


/* FAQ */


.faq ul,
.faq ol {
    margin-bottom: 21px;
    padding-left: 20px;
}

.faq ul {
    margin-top: 21px;
}

.faq ol li ul {
    padding-left: 0px;
    list-style-type: disc;
}


/* GLAD */


.glad-boxes a {
    transition: color 0.3s ease;
}

.glad-boxes a:hover {
    color: #8bb237 !important;
    transition: color 0.3s ease;
}

.glad-info ul {
    margin-bottom: 21px;
}


/* KONTAKT */


.contact-form .contact-acceptance a {
    color: #8bb237 !important;
    transition: color 0.3s ease;
}

.contact-form .contact-acceptance a:hover {
    color: #858E91 !important;
}


/* BUTTON HOVER EFFEKT */


.button:not(.price-button) {
    background-image: linear-gradient(to right, #3C404F 50%, #8BB237 50%) !important;
    background-size: 200% 100% !important;
    background-position: right bottom !important;
    transition: background-position 0.4s ease-out !important;
}

.button:not(.price-button):hover {
    background-position: left bottom !important;
}

.button.inbw-button {
    background-image: linear-gradient(to right, #3C404F 50%, #6bb8e5 50%) !important;
    background-size: 200% 100% !important;
    background-position: right bottom !important;
    transition: background-position 0.4s ease-out !important;
}

.button.inbw-button:hover {
    background-position: left bottom !important;
}


/* IMPRESSUM + DATENSCHUTZ */


.legal h1,
.legal h5 {
    color: #3c404f !important;
    text-transform: uppercase;
}

.legal h5 {
    margin: 30px 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.legal h6 {
    text-transform: uppercase;
    margin-top: 24px;
    color: #3c404f !important;
    font-weight: 400;
    font-size: 18px;
}

.legal a {
    color: #8bb237 !important;
    transition: color 0.3s ease;
}

.legal a:hover {
    color: #858E91 !important;
    transition: color 0.3s ease;
}

.legal {
    overflow-wrap: break-word;
}


/* COOKIE RICHTLINIEN */

.brlbs-cookie-table, 
.brlbs-cookie-table th, 
.brlbs-cookie-table td,
.brlbs-cmpnt-container,
[class*="borlabs-cookie"] table,
[class*="borlabs-cookie"] span {
    font-family: var(--noto), sans-serif !important;
}

.cookie-accordion .e-n-accordion-item:nth-child(1) .brlbs-cmpnt-container .brlbs-py-2:nth-of-type(2),
.cookie-accordion .e-n-accordion-item:nth-child(1) .brlbs-cmpnt-container .brlbs-py-2:nth-of-type(1) > .brlbs-font-bold {
    display: none !important;
}

.cookie-accordion .e-n-accordion-item:nth-child(2) .brlbs-cmpnt-container .brlbs-py-2:nth-of-type(1),
.cookie-accordion .e-n-accordion-item:nth-child(2) .brlbs-cmpnt-container .brlbs-py-2:nth-of-type(2) > .brlbs-font-bold {
    display: none !important;
}


/* STICKY BUTTONS FOOTER */


.sticky-contact-container {
    transform: translateY(-50%);
    pointer-events: none !important;
    overflow: hidden;
}

.sticky-contact-container .sticky-slide-btn .elementor-button {
    pointer-events: auto !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform: translateX(205px); 
}

/* Vorher: .sticky-contact-container .phone-btn:hover .elementor-button */
.sticky-contact-container .phone-btn .elementor-button.is-open {
    transform: translateX(60px) !important;
}

/* Vorher: .sticky-contact-container .mail-btn:hover .elementor-button */
.sticky-contact-container .mail-btn .elementor-button.is-open {
    transform: translateX(10px) !important;
}

.sticky-contact-container .sticky-slide-btn .elementor-button-icon {
    margin-right: 18px !important;
    font-size: 20px;
}

.sticky-contact-container .phone-btn .elementor-button {
    background-color: #8bb237 !important;
}

.sticky-contact-container .mail-btn .elementor-button {
    background-color: #3c404f !important;
}


/* ----- MEDIA QUERIES ----- */


@media (min-width: 1025px) {
    .menu-item .has-submenu .sub-arrow {
        display: none;
    }
}

@media (max-width: 1024px) {
    header .header-menu .elementor-menu-toggle[aria-expanded="true"] {
        position: relative;
        font-size: 18px;
        top: -30px;
        right: 0px;
        z-index: 13000 !important;
    } 
    
    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container{
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        background-color: #fff !important;
        z-index: 12000 !important;
    }

    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container>ul {
        margin: auto 0 !important;
        padding: 0 3%;
        top: 32%;
    }

    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container li a {
        color: #231f20 !important;
        font-size: 26px !important;
        line-height: 39px !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        font-weight: 400 !important;
        padding: 3.9px 1em 3.9px 0 !important;
    }

    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container li a:hover,
    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container .menu_item_button>a:hover {
        color: #8bb237 !important;
        background-color: unset !important;
        transition: color 0.5s ease;
    }

    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container li ul.sub-menu {
        background-color: unset !important;
        font-size: 16px !important;
    }

    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container li ul.sub-menu li a {
        font-size: 16px !important;
    }
    
    header .header-logo {
        flex-grow: 1 !important;
    }

    header:has([aria-expanded="true"]) .header-logo {
        position: relative !important;
        top: 20px;
        left: 10px;
        z-index: 10000 !important;
        flex-grow: 1 !important;
        text-align: center !important;
    }

    header:has([aria-expanded="true"]) .header-logo a img {
        object-position: center !important;
    }
    
    header:has([aria-expanded="true"]) #info-bar {
        height: 0px;
    }

    .menu-item .sub-menu::before {
        display: none;
    }

    header .elementor-element .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-nav-menu .menu-item-has-children .sub-menu {
        top: 3.5em;
        min-width: 12.9em !important;
        word-wrap:break-word;
        padding: 1em 0 !important;
    }

    header .elementor-element .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-nav-menu .menu-item-has-children .sub-menu li a {
        padding: 6px 0 !important;
        word-wrap: break-word;
        white-space: normal !important;
        border: none !important;
        line-height: 1em !important;
    }

    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container .menu_item_button>a {
        background-color: unset;
        color: #858E91 !important;
        padding: unset !important;
        border-radius: unset;
        margin-left: unset !important;
        margin-top: 4px;
    }

    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container .current-menu-item>a {
        color:#8bb237 !important;
    }

    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-item.has-submenu {
        justify-content: space-between;
    }
    
    header .header-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-item.has-submenu .sub-arrow {
        font-size: 18px;
        fill: #231f20;
        stroke: white;
        stroke-width: 32px;
    }
}

@media (max-width: 767px) {
    header .header-menu .elementor-menu-toggle[aria-expanded="true"] {
        right: 0px;
    }

    .sticky-header.is-sticky .flex-container {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    .sticky-header.is-sticky {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    
    }

    .legal h1 {
        font-size: 24px;
    }

    .legal h5 {
        font-size: 18px;
    }

    .legal h6 {
        font-size: 14px;
    }

    .legal p {
        font-size: 14px;
    }
}