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

html,
body {
    -webkit-font-smoothing: antialiased;
}

body,
#content,
.page-content {
    overflow-x: hidden;
}



/* ==========================================================================
   HEADER – SHOW/HIDE ON SCROLL
   ========================================================================== */

.main-header {
    top: 0 !important;
    transition: top .3s ease-in-out;
}

.hidden {
    top: -134px !important;
}

@media (min-width: 577px) and (max-width: 1200px) {
    .main-header { height: 126px; }
    .hidden { top: -126px !important; }
}

@media (max-width: 576px) {
    .main-header { height: 106px; }
    .hidden { top: -106px !important; }
}



/* ==========================================================================
   FOOTER (inkl. Sticky Footer)
   ========================================================================== */

/* Desktop Sticky Footer */
@media (min-width: 1201px) {
    footer.elementor-location-footer {
        position: sticky;
        bottom: 0;
        z-index: 5;
    }

    body main,
    body .site-main,
    .elementor-location-single,
    .elementor-location-archive {
        position: relative;
        z-index: 10;
    }
}

/* Tablet + Mobile: Kein Sticky Footer */
@media (max-width: 1200px) {
    footer.elementor-location-footer {
        position: static !important;
    }
}

/* Elementor Wrapper Fix */
.elementor,
.elementor-section,
.elementor-container,
.elementor-widget-wrap {
    overflow: visible !important;
}



/* ==========================================================================
   ELEMENTOR POPUP – Inhalt scrollbar (inkl. Mobile Navigation)
   ========================================================================== */

/* Popup-Container: Volle Höhe, scrollbar */
.elementor-popup-modal .dialog-widget-content {
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Popup-Inhalt: Scrollbar mit Touch-Support */
.elementor-popup-modal .dialog-message {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

/* Popup-Overlay: Touch-Events blockieren */
.elementor-popup-modal .dialog-lightbox-overlay {
    touch-action: none;
}




/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

/* Nur im Frontend – nicht im WP Admin / Elementor Editor */
body:not(.wp-admin) a,
body:not(.wp-admin) button,
body:not(.wp-admin) [role="button"] {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
    background-color: #000;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    z-index: 999999;
}

.cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 10px;
    transform: translate(-50%, -50%);
    background: #E4FD04;
    color: #000;
    font-family: "Roboto Slab", sans-serif;
    font-size: 18px;
    line-height: 1.10em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.custom-cursor.swiper-active,
.custom-cursor.link-active {
    border: 2px solid #000;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
}

.custom-cursor.link-active {
    background-color: #000;
}

@media (max-width: 1024px) {
    .custom-cursor { display: none !important; }
    body { cursor: auto !important; }
}



/* ==========================================================================
   DOT HEADING
   ========================================================================== */

.hb-dot-heading .elementor-heading-title {
    position: relative;
    display: inline-block !important;
    padding-left: 24px;
}
.hb-dot-heading .elementor-heading-title::before {
    content: "";
    width: 14px;
    height: 14px;
    background:  #E4FD04;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 44%;
    transform: translateY(-50%);
}
.hb-dot-heading.black .elementor-heading-title::before {
    background:  #000;
}



/* ==========================================================================
   RANKMATH BREADCRUMB
   ========================================================================== */

.rank-math-breadcrumb p {
    margin: 0;
    padding: 0;
}

.rank-math-breadcrumb a,
.rank-math-breadcrumb .last {
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(0.75rem, 0.6667rem + 0.2315vw, 0.875rem);
    color: #000;
    transition: color .3s ease;
}

.rank-math-breadcrumb a {
    font-weight: 300;
}

.rank-math-breadcrumb a:hover {
    color: #CDE304;
}

.rank-math-breadcrumb .last {
    font-weight: 700;
}



/* ==========================================================================
   GRAYSCALE EFFECTS
   ========================================================================== */

.grayscale img,
.grayscale .elementor-custom-embed-image-overlay {
    filter: grayscale(100%);
    transition: filter .5s ease;
}

.grayscale img:hover,
.grayscale .elementor-custom-embed-image-overlay:hover {
    filter: grayscale(0%);
}

.grayscale-bg {
    position: relative;
    overflow: hidden;
}

.grayscale-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter .5s ease;
    z-index: 0;
}

.grayscale-bg:hover::before {
    filter: grayscale(0%);
}

.grayscale-bg > * {
    position: relative;
    z-index: 1;
}

.grayscale-video .elementor-custom-embed-image-overlay {
    position: relative;
    overflow: hidden;
}

.grayscale-video .elementor-custom-embed-image-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter .4s ease;
    z-index: 1;
}

.grayscale-video .elementor-custom-embed-image-overlay:hover::before {
    filter: grayscale(0%);
}

.grayscale-video .elementor-custom-embed-play {
    position: relative;
    z-index: 2 !important;
    filter: none !important;
}



/* ==========================================================================
   VIDEO MASK MODULE
   ========================================================================== */

.hb-video-wrapper {
    position: relative;
}

.hb-video-wrapper .elementor-widget-video {
    position: relative;
    z-index: 1;
}

.hb-video-wrapper .elementor-widget-html {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hb-video-wrapper .elementor-widget-html .elementor-widget-container {
    width: 100%;
    height: 100%;
}

.hb-video-mask-left,
.hb-video-mask-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: #fff;
    will-change: transform;
}

.hb-video-mask-left  { left: 0; }
.hb-video-mask-right { right: 0; }

@media (max-width: 1023px) {
    .hb-video-mask-left,
    .hb-video-mask-right {
        width: 45%;
    }
}



/* ==========================================================================
   IMAGE REVEAL (BOTTOM)
   ========================================================================== */

.img-reveal-bottom {
    overflow: hidden;
    display: block;
}

.img-reveal-bottom img {
    width: 100%;
    clip-path: inset(100% 0 0 0);
    transform: scale(1.05);
    will-change: clip-path, transform, opacity;
}



/* ==========================================================================
   SCROLL PROGRESS BUTTON
   ========================================================================== */

.hb-scroll-progress {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E4FD04;
    color: #000;
    font-family: "Bebas Neue Bold", sans-serif;
    cursor: none;
    user-select: none;
    z-index: 9999;
}

.hb-scroll-progress .progress-nr {
    position: relative;
    font-size: 28px;
    margin-top: 18px;
    margin-left: -6px;
}

.hb-scroll-progress .progress-nr::after {
    content: "%";
    position: absolute;
    top: 6px;
    right: -10px;
    font-size: 14px;
}

.hb-scroll-progress:hover {
    background: #CDE304;
}



/* ==========================================================================
   TIMELINE MODULE
   ========================================================================== */

.hb-timeline {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.hb-timeline__line-col {
    flex: 0 0 40px;
    position: relative;
}

.hb-timeline__items {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.hb-timeline__line {
    width: 12px;
    height: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    position: relative;
}

.hb-timeline__line-fill {
    width: 12px;
    height: 100%;
    background: #E4FD04;
    border-radius: 20px;
    transform-origin: top;
    transform: scaleY(0);
    position: absolute;
    top: 0;
    left: 0;
}

.hb-timeline__dots {
    position: absolute;
    top: 0;
    left: 2px;
    width: 12px;
    height: 100%;
}

.hb-timeline__dot {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    position: absolute;
}

@media (max-width: 767px) {
    .hb-timeline__line-col {
        flex-basis: 28px;
    }
}



/* ==========================================================================
   LOGO CAROUSEL (Auto-Marquee)
   ========================================================================== */

.logo-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.logo-carousel-wrapper .swiper-wrapper {
    transition-timing-function: linear !important;
    pointer-events: none !important;
    touch-action: none !important;
}

.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.logo-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, rgba(255,255,255,0));
}

.logo-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, rgba(255,255,255,0));
}



/* ==========================================================================
   BUTTON MIT SVG-ICON (.hb-btn-icon)
   Eigene Klasse für Elementor-Buttons mit readmore-Arrow-Icon.
   Einfach die CSS-Klasse "hb-btn-icon" im Elementor-Button vergeben.
   ========================================================================== */

.hb-btn-icon .elementor-button {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

.hb-btn-icon .elementor-button::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' height='18' viewBox='0 0 18 18' width='18' xmlns='http://www.w3.org/2000/svg'%3E%3CclipPath id='a'%3E%3Crect height='18' rx='9' width='18'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Crect fill='%23e4fd04' height='18' rx='9' width='18'/%3E%3Cg stroke='%23000' stroke-width='.5'%3E%3Cpath d='m8.86267 4 5.13733 5-5.13733 5'/%3E%3Cpath d='m14.0004 9h-10.00003'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Vorhandenes Elementor-Icon verstecken (falls doch gerendert) */
.hb-btn-icon .elementor-button-icon {
    display: none;
}



/* ==========================================================================
   WPML SPRACHWECHSLER
   ========================================================================== */

.wpml-ls-statics-shortcode_actions {
    background-color: transparent;
}

.wpml-ls-legacy-list-horizontal {
    padding: 0;
    border: none;
}

.wpml-ls-legacy-list-horizontal a {
    padding: 0;
}

.wpml-elementor-ls .wpml-ls-link {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.wpml-light .wpml-elementor-ls .wpml-ls-link {
    border: 1px solid #000;
}

.wpml-dark .wpml-elementor-ls .wpml-ls-link {
    border: 1px solid #FFF;
}

.wpml-elementor-ls .wpml-ls-native {
    line-height: 1;
    transform: translateY(1px);
    color: currentColor;
}

.wpml-elementor-ls .wpml-ls-link:hover,
.wpml-elementor-ls .wpml-ls-link:focus-visible {
    background-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
}

.wpml-light .wpml-elementor-ls .wpml-ls-link:hover,
.wpml-light .wpml-elementor-ls .wpml-ls-link:focus-visible {
    border-color: #000 !important;
}

.wpml-dark .wpml-elementor-ls .wpml-ls-link:hover,
.wpml-dark .wpml-elementor-ls .wpml-ls-link:focus-visible {
    border-color: #FFF !important;
}

@media (max-width: 1024px) {
    .wpml-elementor-ls .wpml-ls-link {
        width: 44px;
        height: 44px;
    }
}



/* ==========================================================================
   FALLING PILLS + TYPEWRITER
   ========================================================================== */

.hb-pills {
    position: relative;
    overflow: hidden;
    background-color: #E4FD04;
}

/* Typewriter */
.hb-pills__typewriter {
    text-align: left;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.hb-typewriter {
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(2rem, 1rem + 3.5vw, 3.5rem);
    font-weight: 900;
    color: #000;
    line-height: 1.15;
    text-transform: uppercase;
}

.hb-typewriter::after {
    content: "|";
    display: inline-block;
    margin-left: 2px;
    font-weight: 400;
    animation: hb-blink .7s step-end infinite;
}

@keyframes hb-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* Pills Canvas */
.hb-pills__canvas {
    position: relative;
    width: 100%;
    min-height: 400px;
    z-index: 1;
}

/* Pill Button (Farben, Typo, Border, Padding, Hover via Elementor Widget) */
.hb-pills__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    will-change: transform;
}

/* Responsive */
@media (max-width: 1024px) {
    .hb-pills__canvas {
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    .hb-pills__canvas {
        min-height: 300px;
    }
}