/* Clean Header - einziger Header-Code */
.clean-main-header {
    position: relative;
    width: 100%;
    height: clamp(128px, 9.52vw, 196px);
    min-height: clamp(128px, 9.52vw, 196px);
    margin: 0 0 18px 0;
    overflow: hidden;
    background-image: url("images/header/bundesliga-header-title.png");
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #020914;
    border-top: 1px solid rgba(82, 179, 255, 0.62);
    border-bottom: 1px solid rgba(82, 179, 255, 0.78);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 0 0 1px rgba(111, 204, 255, 0.14) inset, 0 0 24px rgba(45, 158, 255, 0.20), 0 12px 28px rgba(0,0,0,.34);
}

.clean-main-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(77,184,255,.96), rgba(255,82,56,.72), transparent);
    box-shadow: 0 0 13px rgba(75,181,255,.7);
}

.header-profile-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(104,199,255,.78);
    background: linear-gradient(180deg, rgba(8,35,70,.78), rgba(4,16,34,.90));
    color: #f4fbff;
    box-shadow: 0 0 13px rgba(65,174,255,.24), inset 0 0 10px rgba(102,205,255,.07);
    font-size: .74rem;
    font-weight: 900;
    z-index: 10;
}


.header-right-controls {
    position: absolute;
    right: 76px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.header-profile-button {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 430px;
    height: 84px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 18px 0 14px;
    cursor: pointer;
    overflow: hidden;
}

.header-profile-avatar {
    width: 66px;
    height: 66px;
    min-width: 66px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(9,27,52,.9);
    border: 1px solid rgba(125,210,255,.72);
    box-shadow: 0 0 0 2px rgba(3, 16, 35, .92), 0 0 18px rgba(67, 181, 255, .38);
    overflow: hidden;
}

.user-info {
    min-width: 0;
    flex: 1 1 auto;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.06rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.header-profile-chevron {
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin-left: 18px;
    border-radius: 50%;
    border: 1px solid rgba(125, 216, 255, .78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0;
    line-height: 1;
    background: radial-gradient(circle at 35% 25%, rgba(122, 214, 255, .24), rgba(4, 18, 38, .92));
    box-shadow: 0 0 14px rgba(72, 183, 255, .30), inset 0 0 12px rgba(91, 190, 255, .14);
}

.header-profile-chevron::before {
    content: "";
    width: 11px;
    height: 11px;
    border-right: 3px solid #e7fbff;
    border-bottom: 3px solid #e7fbff;
    transform: translateY(-2px) rotate(45deg);
    filter: drop-shadow(0 0 6px rgba(110, 218, 255, .9));
}

.header-profile-logout-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    margin-left: 10px;
    border-radius: 50%;
    border: 1px solid rgba(132,215,255,.78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 25%, rgba(121,213,255,.26), rgba(5,18,36,.98));
    box-shadow: 0 0 14px rgba(72, 183, 255, .26), inset 0 0 10px rgba(120, 214, 255, .12);
    font-size: 1.02rem;
}


.header-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.header-profile-avatar .avatar-emoji {
    line-height: 1;
    font-size: 1.85rem;
}

@media (max-width: 900px) {
    .clean-main-header {
        height: 96px;
        min-height: 96px;
        background-size: auto 100%;
        background-position: center center;
    }
    .header-right-controls { right: 10px; }
    .header-profile-button { width: 132px; height: 50px; padding: 0 10px; gap: 8px; border-radius: 16px; }
    .user-info { display: none; }
    .header-profile-avatar { width: 34px; height: 34px; min-width: 34px; }
    .header-profile-chevron { display: none; }
    .header-profile-logout-icon { width: 30px; height: 30px; min-width: 30px; margin-left: auto; }
}
