/*
Theme Name: helloblack-child
Template: hello-elementor
Author: Oliver Schwarz
Author URI: https://helloblack.digital
Description: Child Theme for Hello Elementor
Version: 1.0.0
Text Domain: helloblack-child
*/

/* =========================================
   GLOBAL
========================================= */
html,
body {
    -webkit-font-smoothing: antialiased;
}
body,
#content,
.page-content {
    overflow-x: hidden;
}
b,
strong {
    font-family: "Brockmann Bold", Sans-serif;
    font-weight: normal !important;
}

/* =========================================
   HEADER
========================================= */
.main-header {
    width: 1440px;
    left: 50% !important;
    top: 0 !important;
    transform: translateX(-50%) !important;
    background: #FFF;
    height: 104px;
    border-radius: 0 0 24px 24px;
    transition: .3s ease-in-out;
}
@media (max-width: 1440px) {
    .main-header {
        width: 100%;
    }
}
.hidden {
    top: -104px !important;
}
.main-header.elementor-sticky--effects {
    height: 104px;
    transition: .3s ease-in-out;
}
/* Tablet */
@media (min-width: 768px) and (max-width: 1200px) {
    .main-header {
        height: 90px;
    }
    .hidden {
        top: -90px !important;
    }
    .main-header.elementor-sticky--effects {
        height: 90px;
    }
}
/* Mobile */
@media (max-width: 767px) {
    .main-header {
        height: 88px;
    }
    .hidden {
        top: -88px !important;
    }
    .main-header.elementor-sticky--effects {
        height: 88px;
    }
}

/* =========================================
   OFF-CANVAS / MOBILE NAVIGATION
========================================= */
.mobile-navi .sub-menu {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 10px !important;
    margin-bottom: 24px !important;
}
.mobile-navi .elementor-nav-menu--dropdown .elementor-sub-item {
    font-size: 16px !important;
}
.mobile-navi .elementor-sub-item {
    padding: 4px 0 !important;
}
.mobile-navi .elementor-nav-menu .naviheading > a {
    font-size: 12px !important;
    text-transform: uppercase !important;
    color: #BCBEC0 !important;
    margin-bottom: 4px !important;
    pointer-events: none !important;
    cursor: default !important;
}
.mobile-navi .navitrenner::after {
    content: "";
    display: block;
    width: calc(100% - 20px);
    height: 1px;
    background: #BCBEC0;
    margin: 14px 10px;
}
/* Aktiver Menüpunkt (Script setzt hb-nav-active) */
.elementor-popup .mobile-navi a.hb-nav-active {
    color: #51BECA;
}
/* Dropdown-Pfeil Anordnung */
.elementor-popup .mobile-navi .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   PAGE MASKS (≥ 1920px)
========================================= */
@media (min-width: 1921px) {
    html::before,
    html::after {
        content: "";
        position: fixed;
        top: 0;
        bottom: 0;
        width: calc((100vw - 1920px) / 2 + 1px);
        background: #f6f6f6;
        pointer-events: none;
        z-index: 9999;
    }
    html::before {
        left: 0;
    }
    html::after {
        right: 0;
    }
}

/* =========================================
   OVERLAY-ELEMENTE
========================================= */
.overlay-wrapper {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    overflow: visible;
    z-index: 2;
}
.overlay-section {
    position: relative;
    overflow: visible;
    z-index: 3;
}
.overlay-shape {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

/* =========================================
   CTA GRID
========================================= */
.cta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 30px;
}
.cta-grid .elementor-widget-call-to-action {
    flex: 1 1 calc(33.333% - 30px);
    display: flex;
    flex-direction: column;
}
.cta-grid .elementor-widget-call-to-action .elementor-widget-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cta-grid .elementor-cta {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* =========================================
   MARQUEE
========================================= */
.marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
}
.marquee__inner {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
}
.marquee-track {
    display: inline-flex;
    gap: var(--e-gap, 20px);
    will-change: transform;
}
.marquee__inner a,
.marquee__inner button {
    flex: 0 0 auto;
    cursor: pointer;
}
.marquee:hover .marquee-track {
    animation-play-state: paused;
}
.marquee *,
.marquee__inner *,
.marquee-track * {
    box-sizing: border-box;
    pointer-events: auto;
}

/* =========================================
   BEITRAGSTEASER
========================================= */
.beitragsteaser .read-more .elementor-heading-title {
    transition: color 0.3s ease;
}
.beitragsteaser:hover .read-more .elementor-heading-title {
    color: #000 !important;
}

/* =========================================
   BREADCRUMB (RankMath)
========================================= */
.breadcrumb-white .rank-math-breadcrumb,
.breadcrumb-white .rank-math-breadcrumb a,
.breadcrumb-white .rank-math-breadcrumb span,
.breadcrumb-white .rank-math-breadcrumb .last {
    color: #fff !important;
}
.rank-math-breadcrumb p {
    margin: 0;
    padding: 0;
}
.rank-math-breadcrumb a {
    font-family: "Brockmann Regular", Sans-serif;
    font-size: clamp(0.75rem, 0.5938rem + 0.5vw, 0.875rem);
    color: #666;
}
.rank-math-breadcrumb .last {
    font-family: "Brockmann Bold", Sans-serif;
    font-size: clamp(0.75rem, 0.5938rem + 0.5vw, 0.875rem);
    color: #000;
}