/* ==========================================================
   BeKa Autoaufbereitung
   HEADER V4 - Mobile / iPhone Simple Fix
========================================================== */

.beka-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    overflow:visible;
    background:rgba(10,10,10,.58);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    border-bottom:1px solid rgba(255,255,255,.08);
    transition:all .35s ease;
}

.beka-header.scrolled{
    background:rgba(8,8,8,.92);
    box-shadow:0 12px 40px rgba(0,0,0,.35);
    border-bottom:1px solid rgba(200,16,46,.18);
}

.beka-header .beka-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:78px;
    transition:all .35s ease;
}

.beka-header.scrolled .beka-container{
    height:70px;
}

.beka-logo{
    display:flex;
    align-items:center;
    position:relative;
    z-index:1002;
}

.beka-logo img{
    height:128px;
    width:auto;
    transition:all .35s ease;
    filter:drop-shadow(0 0 8px rgba(200,16,46,.15));
}

.beka-header.scrolled .beka-logo img{
    height:64px;
}

.beka-logo:hover img{
    transform:scale(1.04);
    filter:
        drop-shadow(0 0 12px rgba(200,16,46,.45))
        drop-shadow(0 0 25px rgba(200,16,46,.25));
}

.beka-navigation ul{
    display:flex;
    align-items:center;
    gap:2.8rem;
    list-style:none;
    margin:0;
    padding:0;
}

.beka-navigation a{
    position:relative;
    color:#fff;
    font-weight:600;
    text-decoration:none;
    transition:.3s ease;
    padding:8px 0;
}

.beka-navigation a::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-7px;
    width:0;
    height:2px;
    transform:translateX(-50%);
    background:linear-gradient(90deg,#c8102e,#ff5b75);
    transition:.3s ease;
    border-radius:99px;
}

.beka-navigation a:hover{
    color:#ff5b75;
}

.beka-navigation a:hover::after{
    width:100%;
}

.beka-button-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 30px;
    border-radius:999px;
    background:#c8102e;
    color:#fff;
    font-weight:700;
    text-decoration:none;
    transition:all .3s ease;
    box-shadow:0 8px 20px rgba(200,16,46,.25);
}

.beka-button-primary:hover{
    background:#e31a3d;
    transform:translateY(-2px);
    box-shadow:0 12px 30px rgba(200,16,46,.35);
}

.beka-mobile-toggle{
    display:none;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    padding:0;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:rgba(255,255,255,.05);
    color:#fff;
    font-size:0;
    cursor:pointer;
    position:relative;
    z-index:1003;
    transition:.3s ease;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
}

.beka-mobile-toggle::before{
    content:"☰";
    font-size:25px;
    line-height:1;
}

.beka-mobile-toggle.active::before{
    content:"×";
    font-size:34px;
    line-height:1;
    font-weight:300;
}

.beka-mobile-toggle:hover{
    background:rgba(255,255,255,.08);
    border-color:rgba(200,16,46,.45);
}

/* ==========================================================
   Mobile / Tablet
   Bewusst einfache display:none / display:block Lösung,
   damit das Menü auch in iOS Safari zuverlässig sichtbar ist.
========================================================== */

@media (max-width:1100px){

    .beka-header{
        overflow:visible;
    }

    .beka-header .beka-container,
    .beka-header.scrolled .beka-container{
        height:70px;
    }

    .beka-logo img,
    .beka-header.scrolled .beka-logo img{
        height:60px;
    }

    .beka-mobile-toggle{
        display:inline-flex;
    }

    .beka-header > .beka-container > .beka-button-primary{
        display:none;
    }

    .beka-navigation{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        width:100%;
        display:none;
        background:#0a0a0c;
        border-top:1px solid rgba(255,255,255,.06);
        border-bottom:1px solid rgba(200,16,46,.25);
        box-shadow:0 24px 45px rgba(0,0,0,.45);
        z-index:1001;
    }

    .beka-navigation.active{
        display:block;
    }

    .beka-navigation ul{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        width:min(calc(100% - 32px),720px);
        margin:0 auto;
        padding:14px 0 max(22px, env(safe-area-inset-bottom));
        list-style:none;
    }

    .beka-navigation li{
        display:block;
        width:100%;
        margin:0;
        padding:0;
        border-bottom:1px solid rgba(255,255,255,.07);
    }

    .beka-navigation li:last-child{
        border-bottom:none;
    }

    .beka-navigation a{
        display:block;
        width:100%;
        padding:17px 6px;
        color:#fff;
        font-size:1.05rem;
        font-weight:600;
        text-decoration:none;
        -webkit-tap-highlight-color:transparent;
        touch-action:manipulation;
    }

    .beka-navigation a::after{
        display:none;
    }

    .beka-navigation a:hover,
    .beka-navigation a:focus-visible{
        color:#ff5b75;
    }
}

@media (max-width:480px){

    .beka-header .beka-container,
    .beka-header.scrolled .beka-container{
        height:66px;
    }

    .beka-logo img,
    .beka-header.scrolled .beka-logo img{
        height:56px;
    }

    .beka-mobile-toggle{
        width:44px;
        height:44px;
    }
}
