.ae-topmenu {
    width: 100%;
    height: 44px;
    background: #f7f6f2;
    border-bottom: 1px solid rgba(20, 25, 28, 0.12);
    font-family: Georgia, "Times New Roman", serif;
    box-sizing: border-box;
    position: relative;
    z-index: 80;
    overflow: visible;
}

.ae-topmenu-inner {
    max-width: 1180px;
    height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

.ae-menu-left,
.ae-menu-right {
    display: flex;
    align-items: center;
    height: 44px;
    overflow: visible;
}

.ae-menu-icon {
    width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c2b31;
    text-decoration: none;
    font-size: 15px;
}

.ae-menu-icon i {
    transform: rotate(10deg);
}

.ae-menu-link {
    height: 44px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c2b31;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: background 0.25s ease, color 0.25s ease;
}

.ae-menu-link:hover {
    background: rgba(20, 25, 28, 0.04);
    color: #000;
}

.ae-menu-link.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: #1c2b31;
}

/* Gäste rechts */

.ae-guestlinks {
    height: 44px;
    display: flex;
    align-items: center;
}

.ae-guestlinks a {
    height: 44px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1c2b31;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
}

.ae-guestlinks a:hover {
    background: rgba(20, 25, 28, 0.04);
    color: #000;
}

.ae-guestlinks i {
    font-size: 13px;
}

/* Userbox rechts */

.ae-userbox {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.ae-user-trigger {
    position: relative;
    height: 44px;
    padding: 0 14px 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1c2b31;
    cursor: default;
    background: rgba(255, 255, 255, 0.18);
    border-left: 1px solid rgba(28, 43, 49, 0.10);
    box-sizing: border-box;
}

.ae-user-trigger:hover {
    background: rgba(28, 43, 49, 0.045);
}

/* Größeres Avatarbild */

.ae-user-avatar {
    width: 68px;
    height: 68px;
	margin-top:-20px;
    display: block;
    object-fit: cover;
    border-radius: 0;
    padding: 3px;
    box-sizing: border-box;
    background: #f7f6f2;
    border: 1px solid rgba(28, 43, 49, 0.30);
    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    filter: grayscale(10%) contrast(1.04);
    transform: rotate(-2deg) translateY(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    z-index: 5;
}

.ae-userbox:hover .ae-user-avatar {
    transform: rotate(0deg) translateY(8px);
    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.20),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    filter: grayscale(0%) contrast(1.06);
}

/* Username rechts neben Avatar */

.ae-user-name {
    max-width: 145px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #1c2b31;
}

.ae-user-trigger i {
    font-size: 10px;
    opacity: 0.75;
}

/* Dropdown */

.ae-user-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    width: 220px;
    background: #f7f6f2;
    border: 1px solid rgba(28, 43, 49, 0.18);
    border-top: 2px solid #1c2b31;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    display: none;
    z-index: 100;
}

.ae-userbox:hover .ae-user-dropdown {
    display: block;
}

.ae-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #1c2b31;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(28, 43, 49, 0.08);
}

.ae-user-dropdown a:last-child {
    border-bottom: 0;
}

.ae-user-dropdown a:hover {
    background: rgba(28, 43, 49, 0.06);
}

.ae-user-dropdown i {
    width: 15px;
    text-align: center;
    font-size: 12px;
}

/* Mobile */

@media (max-width: 850px) {
    .ae-topmenu {
        height: auto;
    }

    .ae-topmenu-inner {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .ae-menu-left {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ae-menu-right {
        height: auto;
        justify-content: center;
        border-top: 1px solid rgba(28, 43, 49, 0.1);
    }

    .ae-menu-link {
        height: 38px;
        padding: 0 12px;
        font-size: 10px;
    }

    .ae-menu-icon {
        display: none;
    }

    .ae-userbox,
    .ae-user-trigger {
        height: 46px;
    }

    .ae-user-avatar {
        width: 46px;
        height: 46px;
        transform: rotate(-2deg) translateY(4px);
    }

    .ae-userbox:hover .ae-user-avatar {
        transform: rotate(0deg) translateY(3px);
    }

    .ae-user-dropdown {
        top: 46px;
        right: 50%;
        transform: translateX(50%);
    }

    .ae-user-name {
        max-width: 160px;
    }
}