/* =====================================
   KRISTALL DÖNER HEADER – MODERN DESKTOP + MOBILE
===================================== */

.kd-header{
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,106,0,0.35);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.kd-container{
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 22px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    position: relative;
}

/* ================= LOGO ================= */

.kd-logo-wrap{
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 90px;
}

.kd-logo{
    height: 98px;
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
    transition: transform .25s ease;
}

.kd-logo-wrap:hover .kd-logo{
    transform: scale(1.03);
}

/* ================= DESKTOP NAV ================= */

.kd-nav{
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 30px rgba(0,0,0,0.28);
}

.kd-item,
.kd-drop-toggle{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: #f3f3f3;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all .22s ease;
    white-space: nowrap;
}

.kd-item i,
.kd-drop-toggle i{
    font-size: 14px;
    opacity: .95;
}

.kd-item:hover,
.kd-drop-toggle:hover{
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.kd-item::after,
.kd-drop-toggle::after{
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,#ff6a00,#ff3c00);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
    opacity: .95;
}

.kd-item:hover::after,
.kd-drop-toggle:hover::after{
    transform: scaleX(1);
}

/* Aktive / hervorgehobene Menüpunkte */
.kd-item.active,
.kd-drop-toggle.active,
.kd-btn-menu,
.kd-menu-highlight{
    color: #fff !important;
    background: linear-gradient(135deg,#ff7a00,#ff4d00);
    box-shadow:
        0 8px 22px rgba(255,106,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.kd-item.active::after,
.kd-drop-toggle.active::after,
.kd-btn-menu::after,
.kd-menu-highlight::after{
    display: none;
}

.kd-btn-menu:hover,
.kd-menu-highlight:hover{
    transform: translateY(-1px);
    background: linear-gradient(135deg,#ff8a1f,#ff5a00);
}

/* ================= DROPDOWN ================= */

.kd-drop{
    position: relative;
}

.kd-drop-menu{
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 270px;
    padding: 10px;
    background: rgba(16,16,16,0.98);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    display: none;
    z-index: 10020;
}

.kd-drop.open .kd-drop-menu{
    display: block;
}

.kd-drop-menu a{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: .22s ease;
}

.kd-drop-menu a:hover{
    background: rgba(255,106,0,0.12);
    color: #fff;
}

/* ================= BURGER ================= */

.kd-burger{
    width: 30px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    justify-self: end;
    z-index: 10050;
}

.kd-burger span{
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transition: all .25s ease;
}

.kd-burger.active span:nth-child(1){
    transform: rotate(45deg) translate(5px,5px);
}

.kd-burger.active span:nth-child(2){
    opacity: 0;
}

.kd-burger.active span:nth-child(3){
    transform: rotate(-45deg) translate(6px,-6px);
}

/* ================= DESKTOP FEINSCHLIFF ================= */

@media (min-width: 901px){
    .kd-nav{
        display: flex !important;
    }

    .kd-burger{
        display: none !important;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 900px){

    .kd-container{
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
    }

    .kd-logo{
        height: 72px;
    }

    .kd-burger{
        display: flex;
    }

    .kd-nav{
        position: absolute;
        top: calc(100% + 1px);
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        padding: 12px;
        border-radius: 18px;
        background: rgba(14,14,14,0.98);
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 18px 40px rgba(0,0,0,0.4);
    }

/* Mobile Menü Overlay */
.kd-nav.active{
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 90px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 30px 20px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);

    z-index: 10000;
}


    .kd-item,
    .kd-drop-toggle,
    .kd-btn-menu,
    .kd-menu-highlight{
        width: 100%;
        justify-content: flex-start;
        min-height: 46px;
        border-radius: 14px;
        padding: 0 14px;
    }

    .kd-item::after,
    .kd-drop-toggle::after{
        display: none;
    }

    .kd-drop-menu{
        position: static;
        transform: none;
        left: auto;
        top: auto;
        min-width: 100%;
        margin-top: 6px;
        border-radius: 14px;
        background: #151515;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,0.05);
    }
}