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

/* Scroll-Versatz für Anker-Links (Sticky Header = 80px) */
html {
    scroll-padding-top: 100px;
}

@media (max-width: 2560px) {
    html,
    body {
        background-color: #083B45;
    }
}

/* Custom Scrollbar – Chrome/Safari (webkit) + Firefox (standard) */
/* Hinweis: scrollbar-width: thin erzeugt in Chrome 121+ eine native
   Overlay-Scrollbar die beim Scrollen wächst/schrumpft.
   Deshalb nur für Firefox (über @supports) verwendet, damit in
   Chrome/Safari die feste ::-webkit-scrollbar Customization greift. */
html {
    scrollbar-color: #FF3D08 #D4D0CD;
}
@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-width: thin;
    }
}
::-webkit-scrollbar {
    width: 6px;
    background: #D4D0CD;
}
::-webkit-scrollbar-track {
    background: #D4D0CD;
}
::-webkit-scrollbar-thumb {
    background: #FF3D08;
    border-radius: 3px;
}

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

/* Feste Hintergrundgrafik – skaliert nicht, wird bei kleinen Screens gecroppt */
.hb-bg-fixed {
    background-size: 2560px auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* Hintergrundbild mit Cover bis 2560px, danach nicht weiter skalieren */
.hb-bg-cap {
    max-width: 2560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
}

@media (min-width: 2561px) {
    .hb-bg-cap {
        background-size: 2560px auto !important;
        background-position: center center !important;
    }
}



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

.main-header {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 2560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: top .3s ease-in-out, background-color .3s ease-in-out;
}

.main-header.header-scrolled {
    background-color: #083B45;
}

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

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

@media (max-width: 576px) {
    .main-header { height: 74px; }
    .hidden { top: -74px !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 + iPad: 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 (osmo.supply Style)
   ========================================================================== */

.cursor {
    z-index: 100;
    background-color: #FF3D08;
    border: 1px solid #FF3D08;
    border-radius: 100em;
    width: 1em;
    height: 1em;
    transition: background-color .375s cubic-bezier(.625, .05, 0, 1), height .375s cubic-bezier(.625, .05, 0, 1), width .375s cubic-bezier(.625, .05, 0, 1);
    position: fixed;
    inset: 0% auto auto 0%;
    pointer-events: none;
}

body:has( a:hover) .cursor,
body:has( button:hover) .cursor,
body:has( [data-cursor]:hover) .cursor {
    width: 3em;
    height: 3em;
    background-color: rgba(255, 61, 8, 0.3);
}

@media (hover: none) and (pointer: coarse) {
    .cursor {
        display: none;
    }
}





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

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

/* Dark (Standard) */
.rank-math-breadcrumb a,
.rank-math-breadcrumb .last {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.75rem, 0.6667rem + 0.2315vw, 0.875rem);
    color: #FFF;
    transition: color .3s ease;
}

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

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

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

.separator {
    display: inline;
    font-size: 16px;
    color: #FFF;
}

/* Light */
.is--light .rank-math-breadcrumb a,
.is--light .rank-math-breadcrumb .last {
    color: #01090A;
}

.is--light .rank-math-breadcrumb a:hover {
    color: #FF3D08;
}

.is--light .separator {
    color: #01090A;
}



/* ==========================================================================
   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: #FF3D08;
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    user-select: none;
    z-index: 9999;
    cursor: pointer;
}

.hb-scroll-progress .progress-nr {
    position: relative;
    font-size: 20px;
    margin: 0 auto;
}

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



/* ==========================================================================
   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));
}



/* ==========================================================================
   NUMMERIERTE KREISE (.hb-number-circle)
   CSS-Klasse auf das Elementor Heading-Widget setzen.
   ========================================================================== */

.hb-number-circle .elementor-heading-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid currentColor;
}

@media (max-width: 767px) {
    .hb-number-circle .elementor-heading-title {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .hb-number-circle .elementor-heading-title {
        width: 80px;
        height: 80px;
    }
}


/* ==========================================================================
   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: 20px;
    height: 20px;
    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='%23FF3D08' height='18' rx='9' width='18'/%3E%3Cg stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='m7.86267 4 5.13733 5-5.13733 5'/%3E%3Cpath d='m13.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: "Montserrat", 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;
    }
}



/* ==========================================================================
   PAGE TRANSITION (5-Column Panel Slide)
   ========================================================================== */

.transition {
    z-index: 99999;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 2560px;
    margin-left: auto;
    margin-right: auto;
    overflow: clip;
}

.transition__panels {
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.transition__panel {
    background-color: var(--hb-transition-bg, #083B45);
    width: 100%;
    height: 100%;
    position: relative;
    top: -100%;
}

.transition__lines {
    opacity: 0;
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.transition__line {
    border-right: 1px solid var(--hb-transition-lines, #ffffff);
    width: 100%;
    height: 100%;
}

.transition__line.is--last {
    border-right-style: none;
}